platejs 54.0.0-beta.13 → 54.0.0-beta.14
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/{EditorStatic-CKG5xM3y.d.ts → EditorStatic-eXOA489B.d.ts} +4 -4
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/lib/aiDraftSession.js +9 -7
- package/dist/ai/lib/aiPolicy.internal.js +43 -6
- package/dist/ai/lib/editorAgent.js +30 -21
- package/dist/ai/lib/editorAgentSync.internal.js +2 -2
- package/dist/ai/lib/lockedContext.js +5 -4
- package/dist/ai/react/copilotInline.internal.js +6 -5
- package/dist/ai/react/index.d.ts +7 -7
- package/dist/ai/react/useEditorAgent.js +14 -3
- package/dist/authored/index.d.ts +4 -4
- package/dist/{authored-CJL7S8qI-BxC9ip4d.d.ts → authored-qetvpvU--DSWESzxK.d.ts} +3 -3
- package/dist/clipboard-format-key-BBu85J9m-BLhtd159.d.ts +1 -0
- package/dist/code-block/codemirror/index.d.ts +2 -2
- package/dist/{comment-anchor.internal-DTBP1huU.d.ts → comment-anchor.internal-CoNK9gTD.d.ts} +2 -2
- package/dist/compiler/index.d.ts +3 -3
- package/dist/{core-CTB0OBoh.d.ts → core-By92GWYW.d.ts} +45 -20
- package/dist/diff/index.d.ts +2 -2
- package/dist/docs/agents/skills.md +6 -2
- package/dist/docs/agents.md +1 -1
- package/dist/docs/ai-agents.md +8 -4
- package/dist/docs/ai.md +5 -0
- package/dist/docs/api/plate.md +15 -7
- package/dist/docs/api/react-hooks.md +32 -2
- package/dist/docs/authored-changes.md +4 -0
- package/dist/docs/block-menu.md +4 -0
- package/dist/docs/board.md +4 -0
- package/dist/docs/callout.md +63 -9
- package/dist/docs/collaboration.md +6 -1
- package/dist/docs/combobox.md +9 -2
- package/dist/docs/comment.md +4 -0
- package/dist/docs/components/toolbar-buttons.md +1 -1
- package/dist/docs/copilot.md +4 -0
- package/dist/docs/deck.md +173 -0
- package/dist/docs/details.md +4 -0
- package/dist/docs/diff.md +4 -0
- package/dist/docs/discussion.md +4 -0
- package/dist/docs/dnd.md +4 -0
- package/dist/docs/docx.md +6 -0
- package/dist/docs/emoji.md +2 -2
- package/dist/docs/equation.md +4 -0
- package/dist/docs/examples/collaboration-example.md +4 -0
- package/dist/docs/examples/export.md +40 -28
- package/dist/docs/examples/merge.md +4 -0
- package/dist/docs/examples/version-history.md +4 -0
- package/dist/docs/field.md +4 -0
- package/dist/docs/footnote.md +4 -0
- package/dist/docs/format-painter.md +1 -1
- package/dist/docs/html.md +4 -0
- package/dist/docs/index.md +4 -0
- package/dist/docs/ink.md +6 -0
- package/dist/docs/installation/manual.md +2 -4
- package/dist/docs/installation/next.md +1 -3
- package/dist/docs/installation/plate-ui.md +6 -2
- package/dist/docs/installation/rsc.md +1 -1
- package/dist/docs/installation.md +4 -0
- package/dist/docs/link.md +4 -0
- package/dist/docs/llms.txt +3 -1
- package/dist/docs/lock.md +34 -2
- package/dist/docs/markdown.md +4 -0
- package/dist/docs/media.md +4 -0
- package/dist/docs/mention.md +5 -0
- package/dist/docs/pagination.md +4 -0
- package/dist/docs/prompt-editor.md +17 -1
- package/dist/docs/reference.md +192 -0
- package/dist/docs/roots.md +4 -0
- package/dist/docs/serializing.md +23 -0
- package/dist/docs/slash-command.md +58 -4
- package/dist/docs/static.md +29 -20
- package/dist/docs/suggestion.md +4 -0
- package/dist/docs/sync.md +4 -0
- package/dist/docs/table.md +31 -0
- package/dist/docs/toolbar.md +4 -0
- package/dist/docs/unit-testing.md +4 -0
- package/dist/docs/upload.md +4 -0
- package/dist/docx/export/index.d.ts +5 -5
- package/dist/docx/import/index.d.ts +5 -5
- package/dist/docx/paste/index.d.ts +4 -4
- package/dist/dom/index.d.ts +1 -1
- package/dist/features/basic-nodes/lib/BaseMarkPlugins.js +1 -1
- package/dist/features/basic-styles/lib/BaseFormattingPlugin.js +61 -28
- package/dist/features/basic-styles/lib/BaseStylePlugins.js +28 -7
- package/dist/features/board/index.d.ts +1 -1
- package/dist/features/callout/index.d.ts +2 -160
- package/dist/features/callout/lib/BaseCalloutPlugin.js +109 -9
- package/dist/features/column/index.d.ts +1 -1
- package/dist/features/comments/index.d.ts +2 -2
- package/dist/features/date/index.d.ts +3 -3
- package/dist/features/details/index.d.ts +3 -3
- package/dist/features/field/index.d.ts +1 -1
- package/dist/features/field/lib/BaseFieldPlugin.js +111 -53
- package/dist/features/field/lib/fieldCache.internal.js +9 -21
- package/dist/features/find/index.d.ts +3 -3
- package/dist/features/footnote/index.d.ts +3 -3
- package/dist/features/ink/index.d.ts +1 -1
- package/dist/features/link/lib/BaseLinkPlugin.js +5 -2
- package/dist/features/lint/index.d.ts +3 -3
- package/dist/features/list/lib/listKeyboard.internal.js +7 -2
- package/dist/features/lock/index.d.ts +1 -1
- package/dist/features/media/index.d.ts +1 -1
- package/dist/features/mention/index.d.ts +1 -1
- package/dist/features/reference/index.d.ts +236 -0
- package/dist/features/reference/index.js +2 -0
- package/dist/features/reference/lib/BaseReferencePlugin.js +589 -0
- package/dist/features/table/index.d.ts +2 -2
- package/dist/features/toc/index.d.ts +1 -1
- package/dist/features/upload/index.d.ts +1 -1
- package/dist/history/index.d.ts +1 -1
- package/dist/html/index.d.ts +4 -4
- package/dist/html/server/index.d.ts +2 -2
- package/dist/html/server/serverCssParser.internal.js +14 -25
- package/dist/html/server/serverCssStyle.internal.js +4 -7
- package/dist/{htmlConversion-Y-M6PLRi.d.ts → htmlConversion-CRnxMGw-.d.ts} +2 -2
- package/dist/{htmlTypes-CNhoCFjK.d.ts → htmlTypes-3laowz-3.d.ts} +3 -3
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/{index-B-8L9f6a2.d.ts → index-B3VOCxNR.d.ts} +5 -5
- package/dist/{index-B8JeECEk.d.ts → index-B9UlNijk.d.ts} +2 -2
- package/dist/{index-Bqva6PJc.d.ts → index-BJPT0Tv_.d.ts} +3 -3
- package/dist/{index-CWutqVQ_-BO-UgVeK.d.ts → index-BKPWmnLg-Bp_vItjr.d.ts} +1 -1
- package/dist/{index-BFWK852j.d.ts → index-BcD2RAB9.d.ts} +3 -3
- package/dist/{index-DhsryaAC.d.ts → index-C5Xw3JDc.d.ts} +1 -1
- package/dist/{index-BEXBAmJf.d.ts → index-CAshLTjV.d.ts} +3 -3
- package/dist/{index-qqrnWAk_.d.ts → index-CHlITvuq.d.ts} +7 -7
- package/dist/index-CKSwab_O.d.ts +1 -0
- package/dist/{index-DJhwDkfd.d.ts → index-CRQoHk18.d.ts} +3 -3
- package/dist/index-CyY3O6c7.d.ts +3 -0
- package/dist/index-D8EGVCeT.d.ts +305 -0
- package/dist/{index-B0R9sXv2-T1dxG9oM.d.ts → index-DAKucat0--VOaL_NN.d.ts} +4 -4
- package/dist/{index-UYpvOBXG.d.ts → index-DCTRNYwy.d.ts} +2 -2
- package/dist/{index-CXd5hwaH.d.ts → index-DQpHoxDX.d.ts} +1 -1
- package/dist/{index-BfJKfAwk.d.ts → index-DTd1D-BF.d.ts} +3 -3
- package/dist/index-DUhUT9bV.d.ts +1 -0
- package/dist/{index-B4aToRMv.d.ts → index-DXm_v0Qq.d.ts} +3 -3
- package/dist/{index-D3bhjdRz.d.ts → index-Djwcl0Ff.d.ts} +3 -3
- package/dist/{index-DYuqsDrP.d.ts → index-Dyw6BJx8.d.ts} +3 -3
- package/dist/{index-CLPMcGC5.d.ts → index-KG95XVaC.d.ts} +4 -4
- package/dist/{index-mcBtG6pK-CitQV9Bq.d.ts → index-LEcSTRgn-BR_p4GVY.d.ts} +2 -2
- package/dist/{index-D54VPeky.d.ts → index-k-wvVxKl.d.ts} +2 -2
- package/dist/{index-CHud6Aa-.d.ts → index-s34W6hUI.d.ts} +3 -3
- package/dist/{index-DXCdafUk.d.ts → index-wEkvA-wI.d.ts} +43 -20
- package/dist/index.d.ts +3 -3
- package/dist/internal/plugin/pluginInjectNodeProps.js +33 -5
- package/dist/internal/utils/urlPolicy.js +11 -1
- package/dist/lib/editor/withPlite.js +8 -6
- package/dist/lib/plugins/html/cssLexer.internal.js +126 -29
- package/dist/lib/plugins/html/cssSafety.internal.js +100 -0
- package/dist/lib/plugins/html/htmlDecode.internal.js +2 -2
- package/dist/lib/plugins/html/htmlMatcher.internal.js +1 -1
- package/dist/lib/plugins/html/htmlRules.internal.js +2 -13
- package/dist/lib/plugins/html/htmlSafety.js +17 -24
- package/dist/lib/plugins/html/htmlSerialize.internal.js +16 -2
- package/dist/lib/plugins/html/htmlStyleInline.internal.js +22 -23
- package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +27 -1
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/lib/internal/markdownAttributes.js +16 -7
- package/dist/markdown/lib/internal/markdownMappings.js +123 -16
- package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +16 -1
- package/dist/math/index.d.ts +3 -3
- package/dist/math/react/index.d.ts +4 -4
- package/dist/migrations/index.d.ts +4 -4
- package/dist/migrations/migratePlateV54Urls.internal.js +63 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/react/index.d.ts +3 -3
- package/dist/{protocol-CSuP7AWG-DAorqpaF.d.ts → protocol-Cp9xayOe-0OSfTMnt.d.ts} +1 -1
- package/dist/react/authored/index.d.ts +4 -4
- package/dist/react/components/PlateView.js +7 -1
- package/dist/react/features/board/index.d.ts +5 -5
- package/dist/react/features/callout/index.d.ts +93 -4
- package/dist/react/features/column/index.d.ts +5 -5
- package/dist/react/features/combobox/combobox.internal.js +35 -22
- package/dist/react/features/combobox/comboboxOwner.internal.js +29 -2
- package/dist/react/features/combobox/index.d.ts +8 -6
- package/dist/react/features/comments/index.d.ts +6 -6
- package/dist/react/features/date/index.d.ts +4 -4
- package/dist/react/features/details/index.d.ts +4 -4
- package/dist/react/features/field/FieldPlugin.js +2 -2
- package/dist/react/features/field/index.d.ts +5 -5
- package/dist/react/features/footnote/index.d.ts +4 -4
- package/dist/react/features/format-painter/FormatPainterPlugin.js +27 -34
- package/dist/react/features/format-painter/index.d.ts +4 -4
- package/dist/react/features/ink/index.d.ts +5 -5
- package/dist/react/features/lock/index.d.ts +5 -5
- package/dist/react/features/media/index.d.ts +5 -5
- package/dist/react/features/mention/index.d.ts +4 -4
- package/dist/react/features/table/index.d.ts +6 -6
- package/dist/react/features/toc/index.d.ts +2 -2
- package/dist/react/features/upload/index.d.ts +5 -5
- package/dist/react/index.d.ts +6 -6
- package/dist/react/virtualized.d.ts +3 -3
- package/dist/refusal-CwFxNUf7-BLhtd159.d.ts +1 -0
- package/dist/{registerEditorTools-Cl-o_Wnq.d.ts → registerEditorTools-D_3hPpTx.d.ts} +16 -8
- package/dist/shared-room-26tNRhZE-BLhtd159.d.ts +1 -0
- package/dist/skills/plate/SKILL.md +4 -3
- package/dist/skills/plate/references/ai-and-agents.md +2 -2
- package/dist/skills/plate/references/pricing.md +3 -3
- package/dist/skills/plate/references/setup.md +6 -0
- package/dist/skills/plate/references/ui-and-sync.md +4 -3
- package/dist/{source-DUP5aKcT.d.ts → source-BW7JD_oS.d.ts} +3 -3
- package/dist/static/index.d.ts +23 -9
- package/dist/static/internal/staticPendingMedia.internal.js +2 -1
- package/dist/static/internal/staticPresentation.js +1 -0
- package/dist/static/renderStaticHtml.js +85 -39
- package/dist/{storage-EzfLDqRy-Cu4DQ-Rf.d.ts → storage-C7xSH1I5-BJLoUfo9.d.ts} +2 -2
- package/dist/sync/cloudflare/index.d.ts +3 -3
- package/dist/sync/index.d.ts +4 -4
- package/dist/sync/postgres/index.d.ts +1 -1
- package/dist/sync/react/index.d.ts +6 -6
- package/dist/sync/server/index.d.ts +5 -5
- package/dist/tabbable/react/index.d.ts +4 -4
- package/dist/testing/index.d.ts +3 -3
- package/dist/{transport-DAforzBt-BFwAhC-N.d.ts → transport-B-ON68Y4-DCfT5-eN.d.ts} +1 -1
- package/dist/utils/plate-keys.js +1 -0
- package/dist/{widths-BjIZxtaJ.d.ts → widths-9NNziDRW.d.ts} +5 -5
- package/package.json +9 -2
- package/dist/clipboard-format-key-D9rnh20X-CR00YA0H.d.ts +0 -1
- package/dist/index-CKAkaSJK.d.ts +0 -3
- package/dist/index-CxyK4HrT.d.ts +0 -1
- package/dist/index-zcb_RtZC.d.ts +0 -1
- package/dist/refusal-DCzeB9nD-CR00YA0H.d.ts +0 -1
- package/dist/shared-room-Bg8qMvm1-CR00YA0H.d.ts +0 -1
- /package/dist/{tx-only-CWT-IURY-BqIFhy44.d.ts → tx-only-sIj7BcYh-BMFkGMuq.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isCssWhitespaceCode, parseCssDeclaration, skipQuotedCssString, splitCssDeclarations, splitCssTopLevel, stepCssEscape } from "../../lib/plugins/html/cssLexer.internal.js";
|
|
2
2
|
//#region src/html/server/serverCssParser.internal.ts
|
|
3
3
|
const CSS_NUMBER_RE = /^\+?(?:\d+|\d*\.\d+)(?:e[+-]?\d+)?$/i;
|
|
4
4
|
const CSS_LENGTH_OR_PERCENT_RE = /^\+?(?:\d+|\d*\.\d+)(?:e[+-]?\d+)?(?:%|px|pt|pc|in|cm|mm|q|em|rem|ex|rex|ch|rch|cap|rcap|ic|ric|lh|rlh|vw|vh|vi|vb|vmin|vmax|svw|svh|lvw|lvh|dvw|dvh|cqw|cqh|cqi|cqb|cqmin|cqmax)$/i;
|
|
@@ -96,7 +96,6 @@ const LOWERCASE_VALUE_PROPERTIES = /* @__PURE__ */ new Set([
|
|
|
96
96
|
"vertical-align",
|
|
97
97
|
"white-space"
|
|
98
98
|
]);
|
|
99
|
-
const stripCommentsAndSplitDeclarations = (cssText) => splitCssDeclarations(cssText, { stripComments: true });
|
|
100
99
|
const splitTopLevelComma = (value) => splitCssTopLevel(value, ",").map((part) => part.trim());
|
|
101
100
|
const tokenizeTopLevel = (value, splitSlash = false) => {
|
|
102
101
|
const tokens = [];
|
|
@@ -114,30 +113,26 @@ const tokenizeTopLevel = (value, splitSlash = false) => {
|
|
|
114
113
|
continue;
|
|
115
114
|
}
|
|
116
115
|
const start = index;
|
|
117
|
-
let quote = null;
|
|
118
116
|
let parenDepth = 0;
|
|
119
117
|
let bracketDepth = 0;
|
|
118
|
+
let braceDepth = 0;
|
|
120
119
|
while (index < value.length) {
|
|
121
120
|
const ch = value[index];
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
-
index += 2;
|
|
125
|
-
continue;
|
|
126
|
-
}
|
|
127
|
-
if (ch === quote) quote = null;
|
|
128
|
-
index += 1;
|
|
121
|
+
if (ch === "\"" || ch === "'") {
|
|
122
|
+
index = skipQuotedCssString(value, index);
|
|
129
123
|
continue;
|
|
130
124
|
}
|
|
131
|
-
if (ch === "\\"
|
|
132
|
-
index
|
|
125
|
+
if (ch === "\\") {
|
|
126
|
+
index = stepCssEscape(value, index);
|
|
133
127
|
continue;
|
|
134
128
|
}
|
|
135
|
-
if (ch === "
|
|
136
|
-
else if (ch === "(") parenDepth += 1;
|
|
129
|
+
if (ch === "(") parenDepth += 1;
|
|
137
130
|
else if (ch === ")" && parenDepth > 0) parenDepth -= 1;
|
|
138
131
|
else if (ch === "[") bracketDepth += 1;
|
|
139
132
|
else if (ch === "]" && bracketDepth > 0) bracketDepth -= 1;
|
|
140
|
-
else if (
|
|
133
|
+
else if (ch === "{") braceDepth += 1;
|
|
134
|
+
else if (ch === "}" && braceDepth > 0) braceDepth -= 1;
|
|
135
|
+
else if (parenDepth === 0 && bracketDepth === 0 && braceDepth === 0 && (isCssWhitespaceCode(ch.charCodeAt(0)) || splitSlash && ch === "/")) break;
|
|
141
136
|
index += 1;
|
|
142
137
|
}
|
|
143
138
|
tokens.push({
|
|
@@ -361,16 +356,10 @@ const applyCssDeclaration = (entries, name, value, important, forceOverwrite) =>
|
|
|
361
356
|
};
|
|
362
357
|
const parseCssDeclarationsInto = (cssText, entries) => {
|
|
363
358
|
entries.clear();
|
|
364
|
-
for (const declaration of
|
|
365
|
-
const
|
|
366
|
-
if (colon <= 0) continue;
|
|
367
|
-
const name = normalizeCssPropertyName(declaration.slice(0, colon));
|
|
368
|
-
if (!name) continue;
|
|
369
|
-
const rawValue = declaration.slice(colon + 1).trim();
|
|
370
|
-
if (!rawValue) continue;
|
|
371
|
-
const parsed = parseCssDeclarationPriority(name, rawValue);
|
|
359
|
+
for (const declaration of splitCssDeclarations(cssText, { stripComments: true })) {
|
|
360
|
+
const parsed = parseCssDeclaration(declaration);
|
|
372
361
|
if (!parsed) continue;
|
|
373
|
-
applyCssDeclaration(entries,
|
|
362
|
+
applyCssDeclaration(entries, parsed.property, parsed.value, parsed.important, false);
|
|
374
363
|
}
|
|
375
364
|
};
|
|
376
365
|
const serializeCssEntries = (entries) => {
|
|
@@ -380,4 +369,4 @@ const serializeCssEntries = (entries) => {
|
|
|
380
369
|
return `${parts.join("; ")};`;
|
|
381
370
|
};
|
|
382
371
|
//#endregion
|
|
383
|
-
export { FONT_LONGHANDS, LIST_STYLE_LONGHANDS, applyCssDeclaration,
|
|
372
|
+
export { FONT_LONGHANDS, LIST_STYLE_LONGHANDS, applyCssDeclaration, parseCssDeclarationsInto, serializeCssEntries };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { findLastTopLevelCssBang, normalizeCssPropertyName, scanCssTopLevel, stripCssComments } from "../../lib/plugins/html/cssLexer.internal.js";
|
|
1
|
+
import { findLastTopLevelCssBang, hasUnbalancedCssDelimiters, normalizeCssPropertyName, scanCssTopLevel, stripCssComments } from "../../lib/plugins/html/cssLexer.internal.js";
|
|
2
|
+
import { normalizeStyleName } from "../../lib/plugins/html/htmlMatcher.internal.js";
|
|
2
3
|
import { FONT_LONGHANDS, LIST_STYLE_LONGHANDS, applyCssDeclaration, parseCssDeclarationsInto, serializeCssEntries } from "./serverCssParser.internal.js";
|
|
3
4
|
//#region src/html/server/serverCssStyle.internal.ts
|
|
4
5
|
const INDEX_KEY_RE = /^(?:0|[1-9]\d*)$/;
|
|
5
|
-
const camelToKebab = (property) =>
|
|
6
|
-
if (property === "cssFloat" || property === "float") return "float";
|
|
7
|
-
if (property.startsWith("--")) return property;
|
|
8
|
-
return property.replaceAll(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
9
|
-
};
|
|
6
|
+
const camelToKebab = (property) => property === "cssFloat" || property === "float" ? "float" : normalizeStyleName(property);
|
|
10
7
|
const readBoxShorthand = (entries, prefix) => {
|
|
11
8
|
const top = entries.get(`${prefix}-top`);
|
|
12
9
|
const right = entries.get(`${prefix}-right`);
|
|
@@ -147,7 +144,7 @@ const createServerCssStyleDeclaration = (element) => {
|
|
|
147
144
|
});
|
|
148
145
|
if (hasTopLevelSemicolon) return;
|
|
149
146
|
const cleaned = stripped.trim();
|
|
150
|
-
if (!cleaned || !name.startsWith("--") && findLastTopLevelCssBang(cleaned) !== -1) return;
|
|
147
|
+
if (!cleaned || hasUnbalancedCssDelimiters(cleaned) || !name.startsWith("--") && findLastTopLevelCssBang(cleaned) !== -1) return;
|
|
151
148
|
const priorityText = priority ? String(priority).trim().toLowerCase() : "";
|
|
152
149
|
if (priorityText && priorityText !== "important") return;
|
|
153
150
|
applyCssDeclaration(entries, name, cleaned, priorityText === "important", true);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _t as EditorDocumentValue } from "./tx-only-
|
|
2
|
-
import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-
|
|
1
|
+
import { _t as EditorDocumentValue } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-3laowz-3.js";
|
|
3
3
|
declare const parseHtml: (source: string, options: HtmlParseOptions) => HtmlDocumentParseResult;
|
|
4
4
|
/**
|
|
5
5
|
* Serialize a Plate document into semantic HTML using the configured plugins'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $s as SchemaPropertyDefinition, Eo as PluginReference, Pi as InternalEditorSchemaApi, Pn as EditorSchemaOverrideInput, T as ContentSlice$1, Wa as Path, Wl as Value, Yn as EditorSchemaValidationDiagnostic, Zs as SchemaProperty, _t as EditorDocumentValue, fs as RootKey, hs as SchemaContent, p as AuthoredProjectionDiagnostic, ys as SchemaContentPrefixSlot } from "./tx-only-
|
|
2
|
-
import "./refusal-
|
|
3
|
-
import "./clipboard-format-key-
|
|
1
|
+
import { $s as SchemaPropertyDefinition, Eo as PluginReference, Pi as InternalEditorSchemaApi, Pn as EditorSchemaOverrideInput, T as ContentSlice$1, Wa as Path, Wl as Value, Yn as EditorSchemaValidationDiagnostic, Zs as SchemaProperty, _t as EditorDocumentValue, fs as RootKey, hs as SchemaContent, p as AuthoredProjectionDiagnostic, ys as SchemaContentPrefixSlot } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./refusal-CwFxNUf7-BLhtd159.js";
|
|
3
|
+
import "./clipboard-format-key-BBu85J9m-BLhtd159.js";
|
|
4
4
|
type StructuralPlainTextDiagnostic = Readonly<{
|
|
5
5
|
code: 'plain-text-unsupported-metadata' | 'plain-text-unsupported-node' | 'plain-text-unsupported-root';
|
|
6
6
|
message: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createEditorFixture, c as jsx, i as createEditor, n as HyperscriptEditorFixture, o as createHyperscript, r as HyperscriptShorthands, s as createText, t as HyperscriptCreators } from "../index-
|
|
1
|
+
import { a as createEditorFixture, c as jsx, i as createEditor, n as HyperscriptEditorFixture, o as createHyperscript, r as HyperscriptShorthands, s as createText, t as HyperscriptCreators } from "../index-BKPWmnLg-Bp_vItjr.js";
|
|
2
2
|
export { type HyperscriptCreators, type HyperscriptEditorFixture, type HyperscriptShorthands, createEditor, createEditorFixture, createHyperscript, createText, jsx };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $o as Range, B as DocumentChangeJson, C as ConflictRecords, Fi as JsonEditorValue, Qa as Plugin, Wc as SyncAccess, Yc as SyncStoppedReason, d as AnyEditor } from "./tx-only-
|
|
2
|
-
import { A as InternalBasePluginAuthorExtension, Co as PluginSelectors, F as InternalBasePluginAuthorState, I as InternalBasePluginRuntimeExtension, M as InternalBasePluginAuthorStageCompatibility, Ma as InternalPluginDefinitionOf, N as InternalBasePluginAuthorStageInput, Na as AnyBasePluginDefinition, P as InternalBasePluginAuthorStageKeys, S as BasePluginShortcutRecord, fo as PluginReference, h as BasePluginContext, j as InternalBasePluginAuthorRead, p as BasePlugin } from "./core-
|
|
3
|
-
import "./shared-room-
|
|
4
|
-
import { c as SyncRoomEvent, r as SyncDocumentSnapshot } from "./protocol-
|
|
5
|
-
import { a as SyncTokenResult, o as SyncTransport, r as SyncPresenceMeta } from "./transport-
|
|
1
|
+
import { $o as Range, B as DocumentChangeJson, C as ConflictRecords, Fi as JsonEditorValue, Qa as Plugin, Wc as SyncAccess, Yc as SyncStoppedReason, d as AnyEditor } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import { A as InternalBasePluginAuthorExtension, Co as PluginSelectors, F as InternalBasePluginAuthorState, I as InternalBasePluginRuntimeExtension, M as InternalBasePluginAuthorStageCompatibility, Ma as InternalPluginDefinitionOf, N as InternalBasePluginAuthorStageInput, Na as AnyBasePluginDefinition, P as InternalBasePluginAuthorStageKeys, S as BasePluginShortcutRecord, fo as PluginReference, h as BasePluginContext, j as InternalBasePluginAuthorRead, p as BasePlugin } from "./core-By92GWYW.js";
|
|
3
|
+
import "./shared-room-26tNRhZE-BLhtd159.js";
|
|
4
|
+
import { c as SyncRoomEvent, r as SyncDocumentSnapshot } from "./protocol-Cp9xayOe-0OSfTMnt.js";
|
|
5
|
+
import { a as SyncTokenResult, o as SyncTransport, r as SyncPresenceMeta } from "./transport-B-ON68Y4-DCfT5-eN.js";
|
|
6
6
|
/** Why a local batch was kept for manual review instead of merging automatically. */
|
|
7
7
|
type KeptReason = Readonly<{
|
|
8
8
|
check: 'judge' | 'moved' | 'stale' | 'structure' | 'threw';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $o as Range$1, Da as NodeSelection, Po as Point, Qa as Plugin, T as ContentSlice$1, Tc as SelectionAssociation, V as Editor, Wa as Path, Wl as Value, Xi as Node$1, Y as EditorCommand, Zs as SchemaProperty, d as AnyEditor, dt as EditorCoreStateView, fs as RootKey, gi as Element$1, ma as NodeKey } from "./tx-only-
|
|
2
|
-
import "./clipboard-format-key-
|
|
1
|
+
import { $o as Range$1, Da as NodeSelection, Po as Point, Qa as Plugin, T as ContentSlice$1, Tc as SelectionAssociation, V as Editor, Wa as Path, Wl as Value, Xi as Node$1, Y as EditorCommand, Zs as SchemaProperty, d as AnyEditor, dt as EditorCoreStateView, fs as RootKey, gi as Element$1, ma as NodeKey } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./clipboard-format-key-BBu85J9m-BLhtd159.js";
|
|
3
3
|
type HotkeyPlatform = 'apple' | 'other' | 'windows';
|
|
4
4
|
type HotkeyMatchOptions = {
|
|
5
5
|
ignoreModifiers?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bi as Location, Da as NodeSelection, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Vl as TxDeclaredMethod, Wa as Path, _t as EditorDocumentValue, co as PluginContribution, fs as RootKey, gi as Element$1, ma as NodeKey } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { p as BasePlugin } from "./core-
|
|
1
|
+
import { Bi as Location, Da as NodeSelection, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Vl as TxDeclaredMethod, Wa as Path, _t as EditorDocumentValue, co as PluginContribution, fs as RootKey, gi as Element$1, ma as NodeKey } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { p as BasePlugin } from "./core-By92GWYW.js";
|
|
4
4
|
/** Options selecting the target block for a lock, unlock, or toggle command. */
|
|
5
5
|
type LockTargetOptions = Readonly<{
|
|
6
6
|
/** Target location, node selection, or node key. Defaults to the current selection. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cc as Selection, N as Descendant, V as Editor, Wa as Path, Xc as Text, dl as TextSelection, gi as Element$1 } from "./tx-only-
|
|
1
|
+
import { Cc as Selection, N as Descendant, V as Editor, Wa as Path, Xc as Text, dl as TextSelection, gi as Element$1 } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
2
|
/**
|
|
3
3
|
* All tokens inherit from a single constructor for `instanceof` checking.
|
|
4
4
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bo as PropertyEnumDescriptor, Vl as TxDeclaredMethod, gi as Element$1, ma as NodeKey, wi as ElementOf } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { ao as NormalizePluginSelectors, ct as BlockInsertOptions, p as BasePlugin, xo as PluginSelectorMethods } from "./core-
|
|
1
|
+
import { Bo as PropertyEnumDescriptor, Vl as TxDeclaredMethod, gi as Element$1, ma as NodeKey, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { ao as NormalizePluginSelectors, ct as BlockInsertOptions, p as BasePlugin, xo as PluginSelectorMethods } from "./core-By92GWYW.js";
|
|
4
4
|
/** Media destination kinds an upload draft can resolve into. */
|
|
5
5
|
declare const UPLOAD_KINDS: readonly ['audio', 'file', 'image', 'video'];
|
|
6
6
|
/** Destination media kind carried by an upload draft element. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mt as EditorJsonValue, or as EditorStateField } from "./tx-only-
|
|
1
|
+
import { Mt as EditorJsonValue, or as EditorStateField } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
2
|
/** Supported standard paper page sizes. */
|
|
3
3
|
type PagePreset = 'a4' | 'letter';
|
|
4
4
|
/** Uniform or per-side page margins in CSS pixels. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bi as Location, Da as NodeSelection, Es as SchemaContentRule, Mt as EditorJsonValue, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, gi as Element$1, gs as SchemaContentDefault, ja as NodeTarget, ma as NodeKey, wi as ElementOf } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { ct as BlockInsertOptions, fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "./core-
|
|
1
|
+
import { Bi as Location, Da as NodeSelection, Es as SchemaContentRule, Mt as EditorJsonValue, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, gi as Element$1, gs as SchemaContentDefault, ja as NodeTarget, ma as NodeKey, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { ct as BlockInsertOptions, fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "./core-By92GWYW.js";
|
|
4
4
|
declare const isPositiveFiniteNumber: (value: unknown) => value is number;
|
|
5
5
|
/** Options for updating a column group's column count or flex weights. */
|
|
6
6
|
type SetColumnsOptions = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Qa as Plugin, Ul as TxOnlyMethod, Vl as TxDeclaredMethod, jt as EditorJsonObject } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-
|
|
4
|
-
import { r as Comparison } from "./index-
|
|
5
|
-
import { C as AuthoredView, a as AuthoredChangeMember, b as AuthoredResult, c as AuthoredComparisonImportResult, f as AuthoredGroupQuery, g as AuthoredPage, h as AuthoredOutcome, l as AuthoredDecision, n as AuthoredChangeDetails, r as AuthoredChangeGroup, s as AuthoredChangesDelta, t as AuthoredChange, u as AuthoredGroupDetails, v as AuthoredQuery, x as AuthoredReview, y as AuthoredRefusal } from "./authored-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
1
|
+
import { Qa as Plugin, Ul as TxOnlyMethod, Vl as TxDeclaredMethod, jt as EditorJsonObject } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-By92GWYW.js";
|
|
4
|
+
import { r as Comparison } from "./index-LEcSTRgn-BR_p4GVY.js";
|
|
5
|
+
import { C as AuthoredView, a as AuthoredChangeMember, b as AuthoredResult, c as AuthoredComparisonImportResult, f as AuthoredGroupQuery, g as AuthoredPage, h as AuthoredOutcome, l as AuthoredDecision, n as AuthoredChangeDetails, r as AuthoredChangeGroup, s as AuthoredChangesDelta, t as AuthoredChange, u as AuthoredGroupDetails, v as AuthoredQuery, x as AuthoredReview, y as AuthoredRefusal } from "./authored-qetvpvU--DSWESzxK.js";
|
|
6
|
+
import "./index-DCTRNYwy.js";
|
|
7
|
+
import "./index-CKSwab_O.js";
|
|
8
8
|
/**
|
|
9
9
|
* Suggestions attributed to the author the writing view names with
|
|
10
10
|
* `createEditorView(editor, { authorId })`, else to the editor's user, or to
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index-LEcSTRgn-BR_p4GVY.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bo as PropertyEnumDescriptor, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, _t as EditorDocumentValue, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { p as BasePlugin, vt as NodeInsertOptions } from "./core-
|
|
1
|
+
import { Bo as PropertyEnumDescriptor, Is as SchemaElementPropertyDefinition, Qo as PropertyValueOptions, Ro as PropertyBooleanDescriptor, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wa as Path, Wl as Value, _t as EditorDocumentValue, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { p as BasePlugin, vt as NodeInsertOptions } from "./core-By92GWYW.js";
|
|
4
4
|
import { nanoid } from "nanoid";
|
|
5
5
|
type FieldShape = Pick<FieldSettings, 'kind' | 'max' | 'min' | 'options' | 'value'>;
|
|
6
6
|
declare const FIELD_KINDS: readonly ['checkbox', 'choice', 'date', 'multiple', 'number', 'signature', 'text'];
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { Bi as Location, Da as NodeSelection, Es as SchemaContentRule, Mt as EditorJsonValue, Qo as PropertyValueOptions, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, gs as SchemaContentDefault, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { fo as PluginReference, lt as BlockUpsertOptions, p as BasePlugin, uo as PluginDependency } from "./core-By92GWYW.js";
|
|
4
|
+
/** Declarative workflow action button attached to a callout block. */
|
|
5
|
+
type CalloutAction = Readonly<{
|
|
6
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
7
|
+
confirm?: string;
|
|
8
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Optional application-defined action intent discriminator. */
|
|
11
|
+
kind?: string;
|
|
12
|
+
/** Visible button label. */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
15
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
16
|
+
}>;
|
|
17
|
+
declare const isCalloutActions: (value: unknown) => value is readonly CalloutAction[];
|
|
18
|
+
type CalloutProps = Readonly<{
|
|
19
|
+
actions?: readonly CalloutAction[];
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
icon?: string;
|
|
22
|
+
variant?: string;
|
|
23
|
+
}>;
|
|
24
|
+
type CalloutWrapOptions = CalloutProps & Readonly<{
|
|
25
|
+
at?: Location | NodeSelection;
|
|
26
|
+
}>;
|
|
27
|
+
/** Enables multi-block callout containers with optional icon, variant, and background color. */
|
|
28
|
+
declare const BaseCalloutPlugin: BasePlugin<Readonly<{
|
|
29
|
+
formats: true;
|
|
30
|
+
rules: true;
|
|
31
|
+
}> & Readonly<{
|
|
32
|
+
name: "callout";
|
|
33
|
+
}> & Readonly<{
|
|
34
|
+
dependencies: readonly [PluginReference<"paragraph"> & PluginDependency<Readonly<{
|
|
35
|
+
name: "paragraph";
|
|
36
|
+
}> & Readonly<{
|
|
37
|
+
__pluginWritableProperties: never;
|
|
38
|
+
}> & Readonly<Record<"schema", {
|
|
39
|
+
readonly element: Readonly<{
|
|
40
|
+
content: Readonly<{
|
|
41
|
+
allowed: Readonly<{
|
|
42
|
+
kind: 'any';
|
|
43
|
+
rules: readonly [Readonly<{
|
|
44
|
+
kind: 'text';
|
|
45
|
+
}>, Readonly<{
|
|
46
|
+
group: 'inline';
|
|
47
|
+
kind: 'group';
|
|
48
|
+
}>];
|
|
49
|
+
}>;
|
|
50
|
+
prefix?: readonly Readonly<{
|
|
51
|
+
element: string | Readonly<{
|
|
52
|
+
source: string;
|
|
53
|
+
type: string;
|
|
54
|
+
}>;
|
|
55
|
+
properties?: Readonly<Record<string, EditorJsonValue>>;
|
|
56
|
+
}>[] | undefined;
|
|
57
|
+
} & Readonly<{
|
|
58
|
+
default: 'text';
|
|
59
|
+
min: 1;
|
|
60
|
+
}> & Readonly<{
|
|
61
|
+
'~schema.content.rule'?: Readonly<{
|
|
62
|
+
kind: 'any';
|
|
63
|
+
rules: readonly [Readonly<{
|
|
64
|
+
kind: 'text';
|
|
65
|
+
}>, Readonly<{
|
|
66
|
+
group: 'inline';
|
|
67
|
+
kind: 'group';
|
|
68
|
+
}>];
|
|
69
|
+
}> | undefined;
|
|
70
|
+
}>>;
|
|
71
|
+
}>;
|
|
72
|
+
}>> & Readonly<Record<never, never>>> & Pick<BasePlugin<Readonly<{
|
|
73
|
+
formats: true;
|
|
74
|
+
rules: true;
|
|
75
|
+
}> & Readonly<{
|
|
76
|
+
name: "paragraph";
|
|
77
|
+
}> & Readonly<Record<never, never>> & Readonly<{
|
|
78
|
+
__pluginWritableProperties: never;
|
|
79
|
+
schema: {
|
|
80
|
+
readonly element: Readonly<{
|
|
81
|
+
content: Readonly<{
|
|
82
|
+
allowed: Readonly<{
|
|
83
|
+
kind: 'any';
|
|
84
|
+
rules: readonly [Readonly<{
|
|
85
|
+
kind: 'text';
|
|
86
|
+
}>, Readonly<{
|
|
87
|
+
group: 'inline';
|
|
88
|
+
kind: 'group';
|
|
89
|
+
}>];
|
|
90
|
+
}>;
|
|
91
|
+
prefix?: readonly Readonly<{
|
|
92
|
+
element: string | Readonly<{
|
|
93
|
+
source: string;
|
|
94
|
+
type: string;
|
|
95
|
+
}>;
|
|
96
|
+
properties?: Readonly<Record<string, EditorJsonValue>>;
|
|
97
|
+
}>[] | undefined;
|
|
98
|
+
} & Readonly<{
|
|
99
|
+
default: 'text';
|
|
100
|
+
min: 1;
|
|
101
|
+
}> & Readonly<{
|
|
102
|
+
'~schema.content.rule'?: Readonly<{
|
|
103
|
+
kind: 'any';
|
|
104
|
+
rules: readonly [Readonly<{
|
|
105
|
+
kind: 'text';
|
|
106
|
+
}>, Readonly<{
|
|
107
|
+
group: 'inline';
|
|
108
|
+
kind: 'group';
|
|
109
|
+
}>];
|
|
110
|
+
}> | undefined;
|
|
111
|
+
}>>;
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
114
|
+
}>>, "~schema.plugins">];
|
|
115
|
+
}> & Readonly<Record<never, never>> & Readonly<{
|
|
116
|
+
update: {
|
|
117
|
+
readonly toggle: TxDeclaredMethod<(options?: CalloutWrapOptions) => boolean>;
|
|
118
|
+
readonly unwrap: TxDeclaredMethod<({ at }?: {
|
|
119
|
+
at?: Location | NodeSelection;
|
|
120
|
+
}) => boolean>;
|
|
121
|
+
readonly upsert: TxDeclaredMethod<(data?: CalloutProps, options?: BlockUpsertOptions) => boolean>;
|
|
122
|
+
readonly wrap: TxDeclaredMethod<({ at, ...rest }?: CalloutWrapOptions) => boolean>;
|
|
123
|
+
};
|
|
124
|
+
}> & Readonly<{
|
|
125
|
+
__pluginWritableProperties: Readonly<{
|
|
126
|
+
descriptor: PropertyJsonDescriptor<readonly Readonly<{
|
|
127
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
128
|
+
confirm?: string;
|
|
129
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
130
|
+
id: string;
|
|
131
|
+
/** Optional application-defined action intent discriminator. */
|
|
132
|
+
kind?: string;
|
|
133
|
+
/** Visible button label. */
|
|
134
|
+
label: string;
|
|
135
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
136
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
137
|
+
}>[], {
|
|
138
|
+
readonly validate: typeof isCalloutActions;
|
|
139
|
+
readonly validationVersion: 1;
|
|
140
|
+
} & Readonly<{
|
|
141
|
+
default?: readonly Readonly<{
|
|
142
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
143
|
+
confirm?: string;
|
|
144
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
145
|
+
id: string;
|
|
146
|
+
/** Optional application-defined action intent discriminator. */
|
|
147
|
+
kind?: string;
|
|
148
|
+
/** Visible button label. */
|
|
149
|
+
label: string;
|
|
150
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
151
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
152
|
+
}>[] | undefined;
|
|
153
|
+
generate?: (() => readonly Readonly<{
|
|
154
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
155
|
+
confirm?: string;
|
|
156
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
157
|
+
id: string;
|
|
158
|
+
/** Optional application-defined action intent discriminator. */
|
|
159
|
+
kind?: string;
|
|
160
|
+
/** Visible button label. */
|
|
161
|
+
label: string;
|
|
162
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
163
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
164
|
+
}>[]) | undefined;
|
|
165
|
+
omitDefault?: boolean;
|
|
166
|
+
required?: boolean;
|
|
167
|
+
}> & Readonly<{
|
|
168
|
+
validate: (value: unknown) => value is readonly Readonly<{
|
|
169
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
170
|
+
confirm?: string;
|
|
171
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
172
|
+
id: string;
|
|
173
|
+
/** Optional application-defined action intent discriminator. */
|
|
174
|
+
kind?: string;
|
|
175
|
+
/** Visible button label. */
|
|
176
|
+
label: string;
|
|
177
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
178
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
179
|
+
}>[];
|
|
180
|
+
validationVersion: number;
|
|
181
|
+
}>>;
|
|
182
|
+
key: "actions";
|
|
183
|
+
localId: "actions";
|
|
184
|
+
ownerName: "callout";
|
|
185
|
+
placement: "element";
|
|
186
|
+
unaliased: true;
|
|
187
|
+
value: readonly Readonly<{
|
|
188
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
189
|
+
confirm?: string;
|
|
190
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
191
|
+
id: string;
|
|
192
|
+
/** Optional application-defined action intent discriminator. */
|
|
193
|
+
kind?: string;
|
|
194
|
+
/** Visible button label. */
|
|
195
|
+
label: string;
|
|
196
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
197
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
198
|
+
}>[];
|
|
199
|
+
}> | Readonly<{
|
|
200
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
201
|
+
key: "backgroundColor";
|
|
202
|
+
localId: "backgroundColor";
|
|
203
|
+
ownerName: "callout";
|
|
204
|
+
placement: "element";
|
|
205
|
+
unaliased: true;
|
|
206
|
+
value: string;
|
|
207
|
+
}> | Readonly<{
|
|
208
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
209
|
+
key: "icon";
|
|
210
|
+
localId: "icon";
|
|
211
|
+
ownerName: "callout";
|
|
212
|
+
placement: "element";
|
|
213
|
+
unaliased: true;
|
|
214
|
+
value: string;
|
|
215
|
+
}> | Readonly<{
|
|
216
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
217
|
+
key: "variant";
|
|
218
|
+
localId: "variant";
|
|
219
|
+
ownerName: "callout";
|
|
220
|
+
placement: "element";
|
|
221
|
+
unaliased: true;
|
|
222
|
+
value: string;
|
|
223
|
+
}>;
|
|
224
|
+
schema: {
|
|
225
|
+
readonly element: {
|
|
226
|
+
content: Readonly<{
|
|
227
|
+
allowed: SchemaContentRule;
|
|
228
|
+
prefix?: readonly Readonly<{
|
|
229
|
+
element: string | Readonly<{
|
|
230
|
+
source: string;
|
|
231
|
+
type: string;
|
|
232
|
+
}>;
|
|
233
|
+
properties?: Readonly<Record<string, EditorJsonValue>>;
|
|
234
|
+
}>[] | undefined;
|
|
235
|
+
} & Readonly<{
|
|
236
|
+
default?: SchemaContentDefault;
|
|
237
|
+
max?: number;
|
|
238
|
+
min?: number;
|
|
239
|
+
}>>;
|
|
240
|
+
properties: {
|
|
241
|
+
actions: PropertyJsonDescriptor<readonly Readonly<{
|
|
242
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
243
|
+
confirm?: string;
|
|
244
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
245
|
+
id: string;
|
|
246
|
+
/** Optional application-defined action intent discriminator. */
|
|
247
|
+
kind?: string;
|
|
248
|
+
/** Visible button label. */
|
|
249
|
+
label: string;
|
|
250
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
251
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
252
|
+
}>[], {
|
|
253
|
+
readonly validate: typeof isCalloutActions;
|
|
254
|
+
readonly validationVersion: 1;
|
|
255
|
+
} & Readonly<{
|
|
256
|
+
default?: readonly Readonly<{
|
|
257
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
258
|
+
confirm?: string;
|
|
259
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
260
|
+
id: string;
|
|
261
|
+
/** Optional application-defined action intent discriminator. */
|
|
262
|
+
kind?: string;
|
|
263
|
+
/** Visible button label. */
|
|
264
|
+
label: string;
|
|
265
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
266
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
267
|
+
}>[] | undefined;
|
|
268
|
+
generate?: (() => readonly Readonly<{
|
|
269
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
270
|
+
confirm?: string;
|
|
271
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
272
|
+
id: string;
|
|
273
|
+
/** Optional application-defined action intent discriminator. */
|
|
274
|
+
kind?: string;
|
|
275
|
+
/** Visible button label. */
|
|
276
|
+
label: string;
|
|
277
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
278
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
279
|
+
}>[]) | undefined;
|
|
280
|
+
omitDefault?: boolean;
|
|
281
|
+
required?: boolean;
|
|
282
|
+
}> & Readonly<{
|
|
283
|
+
validate: (value: unknown) => value is readonly Readonly<{
|
|
284
|
+
/** Optional confirmation prompt shown before invoking the action. */
|
|
285
|
+
confirm?: string;
|
|
286
|
+
/** Stable identifier unique within the callout's actions list. */
|
|
287
|
+
id: string;
|
|
288
|
+
/** Optional application-defined action intent discriminator. */
|
|
289
|
+
kind?: string;
|
|
290
|
+
/** Visible button label. */
|
|
291
|
+
label: string;
|
|
292
|
+
/** Optional JSON-serializable metadata forwarded to the application handler. */
|
|
293
|
+
payload?: Readonly<Record<string, EditorJsonValue>>;
|
|
294
|
+
}>[];
|
|
295
|
+
validationVersion: number;
|
|
296
|
+
}>>;
|
|
297
|
+
backgroundColor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
298
|
+
icon: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
299
|
+
variant: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
}>>;
|
|
304
|
+
type CalloutElement = ElementOf<typeof BaseCalloutPlugin>;
|
|
305
|
+
export { CalloutAction as n, CalloutElement as r, BaseCalloutPlugin as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as DocumentChangeJson, Fi as JsonEditorValue, Gc as SyncAuthored, Ji as NamedEditorSchemaIdentity, V as Editor, Wl as Value, d as AnyEditor, oi as EditorUpdateTransaction, pi as EditorView, qc as SyncGrant } from "./tx-only-
|
|
2
|
-
import { c as SyncRoomEvent, n as SYNC_WEBSOCKET_PROTOCOL, r as SyncDocumentSnapshot, s as SyncReceipt } from "./protocol-
|
|
3
|
-
import { a as SyncTokenResult, c as SyncWireSelection, i as SyncPresencePeerState, o as SyncTransport, r as SyncPresenceMeta, t as Clock } from "./transport-
|
|
4
|
-
import { l as StoredRoom, m as SyncStorage, v as SyncStorageLimits } from "./storage-
|
|
1
|
+
import { B as DocumentChangeJson, Fi as JsonEditorValue, Gc as SyncAuthored, Ji as NamedEditorSchemaIdentity, V as Editor, Wl as Value, d as AnyEditor, oi as EditorUpdateTransaction, pi as EditorView, qc as SyncGrant } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import { c as SyncRoomEvent, n as SYNC_WEBSOCKET_PROTOCOL, r as SyncDocumentSnapshot, s as SyncReceipt } from "./protocol-Cp9xayOe-0OSfTMnt.js";
|
|
3
|
+
import { a as SyncTokenResult, c as SyncWireSelection, i as SyncPresencePeerState, o as SyncTransport, r as SyncPresenceMeta, t as Clock } from "./transport-B-ON68Y4-DCfT5-eN.js";
|
|
4
|
+
import { l as StoredRoom, m as SyncStorage, v as SyncStorageLimits } from "./storage-C7xSH1I5-BJLoUfo9.js";
|
|
5
5
|
/** Maximum serialized UTF-8 byte size allowed for entry metadata on a sync submission. */
|
|
6
6
|
declare const SYNC_MAX_ENTRY_META_BYTES = 4096;
|
|
7
7
|
/** Ephemeral non-socket presence update for a server actor (such as an AI agent). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _t as EditorDocumentValue, d as AnyEditor, f as AuthoredDocumentProjection, m as AuthoredProjectionRefusal } from "./tx-only-
|
|
2
|
-
import "./authored-
|
|
1
|
+
import { _t as EditorDocumentValue, d as AnyEditor, f as AuthoredDocumentProjection, m as AuthoredProjectionRefusal } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./authored-qetvpvU--DSWESzxK.js";
|
|
3
3
|
/** `proposed` accepts every pending change; `accepted` rejects every one. */
|
|
4
4
|
type AuthoredFormatProjection = 'accepted' | 'proposed';
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cc as Selection, Di as HistoryApi, Do as PluginTypeProvider, Lc as SnapshotInput, Qa as Plugin, Ul as TxOnlyMethod, V as Editor, Vl as TxDeclaredMethod, Wl as Value, jn as EditorSchemaIdentity, vt as EditorEffect, z as DocumentChange } from "./tx-only-
|
|
1
|
+
import { Cc as Selection, Di as HistoryApi, Do as PluginTypeProvider, Lc as SnapshotInput, Qa as Plugin, Ul as TxOnlyMethod, V as Editor, Vl as TxDeclaredMethod, Wl as Value, jn as EditorSchemaIdentity, vt as EditorEffect, z as DocumentChange } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
2
|
interface Batch<_V extends Value = Value> {
|
|
3
3
|
/** Canonical change to apply when this batch is consumed. */
|
|
4
4
|
readonly change: DocumentChange;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { Ra as DefinitionOf, p as BasePlugin, vt as NodeInsertOptions } from "./core-
|
|
1
|
+
import { Vl as TxDeclaredMethod, qo as PropertyStringDescriptor, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { Ra as DefinitionOf, p as BasePlugin, vt as NodeInsertOptions } from "./core-By92GWYW.js";
|
|
4
4
|
declare const isNonBlankString: (value: unknown) => value is string;
|
|
5
5
|
/** Options for inserting a mention node through `BaseMentionPlugin`. */
|
|
6
6
|
type MentionInsertOptions = NodeInsertOptions & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./widths-9NNziDRW.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Mt as EditorJsonValue, N as Descendant, Qo as PropertyValueOptions, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wl as Value, gi as Element$1, ma as NodeKey, qo as PropertyStringDescriptor, uu as getActiveCommandEditor, wi as ElementOf } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { Qt as BaseInputRule, ct as BlockInsertOptions, gn as InsertDataInputRuleReadContext, lt as BlockUpsertOptions, nn as DefinedInsertDataFollowUpInputRule, o as Editor, p as BasePlugin } from "./core-
|
|
1
|
+
import { Mt as EditorJsonValue, N as Descendant, Qo as PropertyValueOptions, Uo as PropertyNumberDescriptor, Vl as TxDeclaredMethod, Vo as PropertyJsonDescriptor, Wl as Value, gi as Element$1, ma as NodeKey, qo as PropertyStringDescriptor, uu as getActiveCommandEditor, wi as ElementOf } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { Qt as BaseInputRule, ct as BlockInsertOptions, gn as InsertDataInputRuleReadContext, lt as BlockUpsertOptions, nn as DefinedInsertDataFollowUpInputRule, o as Editor, p as BasePlugin } from "./core-By92GWYW.js";
|
|
4
4
|
/** Shared URL validation and transform state for media plugins. */
|
|
5
5
|
type MediaPluginState = {
|
|
6
6
|
/** Overrides default URL validation for this media plugin. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Qa as Plugin, Vl as TxDeclaredMethod, ma as NodeKey } from "./tx-only-
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import { o as Editor, p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-
|
|
1
|
+
import { Qa as Plugin, Vl as TxDeclaredMethod, ma as NodeKey } from "./tx-only-sIj7BcYh-BMFkGMuq.js";
|
|
2
|
+
import "./htmlTypes-3laowz-3.js";
|
|
3
|
+
import { o as Editor, p as BasePlugin, rr as BasePluginDependencyReferenceFor } from "./core-By92GWYW.js";
|
|
4
4
|
/** One authored suggestion highlight span inside a passage's live text. */
|
|
5
5
|
type InkPassageSvgSuggestion = Readonly<{
|
|
6
6
|
/** Exclusive character offset in the block's `inkText`. */
|