docblocks-react-ui 0.9.1 → 0.10.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/CHANGELOG.md +36 -0
- package/dist/{Editor-DEHzA7Mt.mjs → Editor-BZjfHAO5.mjs} +56 -71
- package/dist/{index-DmC2uQ2K.d.mts → index-DzYwo6Px.d.mts} +71 -28
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/mermaid/index.mjs +1 -1
- package/dist/pdf/index.d.mts +1 -1
- package/dist/styles.css +0 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d51bd43: **Consumer-owned tags: the `docTags` contract (the document's no-storage's
|
|
8
|
+
stand).**
|
|
9
|
+
|
|
10
|
+
The `tags` row of the document-attributes panel no longer reads or writes
|
|
11
|
+
the document's `attributes.tags` record: the tags are never document data
|
|
12
|
+
(a consumer that stores its tags in its own database no longer races the
|
|
13
|
+
document's copy). The consumer passes the tags over the new `docTags`
|
|
14
|
+
provider prop and the panel displays the passed list and reports the
|
|
15
|
+
user's tag actions:
|
|
16
|
+
|
|
17
|
+
- `docTags.tags` — the document's tags (`{ id, label }[]`; the
|
|
18
|
+
consumer's type may extend it — the extra fields stay opaque);
|
|
19
|
+
- `docTags.onTagAdd` — the add affordance's click (the consumer opens its
|
|
20
|
+
own creation's UI — the tag's picker over its catalog, the creation's
|
|
21
|
+
flow; the package opens nothing);
|
|
22
|
+
- `docTags.onTagRemove(tag)` — the chip's removal (the consumer removes
|
|
23
|
+
over its own store and passes the updated list back over `tags`);
|
|
24
|
+
- `docTags.onTagClick(tag, event)` — the chip's click (the native
|
|
25
|
+
`MouseEvent`; the package opens nothing and preventDefaults nothing —
|
|
26
|
+
the navigation's stand is the consumer's); it stands over the read-only
|
|
27
|
+
modes too (the observing gesture's parity).
|
|
28
|
+
|
|
29
|
+
**Breaking (the 0.x's minor's stand)**: the `tagEditor` provider prop (and
|
|
30
|
+
its `TagEditor` / `TagEditorProps` types, exported since 0.9.0) is removed
|
|
31
|
+
— its contract committed the list into the document (the
|
|
32
|
+
`onTagsChange`'s `setAttribute`), which the consumer-owned stand
|
|
33
|
+
supersedes. A consumer on 0.9.x migrates over the `docTags`'s contract
|
|
34
|
+
(the chips' display stands unchanged); the legacy's stored
|
|
35
|
+
`attributes.tags` data stays readable over `doc.meta.attributes`
|
|
36
|
+
(migration's read) and the markdown frontmatter's import keeps writing it
|
|
37
|
+
(the data's stand — the panel is decoupled from the record).
|
|
38
|
+
|
|
3
39
|
## 0.9.1
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
|
@@ -4007,7 +4007,7 @@ const INIT_OPTIONS = {
|
|
|
4007
4007
|
"listAddAria": "Add a line to {name}",
|
|
4008
4008
|
"listLineAria": "Line {index} of {name}",
|
|
4009
4009
|
"listLineRemoveAria": "Remove line {index}",
|
|
4010
|
-
"
|
|
4010
|
+
"addTag": "Add a tag",
|
|
4011
4011
|
"addTagAria": "Add a tag",
|
|
4012
4012
|
"uploadCoverAria": "Upload the cover",
|
|
4013
4013
|
"removeCoverAria": "Remove the cover",
|
|
@@ -4505,7 +4505,7 @@ const INIT_OPTIONS = {
|
|
|
4505
4505
|
"listAddAria": "Добавить строку в {name}",
|
|
4506
4506
|
"listLineAria": "Строка {index} ключа {name}",
|
|
4507
4507
|
"listLineRemoveAria": "Удалить строку {index}",
|
|
4508
|
-
"
|
|
4508
|
+
"addTag": "Добавить тег",
|
|
4509
4509
|
"addTagAria": "Добавить тег",
|
|
4510
4510
|
"uploadCoverAria": "Загрузить обложку",
|
|
4511
4511
|
"removeCoverAria": "Удалить обложку",
|
|
@@ -30216,7 +30216,7 @@ function publishedStandKey(doc) {
|
|
|
30216
30216
|
* its own. Safe under StrictMode double-mount: the cleanup detaches every
|
|
30217
30217
|
* subscription and destroys the view between the two mounts.
|
|
30218
30218
|
*/
|
|
30219
|
-
function EditorProviderStand({ doc, provider, blockRenderers, blobStore, databaseBridge, syncEmbedResolver, pdfPreview, mentionProvider, mentionInteractions, embedSandbox, rootBlockId, commandPalettePlaceholder, accessLevel, mode, publishedDoc, presence, hiddenAttributes,
|
|
30219
|
+
function EditorProviderStand({ doc, provider, blockRenderers, blobStore, databaseBridge, syncEmbedResolver, pdfPreview, mentionProvider, mentionInteractions, embedSandbox, rootBlockId, commandPalettePlaceholder, accessLevel, mode, publishedDoc, presence, hiddenAttributes, renderAttribute, attributeTypePicker, docTags, children }) {
|
|
30220
30220
|
const rootId = rootBlockId ?? doc.meta.id;
|
|
30221
30221
|
const [store] = useState(() => createEditorStore(doc, rootId));
|
|
30222
30222
|
const docRef = useRef(doc);
|
|
@@ -30369,9 +30369,9 @@ function EditorProviderStand({ doc, provider, blockRenderers, blobStore, databas
|
|
|
30369
30369
|
mentionProvider: mentionProvider ?? parent?.mentionProvider ?? null,
|
|
30370
30370
|
mentionInteractions: mentionInteractions ?? parent?.mentionInteractions ?? null,
|
|
30371
30371
|
hiddenAttributes: hiddenAttributes ?? parent?.hiddenAttributes ?? [],
|
|
30372
|
-
tagEditor: tagEditor ?? parent?.tagEditor ?? null,
|
|
30373
30372
|
renderAttribute: renderAttribute ?? parent?.renderAttribute ?? null,
|
|
30374
30373
|
attributeTypePicker: attributeTypePicker ?? parent?.attributeTypePicker ?? null,
|
|
30374
|
+
docTags: docTags ?? parent?.docTags ?? null,
|
|
30375
30375
|
embedSandbox: embedSandbox ?? parent?.embedSandbox ?? defaultEmbedSandbox,
|
|
30376
30376
|
rootBlockId: rootId,
|
|
30377
30377
|
ancestorDocIds: parent ? [...parent.ancestorDocIds, parent.doc.meta.id] : [],
|
|
@@ -30400,9 +30400,9 @@ function EditorProviderStand({ doc, provider, blockRenderers, blobStore, databas
|
|
|
30400
30400
|
effectiveMode,
|
|
30401
30401
|
presence,
|
|
30402
30402
|
hiddenAttributes,
|
|
30403
|
-
tagEditor,
|
|
30404
30403
|
renderAttribute,
|
|
30405
|
-
attributeTypePicker
|
|
30404
|
+
attributeTypePicker,
|
|
30405
|
+
docTags
|
|
30406
30406
|
]);
|
|
30407
30407
|
const inheritedPublishedStand = parentContext !== null && parentContext.mode === "published";
|
|
30408
30408
|
const rendered = effectiveAccessLevel === "viewer" && parentContext === null ? children : effectiveMode === "published" ? publishedDoc !== void 0 && publishedDoc !== null ? /* @__PURE__ */ jsx(EditorProvider, {
|
|
@@ -31094,58 +31094,51 @@ function DraggableAttributeRow({ attributeKey, onDragStart, onDragEnd, topAlign,
|
|
|
31094
31094
|
});
|
|
31095
31095
|
}
|
|
31096
31096
|
//#endregion
|
|
31097
|
-
//#region src/attributes/
|
|
31098
|
-
/** The tags
|
|
31099
|
-
*
|
|
31100
|
-
|
|
31101
|
-
* border only). */
|
|
31102
|
-
function TagsEditor({ tags, readOnly, onTagsChange }) {
|
|
31097
|
+
//#region src/attributes/TagsZone.tsx
|
|
31098
|
+
/** The tags zone's props (the panel's pass-through over the `docTags`'s
|
|
31099
|
+
* contract + the read-only stand). */
|
|
31100
|
+
function TagsZone({ tags, readOnly, onTagAdd, onTagRemove, onTagClick }) {
|
|
31103
31101
|
const { t } = useTranslation("editor");
|
|
31104
|
-
|
|
31105
|
-
|
|
31106
|
-
|
|
31107
|
-
|
|
31108
|
-
|
|
31109
|
-
|
|
31110
|
-
|
|
31111
|
-
|
|
31112
|
-
|
|
31113
|
-
|
|
31102
|
+
if (tags.length === 0) {
|
|
31103
|
+
if (readOnly || onTagAdd === void 0) return /* @__PURE__ */ jsx("span", {
|
|
31104
|
+
className: "text-muted-foreground",
|
|
31105
|
+
children: t("attributes.notSet")
|
|
31106
|
+
});
|
|
31107
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
31108
|
+
type: "button",
|
|
31109
|
+
"data-slot": "docblocks/attributes-tag-add",
|
|
31110
|
+
"aria-label": t("attributes.addTagAria"),
|
|
31111
|
+
className: "\n flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs text-muted-foreground\n hover:bg-muted/50 hover:text-foreground\n ",
|
|
31112
|
+
onClick: () => onTagAdd(),
|
|
31113
|
+
children: [/* @__PURE__ */ jsx(Plus, { className: "size-3" }), t("attributes.addTag")]
|
|
31114
|
+
});
|
|
31115
|
+
}
|
|
31114
31116
|
return /* @__PURE__ */ jsxs("div", {
|
|
31115
31117
|
"data-slot": "docblocks/attributes-tags",
|
|
31116
31118
|
className: "flex flex-wrap items-center gap-1.5",
|
|
31117
31119
|
children: [tags.map((tag) => /* @__PURE__ */ jsxs("span", {
|
|
31118
31120
|
"data-slot": "docblocks/attributes-tag",
|
|
31119
|
-
|
|
31120
|
-
|
|
31121
|
+
"data-tag-id": tag.id,
|
|
31122
|
+
className: cn("inline-flex items-center gap-1 rounded-md bg-muted px-1.5 py-0.5 text-xs", onTagClick !== void 0 && "cursor-pointer"),
|
|
31123
|
+
onClick: onTagClick !== void 0 ? (event) => onTagClick(tag, event.nativeEvent) : void 0,
|
|
31124
|
+
children: [tag.label, readOnly || onTagRemove === void 0 ? null : /* @__PURE__ */ jsx("button", {
|
|
31121
31125
|
type: "button",
|
|
31122
31126
|
"data-slot": "docblocks/attributes-tag-remove",
|
|
31123
|
-
"aria-label": tag,
|
|
31127
|
+
"aria-label": t("attributes.removeAria", { name: tag.label }),
|
|
31124
31128
|
className: "text-muted-foreground hover:text-foreground",
|
|
31125
|
-
onClick: () =>
|
|
31129
|
+
onClick: (event) => {
|
|
31130
|
+
event.stopPropagation();
|
|
31131
|
+
onTagRemove(tag);
|
|
31132
|
+
},
|
|
31126
31133
|
children: /* @__PURE__ */ jsx(X, { className: "size-3" })
|
|
31127
31134
|
})]
|
|
31128
|
-
}, tag)), readOnly ? null : /* @__PURE__ */
|
|
31129
|
-
|
|
31135
|
+
}, tag.id)), readOnly || onTagAdd === void 0 ? null : /* @__PURE__ */ jsxs("button", {
|
|
31136
|
+
type: "button",
|
|
31137
|
+
"data-slot": "docblocks/attributes-tag-add",
|
|
31130
31138
|
"aria-label": t("attributes.addTagAria"),
|
|
31131
|
-
|
|
31132
|
-
|
|
31133
|
-
|
|
31134
|
-
value: draft,
|
|
31135
|
-
onChange: (event) => setDraft(event.target.value),
|
|
31136
|
-
onKeyDown: (event) => {
|
|
31137
|
-
if (event.key === "Enter" || event.key === ",") {
|
|
31138
|
-
event.preventDefault();
|
|
31139
|
-
addTag(draft);
|
|
31140
|
-
setDraft("");
|
|
31141
|
-
} else if (event.key === "Backspace" && draft === "" && tags.length > 0) commit(tags.slice(0, -1));
|
|
31142
|
-
},
|
|
31143
|
-
onBlur: () => {
|
|
31144
|
-
if (draft.trim() !== "") {
|
|
31145
|
-
addTag(draft);
|
|
31146
|
-
setDraft("");
|
|
31147
|
-
}
|
|
31148
|
-
}
|
|
31139
|
+
className: "\n flex items-center gap-1 rounded-md px-1.5 py-0.5 text-xs text-muted-foreground\n hover:bg-muted/50 hover:text-foreground\n ",
|
|
31140
|
+
onClick: () => onTagAdd(),
|
|
31141
|
+
children: [/* @__PURE__ */ jsx(Plus, { className: "size-3" }), t("attributes.addTag")]
|
|
31149
31142
|
})]
|
|
31150
31143
|
});
|
|
31151
31144
|
}
|
|
@@ -31163,8 +31156,10 @@ function TagsEditor({ tags, readOnly, onTagsChange }) {
|
|
|
31163
31156
|
* record — the typed value's stand). Over the read-only stands (the
|
|
31164
31157
|
* view / published's modes) every row stands display-only.
|
|
31165
31158
|
* `hiddenAttributes` hides the named rows (the preset and the custom
|
|
31166
|
-
* keys, the system rows); `
|
|
31167
|
-
* `
|
|
31159
|
+
* keys, the system rows); the `tags` row is the consumer-owned stand (the
|
|
31160
|
+
* `docTags`'s prop: the chips over the passed list + the add affordance's
|
|
31161
|
+
* click over the consumer's own creation's UI + the chip's removal/click
|
|
31162
|
+
* events — the tags are never document data); `renderAttribute` replaces a row's value zone over its key; the
|
|
31168
31163
|
* custom-attribute add's entry stands over the list's tail (the button —
|
|
31169
31164
|
* the popover's type pick + the name's draft + the commit; the row's
|
|
31170
31165
|
* creation over the type's initial form), and `attributeTypePicker`
|
|
@@ -31180,7 +31175,7 @@ function TagsEditor({ tags, readOnly, onTagsChange }) {
|
|
|
31180
31175
|
*
|
|
31181
31176
|
* The row's unit files stand the pieces (the convention's one-component
|
|
31182
31177
|
* files): `AttributeRow` (the row's frame), `DraggableAttributeRow` (the
|
|
31183
|
-
* drag's wrapper), `DisplayValue` (the display's stand), `
|
|
31178
|
+
* drag's wrapper), `DisplayValue` (the display's stand), `TagsZone` /
|
|
31184
31179
|
* `ListEditor` / `CoverEditor` (the preset's editors),
|
|
31185
31180
|
* `AddAttributePopover` (the add's entry), `value-utils` (the value's
|
|
31186
31181
|
* pure reads).
|
|
@@ -31189,7 +31184,7 @@ function TagsEditor({ tags, readOnly, onTagsChange }) {
|
|
|
31189
31184
|
* over the editor's subtree only). */
|
|
31190
31185
|
function AttributesPanel() {
|
|
31191
31186
|
const { t, i18n } = useTranslation("editor");
|
|
31192
|
-
const { store, doc, viewMode, hiddenAttributes,
|
|
31187
|
+
const { store, doc, viewMode, hiddenAttributes, renderAttribute, attributeTypePicker, docTags } = useEditorContext();
|
|
31193
31188
|
const meta = useStore(store, (state) => state.meta);
|
|
31194
31189
|
useStore(store, (state) => state.changeStamp);
|
|
31195
31190
|
const [open, setOpen] = useState(false);
|
|
@@ -31261,8 +31256,10 @@ function AttributesPanel() {
|
|
|
31261
31256
|
});
|
|
31262
31257
|
return node === null ? defaultZone : node;
|
|
31263
31258
|
};
|
|
31264
|
-
const
|
|
31265
|
-
|
|
31259
|
+
const notSet = /* @__PURE__ */ jsx("span", {
|
|
31260
|
+
className: "text-muted-foreground",
|
|
31261
|
+
children: t("attributes.notSet")
|
|
31262
|
+
});
|
|
31266
31263
|
const customKeysAll = Object.keys(attributes).filter((key) => !isPresetKey(key));
|
|
31267
31264
|
const derivedCustomOrder = orderedCustomKeys(meta.attributesOrder, customKeysAll);
|
|
31268
31265
|
const [dragOrder, setDragOrder] = useState(null);
|
|
@@ -31304,7 +31301,6 @@ function AttributesPanel() {
|
|
|
31304
31301
|
doc.reorderAttributes(nextFull);
|
|
31305
31302
|
} catch {}
|
|
31306
31303
|
};
|
|
31307
|
-
const TagEditor = tagEditor;
|
|
31308
31304
|
const locale = i18n.language;
|
|
31309
31305
|
const inlineEdit = (key, slot, label, initial, commit, placeholder) => /* @__PURE__ */ jsx(InlineEditInput, {
|
|
31310
31306
|
initial,
|
|
@@ -31326,10 +31322,6 @@ function AttributesPanel() {
|
|
|
31326
31322
|
},
|
|
31327
31323
|
children: display
|
|
31328
31324
|
}) : null;
|
|
31329
|
-
const notSet = /* @__PURE__ */ jsx("span", {
|
|
31330
|
-
className: "text-muted-foreground",
|
|
31331
|
-
children: t("attributes.notSet")
|
|
31332
|
-
});
|
|
31333
31325
|
/** The custom row's stand (the key's rename's entry over the key's
|
|
31334
31326
|
* column; the value zone's editors over the type's stand). */
|
|
31335
31327
|
/** The custom value's commit (the type's parsing's stand: the empty's
|
|
@@ -31467,21 +31459,14 @@ function AttributesPanel() {
|
|
|
31467
31459
|
hidden.has("tags") ? null : /* @__PURE__ */ jsx(AttributeRow, {
|
|
31468
31460
|
attributeKey: "tags",
|
|
31469
31461
|
label: t("attributes.tags"),
|
|
31470
|
-
removable:
|
|
31471
|
-
|
|
31472
|
-
|
|
31473
|
-
children: valueZone("tags", TagEditor !== null ? /* @__PURE__ */ jsx(TagEditor, {
|
|
31474
|
-
tags: tagsList,
|
|
31475
|
-
readOnly: viewMode,
|
|
31476
|
-
onTagsChange: (tags) => set("tags", tags)
|
|
31477
|
-
}) : /* @__PURE__ */ jsx(TagsEditor, {
|
|
31478
|
-
tags: tagsList,
|
|
31462
|
+
removable: false,
|
|
31463
|
+
children: docTags === null ? notSet : /* @__PURE__ */ jsx(TagsZone, {
|
|
31464
|
+
tags: docTags.tags,
|
|
31479
31465
|
readOnly: viewMode,
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
}))
|
|
31466
|
+
onTagAdd: docTags.onTagAdd,
|
|
31467
|
+
onTagRemove: docTags.onTagRemove,
|
|
31468
|
+
onTagClick: docTags.onTagClick
|
|
31469
|
+
})
|
|
31485
31470
|
}, "tags"),
|
|
31486
31471
|
hidden.has("createdBy") ? null : /* @__PURE__ */ jsx(AttributeRow, {
|
|
31487
31472
|
attributeKey: "createdBy",
|
|
@@ -1062,17 +1062,53 @@ interface MentionInteractions {
|
|
|
1062
1062
|
*/
|
|
1063
1063
|
renderEmptyState?: (query: string) => ReactNode | null;
|
|
1064
1064
|
}
|
|
1065
|
-
/**
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1065
|
+
/**
|
|
1066
|
+
* A consumer-owned tag entry (the consumer's tag catalog): the stable id
|
|
1067
|
+
* (the removal / the event's identity) + the display label (the default
|
|
1068
|
+
* chip's text). The consumer's own type may extend it (the extra fields
|
|
1069
|
+
* stay opaque to the package).
|
|
1070
|
+
*/
|
|
1071
|
+
interface DocTag {
|
|
1072
|
+
id: string;
|
|
1073
|
+
label: string;
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* The consumer-owned tags contract (the `docTags` provider prop): the tags
|
|
1077
|
+
* are NEVER document data — the consumer's store is the source (the
|
|
1078
|
+
* document never stores or syncs them), and the panel displays the passed
|
|
1079
|
+
* list and reports the user's tag actions over the callbacks (the full
|
|
1080
|
+
* event surface — over the consumer-owned data there are no document
|
|
1081
|
+
* events: no wire, no undo). The panel's add affordance hands the
|
|
1082
|
+
* creation's flow to the consumer (its own picker over the tag catalog,
|
|
1083
|
+
* the creation's flow — the package opens nothing). Without the prop the
|
|
1084
|
+
* row stands the `notSet`'s display-only stand (the legacy's stored
|
|
1085
|
+
* `attributes.tags` data stands inert — the consumer's migration's read
|
|
1086
|
+
* over `doc.meta.attributes`).
|
|
1087
|
+
*/
|
|
1088
|
+
interface DocTags {
|
|
1089
|
+
/** The document's tags (the consumer's store's read; `[]` = none). */
|
|
1090
|
+
tags: readonly DocTag[];
|
|
1091
|
+
/**
|
|
1092
|
+
* The add affordance's click (the panel's "+ tag"'s trigger): the
|
|
1093
|
+
* consumer opens its own creation's UI and updates the passed list over
|
|
1094
|
+
* its own state. Without it the add affordance stands absent.
|
|
1095
|
+
*/
|
|
1096
|
+
onTagAdd?: () => void;
|
|
1097
|
+
/**
|
|
1098
|
+
* The chip's removal (the chip's `x`'s click): the consumer removes the
|
|
1099
|
+
* tag over its own store and passes the updated list back over `tags`.
|
|
1100
|
+
* Without it the chip stands without a removal affordance.
|
|
1101
|
+
*/
|
|
1102
|
+
onTagRemove?: (tag: DocTag) => void;
|
|
1103
|
+
/**
|
|
1104
|
+
* The chip's click (the chip's body — the removal's `x` does not fire
|
|
1105
|
+
* this): the native `MouseEvent`; the package opens nothing and
|
|
1106
|
+
* preventDefaults nothing (the navigation's stand — the tag's page — is
|
|
1107
|
+
* the consumer's). Stands over the read-only modes too (the observing
|
|
1108
|
+
* gesture's parity).
|
|
1109
|
+
*/
|
|
1110
|
+
onTagClick?: (tag: DocTag, event: MouseEvent) => void;
|
|
1073
1111
|
}
|
|
1074
|
-
/** The consumer's replacement of the default tags editor (the `tagEditor` provider prop). */
|
|
1075
|
-
type TagEditor = ComponentType<TagEditorProps>;
|
|
1076
1112
|
/** The props an attribute-value renderer receives (the `renderAttribute` provider prop). */
|
|
1077
1113
|
interface RenderAttributeProps {
|
|
1078
1114
|
/** The attribute's key (the preset key or the custom key). */
|
|
@@ -1160,12 +1196,12 @@ interface EditorContextValue {
|
|
|
1160
1196
|
mentionInteractions: MentionInteractions | null;
|
|
1161
1197
|
/** The attribute keys hidden from the document-attributes panel (the preset and the system keys); an empty list stands the full panel. */
|
|
1162
1198
|
hiddenAttributes: readonly string[];
|
|
1163
|
-
/** The consumer's tags editor (the `tagEditor` prop); null stands the default chip input. */
|
|
1164
|
-
tagEditor: TagEditor | null;
|
|
1165
1199
|
/** The consumer's per-key attribute-value renderer (the `renderAttribute` prop); null stands the built-in editors. */
|
|
1166
1200
|
renderAttribute: RenderAttribute | null;
|
|
1167
1201
|
/** The consumer's attribute type picker (the `attributeTypePicker` prop); null stands the built-in picker. */
|
|
1168
1202
|
attributeTypePicker: AttributeTypePicker | null;
|
|
1203
|
+
/** The consumer's tags contract (the `docTags` prop); null stands the display-only stand (the `notSet` over the row). */
|
|
1204
|
+
docTags: DocTags | null;
|
|
1169
1205
|
/** The effective embed sandbox policy (the consumer's, or the safe default) — always present. */
|
|
1170
1206
|
embedSandbox: EmbedSandboxPolicy;
|
|
1171
1207
|
/** The entry-list root: the document root by default, a subtree block otherwise. */
|
|
@@ -1305,24 +1341,31 @@ interface EditorProviderProps {
|
|
|
1305
1341
|
*/
|
|
1306
1342
|
hiddenAttributes?: readonly string[];
|
|
1307
1343
|
/**
|
|
1308
|
-
* Optional
|
|
1309
|
-
* row
|
|
1310
|
-
*
|
|
1311
|
-
*
|
|
1312
|
-
*
|
|
1313
|
-
*
|
|
1344
|
+
* Optional consumer-owned tags contract (the document-attributes panel's
|
|
1345
|
+
* `tags` row): the tags are never document data (the consumer's store is
|
|
1346
|
+
* the source — the document never stores or syncs them). The panel
|
|
1347
|
+
* displays the passed list and reports the user's tag actions: the add
|
|
1348
|
+
* affordance's click (`onTagAdd` — the consumer's own creation's UI: the
|
|
1349
|
+
* tag's picker over its catalog, the creation's flow), the chip's
|
|
1350
|
+
* removal (`onTagRemove`), and the chip's click (`onTagClick` — the
|
|
1351
|
+
* native event, the package opens nothing). Like the other
|
|
1352
|
+
* customization values, the value is read per render into the provider
|
|
1353
|
+
* context: pass a stable reference (a memoized object). A nested
|
|
1354
|
+
* provider that supplies none inherits the enclosing one.
|
|
1314
1355
|
*/
|
|
1315
|
-
|
|
1356
|
+
docTags?: DocTags;
|
|
1316
1357
|
/**
|
|
1317
1358
|
* Optional per-key replacement of the document-attributes panel's value
|
|
1318
|
-
* zone (a preset key — `description` / `
|
|
1319
|
-
* `status` / `publishedAt` — or a custom key
|
|
1359
|
+
* zone (a preset key — `description` / `createdBy` / `cover` /
|
|
1360
|
+
* `status` / `publishedAt` — or a custom key; the `tags` row is the
|
|
1361
|
+
* consumer-owned stand over the `docTags`'s prop and stands out of
|
|
1362
|
+
* this renderer's reach). The renderer receives the
|
|
1320
1363
|
* key, the current value, the commit / removal entries, and the
|
|
1321
1364
|
* read-only stand; `null` (or the absent stand) selects the built-in
|
|
1322
1365
|
* editor for that key. The row's label (the key's display name) is the
|
|
1323
|
-
* panel's — the consumer renders the value only. Like
|
|
1324
|
-
* value is read per render into the provider
|
|
1325
|
-
* reference.
|
|
1366
|
+
* panel's — the consumer renders the value only. Like the other
|
|
1367
|
+
* customization values, the value is read per render into the provider
|
|
1368
|
+
* context: pass a stable reference.
|
|
1326
1369
|
*/
|
|
1327
1370
|
renderAttribute?: RenderAttribute;
|
|
1328
1371
|
/**
|
|
@@ -1330,9 +1373,9 @@ interface EditorProviderProps {
|
|
|
1330
1373
|
* (the document-attributes panel's "add attribute" stand). The component
|
|
1331
1374
|
* receives the selected type and the pick's commit; the type's vocabulary
|
|
1332
1375
|
* is the shared `ATTRIBUTE_TYPES` enum (the consumer's picker stands its
|
|
1333
|
-
* own design over it). Like
|
|
1334
|
-
* into the provider context: pass a stable reference (the
|
|
1335
|
-
* module-level).
|
|
1376
|
+
* own design over it). Like the other customization values, the value is
|
|
1377
|
+
* read per render into the provider context: pass a stable reference (the
|
|
1378
|
+
* component is module-level).
|
|
1336
1379
|
*/
|
|
1337
1380
|
attributeTypePicker?: AttributeTypePicker;
|
|
1338
1381
|
/**
|
|
@@ -1411,4 +1454,4 @@ declare const DEFAULT_EMBED_SANDBOX = "allow-scripts allow-same-origin allow-for
|
|
|
1411
1454
|
/** Read the per-instance editor context; throws outside an EditorProvider. */
|
|
1412
1455
|
declare function useEditorContext(): EditorContextValue;
|
|
1413
1456
|
//#endregion
|
|
1414
|
-
export { IsoInstant as $, DatabaseTableProps as A, BlobStore as At, BatchOp as B, PresenceCrypto as C, BridgeError as Ct, PresenceSharingMode as D, toBridgeError as Dt, PresenceSharing as E, isBridgeErrorCode as Et, DatabaseTableRow as F, CellMap as G, BridgeColumnAnnotation as H, UseDatabaseTable as I, DatabaseBridge as J, CellValueParse as K, emptyFilter as L, UseTableList as M, useDatabaseTable as N, useTableList as O, BlobMeta as Ot, DatabaseTablePhase as P, Id as Q, filterIsComplete as R,
|
|
1457
|
+
export { IsoInstant as $, DatabaseTableProps as A, BlobStore as At, BatchOp as B, PresenceCrypto as C, BridgeError as Ct, PresenceSharingMode as D, toBridgeError as Dt, PresenceSharing as E, isBridgeErrorCode as Et, DatabaseTableRow as F, CellMap as G, BridgeColumnAnnotation as H, UseDatabaseTable as I, DatabaseBridge as J, CellValueParse as K, emptyFilter as L, UseTableList as M, useDatabaseTable as N, useTableList as O, BlobMeta as Ot, DatabaseTablePhase as P, Id as Q, filterIsComplete as R, SyncEmbedResolver as S, BRIDGE_ERROR_CODES as St, PresencePeer as T, isBridgeError as Tt, BridgeTableDescription as U, BridgeColumn as V, BridgeValueInput as W, FilterConditionInput as X, DomainEvent as Y, FilterInput as Z, PdfPreviewProps as _, TableDescription as _t, AttributeTypePicker as a, ProtocolCapability as at, RenderAttributeProps as b, TableRef as bt, DocTags as c, QueryOperator as ct, EditorProviderProps as d, RowPage as dt, MutationContext as et, EmbedSandboxPolicy as f, RowWire as ft, PdfPreview as g, SubscriptionStatus as gt, MentionProvider as h, SubscriptionObserver as ht, AccessLevel as i, PageSnapshot as it, DatabaseTableView as j, createMemoryBlobStore as jt, DatabaseTable as k, BlobRef as kt, EditorContextValue as l, QuerySemantics as lt, MentionInteractions as m, SubscriptionHandle as mt, DEFAULT_EMBED_SANDBOX as n, OperationStatus as nt, AttributeTypePickerProps as o, ProtocolDescriptor as ot, MentionEntry as p, SortInput as pt, Column as q, EditorProvider as r, PageQuery as rt, DocTag as s, ProtocolLimits as st, useEditorContext as t, MutationReceipt as tt, EditorMode as u, Revision as ut, PresenceConfig as v, TableEnvelopeBase as vt, PresenceIdentity as w, BridgeErrorCode as wt, SelectionRef as x, TableSnapshot as xt, RenderAttribute as y, TableEvent as yt, FilterBuilder as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as BlockRendererMap, r as BlockRendererProps, t as BlockRenderer } from "./index-YJcgf8Hh.mjs";
|
|
2
|
-
import { $ as IsoInstant, A as DatabaseTableProps, At as BlobStore, B as BatchOp, C as PresenceCrypto, Ct as BridgeError, D as PresenceSharingMode, Dt as toBridgeError, E as PresenceSharing, Et as isBridgeErrorCode, F as DatabaseTableRow, G as CellMap, H as BridgeColumnAnnotation, I as UseDatabaseTable, J as DatabaseBridge, K as CellValueParse, L as emptyFilter, M as UseTableList, N as useDatabaseTable, O as useTableList, Ot as BlobMeta, P as DatabaseTablePhase, Q as Id, R as filterIsComplete, S as
|
|
2
|
+
import { $ as IsoInstant, A as DatabaseTableProps, At as BlobStore, B as BatchOp, C as PresenceCrypto, Ct as BridgeError, D as PresenceSharingMode, Dt as toBridgeError, E as PresenceSharing, Et as isBridgeErrorCode, F as DatabaseTableRow, G as CellMap, H as BridgeColumnAnnotation, I as UseDatabaseTable, J as DatabaseBridge, K as CellValueParse, L as emptyFilter, M as UseTableList, N as useDatabaseTable, O as useTableList, Ot as BlobMeta, P as DatabaseTablePhase, Q as Id, R as filterIsComplete, S as SyncEmbedResolver, St as BRIDGE_ERROR_CODES, T as PresencePeer, Tt as isBridgeError, U as BridgeTableDescription, V as BridgeColumn, W as BridgeValueInput, X as FilterConditionInput, Y as DomainEvent, Z as FilterInput, _ as PdfPreviewProps, _t as TableDescription, a as AttributeTypePicker, at as ProtocolCapability, b as RenderAttributeProps, bt as TableRef, c as DocTags, ct as QueryOperator, d as EditorProviderProps, dt as RowPage, et as MutationContext, f as EmbedSandboxPolicy, ft as RowWire, g as PdfPreview, gt as SubscriptionStatus, h as MentionProvider, ht as SubscriptionObserver, i as AccessLevel, it as PageSnapshot, j as DatabaseTableView, jt as createMemoryBlobStore, k as DatabaseTable, kt as BlobRef, l as EditorContextValue, lt as QuerySemantics, m as MentionInteractions, mt as SubscriptionHandle, n as DEFAULT_EMBED_SANDBOX, nt as OperationStatus, o as AttributeTypePickerProps, ot as ProtocolDescriptor, p as MentionEntry, pt as SortInput, q as Column, r as EditorProvider, rt as PageQuery, s as DocTag, st as ProtocolLimits, t as useEditorContext, tt as MutationReceipt, u as EditorMode, ut as Revision, v as PresenceConfig, vt as TableEnvelopeBase, w as PresenceIdentity, wt as BridgeErrorCode, x as SelectionRef, xt as TableSnapshot, y as RenderAttribute, yt as TableEvent, z as FilterBuilder } from "./index-DzYwo6Px.mjs";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ComponentType, ReactNode } from "react";
|
|
5
5
|
import { AttributeType, Block, BlockId, BlockType, Doc, DocMeta, MentionKind, MentionMark, PresenceState, Selection, SelectionView, SyncEmbedRef, TextRun, TypedAttributeValue } from "docblocks-core";
|
|
@@ -344,7 +344,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
|
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region src/shared/ui/Badge.d.ts
|
|
346
346
|
declare const badgeVariants: (props?: ({
|
|
347
|
-
variant?: "default" | "
|
|
347
|
+
variant?: "default" | "custom" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
348
348
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
349
349
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
350
350
|
asChild?: boolean;
|
|
@@ -355,7 +355,7 @@ declare function BareSelect({ className, children, ...props }: React.ComponentPr
|
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/shared/ui/Button.d.ts
|
|
357
357
|
declare const buttonVariants: (props?: ({
|
|
358
|
-
variant?: "link" | "default" | "
|
|
358
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
359
359
|
size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
|
|
360
360
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
361
361
|
declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -491,4 +491,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
|
|
|
491
491
|
//#region src/shared/ui/cn.d.ts
|
|
492
492
|
declare function cn(...inputs: ClassValue[]): string;
|
|
493
493
|
//#endregion
|
|
494
|
-
export { type AccessLevel, Alert, AlertDescription, AlertTitle, type AttributeType, type AttributeTypePicker, type AttributeTypePickerProps, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlockRenderer, type BlockRendererMap, type BlockRendererProps, type BridgeColumn, type BridgeColumnAnnotation, BridgeError, type BridgeErrorCode, type BridgeTableDescription, type BridgeValueInput, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CellMap, type CellValueParse, Checkbox, type Column, DEFAULT_EMBED_SANDBOX, type DatabaseBridge, DatabaseTable, type DatabaseTablePhase, type DatabaseTableProps, type DatabaseTableRow, type DatabaseTableView, DocHeader, DocblocksI18nProvider, type DocblocksI18nProviderProps, type DomainEvent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, type EditorContextValue, type EditorMode, EditorProvider, type EditorProviderProps, type EditorView, type EmbedSandboxPolicy, FORMAT_PALETTE, FilterBuilder, type FilterConditionInput, type FilterInput, type FormatMark, type Id, ImportDocumentError, Input, type IsoInstant, Label, MONO_FONT_STACK, type MentionEntry, type MentionInteractions, type MentionMark, type MentionProvider, type MutationContext, type MutationReceipt, type OperationStatus, PROTOCOL_VERSION, type PageQuery, type PageSnapshot, type PdfPreview, type PdfPreviewProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type PresenceConfig, type PresenceCrypto, type PresenceIdentity, type PresencePeer, type PresenceSharing, type PresenceSharingMode, type ProtocolCapability, type ProtocolDescriptor, type ProtocolLimits, type QueryOperator, type QuerySemantics, type RenderAttribute, type RenderAttributeProps, type Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionRef, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger,
|
|
494
|
+
export { type AccessLevel, Alert, AlertDescription, AlertTitle, type AttributeType, type AttributeTypePicker, type AttributeTypePickerProps, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlockRenderer, type BlockRendererMap, type BlockRendererProps, type BridgeColumn, type BridgeColumnAnnotation, BridgeError, type BridgeErrorCode, type BridgeTableDescription, type BridgeValueInput, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CellMap, type CellValueParse, Checkbox, type Column, DEFAULT_EMBED_SANDBOX, type DatabaseBridge, DatabaseTable, type DatabaseTablePhase, type DatabaseTableProps, type DatabaseTableRow, type DatabaseTableView, DocHeader, type DocTag, type DocTags, DocblocksI18nProvider, type DocblocksI18nProviderProps, type DomainEvent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, type EditorContextValue, type EditorMode, EditorProvider, type EditorProviderProps, type EditorView, type EmbedSandboxPolicy, FORMAT_PALETTE, FilterBuilder, type FilterConditionInput, type FilterInput, type FormatMark, type Id, ImportDocumentError, Input, type IsoInstant, Label, MONO_FONT_STACK, type MentionEntry, type MentionInteractions, type MentionMark, type MentionProvider, type MutationContext, type MutationReceipt, type OperationStatus, PROTOCOL_VERSION, type PageQuery, type PageSnapshot, type PdfPreview, type PdfPreviewProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type PresenceConfig, type PresenceCrypto, type PresenceIdentity, type PresencePeer, type PresenceSharing, type PresenceSharingMode, type ProtocolCapability, type ProtocolDescriptor, type ProtocolLimits, type QueryOperator, type QuerySemantics, type RenderAttribute, type RenderAttributeProps, type Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionRef, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TypedAttributeValue, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, importDocument, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as DropdownMenuTrigger, $t as BookOpen, A as SelectItem, At as Card, B as DropdownMenuCheckboxItem, Bt as useDoc, C as emptyFilter, Ct as isBridgeErrorCode, D as Select, Dt as TEXT_TYPES, E as ScrollArea, Et as parseCellValue, F as SelectTrigger, Ft as CardHeader, G as DropdownMenuPortal, Gt as useSelectionView, H as DropdownMenuGroup, Ht as usePresence, I as SelectValue, It as CardTitle, J as DropdownMenuSeparator, K as DropdownMenuRadioGroup, Kt as useText, L as Label, Lt as Badge, M as SelectScrollDownButton, Mt as CardContent, N as SelectScrollUpButton, Nt as CardDescription, O as SelectContent, Ot as columnAnnotation, P as SelectSeparator, Pt as CardFooter, Q as DropdownMenuSubTrigger, R as InlineEditInput, Rt as badgeVariants, S as FilterBuilder, St as isBridgeError, T as SegmentSelector, Tt as conditionMatches, U as DropdownMenuItem, Ut as usePresenceSharing, V as DropdownMenuContent, Vt as useMeta, W as DropdownMenuLabel, Wt as useSelection, X as DropdownMenuSub, Xt as Pen, Y as DropdownMenuShortcut, Yt as renderRuns, Z as DropdownMenuSubContent, Zt as Eye, _ as parseFrontmatter, _t as PROTOCOL_VERSION, at as PopoverHeader, b as cellValueEqual, bt as BRIDGE_ERROR_CODES, c as SHAPE_FONT_STACKS, ct as Input, dt as buttonVariants, en as createMemoryBlobStore, et as Separator, f as markToggleAction, ft as BareSelect, g as mapFrontmatter, gt as BASELINE_CAPABILITIES, h as mdToBlocks, ht as AlertTitle, i as DEFAULT_EMBED_SANDBOX, it as PopoverDescription, j as SelectLabel, jt as CardAction, k as SelectGroup, kt as Skeleton, lt as Checkbox, m as insertNative, mt as AlertDescription, n as EditorProvider, nt as PopoverAnchor, ot as PopoverTitle, p as htmlToBlocks, pt as Alert, q as DropdownMenuRadioItem, qt as DocblocksI18nProvider, r as useEditorContext, rt as PopoverContent, s as SHAPE_FONT_OPTIONS, st as PopoverTrigger, t as Editor, tt as Popover, u as FORMAT_PALETTE, ut as Button, v as GridBody, vt as isDatabaseBridge, w as filterIsComplete, wt as toBridgeError, x as newMutationContext, xt as BridgeError, y as useDatabaseTable, yt as validateProtocolDescriptor, z as DropdownMenu, zt as useBlock } from "./Editor-
|
|
1
|
+
import { $ as DropdownMenuTrigger, $t as BookOpen, A as SelectItem, At as Card, B as DropdownMenuCheckboxItem, Bt as useDoc, C as emptyFilter, Ct as isBridgeErrorCode, D as Select, Dt as TEXT_TYPES, E as ScrollArea, Et as parseCellValue, F as SelectTrigger, Ft as CardHeader, G as DropdownMenuPortal, Gt as useSelectionView, H as DropdownMenuGroup, Ht as usePresence, I as SelectValue, It as CardTitle, J as DropdownMenuSeparator, K as DropdownMenuRadioGroup, Kt as useText, L as Label, Lt as Badge, M as SelectScrollDownButton, Mt as CardContent, N as SelectScrollUpButton, Nt as CardDescription, O as SelectContent, Ot as columnAnnotation, P as SelectSeparator, Pt as CardFooter, Q as DropdownMenuSubTrigger, R as InlineEditInput, Rt as badgeVariants, S as FilterBuilder, St as isBridgeError, T as SegmentSelector, Tt as conditionMatches, U as DropdownMenuItem, Ut as usePresenceSharing, V as DropdownMenuContent, Vt as useMeta, W as DropdownMenuLabel, Wt as useSelection, X as DropdownMenuSub, Xt as Pen, Y as DropdownMenuShortcut, Yt as renderRuns, Z as DropdownMenuSubContent, Zt as Eye, _ as parseFrontmatter, _t as PROTOCOL_VERSION, at as PopoverHeader, b as cellValueEqual, bt as BRIDGE_ERROR_CODES, c as SHAPE_FONT_STACKS, ct as Input, dt as buttonVariants, en as createMemoryBlobStore, et as Separator, f as markToggleAction, ft as BareSelect, g as mapFrontmatter, gt as BASELINE_CAPABILITIES, h as mdToBlocks, ht as AlertTitle, i as DEFAULT_EMBED_SANDBOX, it as PopoverDescription, j as SelectLabel, jt as CardAction, k as SelectGroup, kt as Skeleton, lt as Checkbox, m as insertNative, mt as AlertDescription, n as EditorProvider, nt as PopoverAnchor, ot as PopoverTitle, p as htmlToBlocks, pt as Alert, q as DropdownMenuRadioItem, qt as DocblocksI18nProvider, r as useEditorContext, rt as PopoverContent, s as SHAPE_FONT_OPTIONS, st as PopoverTrigger, t as Editor, tt as Popover, u as FORMAT_PALETTE, ut as Button, v as GridBody, vt as isDatabaseBridge, w as filterIsComplete, wt as toBridgeError, x as newMutationContext, xt as BridgeError, y as useDatabaseTable, yt as validateProtocolDescriptor, z as DropdownMenu, zt as useBlock } from "./Editor-BZjfHAO5.mjs";
|
|
2
2
|
import { a as preventDefault, s as cn } from "./constants-D8PSgkwi.mjs";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
package/dist/mermaid/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jt as INLINE_CODE_CLASS, Qt as CodeXml, T as SegmentSelector, Zt as Eye, a as childrenSlot, d as textOf, ht as AlertTitle, kt as Skeleton, l as TextBlock, mt as AlertDescription, o as CodeHeader, pt as Alert, r as useEditorContext } from "../Editor-
|
|
1
|
+
import { Jt as INLINE_CODE_CLASS, Qt as CodeXml, T as SegmentSelector, Zt as Eye, a as childrenSlot, d as textOf, ht as AlertTitle, kt as Skeleton, l as TextBlock, mt as AlertDescription, o as CodeHeader, pt as Alert, r as useEditorContext } from "../Editor-BZjfHAO5.mjs";
|
|
2
2
|
import { f as LoaderCircle, l as TriangleAlert } from "../constants-D8PSgkwi.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
package/dist/pdf/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as PdfPreviewProps } from "../index-DzYwo6Px.mjs";
|
|
2
2
|
//#region src/pdf/PdfFirstPage.d.ts
|
|
3
3
|
declare function PdfFirstPage({ id, blockType, url, name }: PdfPreviewProps): import("react").JSX.Element;
|
|
4
4
|
//#endregion
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED