-
Notifications
You must be signed in to change notification settings - Fork 0
feat: support for multiple module formats, remove default button #18
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removes as much of the mocking as possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multiple export formats. pairs with the rollup and package.json changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removes default button so folks will trigger it using widget.open() now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tell rollup how to bundle and export things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, to support multiple export formats
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to support no default button
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes to support new endpoint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rearranged a bit to make it clearer what is for a user VS what is for dev. also updated to give multiple usage examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main change here is defining how the exports work, how unpkg/jsdelivr should find the file, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
README.md
Outdated
|
||
## Usage | ||
```html | ||
<script src="https://unpkg.com/@airbyte-embedded/airbyte-embedded-widget"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@teallarson do you have a recommendation between unpkg and jsdelivr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
random google result says uage is a mix: https://w3techs.com/technologies/comparison/cd-cdnjs,cd-jsdelivr,cd-unpkg
a few results mention unpkg being slow so... perhaps jsdelivr is the right one to recommend here
cdnjs you have to manually submit your project to and may require some different configuration (i haven't looked too closely), but unpkg and jsdelivr serve from the npm registry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to recommend jsdelivr!
|
||
const BASE_URL = process.env.NEXT_PUBLIC_AIRBYTE_PUBLIC_API_URL || "https://local.airbyte.dev/api/public"; | ||
const AIRBYTE_WIDGET_URL = `${BASE_URL}/v1/embedded/widget`; | ||
const AIRBYTE_WIDGET_URL = `${BASE_URL}/v1/embedded/widget_token`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
womp I forgot to update the dev. thank you!
What
closes https://github.com/airbytehq/airbyte-internal-issues/issues/12691