@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.
Files changed (62) hide show
  1. package/.circleci/config.yml +2 -2
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
  3. package/.prettierignore +5 -1
  4. package/.storybook/main.ts +1 -1
  5. package/.tool-versions +1 -1
  6. package/.vscode/extensions.json +7 -0
  7. package/.vscode/settings.json +10 -0
  8. package/.yarn/releases/yarn-4.0.1.cjs +893 -0
  9. package/.yarn/sdks/eslint/bin/eslint.js +20 -0
  10. package/.yarn/sdks/eslint/lib/api.js +20 -0
  11. package/.yarn/sdks/eslint/lib/unsupported-api.js +20 -0
  12. package/.yarn/sdks/eslint/package.json +14 -0
  13. package/.yarn/sdks/integrations.yml +5 -0
  14. package/.yarn/sdks/prettier/bin-prettier.js +20 -0
  15. package/.yarn/sdks/prettier/index.js +20 -0
  16. package/.yarn/sdks/prettier/package.json +7 -0
  17. package/.yarn/sdks/typescript/bin/tsc +20 -0
  18. package/.yarn/sdks/typescript/bin/tsserver +20 -0
  19. package/.yarn/sdks/typescript/lib/tsc.js +20 -0
  20. package/.yarn/sdks/typescript/lib/tsserver.js +225 -0
  21. package/.yarn/sdks/typescript/lib/tsserverlibrary.js +225 -0
  22. package/.yarn/sdks/typescript/lib/typescript.js +20 -0
  23. package/.yarn/sdks/typescript/package.json +10 -0
  24. package/.yarnrc.yml +3 -0
  25. package/README.md +4 -0
  26. package/jest.config.ts +1 -1
  27. package/package.json +83 -134
  28. package/react-dist/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +0 -1
  29. package/react-dist/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +0 -1
  30. package/react-dist/custom-elements.js +20 -17
  31. package/react-dist/custom-elements.js.map +4 -4
  32. package/react-dist/index.d.ts +0 -1
  33. package/react-dist/index.js +21 -47
  34. package/react-dist/index.js.map +4 -4
  35. package/react-dist/lib/logging.d.ts +1 -1
  36. package/scripts/build-and-publish.sh +42 -0
  37. package/scripts/generate-fixture.ts +2 -2
  38. package/scripts.tsconfig.json +1 -1
  39. package/src/components/PlacesLookup/PlacesLookup.tsx +2 -3
  40. package/src/examples/just-typescript/.yarn/install-state.gz +0 -0
  41. package/src/examples/just-typescript/package.json +2 -2
  42. package/src/examples/just-typescript/src/index.ts +1 -1
  43. package/src/examples/just-typescript/yarn.lock +467 -154
  44. package/src/examples/next/README.md +28 -0
  45. package/src/examples/next/next-env.d.ts +5 -0
  46. package/src/examples/next/next.config.js +4 -0
  47. package/src/examples/next/package.json +24 -0
  48. package/src/examples/next/src/app/DuffelComponents.tsx +40 -0
  49. package/src/examples/next/src/app/layout.tsx +18 -0
  50. package/src/examples/next/src/app/page.tsx +9 -0
  51. package/src/examples/next/tsconfig.json +27 -0
  52. package/src/examples/next/yarn.lock +257 -0
  53. package/src/examples/react-app/src/index.tsx +1 -1
  54. package/src/index.ts +0 -1
  55. package/src/lib/logging.ts +1 -1
  56. package/tsconfig.json +9 -3
  57. package/.github/workflows/autoapprove.yml +0 -18
  58. package/.github/workflows/release.yml +0 -89
  59. package/.husky/post-commit +0 -4
  60. package/.husky/pre-commit +0 -4
  61. package/.storybook/Storyshots.test.js +0 -3
  62. package/.storybook/__snapshots__/Storyshots.test.js.snap +0 -67984
@@ -6,7 +6,7 @@ version: 2.1
6
6
 
7
7
  aliases:
8
8
  - &working_directory ~/duffel_app
9
- - &cache_directory ~/.cache/yarn
9
+ - &cache_directory ~/duffel_app/.yarn/cache
10
10
 
11
11
  executors:
12
12
  node-executor:
@@ -37,7 +37,7 @@ commands:
37
37
  steps:
38
38
  - checkout
39
39
  - restore_deps_cache
40
- - run: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
40
+ - run: yarn install --immutable
41
41
  - save_deps_cache
42
42
 
43
43
  jobs:
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ""
5
+ labels: ""
6
+ assignees: ""
7
+ ---
8
+
9
+ **Describe the bug**
10
+ A clear and concise description of what the bug is.
11
+
12
+ **Version of duffel-components**
13
+ Please add:
14
+
15
+ 1. the version of the library you are using
16
+ 2. how you are installing it (npm or script tag)
17
+ 3. Your framework (React, vanilla JS, etc..)
18
+
19
+ **Code sample to reproduce**
20
+ Please re-create your issue in a code sandbox, if possible. Otherwise share as much as you can of your setup to help us narrow down what the issue is. Information such as request IDs can be helpful as well.
21
+
22
+ **Expected behavior**
23
+ A clear and concise description of what you expected to happen.
24
+
25
+ **Screenshots**
26
+ If applicable, please add screenshots to help explain your problem.
27
+
28
+ **Additional context**
29
+ Add any other context about the problem here.
package/.prettierignore CHANGED
@@ -1,2 +1,6 @@
1
1
  dist
2
- __generated__*
2
+ *-dist
3
+ __generated__*
4
+ storybook-static/*
5
+ .yarn/*
6
+ .pnp*
@@ -2,7 +2,7 @@ import type { StorybookConfig } from "@storybook/react-webpack5";
2
2
  import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin";
3
3
 
4
4
  const config: StorybookConfig = {
5
- stories: ["../src/**/*.mdx", "../src/stories/*.stories.@(js|jsx|ts|tsx)"],
5
+ stories: ["../src/stories/*.stories.@(js|jsx|ts|tsx)"],
6
6
  addons: [
7
7
  "@storybook/addon-links",
8
8
  "@storybook/addon-essentials",
package/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs lts-hydrogen
1
+ nodejs 18.18.2
@@ -0,0 +1,7 @@
1
+ {
2
+ "recommendations": [
3
+ "arcanis.vscode-zipfs",
4
+ "dbaeumer.vscode-eslint",
5
+ "esbenp.prettier-vscode"
6
+ ]
7
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "search.exclude": {
3
+ "**/.yarn": true,
4
+ "**/.pnp.*": true
5
+ },
6
+ "eslint.nodePath": ".yarn/sdks",
7
+ "prettier.prettierPath": ".yarn/sdks/prettier/index.js",
8
+ "typescript.tsdk": ".yarn/sdks/typescript/lib",
9
+ "typescript.enablePromptUseWorkspaceTsdk": true
10
+ }