Skip to content

Add export-tax-transactions Embedded Component to Preview #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@babel/preset-react": "7.18.6",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-replace": "^2.3.1",
"@stripe/connect-js": "3.3.28-preview-1",
"@stripe/connect-js": "3.3.29-preview-1",
"@types/jest": "^24.0.25",
"@types/react": "^16.8.0",
"@types/react-dom": "^16.8.0",
Expand Down Expand Up @@ -85,7 +85,7 @@
"zx": "^4.2.0"
},
"peerDependencies": {
"@stripe/connect-js": ">=3.3.27-preview-1",
"@stripe/connect-js": ">=3.3.29-preview-1",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
}
Expand Down
17 changes: 17 additions & 0 deletions src/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,23 @@ export const ConnectTaxRegistrations = ({
return wrapper;
};

export const ConnectExportTaxTransactions = ({
onLoadError,
onLoaderStart,
}: CommonComponentProps): JSX.Element => {
const {wrapper, component: exportTaxTransactions} =
useCreateComponent('export-tax-transactions');

useUpdateWithSetter(exportTaxTransactions, onLoaderStart, (comp, val) => {
comp.setOnLoaderStart(val);
});

useUpdateWithSetter(exportTaxTransactions, onLoadError, (comp, val) => {
comp.setOnLoadError(val);
});
return wrapper;
};

export const ConnectTaxSettings = ({
onLoadError,
onLoaderStart,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1454,10 +1454,10 @@
dependencies:
"@sinonjs/commons" "^3.0.0"

"@stripe/[email protected].28-preview-1":
version "3.3.28-preview-1"
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.28-preview-1.tgz#cde20a88dda29106b8becf158fde442794227a99"
integrity sha512-n5wDbGDdfF9fXGE2JwQsGa5G0up7EgVlWGaFDA72mKlMC2gKnpWeBY1be8EKu+/PvtGPpoROVHsGSKy94ojE7A==
"@stripe/[email protected].29-preview-1":
version "3.3.29-preview-1"
resolved "https://registry.yarnpkg.com/@stripe/connect-js/-/connect-js-3.3.29-preview-1.tgz#32c5065f18a5fd075d012a99ed3644e7a150ee4f"
integrity sha512-B3O8bVOiiGaxsRhkHL38SNX1uWs+U8XGnW652li5/FdEL94qp41tUiUsjB8z2NyccSGNDufhlnbQYdy5+h2GRg==

"@tootallnate/once@2":
version "2.0.0"
Expand Down