@haklex/rich-compose 0.11.0 → 0.13.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.
Files changed (35) hide show
  1. package/dist/index.mjs +7 -2
  2. package/dist/litexml-html-preview-client.css +1347 -1303
  3. package/dist/litexml-html-preview-client.js +75044 -76110
  4. package/dist/{module-LSK-rHcR.js → module-Cx2WzEb6.js} +3 -2
  5. package/dist/{module-Bzx-kcbg.js → module-DQ0zqopf.js} +3 -2
  6. package/dist/{module-BNXS9cXW.js → module-DQa_2hV4.js} +3 -2
  7. package/dist/modules/alert/edit.mjs +1 -1
  8. package/dist/modules/alert/index.d.ts +1 -1
  9. package/dist/modules/alert/index.d.ts.map +1 -1
  10. package/dist/modules/alert/index.mjs +2 -2
  11. package/dist/modules/alert/module.d.ts +1 -0
  12. package/dist/modules/alert/module.d.ts.map +1 -1
  13. package/dist/modules/banner/edit.mjs +1 -1
  14. package/dist/modules/banner/index.d.ts +1 -1
  15. package/dist/modules/banner/index.d.ts.map +1 -1
  16. package/dist/modules/banner/index.mjs +2 -2
  17. package/dist/modules/banner/module.d.ts +1 -0
  18. package/dist/modules/banner/module.d.ts.map +1 -1
  19. package/dist/modules/nested-doc/edit.mjs +1 -1
  20. package/dist/modules/nested-doc/index.d.ts +1 -1
  21. package/dist/modules/nested-doc/index.d.ts.map +1 -1
  22. package/dist/modules/nested-doc/index.mjs +2 -2
  23. package/dist/modules/nested-doc/module.d.ts +1 -0
  24. package/dist/modules/nested-doc/module.d.ts.map +1 -1
  25. package/dist/renderer.mjs +3 -3
  26. package/dist/static-renderer/engine/renderBuiltinNode.d.ts.map +1 -1
  27. package/dist/style/alert.css +1 -1
  28. package/dist/style/banner.css +1 -1
  29. package/dist/style/foundation.css +1 -1
  30. package/dist/style/nested-doc.css +1 -1
  31. package/dist/style.css +4 -4
  32. package/package.json +26 -27
  33. package/dist/cli/litexml-to-html.d.ts +0 -3
  34. package/dist/cli/litexml-to-html.d.ts.map +0 -1
  35. package/dist/litexml-to-html.mjs +0 -237
package/dist/index.mjs CHANGED
@@ -97,15 +97,20 @@ function renderBuiltinNode(node, key, children, headingSlugs, textContent) {
97
97
  }), children]
98
98
  }, key);
99
99
  }
100
+ case "rich-quote":
100
101
  case "quote": {
101
102
  const quoteText = (textContent || extractText(node)).trim();
102
103
  const hasOpenQuote = OPEN_QUOTE_RE.test(quoteText);
103
104
  const hasCloseQuote = CLOSE_QUOTE_RE.test(quoteText);
104
- return /* @__PURE__ */ jsx("blockquote", {
105
+ const attribution = node.attribution;
106
+ return /* @__PURE__ */ jsxs("blockquote", {
105
107
  className: shared$1("quote"),
106
108
  "data-no-close-quote": hasCloseQuote ? "" : void 0,
107
109
  "data-no-open-quote": hasOpenQuote ? "" : void 0,
108
- children
110
+ children: [children, attribution && /* @__PURE__ */ jsxs("footer", {
111
+ className: shared$1("quoteAttribution"),
112
+ children: ["— ", attribution]
113
+ })]
109
114
  }, key);
110
115
  }
111
116
  case "list": return /* @__PURE__ */ jsx(node.listType === "number" ? "ol" : "ul", {