@duffel/components 3.1.2 → 3.1.3--prototype.3
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/.circleci/config.yml +2 -2
- package/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
- package/.prettierignore +5 -1
- package/.storybook/main.ts +1 -1
- package/.tool-versions +1 -1
- package/.vscode/extensions.json +7 -0
- package/.vscode/settings.json +10 -0
- package/.yarn/releases/yarn-4.0.1.cjs +893 -0
- package/.yarn/sdks/eslint/bin/eslint.js +20 -0
- package/.yarn/sdks/eslint/lib/api.js +20 -0
- package/.yarn/sdks/eslint/lib/unsupported-api.js +20 -0
- package/.yarn/sdks/eslint/package.json +14 -0
- package/.yarn/sdks/integrations.yml +5 -0
- package/.yarn/sdks/prettier/bin-prettier.js +20 -0
- package/.yarn/sdks/prettier/index.js +20 -0
- package/.yarn/sdks/prettier/package.json +7 -0
- package/.yarn/sdks/typescript/bin/tsc +20 -0
- package/.yarn/sdks/typescript/bin/tsserver +20 -0
- package/.yarn/sdks/typescript/lib/tsc.js +20 -0
- package/.yarn/sdks/typescript/lib/tsserver.js +225 -0
- package/.yarn/sdks/typescript/lib/tsserverlibrary.js +225 -0
- package/.yarn/sdks/typescript/lib/typescript.js +20 -0
- package/.yarn/sdks/typescript/package.json +10 -0
- package/.yarnrc.yml +3 -0
- package/README.md +4 -0
- package/jest.config.ts +1 -1
- package/package.json +83 -134
- package/react-dist/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +0 -1
- package/react-dist/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +0 -1
- package/react-dist/custom-elements.js +20 -17
- package/react-dist/custom-elements.js.map +4 -4
- package/react-dist/index.d.ts +0 -1
- package/react-dist/index.js +21 -47
- package/react-dist/index.js.map +4 -4
- package/react-dist/lib/logging.d.ts +1 -1
- package/scripts/build-and-publish.sh +42 -0
- package/scripts/generate-fixture.ts +2 -2
- package/scripts.tsconfig.json +1 -1
- package/src/components/PlacesLookup/PlacesLookup.tsx +2 -3
- package/src/examples/just-typescript/.yarn/install-state.gz +0 -0
- package/src/examples/just-typescript/package.json +2 -2
- package/src/examples/just-typescript/src/index.ts +1 -1
- package/src/examples/just-typescript/yarn.lock +467 -154
- package/src/examples/next/README.md +28 -0
- package/src/examples/next/next-env.d.ts +5 -0
- package/src/examples/next/next.config.js +4 -0
- package/src/examples/next/package.json +24 -0
- package/src/examples/next/src/app/DuffelComponents.tsx +40 -0
- package/src/examples/next/src/app/layout.tsx +18 -0
- package/src/examples/next/src/app/page.tsx +9 -0
- package/src/examples/next/tsconfig.json +27 -0
- package/src/examples/next/yarn.lock +257 -0
- package/src/examples/react-app/src/index.tsx +1 -1
- package/src/index.ts +0 -1
- package/src/lib/logging.ts +1 -1
- package/tsconfig.json +9 -3
- package/.github/workflows/autoapprove.yml +0 -18
- package/.github/workflows/release.yml +0 -89
- package/.husky/post-commit +0 -4
- package/.husky/pre-commit +0 -4
- package/.storybook/Storyshots.test.js +0 -3
- package/.storybook/__snapshots__/Storyshots.test.js.snap +0 -67984
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "my-app",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "next dev",
|
|
7
|
+
"build": "next build",
|
|
8
|
+
"start": "next start",
|
|
9
|
+
"lint": "next lint"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"duffel-components": "../../../../duffel-components/react-dist",
|
|
13
|
+
"next": "13.5.6",
|
|
14
|
+
"react": "^18",
|
|
15
|
+
"react-dom": "^18"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "~18",
|
|
19
|
+
"@types/react": "^18",
|
|
20
|
+
"@types/react-dom": "^18",
|
|
21
|
+
"next-transpile-modules": "^10.0.1",
|
|
22
|
+
"typescript": "^5"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { DuffelAncillaries, DuffelPayments } from "duffel-components";
|
|
4
|
+
|
|
5
|
+
export const DuffelComponents = () => (
|
|
6
|
+
<>
|
|
7
|
+
<DuffelAncillaries
|
|
8
|
+
debug={true}
|
|
9
|
+
offer_id="fixture_off_1"
|
|
10
|
+
services={["bags", "seats"]}
|
|
11
|
+
passengers={[
|
|
12
|
+
{
|
|
13
|
+
id: "pas_0000AUde3KY1SptM6ABSfU",
|
|
14
|
+
given_name: "Mae",
|
|
15
|
+
family_name: "Jemison",
|
|
16
|
+
gender: "F",
|
|
17
|
+
title: "dr",
|
|
18
|
+
born_on: "1956-10-17",
|
|
19
|
+
email: "m.jemison@nasa.gov",
|
|
20
|
+
phone_number: "+16177562626",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "pas_0000AUde3KY1SptM6ABSfT",
|
|
24
|
+
given_name: "Dorothy",
|
|
25
|
+
family_name: "Green",
|
|
26
|
+
gender: "F",
|
|
27
|
+
title: "dr",
|
|
28
|
+
born_on: "1942-10-17",
|
|
29
|
+
},
|
|
30
|
+
]}
|
|
31
|
+
onPayloadReady={console.log}
|
|
32
|
+
/>
|
|
33
|
+
|
|
34
|
+
<DuffelPayments
|
|
35
|
+
paymentIntentClientToken="eyJjbGllbnRfc2VjcmV0IjoicGlfM0psczlVQWcySmhFeTh2WTBSTm1MU0JkX3NlY3JldF9QUW9yZXNuU3laeWJadGRiejZwNzBCbUdPIiwicHVibGlzaGFibGVfa2V5IjoicGtfdGVzdF9EQUJLY0E2Vzh6OTc0cTdPSWY0YmJ2MVQwMEpwRmMyOUpWIn0="
|
|
36
|
+
onSuccessfulPayment={console.log}
|
|
37
|
+
onFailedPayment={console.log}
|
|
38
|
+
/>
|
|
39
|
+
</>
|
|
40
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Metadata } from "next";
|
|
2
|
+
|
|
3
|
+
export const metadata: Metadata = {
|
|
4
|
+
title: "Create Next App",
|
|
5
|
+
description: "Generated by create next app",
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default function RootLayout({
|
|
9
|
+
children,
|
|
10
|
+
}: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}) {
|
|
13
|
+
return (
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<body>{children}</body>
|
|
16
|
+
</html>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "node",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"plugins": [
|
|
17
|
+
{
|
|
18
|
+
"name": "next"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"paths": {
|
|
22
|
+
"@/*": ["./src/*"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
26
|
+
"exclude": ["node_modules"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
2
|
+
# yarn lockfile v1
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
"@next/env@13.5.6":
|
|
6
|
+
version "13.5.6"
|
|
7
|
+
resolved "https://registry.yarnpkg.com/@next/env/-/env-13.5.6.tgz#c1148e2e1aa166614f05161ee8f77ded467062bc"
|
|
8
|
+
integrity sha512-Yac/bV5sBGkkEXmAX5FWPS9Mmo2rthrOPRQQNfycJPkjUAUclomCPH7QFVCDQ4Mp2k2K1SSM6m0zrxYrOwtFQw==
|
|
9
|
+
|
|
10
|
+
"@next/swc-darwin-arm64@13.5.6":
|
|
11
|
+
version "13.5.6"
|
|
12
|
+
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.5.6.tgz#b15d139d8971360fca29be3bdd703c108c9a45fb"
|
|
13
|
+
integrity sha512-5nvXMzKtZfvcu4BhtV0KH1oGv4XEW+B+jOfmBdpFI3C7FrB/MfujRpWYSBBO64+qbW8pkZiSyQv9eiwnn5VIQA==
|
|
14
|
+
|
|
15
|
+
"@next/swc-darwin-x64@13.5.6":
|
|
16
|
+
version "13.5.6"
|
|
17
|
+
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.5.6.tgz#9c72ee31cc356cb65ce6860b658d807ff39f1578"
|
|
18
|
+
integrity sha512-6cgBfxg98oOCSr4BckWjLLgiVwlL3vlLj8hXg2b+nDgm4bC/qVXXLfpLB9FHdoDu4057hzywbxKvmYGmi7yUzA==
|
|
19
|
+
|
|
20
|
+
"@next/swc-linux-arm64-gnu@13.5.6":
|
|
21
|
+
version "13.5.6"
|
|
22
|
+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.5.6.tgz#59f5f66155e85380ffa26ee3d95b687a770cfeab"
|
|
23
|
+
integrity sha512-txagBbj1e1w47YQjcKgSU4rRVQ7uF29YpnlHV5xuVUsgCUf2FmyfJ3CPjZUvpIeXCJAoMCFAoGnbtX86BK7+sg==
|
|
24
|
+
|
|
25
|
+
"@next/swc-linux-arm64-musl@13.5.6":
|
|
26
|
+
version "13.5.6"
|
|
27
|
+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.5.6.tgz#f012518228017052736a87d69bae73e587c76ce2"
|
|
28
|
+
integrity sha512-cGd+H8amifT86ZldVJtAKDxUqeFyLWW+v2NlBULnLAdWsiuuN8TuhVBt8ZNpCqcAuoruoSWynvMWixTFcroq+Q==
|
|
29
|
+
|
|
30
|
+
"@next/swc-linux-x64-gnu@13.5.6":
|
|
31
|
+
version "13.5.6"
|
|
32
|
+
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.5.6.tgz#339b867a7e9e7ee727a700b496b269033d820df4"
|
|
33
|
+
integrity sha512-Mc2b4xiIWKXIhBy2NBTwOxGD3nHLmq4keFk+d4/WL5fMsB8XdJRdtUlL87SqVCTSaf1BRuQQf1HvXZcy+rq3Nw==
|
|
34
|
+
|
|
35
|
+
"@next/swc-linux-x64-musl@13.5.6":
|
|
36
|
+
version "13.5.6"
|
|
37
|
+
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.5.6.tgz#ae0ae84d058df758675830bcf70ca1846f1028f2"
|
|
38
|
+
integrity sha512-CFHvP9Qz98NruJiUnCe61O6GveKKHpJLloXbDSWRhqhkJdZD2zU5hG+gtVJR//tyW897izuHpM6Gtf6+sNgJPQ==
|
|
39
|
+
|
|
40
|
+
"@next/swc-win32-arm64-msvc@13.5.6":
|
|
41
|
+
version "13.5.6"
|
|
42
|
+
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.5.6.tgz#a5cc0c16920485a929a17495064671374fdbc661"
|
|
43
|
+
integrity sha512-aFv1ejfkbS7PUa1qVPwzDHjQWQtknzAZWGTKYIAaS4NMtBlk3VyA6AYn593pqNanlicewqyl2jUhQAaFV/qXsg==
|
|
44
|
+
|
|
45
|
+
"@next/swc-win32-ia32-msvc@13.5.6":
|
|
46
|
+
version "13.5.6"
|
|
47
|
+
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.5.6.tgz#6a2409b84a2cbf34bf92fe714896455efb4191e4"
|
|
48
|
+
integrity sha512-XqqpHgEIlBHvzwG8sp/JXMFkLAfGLqkbVsyN+/Ih1mR8INb6YCc2x/Mbwi6hsAgUnqQztz8cvEbHJUbSl7RHDg==
|
|
49
|
+
|
|
50
|
+
"@next/swc-win32-x64-msvc@13.5.6":
|
|
51
|
+
version "13.5.6"
|
|
52
|
+
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.5.6.tgz#4a3e2a206251abc729339ba85f60bc0433c2865d"
|
|
53
|
+
integrity sha512-Cqfe1YmOS7k+5mGu92nl5ULkzpKuxJrP3+4AEuPmrpFZ3BHxTY3TnHmU1On3bFmFFs6FbTcdF58CCUProGpIGQ==
|
|
54
|
+
|
|
55
|
+
"@swc/helpers@0.5.2":
|
|
56
|
+
version "0.5.2"
|
|
57
|
+
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.2.tgz#85ea0c76450b61ad7d10a37050289eded783c27d"
|
|
58
|
+
integrity sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==
|
|
59
|
+
dependencies:
|
|
60
|
+
tslib "^2.4.0"
|
|
61
|
+
|
|
62
|
+
"@types/node@~18":
|
|
63
|
+
version "18.18.6"
|
|
64
|
+
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.18.6.tgz#26da694f75cdb057750f49d099da5e3f3824cb3e"
|
|
65
|
+
integrity sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w==
|
|
66
|
+
|
|
67
|
+
"@types/prop-types@*":
|
|
68
|
+
version "15.7.9"
|
|
69
|
+
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.9.tgz#b6f785caa7ea1fe4414d9df42ee0ab67f23d8a6d"
|
|
70
|
+
integrity sha512-n1yyPsugYNSmHgxDFjicaI2+gCNjsBck8UX9kuofAKlc0h1bL+20oSF72KeNaW2DUlesbEVCFgyV2dPGTiY42g==
|
|
71
|
+
|
|
72
|
+
"@types/react-dom@^18":
|
|
73
|
+
version "18.2.14"
|
|
74
|
+
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.14.tgz#c01ba40e5bb57fc1dc41569bb3ccdb19eab1c539"
|
|
75
|
+
integrity sha512-V835xgdSVmyQmI1KLV2BEIUgqEuinxp9O4G6g3FqO/SqLac049E53aysv0oEFD2kHfejeKU+ZqL2bcFWj9gLAQ==
|
|
76
|
+
dependencies:
|
|
77
|
+
"@types/react" "*"
|
|
78
|
+
|
|
79
|
+
"@types/react@*", "@types/react@^18":
|
|
80
|
+
version "18.2.31"
|
|
81
|
+
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.31.tgz#74ae2630e4aa9af599584157abd3b95d96fb9b40"
|
|
82
|
+
integrity sha512-c2UnPv548q+5DFh03y8lEDeMfDwBn9G3dRwfkrxQMo/dOtRHUUO57k6pHvBIfH/VF4Nh+98mZ5aaSe+2echD5g==
|
|
83
|
+
dependencies:
|
|
84
|
+
"@types/prop-types" "*"
|
|
85
|
+
"@types/scheduler" "*"
|
|
86
|
+
csstype "^3.0.2"
|
|
87
|
+
|
|
88
|
+
"@types/scheduler@*":
|
|
89
|
+
version "0.16.5"
|
|
90
|
+
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.5.tgz#4751153abbf8d6199babb345a52e1eb4167d64af"
|
|
91
|
+
integrity sha512-s/FPdYRmZR8SjLWGMCuax7r3qCWQw9QKHzXVukAuuIJkXkDRwp+Pu5LMIVFi0Fxbav35WURicYr8u1QsoybnQw==
|
|
92
|
+
|
|
93
|
+
busboy@1.6.0:
|
|
94
|
+
version "1.6.0"
|
|
95
|
+
resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893"
|
|
96
|
+
integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==
|
|
97
|
+
dependencies:
|
|
98
|
+
streamsearch "^1.1.0"
|
|
99
|
+
|
|
100
|
+
caniuse-lite@^1.0.30001406:
|
|
101
|
+
version "1.0.30001554"
|
|
102
|
+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001554.tgz#ba80d88dff9acbc0cd4b7535fc30e0191c5e2e2a"
|
|
103
|
+
integrity sha512-A2E3U//MBwbJVzebddm1YfNp7Nud5Ip+IPn4BozBmn4KqVX7AvluoIDFWjsv5OkGnKUXQVmMSoMKLa3ScCblcQ==
|
|
104
|
+
|
|
105
|
+
client-only@0.0.1:
|
|
106
|
+
version "0.0.1"
|
|
107
|
+
resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1"
|
|
108
|
+
integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==
|
|
109
|
+
|
|
110
|
+
csstype@^3.0.2:
|
|
111
|
+
version "3.1.2"
|
|
112
|
+
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b"
|
|
113
|
+
integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==
|
|
114
|
+
|
|
115
|
+
duffel-components@../../../../duffel-components/react-dist:
|
|
116
|
+
version "0.0.0"
|
|
117
|
+
|
|
118
|
+
enhanced-resolve@^5.10.0:
|
|
119
|
+
version "5.15.0"
|
|
120
|
+
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35"
|
|
121
|
+
integrity sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==
|
|
122
|
+
dependencies:
|
|
123
|
+
graceful-fs "^4.2.4"
|
|
124
|
+
tapable "^2.2.0"
|
|
125
|
+
|
|
126
|
+
glob-to-regexp@^0.4.1:
|
|
127
|
+
version "0.4.1"
|
|
128
|
+
resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e"
|
|
129
|
+
integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==
|
|
130
|
+
|
|
131
|
+
graceful-fs@^4.1.2, graceful-fs@^4.2.4:
|
|
132
|
+
version "4.2.11"
|
|
133
|
+
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
|
|
134
|
+
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
|
|
135
|
+
|
|
136
|
+
"js-tokens@^3.0.0 || ^4.0.0":
|
|
137
|
+
version "4.0.0"
|
|
138
|
+
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
|
|
139
|
+
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
|
|
140
|
+
|
|
141
|
+
loose-envify@^1.1.0:
|
|
142
|
+
version "1.4.0"
|
|
143
|
+
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
|
|
144
|
+
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
|
|
145
|
+
dependencies:
|
|
146
|
+
js-tokens "^3.0.0 || ^4.0.0"
|
|
147
|
+
|
|
148
|
+
nanoid@^3.3.6:
|
|
149
|
+
version "3.3.6"
|
|
150
|
+
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c"
|
|
151
|
+
integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==
|
|
152
|
+
|
|
153
|
+
next-transpile-modules@^10.0.1:
|
|
154
|
+
version "10.0.1"
|
|
155
|
+
resolved "https://registry.yarnpkg.com/next-transpile-modules/-/next-transpile-modules-10.0.1.tgz#1ca2b735b14781f4792f6214f808b600574e0348"
|
|
156
|
+
integrity sha512-4VX/LCMofxIYAVV58UmD+kr8jQflpLWvas/BQ4Co0qWLWzVh06FoZkECkrX5eEZT6oJFqie6+kfbTA3EZCVtdQ==
|
|
157
|
+
dependencies:
|
|
158
|
+
enhanced-resolve "^5.10.0"
|
|
159
|
+
|
|
160
|
+
next@13.5.6:
|
|
161
|
+
version "13.5.6"
|
|
162
|
+
resolved "https://registry.yarnpkg.com/next/-/next-13.5.6.tgz#e964b5853272236c37ce0dd2c68302973cf010b1"
|
|
163
|
+
integrity sha512-Y2wTcTbO4WwEsVb4A8VSnOsG1I9ok+h74q0ZdxkwM3EODqrs4pasq7O0iUxbcS9VtWMicG7f3+HAj0r1+NtKSw==
|
|
164
|
+
dependencies:
|
|
165
|
+
"@next/env" "13.5.6"
|
|
166
|
+
"@swc/helpers" "0.5.2"
|
|
167
|
+
busboy "1.6.0"
|
|
168
|
+
caniuse-lite "^1.0.30001406"
|
|
169
|
+
postcss "8.4.31"
|
|
170
|
+
styled-jsx "5.1.1"
|
|
171
|
+
watchpack "2.4.0"
|
|
172
|
+
optionalDependencies:
|
|
173
|
+
"@next/swc-darwin-arm64" "13.5.6"
|
|
174
|
+
"@next/swc-darwin-x64" "13.5.6"
|
|
175
|
+
"@next/swc-linux-arm64-gnu" "13.5.6"
|
|
176
|
+
"@next/swc-linux-arm64-musl" "13.5.6"
|
|
177
|
+
"@next/swc-linux-x64-gnu" "13.5.6"
|
|
178
|
+
"@next/swc-linux-x64-musl" "13.5.6"
|
|
179
|
+
"@next/swc-win32-arm64-msvc" "13.5.6"
|
|
180
|
+
"@next/swc-win32-ia32-msvc" "13.5.6"
|
|
181
|
+
"@next/swc-win32-x64-msvc" "13.5.6"
|
|
182
|
+
|
|
183
|
+
picocolors@^1.0.0:
|
|
184
|
+
version "1.0.0"
|
|
185
|
+
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
|
|
186
|
+
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
|
|
187
|
+
|
|
188
|
+
postcss@8.4.31:
|
|
189
|
+
version "8.4.31"
|
|
190
|
+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d"
|
|
191
|
+
integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
|
|
192
|
+
dependencies:
|
|
193
|
+
nanoid "^3.3.6"
|
|
194
|
+
picocolors "^1.0.0"
|
|
195
|
+
source-map-js "^1.0.2"
|
|
196
|
+
|
|
197
|
+
react-dom@^18:
|
|
198
|
+
version "18.2.0"
|
|
199
|
+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d"
|
|
200
|
+
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
|
|
201
|
+
dependencies:
|
|
202
|
+
loose-envify "^1.1.0"
|
|
203
|
+
scheduler "^0.23.0"
|
|
204
|
+
|
|
205
|
+
react@^18:
|
|
206
|
+
version "18.2.0"
|
|
207
|
+
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
|
|
208
|
+
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
|
|
209
|
+
dependencies:
|
|
210
|
+
loose-envify "^1.1.0"
|
|
211
|
+
|
|
212
|
+
scheduler@^0.23.0:
|
|
213
|
+
version "0.23.0"
|
|
214
|
+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
|
|
215
|
+
integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
|
|
216
|
+
dependencies:
|
|
217
|
+
loose-envify "^1.1.0"
|
|
218
|
+
|
|
219
|
+
source-map-js@^1.0.2:
|
|
220
|
+
version "1.0.2"
|
|
221
|
+
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
|
|
222
|
+
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
|
|
223
|
+
|
|
224
|
+
streamsearch@^1.1.0:
|
|
225
|
+
version "1.1.0"
|
|
226
|
+
resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764"
|
|
227
|
+
integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==
|
|
228
|
+
|
|
229
|
+
styled-jsx@5.1.1:
|
|
230
|
+
version "5.1.1"
|
|
231
|
+
resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.1.1.tgz#839a1c3aaacc4e735fed0781b8619ea5d0009d1f"
|
|
232
|
+
integrity sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==
|
|
233
|
+
dependencies:
|
|
234
|
+
client-only "0.0.1"
|
|
235
|
+
|
|
236
|
+
tapable@^2.2.0:
|
|
237
|
+
version "2.2.1"
|
|
238
|
+
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0"
|
|
239
|
+
integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
|
|
240
|
+
|
|
241
|
+
tslib@^2.4.0:
|
|
242
|
+
version "2.6.2"
|
|
243
|
+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
|
|
244
|
+
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
|
|
245
|
+
|
|
246
|
+
typescript@^5:
|
|
247
|
+
version "5.2.2"
|
|
248
|
+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
|
|
249
|
+
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==
|
|
250
|
+
|
|
251
|
+
watchpack@2.4.0:
|
|
252
|
+
version "2.4.0"
|
|
253
|
+
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d"
|
|
254
|
+
integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==
|
|
255
|
+
dependencies:
|
|
256
|
+
glob-to-regexp "^0.4.1"
|
|
257
|
+
graceful-fs "^4.1.2"
|
package/src/index.ts
CHANGED
package/src/lib/logging.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -28,19 +28,25 @@
|
|
|
28
28
|
"@lib/*": ["./src/lib/*"]
|
|
29
29
|
},
|
|
30
30
|
"jsx": "react-jsx",
|
|
31
|
+
"types": ["node"],
|
|
31
32
|
"esModuleInterop": true,
|
|
32
33
|
"forceConsistentCasingInFileNames": true,
|
|
33
34
|
"downlevelIteration": true,
|
|
34
|
-
"typeRoots": ["node_modules/@types", "node_modules/**/types"],
|
|
35
35
|
"incremental": true,
|
|
36
36
|
"declaration": true,
|
|
37
37
|
"emitDeclarationOnly": true,
|
|
38
38
|
"outDir": "react-dist",
|
|
39
39
|
"declarationDir": "react-dist"
|
|
40
40
|
},
|
|
41
|
-
"include": [
|
|
41
|
+
"include": [
|
|
42
|
+
"src/**/*.ts",
|
|
43
|
+
"src/**/*.d.ts",
|
|
44
|
+
"src/**/*.tsx",
|
|
45
|
+
"scripts/**/*.ts",
|
|
46
|
+
"scripts/**/*.d.ts",
|
|
47
|
+
"scripts/**/*.tsx"
|
|
48
|
+
],
|
|
42
49
|
"exclude": [
|
|
43
|
-
"node_modules",
|
|
44
50
|
"**/**.css.js",
|
|
45
51
|
"./cdn-dist/**/*",
|
|
46
52
|
"./react-dist/**/*",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Our automated release process (see release.yml) creates PRs
|
|
2
|
-
# to bump the version in package.json.
|
|
3
|
-
#
|
|
4
|
-
# This workflow automatically approves these PRs so they can
|
|
5
|
-
# be merged without human intervention.
|
|
6
|
-
|
|
7
|
-
name: Auto approve bump version PR
|
|
8
|
-
|
|
9
|
-
on: pull_request_target
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
auto-approve:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: hmarr/auto-approve-action@v2
|
|
16
|
-
if: github.actor == 'duffel-bot'
|
|
17
|
-
with:
|
|
18
|
-
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
name: Release to npm
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- main
|
|
6
|
-
jobs:
|
|
7
|
-
Release:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- name: Checkout
|
|
11
|
-
uses: actions/checkout@v2
|
|
12
|
-
with:
|
|
13
|
-
fetch-depth: 0
|
|
14
|
-
|
|
15
|
-
- name: Setup Node.js
|
|
16
|
-
uses: actions/setup-node@v1
|
|
17
|
-
with:
|
|
18
|
-
node-version: "18.x"
|
|
19
|
-
|
|
20
|
-
- name: Get yarn cache directory path
|
|
21
|
-
id: yarn-cache-dir-path
|
|
22
|
-
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
23
|
-
|
|
24
|
-
- uses: actions/cache@v2
|
|
25
|
-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
26
|
-
with:
|
|
27
|
-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
28
|
-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
29
|
-
restore-keys: |
|
|
30
|
-
${{ runner.os }}-yarn-
|
|
31
|
-
|
|
32
|
-
- name: Install dependencies
|
|
33
|
-
run: yarn install --frozen-lock-file --prefer-offline
|
|
34
|
-
|
|
35
|
-
- name: Get version from package.json before release step
|
|
36
|
-
id: initversion
|
|
37
|
-
run: echo "::set-output name=version::$(npm run get-version --silent)"
|
|
38
|
-
|
|
39
|
-
- name: Release to NPM
|
|
40
|
-
id: release
|
|
41
|
-
env:
|
|
42
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
43
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
44
|
-
GIT_AUTHOR_NAME: duffel-bot
|
|
45
|
-
GIT_AUTHOR_EMAIL: duffel-bot-read-write@duffel.com
|
|
46
|
-
GIT_COMMITTER_NAME: duffel-bot
|
|
47
|
-
GIT_COMMITTER_EMAIL: duffel-bot-read-write@duffel.com
|
|
48
|
-
DUFFEL_API_URL: https://api.duffel.com
|
|
49
|
-
COMPONENT_CDN: https://assets.duffel.com/components
|
|
50
|
-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
51
|
-
run: yarn release
|
|
52
|
-
|
|
53
|
-
- name: Get version from package.json after release step
|
|
54
|
-
id: extractver
|
|
55
|
-
run: echo "::set-output name=extractver::$(npm run get-version --silent)"
|
|
56
|
-
|
|
57
|
-
- name: Check if package versions are different
|
|
58
|
-
run: |
|
|
59
|
-
echo "Init Version - ${{ steps.initversion.outputs.version }}"
|
|
60
|
-
echo "extract version - ${{ steps.extractver.outputs.extractver }}"
|
|
61
|
-
echo "extract version - ${{ steps.initversion.outputs.version != steps.extractver.outputs.extractver }}"
|
|
62
|
-
|
|
63
|
-
- name: Create Pull Request with updated package files
|
|
64
|
-
id: cpr
|
|
65
|
-
if: steps.initversion.outputs.version != steps.extractver.outputs.extractver
|
|
66
|
-
uses: peter-evans/create-pull-request@v3.10.0
|
|
67
|
-
with:
|
|
68
|
-
token: ${{ secrets.PAT }} # You can fin this on https://duffel.1password.com/vaults/all/allitems/m3heg3y3ijclli4tmmp4bsyxna
|
|
69
|
-
commit-message: "chore(release): ${{ steps.extractver.outputs.extractver }}"
|
|
70
|
-
committer: duffel-bot <duffel-bot-read-write@duffel.com>
|
|
71
|
-
author: duffel-bot <duffel-bot-read-write@duffel.com>
|
|
72
|
-
title: "chore(release): ${{ steps.extractver.outputs.extractver }}"
|
|
73
|
-
body: "Version bump in package.json for release [${{ steps.extractver.outputs.extractver }}](https://github.com/${{github.repository}}/releases/tag/v${{ steps.extractver.outputs.extractver }})"
|
|
74
|
-
branch: version-bump/${{ steps.extractver.outputs.extractver }}
|
|
75
|
-
labels: |
|
|
76
|
-
automated pr
|
|
77
|
-
|
|
78
|
-
- name: Check outputs
|
|
79
|
-
run: |
|
|
80
|
-
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
|
81
|
-
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
|
82
|
-
|
|
83
|
-
- name: Enable Pull Request Automerge
|
|
84
|
-
if: steps.cpr.outputs.pull-request-operation == 'created'
|
|
85
|
-
uses: peter-evans/enable-pull-request-automerge@v1
|
|
86
|
-
with:
|
|
87
|
-
token: ${{ secrets.PAT }}
|
|
88
|
-
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
|
|
89
|
-
merge-method: squash
|
package/.husky/post-commit
DELETED
package/.husky/pre-commit
DELETED