@harbour-enterprises/superdoc 1.8.0-next.2 → 1.8.0-next.3
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/chunks/{PdfViewer-DQeTXTnR.es.js → PdfViewer-D2QJOg3-.es.js} +2 -2
- package/dist/chunks/{PdfViewer-HJyFvElE.cjs → PdfViewer-NDFZ2Rp7.cjs} +2 -2
- package/dist/chunks/{SuperConverter-C-3oNlYo.cjs → SuperConverter-0rmmECRS.cjs} +1 -1
- package/dist/chunks/{SuperConverter-Br0Eq-TV.es.js → SuperConverter-BOsF-mqZ.es.js} +1 -1
- package/dist/chunks/{index-CQ5eyZh8.es.js → index-BiiF4VRu.es.js} +4 -4
- package/dist/chunks/{index-BTaAZtKc.cjs → index-C2RSw98q.cjs} +4 -4
- package/dist/chunks/{index-3dXTFEES.cjs → index-DJtl6sUM.cjs} +5 -5
- package/dist/chunks/{index-Ck-OA2Y9.es.js → index-DmCBAgUe.es.js} +5 -5
- package/dist/super-editor/converter.cjs +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +3 -3
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +6 -6
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as defineComponent, h, T as Transition, p as process$1, w as watchEffect, c as computed, r as ref, f as onMounted, X as onUnmounted, E as createElementBlock, G as openBlock, K as createBaseVNode, M as createCommentVNode, I as createVNode, v as unref } from "./vue-BnBKJwCW.es.js";
|
|
2
|
-
import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-
|
|
3
|
-
import { C as derived, r as c, q as cB, aF as fadeInTransition, y as cM, I as warnOnce, J as useConfig, N as useTheme, aG as pxfy, P as createKey, Q as useThemeClass, aH as useCompitable, ai as _export_sfc } from "./index-
|
|
2
|
+
import { N as NBaseLoading, u as useSuperdocStore, s as storeToRefs, a as useSelection } from "./index-BiiF4VRu.es.js";
|
|
3
|
+
import { C as derived, r as c, q as cB, aF as fadeInTransition, y as cM, I as warnOnce, J as useConfig, N as useTheme, aG as pxfy, P as createKey, Q as useThemeClass, aH as useCompitable, ai as _export_sfc } from "./index-DmCBAgUe.es.js";
|
|
4
4
|
function self(vars) {
|
|
5
5
|
const {
|
|
6
6
|
opacityDisabled,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("./vue-De9wkgLl.cjs");
|
|
4
|
-
const superdoc = require("./index-
|
|
5
|
-
const index = require("./index-
|
|
4
|
+
const superdoc = require("./index-C2RSw98q.cjs");
|
|
5
|
+
const index = require("./index-DJtl6sUM.cjs");
|
|
6
6
|
function self(vars) {
|
|
7
7
|
const {
|
|
8
8
|
opacityDisabled,
|
|
@@ -32862,7 +32862,7 @@ class SuperConverter {
|
|
|
32862
32862
|
static getStoredSuperdocVersion(docx) {
|
|
32863
32863
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
32864
32864
|
}
|
|
32865
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.8.0-next.
|
|
32865
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.8.0-next.3") {
|
|
32866
32866
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
32867
32867
|
}
|
|
32868
32868
|
/**
|
|
@@ -32861,7 +32861,7 @@ class SuperConverter {
|
|
|
32861
32861
|
static getStoredSuperdocVersion(docx) {
|
|
32862
32862
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
32863
32863
|
}
|
|
32864
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.8.0-next.
|
|
32864
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.8.0-next.3") {
|
|
32865
32865
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
32866
32866
|
}
|
|
32867
32867
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as BIT8, M as MAX_SAFE_INTEGER, c as create, a as BITS7, u as utf8TextDecoder, b as create$1, s as setIfUndefined, d as create$2, f as from, e as floor$1, g as equalityDeep, w as writeVarUint, h as writeVarString, t as toUint8Array, i as createEncoder, j as createInjectionKey, k as toString, l as throwError, m as useSsrAdapter, n as configProviderInjectionKey, o as cssrAnchorMetaName, p as globalStyle, q as cB, r as c, v as isMounted, x as commonVariables$2, y as cM, z as cNotM, A as cE, C as derived, D as changeColor, E as insideModal, F as insidePopover, G as resolveWrappedSlot, H as on, I as warnOnce, J as useConfig, K as useMergedState, L as useMemo, N as useTheme, O as useRtl, P as createKey, Q as useThemeClass, R as createId, S as call, T as render, U as messageProviderInjectionKey, V as messageApiInjectionKey, W as fromBase64, X as onChange, Y as varStorage, Z as toBase64, _ as createUint8ArrayFromArrayBuffer, $ as offChange, a0 as writeVarUint8Array, a1 as map, a2 as length, a3 as isNode, a4 as min, a5 as pow, a6 as comments_module_events, a7 as getFileObject, a8 as getTrackChanges, a9 as CommentsPluginKey, aa as TrackChangesBasePluginKey, ab as Editor, ac as getRichTextExtensions, ad as ellipsisVerticalSvg, ae as xmarkIconSvg, af as checkIconSvg, ag as caretDownIconSvg, ah as commentIconSvg, ai as _export_sfc, aj as NDropdown, ak as SuperInput, al as vClickOutside, am as PresentationEditor, an as SuperEditor, ao as AIWriter, ap as NConfigProvider, aq as SuperToolbar } from "./index-
|
|
1
|
+
import { B as BIT8, M as MAX_SAFE_INTEGER, c as create, a as BITS7, u as utf8TextDecoder, b as create$1, s as setIfUndefined, d as create$2, f as from, e as floor$1, g as equalityDeep, w as writeVarUint, h as writeVarString, t as toUint8Array, i as createEncoder, j as createInjectionKey, k as toString, l as throwError, m as useSsrAdapter, n as configProviderInjectionKey, o as cssrAnchorMetaName, p as globalStyle, q as cB, r as c, v as isMounted, x as commonVariables$2, y as cM, z as cNotM, A as cE, C as derived, D as changeColor, E as insideModal, F as insidePopover, G as resolveWrappedSlot, H as on, I as warnOnce, J as useConfig, K as useMergedState, L as useMemo, N as useTheme, O as useRtl, P as createKey, Q as useThemeClass, R as createId, S as call, T as render, U as messageProviderInjectionKey, V as messageApiInjectionKey, W as fromBase64, X as onChange, Y as varStorage, Z as toBase64, _ as createUint8ArrayFromArrayBuffer, $ as offChange, a0 as writeVarUint8Array, a1 as map, a2 as length, a3 as isNode, a4 as min, a5 as pow, a6 as comments_module_events, a7 as getFileObject, a8 as getTrackChanges, a9 as CommentsPluginKey, aa as TrackChangesBasePluginKey, ab as Editor, ac as getRichTextExtensions, ad as ellipsisVerticalSvg, ae as xmarkIconSvg, af as checkIconSvg, ag as caretDownIconSvg, ah as commentIconSvg, ai as _export_sfc, aj as NDropdown, ak as SuperInput, al as vClickOutside, am as PresentationEditor, an as SuperEditor, ao as AIWriter, ap as NConfigProvider, aq as SuperToolbar } from "./index-DmCBAgUe.es.js";
|
|
2
2
|
import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
|
|
3
3
|
import { E as EventEmitter } from "./eventemitter3-CwrdEv8r.es.js";
|
|
4
4
|
import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
|
|
5
5
|
import "./jszip-B1fkPkPJ.es.js";
|
|
6
6
|
import "./helpers-C8e9wR5l.es.js";
|
|
7
|
-
import "./SuperConverter-
|
|
7
|
+
import "./SuperConverter-BOsF-mqZ.es.js";
|
|
8
8
|
import { i as inject, a as provide, c as computed, o as onBeforeUnmount, p as process$1, b as onBeforeMount, d as defineComponent, h, t as toRef, T as Transition, e as TransitionGroup, w as watchEffect, r as ref, f as onMounted, g as Teleport, F as Fragment, j as reactive, k as effectScope, m as markRaw, l as toRaw, n as isRef, q as isReactive, s as getCurrentInstance, u as watch, v as unref, x as hasInjectionContext, y as nextTick, z as getCurrentScope, A as onScopeDispose, B as toRefs, C as global, D as shallowRef, E as createElementBlock, G as openBlock, H as toDisplayString, I as createVNode, J as withCtx, K as createBaseVNode, L as normalizeStyle, M as createCommentVNode, N as createBlock, O as withModifiers, P as normalizeClass, Q as resolveDirective, R as withDirectives, S as renderList, U as createApp, V as resolveDynamicComponent, W as defineAsyncComponent } from "./vue-BnBKJwCW.es.js";
|
|
9
9
|
import "./jszip.min-DCl8qkFO.es.js";
|
|
10
10
|
import { createZip } from "../super-editor/file-zipper.es.js";
|
|
@@ -7535,7 +7535,7 @@ const _sfc_main = {
|
|
|
7535
7535
|
__name: "SuperDoc",
|
|
7536
7536
|
emits: ["selection-update"],
|
|
7537
7537
|
setup(__props, { emit: __emit }) {
|
|
7538
|
-
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-
|
|
7538
|
+
const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-D2QJOg3-.es.js"));
|
|
7539
7539
|
const superdocStore = useSuperdocStore();
|
|
7540
7540
|
const commentsStore = useCommentsStore();
|
|
7541
7541
|
const {
|
|
@@ -8483,7 +8483,7 @@ class SuperDoc extends EventEmitter {
|
|
|
8483
8483
|
this.config.colors = shuffleArray(this.config.colors);
|
|
8484
8484
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
8485
8485
|
this.colorIndex = 0;
|
|
8486
|
-
this.version = "1.8.0-next.
|
|
8486
|
+
this.version = "1.8.0-next.3";
|
|
8487
8487
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
8488
8488
|
this.superdocId = config.superdocId || v4();
|
|
8489
8489
|
this.colors = this.config.colors;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require("./index-
|
|
2
|
+
const index = require("./index-DJtl6sUM.cjs");
|
|
3
3
|
const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
|
|
4
4
|
const eventemitter3 = require("./eventemitter3-BQuRcMPI.cjs");
|
|
5
5
|
const provider = require("@hocuspocus/provider");
|
|
6
6
|
require("./jszip-C8_CqJxM.cjs");
|
|
7
7
|
require("./helpers-nOdwpmwb.cjs");
|
|
8
|
-
require("./SuperConverter-
|
|
8
|
+
require("./SuperConverter-0rmmECRS.cjs");
|
|
9
9
|
const vue = require("./vue-De9wkgLl.cjs");
|
|
10
10
|
require("./jszip.min-BPh2MMAa.cjs");
|
|
11
11
|
const superEditor_fileZipper = require("../super-editor/file-zipper.cjs");
|
|
@@ -7552,7 +7552,7 @@ const _sfc_main = {
|
|
|
7552
7552
|
__name: "SuperDoc",
|
|
7553
7553
|
emits: ["selection-update"],
|
|
7554
7554
|
setup(__props, { emit: __emit }) {
|
|
7555
|
-
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-
|
|
7555
|
+
const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-NDFZ2Rp7.cjs")));
|
|
7556
7556
|
const superdocStore = useSuperdocStore();
|
|
7557
7557
|
const commentsStore = useCommentsStore();
|
|
7558
7558
|
const {
|
|
@@ -8500,7 +8500,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
|
|
|
8500
8500
|
this.config.colors = shuffleArray(this.config.colors);
|
|
8501
8501
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
8502
8502
|
this.colorIndex = 0;
|
|
8503
|
-
this.version = "1.8.0-next.
|
|
8503
|
+
this.version = "1.8.0-next.3";
|
|
8504
8504
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
8505
8505
|
this.superdocId = config.superdocId || uuid.v4();
|
|
8506
8506
|
this.colors = this.config.colors;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jszip = require("./jszip-C8_CqJxM.cjs");
|
|
3
3
|
const helpers$1 = require("./helpers-nOdwpmwb.cjs");
|
|
4
|
-
const superEditor_converter = require("./SuperConverter-
|
|
4
|
+
const superEditor_converter = require("./SuperConverter-0rmmECRS.cjs");
|
|
5
5
|
const vue = require("./vue-De9wkgLl.cjs");
|
|
6
6
|
require("./jszip.min-BPh2MMAa.cjs");
|
|
7
7
|
const eventemitter3 = require("./eventemitter3-BQuRcMPI.cjs");
|
|
@@ -16102,7 +16102,7 @@ const canUseDOM = () => {
|
|
|
16102
16102
|
return false;
|
|
16103
16103
|
}
|
|
16104
16104
|
};
|
|
16105
|
-
const summaryVersion = "1.8.0-next.
|
|
16105
|
+
const summaryVersion = "1.8.0-next.3";
|
|
16106
16106
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
16107
16107
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
16108
16108
|
function mapAttributes(attrs) {
|
|
@@ -18759,7 +18759,7 @@ class Editor extends EventEmitter {
|
|
|
18759
18759
|
* Process collaboration migrations
|
|
18760
18760
|
*/
|
|
18761
18761
|
processCollaborationMigrations() {
|
|
18762
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.8.0-next.
|
|
18762
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.8.0-next.3");
|
|
18763
18763
|
if (!this.options.ydoc) return;
|
|
18764
18764
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
18765
18765
|
let docVersion = metaMap.get("version");
|
|
@@ -78767,9 +78767,9 @@ class SearchIndex {
|
|
|
78767
78767
|
* @returns {string} Regex pattern string
|
|
78768
78768
|
*/
|
|
78769
78769
|
static toFlexiblePattern(searchString) {
|
|
78770
|
-
const parts = searchString.split(
|
|
78770
|
+
const parts = searchString.split(/[\s\u00a0]+/).filter((part) => part.length > 0);
|
|
78771
78771
|
if (parts.length === 0) return "";
|
|
78772
|
-
return parts.map((part) => SearchIndex.escapeRegex(part)).join("\\s+");
|
|
78772
|
+
return parts.map((part) => SearchIndex.escapeRegex(part)).join("[\\s\\u00a0]+");
|
|
78773
78773
|
}
|
|
78774
78774
|
/**
|
|
78775
78775
|
* Search the index for matches.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as Buffer$2 } from "./jszip-B1fkPkPJ.es.js";
|
|
2
2
|
import { t as twipsToInches, i as inchesToTwips, p as ptToTwips, l as linesToTwips, a as twipsToLines, b as pixelsToTwips, h as halfPointToPoints, c as twipsToPixels$2, d as convertSizeToCSS, e as inchesToPixels } from "./helpers-C8e9wR5l.es.js";
|
|
3
|
-
import { g as generateDocxRandomId, T as TextSelection$1, o as objectIncludes, w as wrapTextsInRuns, D as DOMParser$1, c as createDocFromMarkdown, a as createDocFromHTML, F as Fragment, b as chainableEditorState, d as convertMarkdownToHTML, f as findParentNode, e as findParentNodeClosestToPos, h as generateRandom32BitHex, i as generateRandomSigned32BitIntStrId, P as PluginKey, j as Plugin, M as Mapping, N as NodeSelection, k as Selection, l as Slice, m as DOMSerializer, n as Mark$1, p as dropPoint, A as AllSelection, q as Schema$1, s as canSplit, t as resolveRunProperties, u as encodeMarksFromRPr, v as liftTarget, x as canJoin, y as joinPoint, z as replaceStep$1, R as ReplaceAroundStep$1, B as htmlHandler, C as ReplaceStep, E as getResolvedParagraphProperties, G as changeListLevel, H as isList$1, I as updateNumberingProperties, L as ListHelpers, J as inputRulesPlugin, K as TrackDeleteMarkName, O as TrackInsertMarkName, Q as TrackFormatMarkName, U as AddMarkStep, V as RemoveMarkStep, W as CommandService, S as SuperConverter, X as EditorState, Y as unflattenListsInHtml, Z as SelectionRange, _ as Transform, $ as createOoxmlResolver, a0 as translator, a1 as translator$1, a2 as resolveDocxFontFamily, a3 as combineIndentProperties, a4 as _getReferencedTableStyles, a5 as decodeRPrFromMarks, a6 as calculateResolvedParagraphProperties, a7 as encodeCSSFromPPr, a8 as encodeCSSFromRPr, a9 as generateOrderedListIndex, aa as docxNumberingHelpers, ab as InputRule, ac as insertNewRelationship, ad as kebabCase$1, ae as getUnderlineCssString } from "./SuperConverter-
|
|
3
|
+
import { g as generateDocxRandomId, T as TextSelection$1, o as objectIncludes, w as wrapTextsInRuns, D as DOMParser$1, c as createDocFromMarkdown, a as createDocFromHTML, F as Fragment, b as chainableEditorState, d as convertMarkdownToHTML, f as findParentNode, e as findParentNodeClosestToPos, h as generateRandom32BitHex, i as generateRandomSigned32BitIntStrId, P as PluginKey, j as Plugin, M as Mapping, N as NodeSelection, k as Selection, l as Slice, m as DOMSerializer, n as Mark$1, p as dropPoint, A as AllSelection, q as Schema$1, s as canSplit, t as resolveRunProperties, u as encodeMarksFromRPr, v as liftTarget, x as canJoin, y as joinPoint, z as replaceStep$1, R as ReplaceAroundStep$1, B as htmlHandler, C as ReplaceStep, E as getResolvedParagraphProperties, G as changeListLevel, H as isList$1, I as updateNumberingProperties, L as ListHelpers, J as inputRulesPlugin, K as TrackDeleteMarkName, O as TrackInsertMarkName, Q as TrackFormatMarkName, U as AddMarkStep, V as RemoveMarkStep, W as CommandService, S as SuperConverter, X as EditorState, Y as unflattenListsInHtml, Z as SelectionRange, _ as Transform, $ as createOoxmlResolver, a0 as translator, a1 as translator$1, a2 as resolveDocxFontFamily, a3 as combineIndentProperties, a4 as _getReferencedTableStyles, a5 as decodeRPrFromMarks, a6 as calculateResolvedParagraphProperties, a7 as encodeCSSFromPPr, a8 as encodeCSSFromRPr, a9 as generateOrderedListIndex, aa as docxNumberingHelpers, ab as InputRule, ac as insertNewRelationship, ad as kebabCase$1, ae as getUnderlineCssString } from "./SuperConverter-BOsF-mqZ.es.js";
|
|
4
4
|
import { p as process$1, r as ref, C as global$1, c as computed, E as createElementBlock, F as Fragment$1, S as renderList, O as withModifiers, G as openBlock, P as normalizeClass, M as createCommentVNode, H as toDisplayString, K as createBaseVNode, U as createApp, f as onMounted, X as onUnmounted, R as withDirectives, v as unref, Y as vModelText, y as nextTick, L as normalizeStyle, u as watch, Z as withKeys, _ as createTextVNode, I as createVNode, h as h$1, $ as readonly, s as getCurrentInstance, o as onBeforeUnmount, j as reactive, b as onBeforeMount, i as inject, a0 as onActivated, a1 as onDeactivated, a2 as Comment, d as defineComponent, a as provide, g as Teleport, t as toRef, a3 as renderSlot, a4 as isVNode, D as shallowRef, w as watchEffect, T as Transition, a5 as mergeProps, a6 as vShow, a7 as cloneVNode, a8 as Text$2, m as markRaw, N as createBlock, J as withCtx, a9 as useCssVars, V as resolveDynamicComponent, aa as normalizeProps, ab as guardReactiveProps } from "./vue-BnBKJwCW.es.js";
|
|
5
5
|
import "./jszip.min-DCl8qkFO.es.js";
|
|
6
6
|
import { E as EventEmitter$1 } from "./eventemitter3-CwrdEv8r.es.js";
|
|
@@ -16085,7 +16085,7 @@ const canUseDOM = () => {
|
|
|
16085
16085
|
return false;
|
|
16086
16086
|
}
|
|
16087
16087
|
};
|
|
16088
|
-
const summaryVersion = "1.8.0-next.
|
|
16088
|
+
const summaryVersion = "1.8.0-next.3";
|
|
16089
16089
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
16090
16090
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
16091
16091
|
function mapAttributes(attrs) {
|
|
@@ -18742,7 +18742,7 @@ class Editor extends EventEmitter {
|
|
|
18742
18742
|
* Process collaboration migrations
|
|
18743
18743
|
*/
|
|
18744
18744
|
processCollaborationMigrations() {
|
|
18745
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.8.0-next.
|
|
18745
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.8.0-next.3");
|
|
18746
18746
|
if (!this.options.ydoc) return;
|
|
18747
18747
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
18748
18748
|
let docVersion = metaMap.get("version");
|
|
@@ -78750,9 +78750,9 @@ class SearchIndex {
|
|
|
78750
78750
|
* @returns {string} Regex pattern string
|
|
78751
78751
|
*/
|
|
78752
78752
|
static toFlexiblePattern(searchString) {
|
|
78753
|
-
const parts = searchString.split(
|
|
78753
|
+
const parts = searchString.split(/[\s\u00a0]+/).filter((part) => part.length > 0);
|
|
78754
78754
|
if (parts.length === 0) return "";
|
|
78755
|
-
return parts.map((part) => SearchIndex.escapeRegex(part)).join("\\s+");
|
|
78755
|
+
return parts.map((part) => SearchIndex.escapeRegex(part)).join("[\\s\\u00a0]+");
|
|
78756
78756
|
}
|
|
78757
78757
|
/**
|
|
78758
78758
|
* Search the index for matches.
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("../chunks/jszip-C8_CqJxM.cjs");
|
|
4
4
|
require("../chunks/helpers-nOdwpmwb.cjs");
|
|
5
|
-
const superEditor_converter = require("../chunks/SuperConverter-
|
|
5
|
+
const superEditor_converter = require("../chunks/SuperConverter-0rmmECRS.cjs");
|
|
6
6
|
require("../chunks/uuid-R7L08bOx.cjs");
|
|
7
7
|
exports.SuperConverter = superEditor_converter.SuperConverter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunks/jszip-B1fkPkPJ.es.js";
|
|
2
2
|
import "../chunks/helpers-C8e9wR5l.es.js";
|
|
3
|
-
import { S } from "../chunks/SuperConverter-
|
|
3
|
+
import { S } from "../chunks/SuperConverter-BOsF-mqZ.es.js";
|
|
4
4
|
import "../chunks/uuid-CjlX8hrF.es.js";
|
|
5
5
|
export {
|
|
6
6
|
S as SuperConverter
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./chunks/index-
|
|
3
|
+
const index = require("./chunks/index-DJtl6sUM.cjs");
|
|
4
4
|
const superEditor_docxZipper = require("./super-editor/docx-zipper.cjs");
|
|
5
5
|
const superEditor_fileZipper = require("./super-editor/file-zipper.cjs");
|
|
6
6
|
const vue = require("./chunks/vue-De9wkgLl.cjs");
|
|
7
|
-
const superEditor_converter = require("./chunks/SuperConverter-
|
|
7
|
+
const superEditor_converter = require("./chunks/SuperConverter-0rmmECRS.cjs");
|
|
8
8
|
function isNodeType(node, name) {
|
|
9
9
|
return node.type.name === name;
|
|
10
10
|
}
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ax as Node, ay as Mark } from "./chunks/index-
|
|
2
|
-
import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-
|
|
1
|
+
import { ax as Node, ay as Mark } from "./chunks/index-DmCBAgUe.es.js";
|
|
2
|
+
import { ao, au, a9, ab, aw, am, av, aA, an, ak, aq, az, aa, as, aC, aE, aB, ac, aD, ar, at } from "./chunks/index-DmCBAgUe.es.js";
|
|
3
3
|
import { default as default2 } from "./super-editor/docx-zipper.es.js";
|
|
4
4
|
import { createZip } from "./super-editor/file-zipper.es.js";
|
|
5
5
|
import { d as defineComponent, E as createElementBlock, G as openBlock, K as createBaseVNode } from "./chunks/vue-BnBKJwCW.es.js";
|
|
6
|
-
import { S, r } from "./chunks/SuperConverter-
|
|
6
|
+
import { S, r } from "./chunks/SuperConverter-BOsF-mqZ.es.js";
|
|
7
7
|
function isNodeType(node, name) {
|
|
8
8
|
return node.type.name === name;
|
|
9
9
|
}
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./chunks/index-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const index = require("./chunks/index-DJtl6sUM.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-C2RSw98q.cjs");
|
|
5
5
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
6
|
-
const superEditor_converter = require("./chunks/SuperConverter-
|
|
6
|
+
const superEditor_converter = require("./chunks/SuperConverter-0rmmECRS.cjs");
|
|
7
7
|
require("./chunks/jszip-C8_CqJxM.cjs");
|
|
8
8
|
require("./chunks/helpers-nOdwpmwb.cjs");
|
|
9
9
|
require("./chunks/jszip.min-BPh2MMAa.cjs");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { au, ab, aw, av, as, a7, ac, ar, at } from "./chunks/index-
|
|
2
|
-
import { D, H, P, S, c } from "./chunks/index-
|
|
1
|
+
import { au, ab, aw, av, as, a7, ac, ar, at } from "./chunks/index-DmCBAgUe.es.js";
|
|
2
|
+
import { D, H, P, S, c } from "./chunks/index-BiiF4VRu.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
|
-
import { S as S2, r } from "./chunks/SuperConverter-
|
|
4
|
+
import { S as S2, r } from "./chunks/SuperConverter-BOsF-mqZ.es.js";
|
|
5
5
|
import "./chunks/jszip-B1fkPkPJ.es.js";
|
|
6
6
|
import "./chunks/helpers-C8e9wR5l.es.js";
|
|
7
7
|
import "./chunks/jszip.min-DCl8qkFO.es.js";
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -38710,7 +38710,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38710
38710
|
static getStoredSuperdocVersion(docx) {
|
|
38711
38711
|
return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
38712
38712
|
}
|
|
38713
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.8.0-next.
|
|
38713
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.8.0-next.3") {
|
|
38714
38714
|
return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
38715
38715
|
}
|
|
38716
38716
|
/**
|
|
@@ -65052,7 +65052,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
65052
65052
|
return false;
|
|
65053
65053
|
}
|
|
65054
65054
|
};
|
|
65055
|
-
const summaryVersion = "1.8.0-next.
|
|
65055
|
+
const summaryVersion = "1.8.0-next.3";
|
|
65056
65056
|
const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
|
|
65057
65057
|
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
65058
65058
|
function mapAttributes(attrs) {
|
|
@@ -67710,7 +67710,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
67710
67710
|
* Process collaboration migrations
|
|
67711
67711
|
*/
|
|
67712
67712
|
processCollaborationMigrations() {
|
|
67713
|
-
console.debug("[checkVersionMigrations] Current editor version", "1.8.0-next.
|
|
67713
|
+
console.debug("[checkVersionMigrations] Current editor version", "1.8.0-next.3");
|
|
67714
67714
|
if (!this.options.ydoc) return;
|
|
67715
67715
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
67716
67716
|
let docVersion = metaMap.get("version");
|
|
@@ -127495,9 +127495,9 @@ ${o}
|
|
|
127495
127495
|
* @returns {string} Regex pattern string
|
|
127496
127496
|
*/
|
|
127497
127497
|
static toFlexiblePattern(searchString) {
|
|
127498
|
-
const parts = searchString.split(
|
|
127498
|
+
const parts = searchString.split(/[\s\u00a0]+/).filter((part) => part.length > 0);
|
|
127499
127499
|
if (parts.length === 0) return "";
|
|
127500
|
-
return parts.map((part) => SearchIndex.escapeRegex(part)).join("\\s+");
|
|
127500
|
+
return parts.map((part) => SearchIndex.escapeRegex(part)).join("[\\s\\u00a0]+");
|
|
127501
127501
|
}
|
|
127502
127502
|
/**
|
|
127503
127503
|
* Search the index for matches.
|
|
@@ -153615,7 +153615,7 @@ ${reason}`);
|
|
|
153615
153615
|
this.config.colors = shuffleArray(this.config.colors);
|
|
153616
153616
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
153617
153617
|
this.colorIndex = 0;
|
|
153618
|
-
this.version = "1.8.0-next.
|
|
153618
|
+
this.version = "1.8.0-next.3";
|
|
153619
153619
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
153620
153620
|
this.superdocId = config2.superdocId || v4();
|
|
153621
153621
|
this.colors = this.config.colors;
|