project-booster-vue 10.32.2 → 10.32.4

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/README.md CHANGED
@@ -59,6 +59,14 @@ Add it in the `components` property of your component and use it in your templat
59
59
 
60
60
  ## Project setup
61
61
 
62
+ ### Requirements
63
+
64
+ - **Node.js 16** (see `.nvmrc`)
65
+ - **Python 3.11** — required by `node-gyp` to build native modules (e.g. `deasync`). Python 3.12+ removed `distutils` from the stdlib, which breaks the install. The version is pinned in `mise.toml`.
66
+ - **Yarn 1.x** - install with `npm install -g yarn`.
67
+
68
+ Otherwise, make sure `node`, `python3.11` and `yarn` are available on your `PATH` before running `yarn install`.
69
+
62
70
  ```
63
71
  yarn install
64
72
  ```
@@ -132,12 +140,6 @@ yarn storybook
132
140
  yarn storybook-kozikaza
133
141
  ```
134
142
 
135
- ### Deploys storybook to github pages
136
-
137
- ```
138
- yarn storybook:deploy
139
- ```
140
-
141
143
  ## Note about linting
142
144
 
143
145
  ### Integration with IDE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.32.2",
3
+ "version": "10.32.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -18,7 +18,6 @@
18
18
  "semantic-release": "semantic-release",
19
19
  "storybook": "start-storybook --port 60009 --loglevel verbose",
20
20
  "storybook-kozikaza": "env PB_THEME=kozikaza start-storybook --port 60010",
21
- "storybook:deploy": "storybook-to-ghpages",
22
21
  "test:puppeteer": "vue-cli-service test:unit --config jest.puppeteer.config.js --forceExit --detectOpenHandles",
23
22
  "contentful-typescript-codegen": "contentful-typescript-codegen --output src/types/contentful.d.ts"
24
23
  },
@@ -41,7 +40,7 @@
41
40
  "@vue/test-utils": "^2.2.6",
42
41
  "@xstate/vue": "0.8.1",
43
42
  "ajv": "8.6.0",
44
- "axios": "0.25.0",
43
+ "axios": "0.31.0",
45
44
  "contentful": "9.1.12",
46
45
  "core-js": "3.21.1",
47
46
  "date-fns": "2.22.1",
@@ -94,7 +93,6 @@
94
93
  "@storybook/builder-webpack5": "6.4.22",
95
94
  "@storybook/manager-webpack5": "6.4.22",
96
95
  "@storybook/source-loader": "6.4.22",
97
- "@storybook/storybook-deployer": "2.8.11",
98
96
  "@storybook/theming": "6.4.22",
99
97
  "@storybook/vue3": "6.4.22",
100
98
  "@testing-library/jest-dom": "5.16.2",
@@ -372,7 +372,7 @@
372
372
  "image": "https://customer-project.adeo.cloud/project-booster-media/common/services/photo-OAA-rangement-lien-tool.jpg",
373
373
  "title": "En autonomie",
374
374
  "text": "Concevez votre meuble vous-même avec notre configurateur 3D et validez votre commande",
375
- "href": "https://portedeplacard.leroymerlin.fr/Page_Tunnel_Pdp_Home/page_tunnel_oaa.html?mag=173&kiosk=true",
375
+ "href": "https://www.leroymerlin.fr/closet-landing-page/",
376
376
  "buttonLabel": "Accéder à l'outil"
377
377
  }
378
378
  },
@@ -381,7 +381,7 @@
381
381
  "image": "https://customer-project.adeo.cloud/project-booster-media/common/services/photo-OAA-rangement-lien-tool.jpg",
382
382
  "title": "En autonomie",
383
383
  "text": "Concevez votre meuble vous-même avec notre configurateur 3D et validez votre commande",
384
- "href": "https://portedeplacard.leroymerlin.fr/Page_Tunnel_Pdp_Home/page_tunnel_oaa.html?mag=173&kiosk=true",
384
+ "href": "https://www.leroymerlin.fr/closet-landing-page/",
385
385
  "buttonLabel": "Accéder à l'outil"
386
386
  }
387
387
  },
@@ -340,7 +340,7 @@
340
340
  "image": "https://customer-project.adeo.cloud/project-booster-media/common/services/photo-OAA-rangement-lien-tool.jpg",
341
341
  "title": "En autonomie",
342
342
  "text": "Concevez votre meuble vous-même avec notre configurateur 3D et validez votre commande",
343
- "href": "https://portedeplacard.leroymerlin.fr/Page_Tunnel_Pdp_Home/page_tunnel_oaa.html?mag=173&kiosk=true",
343
+ "href": "https://www.leroymerlin.fr/closet-landing-page/",
344
344
  "buttonLabel": "Accéder à l'outil"
345
345
  }
346
346
  },
@@ -1565,7 +1565,7 @@
1565
1565
  "image": "https://customer-project.adeo.cloud/project-booster-media/common/services/photo-OAA-rangement-lien-tool.jpg",
1566
1566
  "title": "En autonomie",
1567
1567
  "text": "Concevez votre meuble vous-même avec notre configurateur 3D et validez votre commande",
1568
- "href": "https://portedeplacard.leroymerlin.fr/Page_Tunnel_Pdp_Home/page_tunnel_oaa.html?mag=173&kiosk=true",
1568
+ "href": "https://www.leroymerlin.fr/closet-landing-page/",
1569
1569
  "buttonLabel": "Accéder à l'outil"
1570
1570
  }
1571
1571
  },
@@ -401,7 +401,7 @@
401
401
  "image": "https://customer-project.adeo.cloud/project-booster-media/common/services/photo-OAA-rangement-lien-tool.jpg",
402
402
  "title": "En autonomie",
403
403
  "text": "Concevez votre meuble vous-même avec notre configurateur 3D et validez votre commande",
404
- "href": "https://portedeplacard.leroymerlin.fr/Page_Tunnel_Pdp_Home/page_tunnel_oaa.html?mag=173&kiosk=true",
404
+ "href": "https://www.leroymerlin.fr/closet-landing-page/",
405
405
  "buttonLabel": "Accéder à l'outil"
406
406
  }
407
407
  },
@@ -155,6 +155,11 @@ export const mediaDocumentsUploadStoreOptions = {
155
155
  uploadFile.documentSubtype,
156
156
  );
157
157
  const location = response.headers.location;
158
+
159
+ if (!location) {
160
+ throw new Error('Upload response is missing the Location header');
161
+ }
162
+
158
163
  const [mediaId] = location.split('/').slice(-1);
159
164
  commit('setUploadedId', mediaId);
160
165
  commit('setIsUploaded', true);
@@ -727,6 +727,11 @@ export const projectItemSaveStoreOptions = {
727
727
 
728
728
  try {
729
729
  const location = await saveInhabitantProject(projectToSave);
730
+
731
+ if (!location) {
732
+ throw new Error('Save project response is missing the Location header');
733
+ }
734
+
730
735
  const split = location.split('/');
731
736
  const projectId = split[split.length - 1];
732
737
  // TODO extract BI from stores