@duffel/components 3.0.3-canary → 3.0.5-canary
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -1
- package/README.md +22 -4
- package/config/esbuild.base.config.js +1 -1
- package/config/esbuild.cdn.config.js +3 -3
- package/config/esbuild.dev.config.js +1 -1
- package/package.json +6 -3
- package/react-dist/custom-elements.d.ts +4 -0
- package/react-dist/custom-elements.js +3 -3
- package/react-dist/custom-elements.js.map +2 -2
- package/react-dist/index.d.ts +4 -0
- package/react-dist/index.js +3 -3
- package/react-dist/index.js.map +2 -2
- package/scripts/upload-to-cdn.sh +3 -8
- package/src/custom-elements.ts +4 -0
- package/src/examples/client-side/index.html +1 -1
- package/src/examples/full-stack/index.html +1 -1
- package/src/index.ts +4 -0
- package/tsconfig.json +1 -1
package/scripts/upload-to-cdn.sh
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
set -e
|
|
5
5
|
|
|
6
6
|
# Define where to upload files too
|
|
7
|
-
GCP_PREFIX=gs://duffel-assets/components/
|
|
7
|
+
GCP_PREFIX=gs://duffel-assets/components/
|
|
8
8
|
|
|
9
9
|
# Gets current version from package.json
|
|
10
10
|
VERSION=$(jq '.version' package.json -r)
|
|
@@ -30,10 +30,5 @@ if gsutil -q stat "$GCP_PREFIX/$VERSION/index.js"; then
|
|
|
30
30
|
fi
|
|
31
31
|
|
|
32
32
|
# Uploads fixtures
|
|
33
|
-
gcloud storage cp -r dist
|
|
34
|
-
|
|
35
|
-
# Check if --latest argument is provided
|
|
36
|
-
if [ "$1" == "--latest" ]; then
|
|
37
|
-
# Copies the current version into the latest folder
|
|
38
|
-
gcloud storage cp -r "$GCP_PREFIX/$VERSION" "$GCP_PREFIX/latest"
|
|
39
|
-
fi
|
|
33
|
+
gcloud storage cp -r cdn-dist "$GCP_PREFIX/$VERSION"
|
|
34
|
+
|
package/src/custom-elements.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is one of the entry points for the library -- `@duffel/components/custom-elements`.
|
|
3
|
+
* If you'd like to expose other custom element functions, please add them here.
|
|
4
|
+
*/
|
|
1
5
|
export {
|
|
2
6
|
onDuffelAncillariesPayloadReady,
|
|
3
7
|
renderDuffelAncillariesCustomElement,
|
package/src/index.ts
CHANGED