@blogmcp/community 0.5.0 → 0.5.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.
@@ -1,6 +1,6 @@
1
- import { reactive, markRaw, defineComponent, computed, createElementBlock, createCommentVNode, openBlock, createElementVNode, toDisplayString, Fragment, renderList, ref, createBlock, createVNode, withDirectives, createTextVNode, vModelCheckbox, withKeys, withModifiers, vModelText, normalizeClass, unref, watch, onMounted, onBeforeUnmount, useHost, shallowRef, defineCustomElement } from "vue";
1
+ import { reactive, markRaw, defineComponent, computed, createElementBlock, createCommentVNode, openBlock, createElementVNode, toDisplayString, Fragment, renderList, createTextVNode, createBlock, resolveComponent, unref, createVNode, ref, withDirectives, vModelCheckbox, withKeys, withModifiers, vModelText, normalizeClass, watch, onMounted, onBeforeUnmount, useHost, shallowRef, defineCustomElement } from "vue";
2
2
  import { PRIVATE_PROMISE_MESSAGES_CS, dmEventEffect, privatePromise, privateBlockOf, createPrivateDmClient, kbOriginOf, createPrivateClient, markPrivateRoot } from "@blogmcp/sdk/community/private";
3
- import { COMMUNITY_ROUTES, isRelativeCommunityBase, createCommunityClient, isInAppBrowser } from "@blogmcp/sdk/community";
3
+ import { legalTextBlocks, COMMUNITY_ROUTES, isRelativeCommunityBase, createCommunityClient, isInAppBrowser } from "@blogmcp/sdk/community";
4
4
  const DOCK_MAX_WINDOWS = 3;
5
5
  const DOCK_MOBILE_QUERY = "(max-width:640px)";
6
6
  function mediaQuery(query) {
@@ -2009,17 +2009,17 @@ function httpsHref(value) {
2009
2009
  function fillDisplay(body, display, acceptedAt) {
2010
2010
  return body.replace(/\{\{device_label\}\}/g, display?.deviceLabel ?? "").replace(/\{\{approval_email\}\}/g, display?.approvalEmail ?? "").replace(/\{\{accepted_at\}\}/g, acceptedAt);
2011
2011
  }
2012
- const _hoisted_1$p = {
2012
+ const _hoisted_1$s = {
2013
2013
  key: 0,
2014
2014
  class: "bcm-p-provider",
2015
2015
  "data-provider-line": ""
2016
2016
  };
2017
- const _hoisted_2$p = {
2017
+ const _hoisted_2$r = {
2018
2018
  key: 0,
2019
2019
  class: "bcm-p-provider-links"
2020
2020
  };
2021
- const _hoisted_3$n = ["href"];
2022
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
2021
+ const _hoisted_3$p = ["href"];
2022
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
2023
2023
  __name: "ProviderLine",
2024
2024
  props: {
2025
2025
  provider: {},
@@ -2030,25 +2030,174 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2030
2030
  const tx = computed(() => screenText(props.lang));
2031
2031
  const links = computed(() => ["contact", "rules", "terms", "privacy"].filter((k) => props.provider?.links[k]).map((k) => ({ k, href: props.provider.links[k] })));
2032
2032
  return (_ctx, _cache) => {
2033
- return __props.provider ? (openBlock(), createElementBlock("footer", _hoisted_1$p, [
2033
+ return __props.provider ? (openBlock(), createElementBlock("footer", _hoisted_1$s, [
2034
2034
  createElementVNode("p", null, toDisplayString(tx.value.pt("private.provider.line", { name: __props.provider.name, ico: __props.provider.ico, address: __props.provider.address })), 1),
2035
- links.value.length > 0 ? (openBlock(), createElementBlock("p", _hoisted_2$p, [
2035
+ links.value.length > 0 ? (openBlock(), createElementBlock("p", _hoisted_2$r, [
2036
2036
  (openBlock(true), createElementBlock(Fragment, null, renderList(links.value, (l) => {
2037
2037
  return openBlock(), createElementBlock("a", {
2038
2038
  key: l.k,
2039
2039
  href: l.href,
2040
2040
  target: "_blank",
2041
2041
  rel: "noopener noreferrer"
2042
- }, toDisplayString(tx.value.pt(`private.provider.${l.k}`)), 9, _hoisted_3$n);
2042
+ }, toDisplayString(tx.value.pt(`private.provider.${l.k}`)), 9, _hoisted_3$p);
2043
2043
  }), 128))
2044
2044
  ])) : createCommentVNode("", true)
2045
2045
  ])) : createCommentVNode("", true);
2046
2046
  };
2047
2047
  }
2048
2048
  });
2049
+ const _hoisted_1$r = { key: 0 };
2050
+ const _hoisted_2$q = { key: 0 };
2051
+ const _hoisted_3$o = { key: 0 };
2052
+ const _hoisted_4$l = { key: 1 };
2053
+ const _hoisted_5$l = { key: 1 };
2054
+ const _hoisted_6$j = { key: 0 };
2055
+ const _hoisted_7$j = { key: 2 };
2056
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
2057
+ __name: "LegalRun",
2058
+ props: {
2059
+ run: {}
2060
+ },
2061
+ setup(__props) {
2062
+ return (_ctx, _cache) => {
2063
+ return __props.run.strong ? (openBlock(), createElementBlock("strong", _hoisted_1$r, [
2064
+ __props.run.em ? (openBlock(), createElementBlock("em", _hoisted_2$q, [
2065
+ __props.run.code ? (openBlock(), createElementBlock("code", _hoisted_3$o, toDisplayString(__props.run.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2066
+ createTextVNode(toDisplayString(__props.run.text), 1)
2067
+ ], 64))
2068
+ ])) : __props.run.code ? (openBlock(), createElementBlock("code", _hoisted_4$l, toDisplayString(__props.run.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
2069
+ createTextVNode(toDisplayString(__props.run.text), 1)
2070
+ ], 64))
2071
+ ])) : __props.run.em ? (openBlock(), createElementBlock("em", _hoisted_5$l, [
2072
+ __props.run.code ? (openBlock(), createElementBlock("code", _hoisted_6$j, toDisplayString(__props.run.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2073
+ createTextVNode(toDisplayString(__props.run.text), 1)
2074
+ ], 64))
2075
+ ])) : __props.run.code ? (openBlock(), createElementBlock("code", _hoisted_7$j, toDisplayString(__props.run.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
2076
+ createTextVNode(toDisplayString(__props.run.text), 1)
2077
+ ], 64));
2078
+ };
2079
+ }
2080
+ });
2081
+ function fillBlocks(blocks, fill2) {
2082
+ return blocks.map((b) => {
2083
+ if (b.type === "list") return { ...b, items: b.items.map((item) => ({ blocks: fillBlocks(item.blocks, fill2) })) };
2084
+ return { ...b, runs: b.runs.map((r) => ({ ...r, text: fill2(r.text) })) };
2085
+ });
2086
+ }
2087
+ function linkGroups(runs) {
2088
+ const out = [];
2089
+ for (const run of runs) {
2090
+ const href = run.href ?? null;
2091
+ const last = out[out.length - 1];
2092
+ if (href !== null && last && last.href === href) last.runs.push(run);
2093
+ else out.push({ href, runs: [run] });
2094
+ }
2095
+ return out;
2096
+ }
2097
+ const headingLevel = (level) => Math.min(6, Math.max(3, level + 2));
2098
+ const _hoisted_1$q = ["href"];
2099
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
2100
+ __name: "LegalRuns",
2101
+ props: {
2102
+ runs: {}
2103
+ },
2104
+ setup(__props) {
2105
+ const props = __props;
2106
+ const groups = computed(() => linkGroups(props.runs));
2107
+ return (_ctx, _cache) => {
2108
+ return openBlock(true), createElementBlock(Fragment, null, renderList(groups.value, (g, i) => {
2109
+ return openBlock(), createElementBlock(Fragment, { key: i }, [
2110
+ g.href ? (openBlock(), createElementBlock("a", {
2111
+ key: 0,
2112
+ href: g.href,
2113
+ target: "_blank",
2114
+ rel: "noopener noreferrer"
2115
+ }, [
2116
+ (openBlock(true), createElementBlock(Fragment, null, renderList(g.runs, (r, k) => {
2117
+ return openBlock(), createBlock(_sfc_main$r, {
2118
+ key: k,
2119
+ run: r
2120
+ }, null, 8, ["run"]);
2121
+ }), 128))
2122
+ ], 8, _hoisted_1$q)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(g.runs, (r, k) => {
2123
+ return openBlock(), createBlock(_sfc_main$r, {
2124
+ key: k,
2125
+ run: r
2126
+ }, null, 8, ["run"]);
2127
+ }), 128))
2128
+ ], 64);
2129
+ }), 128);
2130
+ };
2131
+ }
2132
+ });
2133
+ const _hoisted_1$p = { key: 0 };
2134
+ const _hoisted_2$p = { key: 1 };
2135
+ const _hoisted_3$n = { key: 2 };
2136
+ const _hoisted_4$k = { key: 3 };
2137
+ const _hoisted_5$k = { key: 1 };
2138
+ const _hoisted_6$i = ["start"];
2139
+ const _hoisted_7$i = { key: 3 };
2140
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2141
+ ...{ name: "LegalBlocks" },
2142
+ __name: "LegalBlocks",
2143
+ props: {
2144
+ blocks: {}
2145
+ },
2146
+ setup(__props) {
2147
+ return (_ctx, _cache) => {
2148
+ const _component_LegalBlocks = resolveComponent("LegalBlocks", true);
2149
+ return openBlock(true), createElementBlock(Fragment, null, renderList(__props.blocks, (b, i) => {
2150
+ return openBlock(), createElementBlock(Fragment, { key: i }, [
2151
+ b.type === "heading" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2152
+ unref(headingLevel)(b.level) === 3 ? (openBlock(), createElementBlock("h3", _hoisted_1$p, [
2153
+ createVNode(_sfc_main$q, {
2154
+ runs: b.runs
2155
+ }, null, 8, ["runs"])
2156
+ ])) : unref(headingLevel)(b.level) === 4 ? (openBlock(), createElementBlock("h4", _hoisted_2$p, [
2157
+ createVNode(_sfc_main$q, {
2158
+ runs: b.runs
2159
+ }, null, 8, ["runs"])
2160
+ ])) : unref(headingLevel)(b.level) === 5 ? (openBlock(), createElementBlock("h5", _hoisted_3$n, [
2161
+ createVNode(_sfc_main$q, {
2162
+ runs: b.runs
2163
+ }, null, 8, ["runs"])
2164
+ ])) : (openBlock(), createElementBlock("h6", _hoisted_4$k, [
2165
+ createVNode(_sfc_main$q, {
2166
+ runs: b.runs
2167
+ }, null, 8, ["runs"])
2168
+ ]))
2169
+ ], 64)) : b.type === "paragraph" ? (openBlock(), createElementBlock("p", _hoisted_5$k, [
2170
+ createVNode(_sfc_main$q, {
2171
+ runs: b.runs
2172
+ }, null, 8, ["runs"])
2173
+ ])) : b.type === "list" && b.ordered ? (openBlock(), createElementBlock("ol", {
2174
+ key: 2,
2175
+ start: b.start
2176
+ }, [
2177
+ (openBlock(true), createElementBlock(Fragment, null, renderList(b.items, (item, k) => {
2178
+ return openBlock(), createElementBlock("li", { key: k }, [
2179
+ createVNode(_component_LegalBlocks, {
2180
+ blocks: item.blocks
2181
+ }, null, 8, ["blocks"])
2182
+ ]);
2183
+ }), 128))
2184
+ ], 8, _hoisted_6$i)) : b.type === "list" ? (openBlock(), createElementBlock("ul", _hoisted_7$i, [
2185
+ (openBlock(true), createElementBlock(Fragment, null, renderList(b.items, (item, k) => {
2186
+ return openBlock(), createElementBlock("li", { key: k }, [
2187
+ createVNode(_component_LegalBlocks, {
2188
+ blocks: item.blocks
2189
+ }, null, 8, ["blocks"])
2190
+ ]);
2191
+ }), 128))
2192
+ ])) : createCommentVNode("", true)
2193
+ ], 64);
2194
+ }), 128);
2195
+ };
2196
+ }
2197
+ });
2049
2198
  const _hoisted_1$o = ["data-text-kind"];
2050
2199
  const _hoisted_2$o = { class: "bcm-p-muted" };
2051
- const _hoisted_3$m = { class: "bcm-p-legal-body" };
2200
+ const _hoisted_3$m = { class: "bcm-p-legal-doc" };
2052
2201
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
2053
2202
  __name: "LegalText",
2054
2203
  props: {
@@ -2060,14 +2209,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2060
2209
  setup(__props) {
2061
2210
  const props = __props;
2062
2211
  const tx = computed(() => screenText(props.lang));
2063
- const body = computed(() => fillDisplay(props.text.body, props.display, props.acceptedAt));
2212
+ const blocks = computed(() => fillBlocks(legalTextBlocks(props.text.body), (s) => fillDisplay(s, props.display, props.acceptedAt)));
2064
2213
  return (_ctx, _cache) => {
2065
2214
  return openBlock(), createElementBlock("article", {
2066
2215
  class: "bcm-p-legal",
2067
2216
  "data-text-kind": __props.text.kind
2068
2217
  }, [
2069
2218
  createElementVNode("p", _hoisted_2$o, toDisplayString(tx.value.pt("private.activation.version", { version: __props.text.version })), 1),
2070
- createElementVNode("div", _hoisted_3$m, toDisplayString(body.value), 1)
2219
+ createElementVNode("div", _hoisted_3$m, [
2220
+ createVNode(_sfc_main$p, { blocks: blocks.value }, null, 8, ["blocks"])
2221
+ ])
2071
2222
  ], 8, _hoisted_1$o);
2072
2223
  };
2073
2224
  }
@@ -4635,7 +4786,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4635
4786
  lang: __props.lang
4636
4787
  }, null, 8, ["controller", "lang"])) : createCommentVNode("", true),
4637
4788
  s.value.screenFailures[current.value] ? (openBlock(), createElementBlock("p", _hoisted_3$2, toDisplayString(tx.value.refText(s.value.screenFailures[current.value] ?? null)), 1)) : createCommentVNode("", true),
4638
- createVNode(_sfc_main$p, {
4789
+ createVNode(_sfc_main$s, {
4639
4790
  provider: s.value.provider,
4640
4791
  lang: __props.lang
4641
4792
  }, null, 8, ["provider", "lang"])
@@ -5145,7 +5296,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5145
5296
  class: "bcm-p-link",
5146
5297
  "data-full-page": ""
5147
5298
  }, toDisplayString(tx.value.pt("private.dock.fullPage")), 9, _hoisted_14)) : createCommentVNode("", true),
5148
- createVNode(_sfc_main$p, {
5299
+ createVNode(_sfc_main$s, {
5149
5300
  provider: controller.value?.state.provider ?? null,
5150
5301
  lang: unref(lang)
5151
5302
  }, null, 8, ["provider", "lang"])
@@ -5245,7 +5396,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5245
5396
  };
5246
5397
  }
5247
5398
  });
5248
- const css = "/* The private elements' one stylesheet (each shadow root carries it, with the CSP nonce). Colours follow the host's\n `color-scheme`; a host themes them through the custom properties below. */\n:host {\n --bcm-p-fg: CanvasText;\n --bcm-p-bg: Canvas;\n --bcm-p-muted: GrayText;\n --bcm-p-accent: #2f6f4f;\n --bcm-p-danger: #a3261f;\n --bcm-p-radius: 10px;\n display: block;\n font: inherit;\n color: var(--bcm-p-fg);\n}\n/* The host hides the dock on a page without unmounting it (§6.2): its session and windows stay. */\n:host([hidden-by-host]) {\n display: none !important;\n}\n:host([hidden]) {\n display: none;\n}\n.bcm-p-root { box-sizing: border-box; }\n.bcm-p-root *, .bcm-p-root *::before, .bcm-p-root *::after { box-sizing: inherit; }\n.bcm-p-screen h2 { font-size: 1.15em; margin: 0 0 0.5em; }\n.bcm-p-screen h3 { font-size: 1em; margin: 0.75em 0 0.25em; }\n.bcm-p-muted { color: var(--bcm-p-muted); font-size: 0.9em; }\n.bcm-p-note { border-left: 3px solid var(--bcm-p-accent); padding-left: 0.6em; }\n.bcm-p-warning { border-left: 3px solid var(--bcm-p-danger); padding-left: 0.6em; }\n.bcm-p-error { color: var(--bcm-p-danger); }\n.bcm-p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n.bcm-p-btn {\n font: inherit; cursor: pointer; border: 1px solid currentColor; background: transparent; color: inherit;\n border-radius: var(--bcm-p-radius); padding: 0.45em 0.9em; margin: 0.2em 0.4em 0.2em 0;\n}\n.bcm-p-btn:disabled { opacity: 0.55; cursor: default; }\n.bcm-p-primary { background: var(--bcm-p-accent); border-color: var(--bcm-p-accent); color: #fff; }\n.bcm-p-danger { border-color: var(--bcm-p-danger); color: var(--bcm-p-danger); }\n.bcm-p-link { font: inherit; background: none; border: 0; padding: 0.2em 0; color: var(--bcm-p-accent); cursor: pointer; text-decoration: underline; }\n.bcm-p-icon { font: inherit; background: none; border: 0; cursor: pointer; font-size: 1.3em; line-height: 1; color: inherit; }\n.bcm-p-input { font: inherit; padding: 0.45em; border: 1px solid var(--bcm-p-muted); border-radius: var(--bcm-p-radius); min-width: 10ch; }\n.bcm-p-row { display: flex; gap: 0.5em; align-items: center; flex-wrap: wrap; }\n.bcm-p-actions { display: flex; flex-wrap: wrap; gap: 0.25em; margin: 0.5em 0; }\n.bcm-p-list, .bcm-p-menu { list-style: none; padding: 0; margin: 0.5em 0; }\n.bcm-p-list > li { border-top: 1px solid color-mix(in srgb, var(--bcm-p-muted) 35%, transparent); padding: 0.5em 0; }\n.bcm-p-unread { font-weight: 600; }\n.bcm-p-badge { display: inline-block; font-size: 0.8em; border: 1px solid var(--bcm-p-muted); border-radius: 999px; padding: 0 0.5em; margin-left: 0.4em; }\n.bcm-p-code { font-family: ui-monospace, monospace; font-size: 1.4em; letter-spacing: 0.15em; }\n.bcm-p-check { display: flex; gap: 0.5em; align-items: flex-start; margin: 0.4em 0; }\n.bcm-p-legal { margin: 0.75em 0; }\n.bcm-p-legal-body { white-space: pre-wrap; max-height: 18em; overflow: auto; border: 1px solid color-mix(in srgb, var(--bcm-p-muted) 35%, transparent); border-radius: var(--bcm-p-radius); padding: 0.6em; }\n.bcm-p-provider { margin-top: 1em; font-size: 0.85em; color: var(--bcm-p-muted); }\n.bcm-p-provider-links a { margin-right: 0.8em; color: inherit; }\n.bcm-p-dot { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--bcm-p-danger); margin-left: 0.35em; vertical-align: middle; }\n/* The dock: fixed to the bottom corner, windows beside the launcher. */\n.bcm-p-dock { position: fixed; right: 16px; bottom: 16px; z-index: 2147483000; display: flex; align-items: flex-end; gap: 12px; }\n.bcm-p-launcher {\n font: inherit; cursor: pointer; border: 0; border-radius: 999px; padding: 0.7em 1.1em; background: var(--bcm-p-accent); color: #fff;\n box-shadow: 0 4px 16px rgb(0 0 0 / 0.2); text-decoration: none;\n}\n.bcm-p-panel, .bcm-p-window {\n background: var(--bcm-p-bg); border-radius: var(--bcm-p-radius); box-shadow: 0 8px 28px rgb(0 0 0 / 0.25);\n width: 320px; max-height: 70vh; overflow: auto; padding: 0.8em;\n}\n.bcm-p-windows { display: flex; gap: 12px; align-items: flex-end; }\n.bcm-p-window-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; }\n.bcm-p-window-head h2 { font-size: 1em; margin: 0; }\n/* A phone: a window takes the whole screen. */\n.bcm-p-mobile .bcm-p-window { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; }\n.bcm-p-mobile .bcm-p-panel { position: fixed; left: 8px; right: 8px; bottom: 72px; width: auto; }\n/* The conversations (DM8b): the member's own messages to the right, search hits marked, the composer full width. */\n.bcm-p-dm-messages > li { position: relative; padding-right: 2em; }\n.bcm-p-dm-messages > li > .bcm-p-icon { position: absolute; top: 0.4em; right: 0; }\n.bcm-p-dm-mine { text-align: right; }\n.bcm-p-dm-mine .bcm-p-actions { justify-content: flex-end; }\n.bcm-p-dm-hit { background: color-mix(in srgb, var(--bcm-p-accent) 14%, transparent); }\n.bcm-p-dm-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.2em 0; }\n.bcm-p-dm-meta { margin: 0; }\n.bcm-p-dm-box { width: 100%; resize: vertical; }\n.bcm-p-dm-sentence p { margin: 0.15em 0; }\n.bcm-p-dm-href { overflow-wrap: anywhere; }\n.bcm-p-dm-tabs { margin: 0.25em 0 0.75em; }\n.bcm-p-dm-tabs [aria-current='page'] { font-weight: 600; text-decoration: none; }\n";
5399
+ const css = "/* The private elements' one stylesheet (each shadow root carries it, with the CSP nonce). Colours follow the host's\n `color-scheme`; a host themes them through the custom properties below. */\n:host {\n --bcm-p-fg: CanvasText;\n --bcm-p-bg: Canvas;\n --bcm-p-muted: GrayText;\n --bcm-p-accent: #2f6f4f;\n --bcm-p-danger: #a3261f;\n --bcm-p-radius: 10px;\n display: block;\n font: inherit;\n color: var(--bcm-p-fg);\n}\n/* The host hides the dock on a page without unmounting it (§6.2): its session and windows stay. */\n:host([hidden-by-host]) {\n display: none !important;\n}\n:host([hidden]) {\n display: none;\n}\n.bcm-p-root { box-sizing: border-box; }\n.bcm-p-root *, .bcm-p-root *::before, .bcm-p-root *::after { box-sizing: inherit; }\n.bcm-p-screen h2 { font-size: 1.15em; margin: 0 0 0.5em; }\n.bcm-p-screen h3 { font-size: 1em; margin: 0.75em 0 0.25em; }\n.bcm-p-muted { color: var(--bcm-p-muted); font-size: 0.9em; }\n.bcm-p-note { border-left: 3px solid var(--bcm-p-accent); padding-left: 0.6em; }\n.bcm-p-warning { border-left: 3px solid var(--bcm-p-danger); padding-left: 0.6em; }\n.bcm-p-error { color: var(--bcm-p-danger); }\n.bcm-p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n.bcm-p-btn {\n font: inherit; cursor: pointer; border: 1px solid currentColor; background: transparent; color: inherit;\n border-radius: var(--bcm-p-radius); padding: 0.45em 0.9em; margin: 0.2em 0.4em 0.2em 0;\n}\n.bcm-p-btn:disabled { opacity: 0.55; cursor: default; }\n.bcm-p-primary { background: var(--bcm-p-accent); border-color: var(--bcm-p-accent); color: #fff; }\n.bcm-p-danger { border-color: var(--bcm-p-danger); color: var(--bcm-p-danger); }\n.bcm-p-link { font: inherit; background: none; border: 0; padding: 0.2em 0; color: var(--bcm-p-accent); cursor: pointer; text-decoration: underline; }\n.bcm-p-icon { font: inherit; background: none; border: 0; cursor: pointer; font-size: 1.3em; line-height: 1; color: inherit; }\n.bcm-p-input { font: inherit; padding: 0.45em; border: 1px solid var(--bcm-p-muted); border-radius: var(--bcm-p-radius); min-width: 10ch; }\n.bcm-p-row { display: flex; gap: 0.5em; align-items: center; flex-wrap: wrap; }\n.bcm-p-actions { display: flex; flex-wrap: wrap; gap: 0.25em; margin: 0.5em 0; }\n.bcm-p-list, .bcm-p-menu { list-style: none; padding: 0; margin: 0.5em 0; }\n.bcm-p-list > li { border-top: 1px solid color-mix(in srgb, var(--bcm-p-muted) 35%, transparent); padding: 0.5em 0; }\n.bcm-p-unread { font-weight: 600; }\n.bcm-p-badge { display: inline-block; font-size: 0.8em; border: 1px solid var(--bcm-p-muted); border-radius: 999px; padding: 0 0.5em; margin-left: 0.4em; }\n.bcm-p-code { font-family: ui-monospace, monospace; font-size: 1.4em; letter-spacing: 0.15em; }\n.bcm-p-check { display: flex; gap: 0.5em; align-items: flex-start; margin: 0.4em 0; }\n.bcm-p-legal { margin: 0.75em 0; }\n.bcm-p-legal-body { white-space: pre-wrap; max-height: 18em; overflow: auto; border: 1px solid color-mix(in srgb, var(--bcm-p-muted) 35%, transparent); border-radius: var(--bcm-p-radius); padding: 0.6em; }\n/* A legal text's blocks (LegalBlocks): the same scroll box; a run's `\\n` is a hard line break. */\n.bcm-p-legal-doc { max-height: 18em; overflow: auto; overflow-wrap: anywhere; white-space: pre-line; border: 1px solid color-mix(in srgb, var(--bcm-p-muted) 35%, transparent); border-radius: var(--bcm-p-radius); padding: 0 0.6em; }\n.bcm-p-legal-doc h3, .bcm-p-legal-doc h4, .bcm-p-legal-doc h5, .bcm-p-legal-doc h6 { font-size: 1em; margin: 0.9em 0 0.3em; }\n.bcm-p-legal-doc h3 { font-size: 1.08em; }\n.bcm-p-legal-doc p { margin: 0.5em 0; }\n.bcm-p-legal-doc ul, .bcm-p-legal-doc ol { margin: 0.5em 0; padding-left: 1.4em; }\n.bcm-p-legal-doc li > p { margin: 0.2em 0; }\n.bcm-p-legal-doc code { font-family: ui-monospace, monospace; font-size: 0.92em; }\n.bcm-p-legal-doc a { color: inherit; }\n.bcm-p-provider { margin-top: 1em; font-size: 0.85em; color: var(--bcm-p-muted); }\n.bcm-p-provider-links a { margin-right: 0.8em; color: inherit; }\n.bcm-p-dot { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--bcm-p-danger); margin-left: 0.35em; vertical-align: middle; }\n/* The dock: fixed to the bottom corner, windows beside the launcher. */\n.bcm-p-dock { position: fixed; right: 16px; bottom: 16px; z-index: 2147483000; display: flex; align-items: flex-end; gap: 12px; }\n.bcm-p-launcher {\n font: inherit; cursor: pointer; border: 0; border-radius: 999px; padding: 0.7em 1.1em; background: var(--bcm-p-accent); color: #fff;\n box-shadow: 0 4px 16px rgb(0 0 0 / 0.2); text-decoration: none;\n}\n.bcm-p-panel, .bcm-p-window {\n background: var(--bcm-p-bg); border-radius: var(--bcm-p-radius); box-shadow: 0 8px 28px rgb(0 0 0 / 0.25);\n width: 320px; max-height: 70vh; overflow: auto; padding: 0.8em;\n}\n.bcm-p-windows { display: flex; gap: 12px; align-items: flex-end; }\n.bcm-p-window-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; }\n.bcm-p-window-head h2 { font-size: 1em; margin: 0; }\n/* A phone: a window takes the whole screen. */\n.bcm-p-mobile .bcm-p-window { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; }\n.bcm-p-mobile .bcm-p-panel { position: fixed; left: 8px; right: 8px; bottom: 72px; width: auto; }\n/* The conversations (DM8b): the member's own messages to the right, search hits marked, the composer full width. */\n.bcm-p-dm-messages > li { position: relative; padding-right: 2em; }\n.bcm-p-dm-messages > li > .bcm-p-icon { position: absolute; top: 0.4em; right: 0; }\n.bcm-p-dm-mine { text-align: right; }\n.bcm-p-dm-mine .bcm-p-actions { justify-content: flex-end; }\n.bcm-p-dm-hit { background: color-mix(in srgb, var(--bcm-p-accent) 14%, transparent); }\n.bcm-p-dm-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.2em 0; }\n.bcm-p-dm-meta { margin: 0; }\n.bcm-p-dm-box { width: 100%; resize: vertical; }\n.bcm-p-dm-sentence p { margin: 0.15em 0; }\n.bcm-p-dm-href { overflow-wrap: anywhere; }\n.bcm-p-dm-tabs { margin: 0.25em 0 0.75em; }\n.bcm-p-dm-tabs [aria-current='page'] { font-weight: 600; text-decoration: none; }\n";
5249
5400
  const CHAT_DOCK_ELEMENT_TAG = "blogmcp-chat-dock";
5250
5401
  const PRIVATE_VIEW_ELEMENT_TAG = "blogmcp-private-view";
5251
5402
  const HIDDEN_BY_HOST_ATTR = "hidden-by-host";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ab, B, S, ac, D, t, r, F, u, s, q, M, N, p, P, V, T, W, R, Q, a0, Z, a5, $, U, a6, a7, O, a9, a8, X, a2, a1, _, Y, f, d, a, n, k, j, o, m, g, c, b, e, h, l, i, z, v, K, G, H, L, J, A, x, w, y, C, I, E, aa, a3, a4 } from "./chunks/mount-SKmc4NgD.js";
2
- const VERSION = "0.5.0";
2
+ const VERSION = "0.5.1";
3
3
  export {
4
4
  ab as AVATAR_PRESETS,
5
5
  B as BADGE_ELEMENT_TAG,
@@ -1,5 +1,5 @@
1
- import { A, h, C, F, D, L, N, M, E, B, X, n, o, H, T, U, V, t, k, j, P, s, J, I, K, z, G, x, l, e, a, d, b, y, S, w, O, i, q, Z, Q, m, c, R, u, f, v, p, g, r, W, Y } from "../chunks/private-mount-bhCQeScD.js";
2
- const VERSION = "0.5.0";
1
+ import { A, h, C, F, D, L, N, M, E, B, X, n, o, H, T, U, V, t, k, j, P, s, J, I, K, z, G, x, l, e, a, d, b, y, S, w, O, i, q, Z, Q, m, c, R, u, f, v, p, g, r, W, Y } from "../chunks/private-mount-BgfUSd3g.js";
2
+ const VERSION = "0.5.1";
3
3
  export {
4
4
  A as ACCOUNT_STATE_EVENTS,
5
5
  h as APPROVAL_LIMIT_CODES,
@@ -21,14 +21,14 @@ function useMounted(kind, props, load, inPlace = []) {
21
21
  return { host, element: createElement("div", { ref: host, "data-blogmcp-community": kind }) };
22
22
  }
23
23
  function KbChatDock(props) {
24
- const { host, element } = useMounted("chat-dock", props, async () => (await import("../chunks/private-mount-bhCQeScD.js").then((n) => n._)).mountChatDock, ["hiddenByHost"]);
24
+ const { host, element } = useMounted("chat-dock", props, async () => (await import("../chunks/private-mount-BgfUSd3g.js").then((n) => n._)).mountChatDock, ["hiddenByHost"]);
25
25
  useEffect(() => {
26
26
  host.current?.firstElementChild?.toggleAttribute(HIDDEN_BY_HOST, props.hiddenByHost === true);
27
27
  }, [host, props.hiddenByHost]);
28
28
  return element;
29
29
  }
30
30
  function KbPrivateView(props) {
31
- return useMounted("private-view", props, async () => (await import("../chunks/private-mount-bhCQeScD.js").then((n) => n._)).mountPrivateView).element;
31
+ return useMounted("private-view", props, async () => (await import("../chunks/private-mount-BgfUSd3g.js").then((n) => n._)).mountPrivateView).element;
32
32
  }
33
33
  export {
34
34
  KbChatDock,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A legal text's blocks (`legalTextBlocks`, §5.11 "Formatting") as elements with text in them, never as markup:
3
+ * headings two levels below the screen's `<h2>`, paragraphs, and lists whose items are this component again.
4
+ */
5
+ import type { LegalTextBlock } from '@blogmcp/sdk/community';
6
+ type __VLS_Props = {
7
+ blocks: readonly LegalTextBlock[];
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,7 @@
1
+ /** One run of a legal text: its text, inside `<strong>`, `<em>` and `<code>` as its marks say — text, never markup. */
2
+ import type { LegalTextRun } from '@blogmcp/sdk/community';
3
+ type __VLS_Props = {
4
+ run: LegalTextRun;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { LegalTextRun } from '@blogmcp/sdk/community';
2
+ type __VLS_Props = {
3
+ runs: readonly LegalTextRun[];
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * A legal text's blocks on a private screen (m4-contracts.md §5.11 "Formatting"): `legalTextBlocks` of the SDK parses
3
+ * the body's Markdown subset, and the components render the blocks as elements with text in them — never as markup.
4
+ * The session's placeholders are filled in the runs, after parsing, so a filled value is never read as Markdown.
5
+ */
6
+ import type { LegalTextBlock, LegalTextRun } from '@blogmcp/sdk/community';
7
+ /** The blocks with every run's text passed through `fill`. */
8
+ export declare function fillBlocks(blocks: readonly LegalTextBlock[], fill: (text: string) => string): LegalTextBlock[];
9
+ /** Consecutive runs of one link together (one `<a>`), the rest one by one with no href. */
10
+ export declare function linkGroups(runs: readonly LegalTextRun[]): Array<{
11
+ href: string | null;
12
+ runs: LegalTextRun[];
13
+ }>;
14
+ /** A text's heading level on a screen: two below the screen's own `<h2>`, at most `<h6>`. */
15
+ export declare const headingLevel: (level: number) => 3 | 4 | 5 | 6;
@@ -50,7 +50,7 @@ const KbChatDock = defineComponent({
50
50
  props: { ...commonProps, hiddenByHost: Boolean },
51
51
  setup(props) {
52
52
  const opts = () => defined({ ...props, hiddenByHost: void 0 });
53
- const host = useMount("chat-dock", opts, async () => (await import("../chunks/private-mount-bhCQeScD.js").then((n) => n._)).mountChatDock, (el) => el?.toggleAttribute(HIDDEN_BY_HOST, props.hiddenByHost));
53
+ const host = useMount("chat-dock", opts, async () => (await import("../chunks/private-mount-BgfUSd3g.js").then((n) => n._)).mountChatDock, (el) => el?.toggleAttribute(HIDDEN_BY_HOST, props.hiddenByHost));
54
54
  watch(
55
55
  () => props.hiddenByHost,
56
56
  (hidden) => host.value?.firstElementChild?.toggleAttribute(HIDDEN_BY_HOST, hidden)
@@ -62,7 +62,7 @@ const KbPrivateView = defineComponent({
62
62
  name: "KbPrivateView",
63
63
  props: { ...commonProps, screen: String },
64
64
  setup(props) {
65
- const host = useMount("private-view", () => defined({ ...props }), async () => (await import("../chunks/private-mount-bhCQeScD.js").then((n) => n._)).mountPrivateView);
65
+ const host = useMount("private-view", () => defined({ ...props }), async () => (await import("../chunks/private-mount-BgfUSd3g.js").then((n) => n._)).mountPrivateView);
66
66
  return () => h("div", { ref: host, "data-blogmcp-community": "private-view" });
67
67
  }
68
68
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blogmcp/community",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Community elements for your own site: the discussion under an article, the DSA notice form and the reader's „My community” panel. Custom elements + Vue/React wrappers + a script build, over @blogmcp/sdk/community.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -59,8 +59,8 @@
59
59
  "postpack": "node ../../scripts/pack-dist-types.mjs postpack"
60
60
  },
61
61
  "dependencies": {
62
- "@blogmcp/sanitize": "^0.14.0",
63
- "@blogmcp/sdk": "^0.14.0",
62
+ "@blogmcp/sanitize": "^0.14.1",
63
+ "@blogmcp/sdk": "^0.14.1",
64
64
  "vue": "^3.5.0"
65
65
  },
66
66
  "peerDependencies": {
@@ -0,0 +1,30 @@
1
+ <script setup lang="ts">
2
+ /**
3
+ * A legal text's blocks (`legalTextBlocks`, §5.11 "Formatting") as elements with text in them, never as markup:
4
+ * headings two levels below the screen's `<h2>`, paragraphs, and lists whose items are this component again.
5
+ */
6
+ import type { LegalTextBlock } from '@blogmcp/sdk/community'
7
+ import LegalRuns from './LegalRuns.vue'
8
+ import { headingLevel } from './legal'
9
+
10
+ defineOptions({ name: 'LegalBlocks' })
11
+ defineProps<{ blocks: readonly LegalTextBlock[] }>()
12
+ </script>
13
+
14
+ <template>
15
+ <template v-for="(b, i) in blocks" :key="i">
16
+ <template v-if="b.type === 'heading'">
17
+ <h3 v-if="headingLevel(b.level) === 3"><LegalRuns :runs="b.runs" /></h3>
18
+ <h4 v-else-if="headingLevel(b.level) === 4"><LegalRuns :runs="b.runs" /></h4>
19
+ <h5 v-else-if="headingLevel(b.level) === 5"><LegalRuns :runs="b.runs" /></h5>
20
+ <h6 v-else><LegalRuns :runs="b.runs" /></h6>
21
+ </template>
22
+ <p v-else-if="b.type === 'paragraph'"><LegalRuns :runs="b.runs" /></p>
23
+ <ol v-else-if="b.type === 'list' && b.ordered" :start="b.start">
24
+ <li v-for="(item, k) in b.items" :key="k"><LegalBlocks :blocks="item.blocks" /></li>
25
+ </ol>
26
+ <ul v-else-if="b.type === 'list'">
27
+ <li v-for="(item, k) in b.items" :key="k"><LegalBlocks :blocks="item.blocks" /></li>
28
+ </ul>
29
+ </template>
30
+ </template>
@@ -0,0 +1,13 @@
1
+ <script setup lang="ts">
2
+ /** One run of a legal text: its text, inside `<strong>`, `<em>` and `<code>` as its marks say — text, never markup. */
3
+ import type { LegalTextRun } from '@blogmcp/sdk/community'
4
+
5
+ defineProps<{ run: LegalTextRun }>()
6
+ </script>
7
+
8
+ <template>
9
+ <strong v-if="run.strong"><em v-if="run.em"><code v-if="run.code">{{ run.text }}</code><template v-else>{{ run.text }}</template></em><code v-else-if="run.code">{{ run.text }}</code><template v-else>{{ run.text }}</template></strong>
10
+ <em v-else-if="run.em"><code v-if="run.code">{{ run.text }}</code><template v-else>{{ run.text }}</template></em>
11
+ <code v-else-if="run.code">{{ run.text }}</code>
12
+ <template v-else>{{ run.text }}</template>
13
+ </template>
@@ -0,0 +1,20 @@
1
+ <script setup lang="ts">
2
+ /**
3
+ * A block's runs: a link's runs in one `<a>` to the https: or mailto: address the blocks carry (never anything else),
4
+ * opened beside the private view so the screen stays where it is; every run through LegalRun.
5
+ */
6
+ import { computed } from 'vue'
7
+ import type { LegalTextRun } from '@blogmcp/sdk/community'
8
+ import LegalRun from './LegalRun.vue'
9
+ import { linkGroups } from './legal'
10
+
11
+ const props = defineProps<{ runs: readonly LegalTextRun[] }>()
12
+ const groups = computed(() => linkGroups(props.runs))
13
+ </script>
14
+
15
+ <template>
16
+ <template v-for="(g, i) in groups" :key="i">
17
+ <a v-if="g.href" :href="g.href" target="_blank" rel="noopener noreferrer"><LegalRun v-for="(r, k) in g.runs" :key="k" :run="r" /></a>
18
+ <template v-else><LegalRun v-for="(r, k) in g.runs" :key="k" :run="r" /></template>
19
+ </template>
20
+ </template>
@@ -1,18 +1,25 @@
1
1
  <script setup lang="ts">
2
- /** One text as kb-api served it (§5.11): its version and its body, as text — never as markup. */
2
+ /**
3
+ * One text as kb-api served it (§5.11): its version and its body. The body's Markdown subset (headings, paragraphs,
4
+ * lists, bold, links; §5.11 "Formatting") is parsed into blocks by the SDK and rendered by LegalBlocks as elements with
5
+ * text in them — never as markup; the session's placeholders are filled in the parsed runs.
6
+ */
3
7
  import { computed } from 'vue'
8
+ import { legalTextBlocks } from '@blogmcp/sdk/community'
4
9
  import type { PrivateLegalText } from '@blogmcp/sdk/community/private'
5
10
  import type { Lang } from '../i18n'
11
+ import LegalBlocks from './LegalBlocks.vue'
12
+ import { fillBlocks } from './legal'
6
13
  import { fillDisplay, screenText } from './text'
7
14
 
8
15
  const props = defineProps<{ text: PrivateLegalText; lang: Lang; display: { approvalEmail: string | null; deviceLabel: string } | null; acceptedAt: string }>()
9
16
  const tx = computed(() => screenText(props.lang))
10
- const body = computed(() => fillDisplay(props.text.body, props.display, props.acceptedAt))
17
+ const blocks = computed(() => fillBlocks(legalTextBlocks(props.text.body), (s) => fillDisplay(s, props.display, props.acceptedAt)))
11
18
  </script>
12
19
 
13
20
  <template>
14
21
  <article class="bcm-p-legal" :data-text-kind="text.kind">
15
22
  <p class="bcm-p-muted">{{ tx.pt('private.activation.version', { version: text.version }) }}</p>
16
- <div class="bcm-p-legal-body">{{ body }}</div>
23
+ <div class="bcm-p-legal-doc"><LegalBlocks :blocks="blocks" /></div>
17
24
  </article>
18
25
  </template>
@@ -0,0 +1,29 @@
1
+ /**
2
+ * A legal text's blocks on a private screen (m4-contracts.md §5.11 "Formatting"): `legalTextBlocks` of the SDK parses
3
+ * the body's Markdown subset, and the components render the blocks as elements with text in them — never as markup.
4
+ * The session's placeholders are filled in the runs, after parsing, so a filled value is never read as Markdown.
5
+ */
6
+ import type { LegalTextBlock, LegalTextRun } from '@blogmcp/sdk/community'
7
+
8
+ /** The blocks with every run's text passed through `fill`. */
9
+ export function fillBlocks(blocks: readonly LegalTextBlock[], fill: (text: string) => string): LegalTextBlock[] {
10
+ return blocks.map((b): LegalTextBlock => {
11
+ if (b.type === 'list') return { ...b, items: b.items.map((item) => ({ blocks: fillBlocks(item.blocks, fill) })) }
12
+ return { ...b, runs: b.runs.map((r) => ({ ...r, text: fill(r.text) })) }
13
+ })
14
+ }
15
+
16
+ /** Consecutive runs of one link together (one `<a>`), the rest one by one with no href. */
17
+ export function linkGroups(runs: readonly LegalTextRun[]): Array<{ href: string | null; runs: LegalTextRun[] }> {
18
+ const out: Array<{ href: string | null; runs: LegalTextRun[] }> = []
19
+ for (const run of runs) {
20
+ const href = run.href ?? null
21
+ const last = out[out.length - 1]
22
+ if (href !== null && last && last.href === href) last.runs.push(run)
23
+ else out.push({ href, runs: [run] })
24
+ }
25
+ return out
26
+ }
27
+
28
+ /** A text's heading level on a screen: two below the screen's own `<h2>`, at most `<h6>`. */
29
+ export const headingLevel = (level: number): 3 | 4 | 5 | 6 => Math.min(6, Math.max(3, level + 2)) as 3 | 4 | 5 | 6
@@ -47,6 +47,15 @@
47
47
  .bcm-p-check { display: flex; gap: 0.5em; align-items: flex-start; margin: 0.4em 0; }
48
48
  .bcm-p-legal { margin: 0.75em 0; }
49
49
  .bcm-p-legal-body { white-space: pre-wrap; max-height: 18em; overflow: auto; border: 1px solid color-mix(in srgb, var(--bcm-p-muted) 35%, transparent); border-radius: var(--bcm-p-radius); padding: 0.6em; }
50
+ /* A legal text's blocks (LegalBlocks): the same scroll box; a run's `\n` is a hard line break. */
51
+ .bcm-p-legal-doc { max-height: 18em; overflow: auto; overflow-wrap: anywhere; white-space: pre-line; border: 1px solid color-mix(in srgb, var(--bcm-p-muted) 35%, transparent); border-radius: var(--bcm-p-radius); padding: 0 0.6em; }
52
+ .bcm-p-legal-doc h3, .bcm-p-legal-doc h4, .bcm-p-legal-doc h5, .bcm-p-legal-doc h6 { font-size: 1em; margin: 0.9em 0 0.3em; }
53
+ .bcm-p-legal-doc h3 { font-size: 1.08em; }
54
+ .bcm-p-legal-doc p { margin: 0.5em 0; }
55
+ .bcm-p-legal-doc ul, .bcm-p-legal-doc ol { margin: 0.5em 0; padding-left: 1.4em; }
56
+ .bcm-p-legal-doc li > p { margin: 0.2em 0; }
57
+ .bcm-p-legal-doc code { font-family: ui-monospace, monospace; font-size: 0.92em; }
58
+ .bcm-p-legal-doc a { color: inherit; }
50
59
  .bcm-p-provider { margin-top: 1em; font-size: 0.85em; color: var(--bcm-p-muted); }
51
60
  .bcm-p-provider-links a { margin-right: 0.8em; color: inherit; }
52
61
  .bcm-p-dot { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--bcm-p-danger); margin-left: 0.35em; vertical-align: middle; }