Skip to content

Commit ed2952f

Browse files
Add export-tax-transactions Embedded Component to Preview (#147)
* add draft changes * bump version
1 parent d2ad405 commit ed2952f

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@babel/preset-react": "7.18.6",
5050
"@rollup/plugin-json": "^6.0.0",
5151
"@rollup/plugin-replace": "^2.3.1",
52-
"@stripe/connect-js": "3.3.28-preview-1",
52+
"@stripe/connect-js": "3.3.29-preview-1",
5353
"@types/jest": "^24.0.25",
5454
"@types/react": "^16.8.0",
5555
"@types/react-dom": "^16.8.0",
@@ -85,7 +85,7 @@
8585
"zx": "^4.2.0"
8686
},
8787
"peerDependencies": {
88-
"@stripe/connect-js": ">=3.3.27-preview-1",
88+
"@stripe/connect-js": ">=3.3.29-preview-1",
8989
"react": ">=16.8.0",
9090
"react-dom": ">=16.8.0"
9191
}

src/Components.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,23 @@ export const ConnectTaxRegistrations = ({
728728
return wrapper;
729729
};
730730

731+
export const ConnectExportTaxTransactions = ({
732+
onLoadError,
733+
onLoaderStart,
734+
}: CommonComponentProps): JSX.Element => {
735+
const {wrapper, component: exportTaxTransactions} =
736+
useCreateComponent('export-tax-transactions');
737+
738+
useUpdateWithSetter(exportTaxTransactions, onLoaderStart, (comp, val) => {
739+
comp.setOnLoaderStart(val);
740+
});
741+
742+
useUpdateWithSetter(exportTaxTransactions, onLoadError, (comp, val) => {
743+
comp.setOnLoadError(val);
744+
});
745+
return wrapper;
746+
};
747+
731748
export const ConnectTaxSettings = ({
732749
onLoadError,
733750
onLoaderStart,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,10 +1454,10 @@
14541454
dependencies:
14551455
"@sinonjs/commons" "^3.0.0"
14561456

1457-
"@stripe/connect-js@3.3.28-preview-1":
1458-
version "3.3.28-preview-1"
1459-
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.28-preview-1.tgz#cde20a88dda29106b8becf158fde442794227a99"
1460-
integrity sha512-n5wDbGDdfF9fXGE2JwQsGa5G0up7EgVlWGaFDA72mKlMC2gKnpWeBY1be8EKu+/PvtGPpoROVHsGSKy94ojE7A==
1457+
"@stripe/connect-js@3.3.29-preview-1":
1458+
version "3.3.29-preview-1"
1459+
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.29-preview-1.tgz#32c5065f18a5fd075d012a99ed3644e7a150ee4f"
1460+
integrity sha512-B3O8bVOiiGaxsRhkHL38SNX1uWs+U8XGnW652li5/FdEL94qp41tUiUsjB8z2NyccSGNDufhlnbQYdy5+h2GRg==
14611461

14621462
"@tootallnate/once@2":
14631463
version "2.0.0"

0 commit comments

Comments
 (0)