@pixelmatters/markup 1.13.0 → 1.14.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 +6 -6
- package/dist/widget.js +1516 -1113
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,9 +35,9 @@ CDN drop-in (no build step) — paste this just before `</body>`:
|
|
|
35
35
|
```html
|
|
36
36
|
<script type="module">
|
|
37
37
|
// Pin the exact version — esm.sh resolves it from npm
|
|
38
|
-
import { init } from 'https://esm.sh/@pixelmatters/markup@1.
|
|
38
|
+
import { init } from 'https://esm.sh/@pixelmatters/markup@1.14.0'
|
|
39
39
|
// or
|
|
40
|
-
// import { init } from 'https://esm.run/@pixelmatters/markup@1.
|
|
40
|
+
// import { init } from 'https://esm.run/@pixelmatters/markup@1.14.0'
|
|
41
41
|
|
|
42
42
|
init({
|
|
43
43
|
apiUrl: 'https://your-deployment.convex.site',
|
|
@@ -49,14 +49,14 @@ CDN drop-in (no build step) — paste this just before `</body>`:
|
|
|
49
49
|
</script>
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
> **Why pin the version?** CDN URLs without a version (`@pixelmatters/markup`) resolve to whatever's `latest` on npm — a future major release will break your page silently. Always pin (`@pixelmatters/markup@1.
|
|
52
|
+
> **Why pin the version?** CDN URLs without a version (`@pixelmatters/markup`) resolve to whatever's `latest` on npm — a future major release will break your page silently. Always pin (`@pixelmatters/markup@1.14.0`).
|
|
53
53
|
|
|
54
54
|
If your platform doesn't allow inline JS (some CMS / page-builder editors), use the auto-init form instead — point a `<script src=…>` at the bundle and pass config via `data-*` attributes:
|
|
55
55
|
|
|
56
56
|
```html
|
|
57
57
|
<script
|
|
58
58
|
type="module"
|
|
59
|
-
src="https://esm.sh/@pixelmatters/markup@1.
|
|
59
|
+
src="https://esm.sh/@pixelmatters/markup@1.14.0"
|
|
60
60
|
data-markup-widget="true"
|
|
61
61
|
data-api-url="https://your-deployment.convex.site"
|
|
62
62
|
data-api-key="markup_..."
|
|
@@ -278,7 +278,7 @@ For a `<script>` tag drop-in (no bundler), use the inline ESM form and **pin the
|
|
|
278
278
|
|
|
279
279
|
```html
|
|
280
280
|
<script type="module">
|
|
281
|
-
import { init } from 'https://esm.sh/@pixelmatters/markup@1.
|
|
281
|
+
import { init } from 'https://esm.sh/@pixelmatters/markup@1.14.0'
|
|
282
282
|
|
|
283
283
|
init({
|
|
284
284
|
apiUrl: '...',
|
|
@@ -295,7 +295,7 @@ If inline JS is disallowed (some CMS / page-builder editors), use the auto-init
|
|
|
295
295
|
```html
|
|
296
296
|
<script
|
|
297
297
|
type="module"
|
|
298
|
-
src="https://esm.sh/@pixelmatters/markup@1.
|
|
298
|
+
src="https://esm.sh/@pixelmatters/markup@1.14.0"
|
|
299
299
|
data-markup-widget="true"
|
|
300
300
|
data-api-url="..."
|
|
301
301
|
data-api-key="..."
|