@solumflow-app/product-configurator 0.1.0 → 0.2.0

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
@@ -78,6 +78,24 @@ Pass `labels` for another language, `locale` and `currency` for amounts, and
78
78
  style it through the CSS variables `--pc-bg`, `--pc-surface`, `--pc-fg`,
79
79
  `--pc-accent` and their neighbours.
80
80
 
81
+ The scene itself is not yours to tune, on purpose: the lighting (one of three
82
+ presets), the materials with their relief and gloss maps, and the 3D models of
83
+ fixed parts are all set in the CRM, so the configurator looks the same in the
84
+ object builder, on the product page and on your site. The canvas background is
85
+ transparent; your page decides what is behind it. The reflections come from a
86
+ room three.js builds in the browser, so nothing is fetched from a CDN.
87
+
88
+ ### Content Security Policy
89
+
90
+ If your site sends a CSP, allow the CRM's storage origin in two directives:
91
+
92
+ - `img-src`: textures and their maps are loaded as images;
93
+ - `connect-src`: 3D models (`.glb`) are fetched.
94
+
95
+ Blocked, neither shows an error on the page, only a line in the console: a
96
+ texture stays a plain colour and a model stays an empty block in the
97
+ material's colour.
98
+
81
99
  ## Send a request (server action)
82
100
 
83
101
  ```ts