Skip to content
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

Andrew/import export upgrade #413

Closed
wants to merge 9 commits into from
Closed

Conversation

andrewkmin
Copy link
Collaborator

Summary & Motivation

How I Tested These Changes

Did you add a changeset?

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run pnpm changeset. pnpm changeset will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).

These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.

Copy link

codesandbox-ci bot commented Nov 2, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@andrewkmin andrewkmin marked this pull request as ready for review November 4, 2024 00:50
@@ -92,6 +96,57 @@ export class TurnkeyBrowserSDK {
});
};

// With export and import, we do not call init() so that the caller can control when they'd like to insert the iframe into the DOM
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while we could use a helper (or some mechanism) to manage export / import iframes, this isn't the best route.

@@ -99,6 +123,31 @@ export const TurnkeyProvider: React.FC<TurnkeyProviderProps> = ({
iframeElementId: TurnkeyAuthIframeElementId,
});
setAuthIframeClient(newAuthIframeClient);

// Optionally include import iframe
// Should allow specification (config) of container / element ID
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this ultimately belongs here, in a provider that wraps an entire application

@andrewkmin
Copy link
Collaborator Author

closing in favor of #416

@andrewkmin andrewkmin closed this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant