@pixelmatters/markup 1.28.0 → 1.28.1

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
@@ -37,9 +37,9 @@ CDN drop-in, no build step. Paste this just before `</body>`:
37
37
  ```html
38
38
  <script type="module">
39
39
  // Pin the exact version; esm.sh resolves it from npm
40
- import { init } from 'https://esm.sh/@pixelmatters/markup@1.28.0'
40
+ import { init } from 'https://esm.sh/@pixelmatters/markup@1.28.1'
41
41
  // or
42
- // import { init } from 'https://esm.run/@pixelmatters/markup@1.28.0'
42
+ // import { init } from 'https://esm.run/@pixelmatters/markup@1.28.1'
43
43
 
44
44
  init({
45
45
  apiUrl: 'https://your-deployment.convex.site',
@@ -50,14 +50,14 @@ CDN drop-in, no build step. Paste this just before `</body>`:
50
50
  </script>
51
51
  ```
52
52
 
53
- > **Why pin the version?** CDN URLs without a version (`@pixelmatters/markup`) resolve to whatever's `latest` on npm, so a future major release will break your page with no warning. Always pin (`@pixelmatters/markup@1.28.0`).
53
+ > **Why pin the version?** CDN URLs without a version (`@pixelmatters/markup`) resolve to whatever's `latest` on npm, so a future major release will break your page with no warning. Always pin (`@pixelmatters/markup@1.28.1`).
54
54
 
55
55
  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:
56
56
 
57
57
  ```html
58
58
  <script
59
59
  type="module"
60
- src="https://esm.sh/@pixelmatters/markup@1.28.0"
60
+ src="https://esm.sh/@pixelmatters/markup@1.28.1"
61
61
  data-markup-widget="true"
62
62
  data-api-url="https://your-deployment.convex.site"
63
63
  data-api-key="markup_..."
@@ -442,13 +442,13 @@ npx @tanstack/intent@latest install
442
442
 
443
443
  Re-run it when you add another Intent-enabled package. A `pnpm update` of this one is enough on its own, because the skill travels with the tarball and refreshes in place.
444
444
 
445
- If you'd rather pull it straight from the repo, or you're deciding whether to adopt the widget at all and haven't installed it yet, the [`skills`](https://www.npmjs.com/package/skills) CLI takes it by path:
445
+ If you haven't installed the widget yet, or you're still deciding whether to adopt it, the [`skills`](https://www.npmjs.com/package/skills) CLI fetches the same skill from the Markup site:
446
446
 
447
447
  ```bash
448
- npx skills add Pixelmatters/markup/packages/widget/skills/install-markup-widget
448
+ npx skills add https://markup.pixelmatters.dev --skill install-markup-widget
449
449
  ```
450
450
 
451
- Pass the full path, not just the repository. That is where this skill lives, and a bare repository reference resolves to a different set of skills.
451
+ Keep `--skill`. The site also publishes a skill for reading feedback over MCP, and without the flag the CLI asks which to install.
452
452
 
453
453
  Otherwise, paste the block below into Claude, ChatGPT, Cursor, or any other LLM and it'll wire the widget into your codebase end-to-end.
454
454
 
@@ -495,7 +495,7 @@ For a `<script>` tag drop-in (no bundler), use the inline ESM form and **pin the
495
495
 
496
496
  ```html
497
497
  <script type="module">
498
- import { init } from 'https://esm.sh/@pixelmatters/markup@1.28.0'
498
+ import { init } from 'https://esm.sh/@pixelmatters/markup@1.28.1'
499
499
 
500
500
  init({
501
501
  apiUrl: '...',
@@ -511,7 +511,7 @@ If inline JS is disallowed (some CMS / page-builder editors), use the auto-init
511
511
  ```html
512
512
  <script
513
513
  type="module"
514
- src="https://esm.sh/@pixelmatters/markup@1.28.0"
514
+ src="https://esm.sh/@pixelmatters/markup@1.28.1"
515
515
  data-markup-widget="true"
516
516
  data-api-url="..."
517
517
  data-api-key="..."
package/dist/widget.js CHANGED
@@ -5967,13 +5967,13 @@ function El({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5967
5967
  S.current && (t.preventDefault(), t.stopPropagation()), k();
5968
5968
  }
5969
5969
  }
5970
- function n(e) {
5970
+ return Mc(e, t);
5971
+ }, [k, h]), G(() => {
5972
+ if (h) return;
5973
+ function e(e) {
5971
5974
  e.key !== "Escape" || e.defaultPrevented || I.current?.open || (e.preventDefault(), w.current ? A() : k());
5972
5975
  }
5973
- let r = Mc(e, t);
5974
- return document.addEventListener("keydown", n), () => {
5975
- r(), document.removeEventListener("keydown", n);
5976
- };
5976
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
5977
5977
  }, [
5978
5978
  k,
5979
5979
  A,
@@ -8667,7 +8667,7 @@ function Su({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8667
8667
  isForgettingMe: pe.isPending,
8668
8668
  forgetMeError: pe.error,
8669
8669
  onForgetMe: lt,
8670
- version: "1.28.0",
8670
+ version: "1.28.1",
8671
8671
  dashboardUrl: i
8672
8672
  })
8673
8673
  }, t.key)),
@@ -8715,11 +8715,11 @@ function wu(e, t) {
8715
8715
  a.className = "markup-shadow-root", r.appendChild(a), Ae({
8716
8716
  apiUrl: t.apiUrl,
8717
8717
  apiKey: t.apiKey,
8718
- widgetVersion: "1.28.0"
8718
+ widgetVersion: "1.28.1"
8719
8719
  }), ve(t.analytics === !1 ? null : {
8720
8720
  apiUrl: t.apiUrl,
8721
8721
  apiKey: t.apiKey,
8722
- widgetVersion: "1.28.0"
8722
+ widgetVersion: "1.28.1"
8723
8723
  }), ye("widget_loaded");
8724
8724
  let { theme: o, analytics: s, ...c } = t;
8725
8725
  return se(/* @__PURE__ */ Q(Se, {