@viamedici-spc/configurator-framer-host 1.4.0 → 1.5.0-alpha2
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 +17 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ Below is a minimal example of how to embed a Framer configurator using the `<spc
|
|
|
55
55
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@viamedici-spc/configurator-framer-host@1.0.0"></script>
|
|
56
56
|
</head>
|
|
57
57
|
<body>
|
|
58
|
-
|
|
58
|
+
<spc-embedded-configurator src="https://example.framer.app" isolated="true"/>
|
|
59
59
|
</body>
|
|
60
60
|
</html>
|
|
61
61
|
```
|
|
@@ -64,11 +64,22 @@ Below is a minimal example of how to embed a Framer configurator using the `<spc
|
|
|
64
64
|
|
|
65
65
|
Attributes for `<spc-embedded-configurator>`
|
|
66
66
|
|
|
67
|
-
| Attribute
|
|
68
|
-
|
|
69
|
-
| `src`
|
|
70
|
-
| `isolated`
|
|
71
|
-
| `no-auto-height`
|
|
67
|
+
| Attribute | Type | Description | Example |
|
|
68
|
+
|------------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------|
|
|
69
|
+
| `src` | `string` | URL of the Framer-based configurator to embed.
|
|
70
|
+
| `isolated` | `boolean` | If `true`, the configurator runs in sandboxed iframe mode.<br/>Default: `false` | `true`, `false` or `undefined` |
|
|
71
|
+
| `no-auto-height` | `boolean` | if true, it disables automatic resizing of the iframe to match the configurator's content height. Only applicable when `isolated` mode is enabled.<br/>Default: `false` | `true`, `false` or `undefined` |
|
|
72
|
+
|
|
73
|
+
## Releasing
|
|
74
|
+
|
|
75
|
+
After publishing a new version to npm, jsDelivr may continue to serve the previous version for floating URLs (e.g. `@1`, `@latest`) for up to 12 hours per edge node, because each CDN edge caches the resolved file independently.
|
|
76
|
+
|
|
77
|
+
To make the new version available immediately on all edges and CDN providers, trigger a global purge once npm has accepted the publish:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
curl -fsS "https://purge.jsdelivr.net/npm/@viamedici-spc/configurator-framer-host@1"
|
|
81
|
+
curl -fsS "https://purge.jsdelivr.net/npm/@viamedici-spc/configurator-framer-host@latest"
|
|
82
|
+
```
|
|
72
83
|
|
|
73
84
|
## License
|
|
74
85
|
|
package/package.json
CHANGED