@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.
- package/dist/index.mjs +7 -2
- package/dist/litexml-html-preview-client.css +1347 -1303
- package/dist/litexml-html-preview-client.js +75044 -76110
- package/dist/{module-LSK-rHcR.js → module-Cx2WzEb6.js} +3 -2
- package/dist/{module-Bzx-kcbg.js → module-DQ0zqopf.js} +3 -2
- package/dist/{module-BNXS9cXW.js → module-DQa_2hV4.js} +3 -2
- package/dist/modules/alert/edit.mjs +1 -1
- package/dist/modules/alert/index.d.ts +1 -1
- package/dist/modules/alert/index.d.ts.map +1 -1
- package/dist/modules/alert/index.mjs +2 -2
- package/dist/modules/alert/module.d.ts +1 -0
- package/dist/modules/alert/module.d.ts.map +1 -1
- package/dist/modules/banner/edit.mjs +1 -1
- package/dist/modules/banner/index.d.ts +1 -1
- package/dist/modules/banner/index.d.ts.map +1 -1
- package/dist/modules/banner/index.mjs +2 -2
- package/dist/modules/banner/module.d.ts +1 -0
- package/dist/modules/banner/module.d.ts.map +1 -1
- package/dist/modules/nested-doc/edit.mjs +1 -1
- package/dist/modules/nested-doc/index.d.ts +1 -1
- package/dist/modules/nested-doc/index.d.ts.map +1 -1
- package/dist/modules/nested-doc/index.mjs +2 -2
- package/dist/modules/nested-doc/module.d.ts +1 -0
- package/dist/modules/nested-doc/module.d.ts.map +1 -1
- package/dist/renderer.mjs +3 -3
- package/dist/static-renderer/engine/renderBuiltinNode.d.ts.map +1 -1
- package/dist/style/alert.css +1 -1
- package/dist/style/banner.css +1 -1
- package/dist/style/foundation.css +1 -1
- package/dist/style/nested-doc.css +1 -1
- package/dist/style.css +4 -4
- package/package.json +26 -27
- package/dist/cli/litexml-to-html.d.ts +0 -3
- package/dist/cli/litexml-to-html.d.ts.map +0 -1
- 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
|
-
|
|
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", {
|