@popgrids/embed 0.0.9 → 0.0.10

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/AGENTS.md CHANGED
@@ -142,7 +142,8 @@ through the monorepo's changesets flow; see "Releasing ui and embed" in the root
142
142
  (0.0.7 or later; older releases have no loader). It uses the `CLOUDFLARE_R2_API_TOKEN` secret, an
143
143
  R2 token scoped to the `popgrids` bucket. That token can write anywhere in the bucket, which
144
144
  also serves the marketing videos, so the workflow's object keys are fixed: `embed.js` and
145
- `embed/<version>/`, nothing else.
145
+ `embed/<version>/`, nothing else. R2 accepts a bucket-scoped token only through its S3-compatible
146
+ API, so the workflow uploads with the AWS CLI, using S3 credentials derived from the token.
146
147
  - **CORS:** the loader loads the bundle as a cross-origin module, which browsers refuse without
147
148
  `Access-Control-Allow-Origin`. A Transform Rule in the `popgrids.io` zone (Rules → Transform
148
149
  Rules → Modify Response Header) sets `Access-Control-Allow-Origin: *` on `cdn.popgrids.io`
package/dist/embed.js CHANGED
@@ -2749,7 +2749,7 @@ var tr = J("\n :host {\n display: block;\n width: 100%;\n --pop-commen
2749
2749
  if (!e) return "";
2750
2750
  let t = this.gridStore.comments.value.find((t) => t.id === e);
2751
2751
  if (!t) return "";
2752
- let n = t.status === "deleted", r = t.authorDeleted === !0, i = n || r, a = i ? "" : t.author?.image ? `<img src="${t.author.image}" alt="${t.author.name ?? "User avatar"}" />` : rt(t.author?.name), o = this.gridStore.replyingTo.value, s = e !== null && o === e, c = this.size, l = this.authStore.currentUser.value, u = l && t.author && l.id === t.author.id, d = l && !n ? `<div class="comment__menu">
2752
+ let n = t.status === "deleted", r = t.authorDeleted === !0, i = n || r, a = i ? "" : t.author?.image ? `<img src="${t.author.image}" alt="${t.author.name ?? "User avatar"}" loading="lazy" />` : rt(t.author?.name), o = this.gridStore.replyingTo.value, s = e !== null && o === e, c = this.size, l = this.authStore.currentUser.value, u = l && t.author && l.id === t.author.id, d = l && !n ? `<div class="comment__menu">
2753
2753
  <button class="comment__menu-trigger" data-ref="menu-trigger" type="button">
2754
2754
  <svg
2755
2755
  width="18"