superdoc 2.20.1-next.1 → 2.20.1-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/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/style.css +2 -2
- package/dist/style.layered.css +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +1 -0
- package/dist/superdoc.cjs +6 -6
- package/dist/superdoc.es.js +6 -6
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +14 -14
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
19
19
|
var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
|
|
20
20
|
var ENGINE_INFO = Object.freeze({
|
|
21
21
|
...PRIVATE_ENGINE_INFO,
|
|
22
|
-
superdocVersion: "2.20.1-next.
|
|
22
|
+
superdocVersion: "2.20.1-next.3",
|
|
23
23
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
24
24
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
25
25
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
18
18
|
var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
|
|
19
19
|
var ENGINE_INFO = Object.freeze({
|
|
20
20
|
...PRIVATE_ENGINE_INFO,
|
|
21
|
-
superdocVersion: "2.20.1-next.
|
|
21
|
+
superdocVersion: "2.20.1-next.3",
|
|
22
22
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
23
23
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
24
24
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
package/dist/style.css
CHANGED
|
@@ -3022,7 +3022,7 @@ img[data-v-c95b2073] {
|
|
|
3022
3022
|
display: flex;
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
|
-
.superdoc-toolbar[data-v-
|
|
3025
|
+
.superdoc-toolbar[data-v-0d00bc5b] {
|
|
3026
3026
|
display: flex;
|
|
3027
3027
|
width: 100%;
|
|
3028
3028
|
justify-content: space-between;
|
|
@@ -3034,7 +3034,7 @@ img[data-v-c95b2073] {
|
|
|
3034
3034
|
z-index: var(--sd-ui-toolbar-z-index, 10);
|
|
3035
3035
|
}
|
|
3036
3036
|
@media (max-width: 768px) {
|
|
3037
|
-
.superdoc-toolbar[data-v-
|
|
3037
|
+
.superdoc-toolbar[data-v-0d00bc5b] {
|
|
3038
3038
|
padding: 4px 10px;
|
|
3039
3039
|
justify-content: inherit;
|
|
3040
3040
|
}
|
package/dist/style.layered.css
CHANGED
|
@@ -3022,7 +3022,7 @@ img[data-v-c95b2073] {
|
|
|
3022
3022
|
display: flex;
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
|
-
.superdoc-toolbar[data-v-
|
|
3025
|
+
.superdoc-toolbar[data-v-0d00bc5b] {
|
|
3026
3026
|
display: flex;
|
|
3027
3027
|
width: 100%;
|
|
3028
3028
|
justify-content: space-between;
|
|
@@ -3034,7 +3034,7 @@ img[data-v-c95b2073] {
|
|
|
3034
3034
|
z-index: var(--sd-ui-toolbar-z-index, 10);
|
|
3035
3035
|
}
|
|
3036
3036
|
@media (max-width: 768px) {
|
|
3037
|
-
.superdoc-toolbar[data-v-
|
|
3037
|
+
.superdoc-toolbar[data-v-0d00bc5b] {
|
|
3038
3038
|
padding: 4px 10px;
|
|
3039
3039
|
justify-content: inherit;
|
|
3040
3040
|
}
|
|
@@ -166,6 +166,7 @@ export class BuiltInToolbar extends EventEmitter<string | symbol, any> {
|
|
|
166
166
|
responsiveToContainer: boolean;
|
|
167
167
|
mode: string;
|
|
168
168
|
excludeItems: never[];
|
|
169
|
+
toolbarButtonsExclude: never[];
|
|
169
170
|
groups: null;
|
|
170
171
|
customButtons: never[];
|
|
171
172
|
showFormattingMarksButton: boolean;
|
package/dist/superdoc.cjs
CHANGED
|
@@ -316,7 +316,7 @@ var shuffleArray = (array) => {
|
|
|
316
316
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
317
317
|
function getSuperdocVersion() {
|
|
318
318
|
try {
|
|
319
|
-
return "2.20.1-next.
|
|
319
|
+
return "2.20.1-next.3";
|
|
320
320
|
} catch {
|
|
321
321
|
return "unknown";
|
|
322
322
|
}
|
|
@@ -41610,10 +41610,9 @@ var Toolbar_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vu
|
|
|
41610
41610
|
});
|
|
41611
41611
|
const showLeftSide = proxy.$toolbar.config?.toolbarGroups?.includes("left");
|
|
41612
41612
|
const showRightSide = proxy.$toolbar.config?.toolbarGroups?.includes("right");
|
|
41613
|
-
const excludeButtonsList = proxy.$toolbar.config?.toolbarButtonsExclude || [];
|
|
41614
41613
|
const getFilteredItems = (position) => {
|
|
41615
41614
|
toolbarStateVersion.value;
|
|
41616
|
-
return proxy.$toolbar.getToolbarItemByGroup(position)
|
|
41615
|
+
return proxy.$toolbar.getToolbarItemByGroup(position);
|
|
41617
41616
|
};
|
|
41618
41617
|
const updateCompactSideGroups = () => {
|
|
41619
41618
|
compactSideGroups.value = proxy.$toolbar.getAvailableWidth() <= RESPONSIVE_BREAKPOINTS.lg;
|
|
@@ -41787,7 +41786,7 @@ var Toolbar_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vu
|
|
|
41787
41786
|
], 32);
|
|
41788
41787
|
};
|
|
41789
41788
|
}
|
|
41790
|
-
}, [["__scopeId", "data-v-
|
|
41789
|
+
}, [["__scopeId", "data-v-0d00bc5b"]]);
|
|
41791
41790
|
//#endregion
|
|
41792
41791
|
//#region src/internal/toolbar/built-in/font-options.js
|
|
41793
41792
|
/**
|
|
@@ -45013,6 +45012,7 @@ var BuiltInToolbar = class extends require_eventemitter3.import_eventemitter3.de
|
|
|
45013
45012
|
responsiveToContainer: false,
|
|
45014
45013
|
mode: "docx",
|
|
45015
45014
|
excludeItems: [],
|
|
45015
|
+
toolbarButtonsExclude: [],
|
|
45016
45016
|
groups: null,
|
|
45017
45017
|
customButtons: [],
|
|
45018
45018
|
showFormattingMarksButton: false,
|
|
@@ -45178,7 +45178,7 @@ var BuiltInToolbar = class extends require_eventemitter3.import_eventemitter3.de
|
|
|
45178
45178
|
const selectedCustomOptions = new Map(this.#getAllToolbarItems().filter((item) => item.isCustomToolbarItem && item.type === "dropdown").map((item) => [item.name.value, item.selectedValue.value]));
|
|
45179
45179
|
const hasExplicitGroupComposition = this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length > 0;
|
|
45180
45180
|
const configuredItemNames = hasExplicitGroupComposition ? new Set(Object.values(this.config.groups).flatMap((items) => items)) : null;
|
|
45181
|
-
const excludedItemNames = new Set(this.config.excludeItems);
|
|
45181
|
+
const excludedItemNames = /* @__PURE__ */ new Set([...this.config.excludeItems ?? [], ...this.config.toolbarButtonsExclude ?? []]);
|
|
45182
45182
|
const customItems = this.config.customButtons || [];
|
|
45183
45183
|
const takenNames = new Set(RESERVED_TOOLBAR_ITEM_NAMES);
|
|
45184
45184
|
const customToolbarItems = customItems.map((item, index) => {
|
|
@@ -46337,7 +46337,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46337
46337
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46338
46338
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46339
46339
|
this.colorIndex = 0;
|
|
46340
|
-
this.version = "2.20.1-next.
|
|
46340
|
+
this.version = "2.20.1-next.3";
|
|
46341
46341
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46342
46342
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46343
46343
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -314,7 +314,7 @@ var shuffleArray = (array) => {
|
|
|
314
314
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
315
315
|
function getSuperdocVersion() {
|
|
316
316
|
try {
|
|
317
|
-
return "2.20.1-next.
|
|
317
|
+
return "2.20.1-next.3";
|
|
318
318
|
} catch {
|
|
319
319
|
return "unknown";
|
|
320
320
|
}
|
|
@@ -41559,10 +41559,9 @@ var Toolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
41559
41559
|
});
|
|
41560
41560
|
const showLeftSide = proxy.$toolbar.config?.toolbarGroups?.includes("left");
|
|
41561
41561
|
const showRightSide = proxy.$toolbar.config?.toolbarGroups?.includes("right");
|
|
41562
|
-
const excludeButtonsList = proxy.$toolbar.config?.toolbarButtonsExclude || [];
|
|
41563
41562
|
const getFilteredItems = (position) => {
|
|
41564
41563
|
toolbarStateVersion.value;
|
|
41565
|
-
return proxy.$toolbar.getToolbarItemByGroup(position)
|
|
41564
|
+
return proxy.$toolbar.getToolbarItemByGroup(position);
|
|
41566
41565
|
};
|
|
41567
41566
|
const updateCompactSideGroups = () => {
|
|
41568
41567
|
compactSideGroups.value = proxy.$toolbar.getAvailableWidth() <= RESPONSIVE_BREAKPOINTS.lg;
|
|
@@ -41736,7 +41735,7 @@ var Toolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
41736
41735
|
], 32);
|
|
41737
41736
|
};
|
|
41738
41737
|
}
|
|
41739
|
-
}, [["__scopeId", "data-v-
|
|
41738
|
+
}, [["__scopeId", "data-v-0d00bc5b"]]);
|
|
41740
41739
|
//#endregion
|
|
41741
41740
|
//#region src/internal/toolbar/built-in/font-options.js
|
|
41742
41741
|
/**
|
|
@@ -44942,6 +44941,7 @@ var BuiltInToolbar = class extends import_eventemitter3.default {
|
|
|
44942
44941
|
responsiveToContainer: false,
|
|
44943
44942
|
mode: "docx",
|
|
44944
44943
|
excludeItems: [],
|
|
44944
|
+
toolbarButtonsExclude: [],
|
|
44945
44945
|
groups: null,
|
|
44946
44946
|
customButtons: [],
|
|
44947
44947
|
showFormattingMarksButton: false,
|
|
@@ -45107,7 +45107,7 @@ var BuiltInToolbar = class extends import_eventemitter3.default {
|
|
|
45107
45107
|
const selectedCustomOptions = new Map(this.#getAllToolbarItems().filter((item) => item.isCustomToolbarItem && item.type === "dropdown").map((item) => [item.name.value, item.selectedValue.value]));
|
|
45108
45108
|
const hasExplicitGroupComposition = this.config.groups && !Array.isArray(this.config.groups) && Object.keys(this.config.groups).length > 0;
|
|
45109
45109
|
const configuredItemNames = hasExplicitGroupComposition ? new Set(Object.values(this.config.groups).flatMap((items) => items)) : null;
|
|
45110
|
-
const excludedItemNames = new Set(this.config.excludeItems);
|
|
45110
|
+
const excludedItemNames = /* @__PURE__ */ new Set([...this.config.excludeItems ?? [], ...this.config.toolbarButtonsExclude ?? []]);
|
|
45111
45111
|
const customItems = this.config.customButtons || [];
|
|
45112
45112
|
const takenNames = new Set(RESERVED_TOOLBAR_ITEM_NAMES);
|
|
45113
45113
|
const customToolbarItems = customItems.map((item, index) => {
|
|
@@ -46266,7 +46266,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46266
46266
|
this.config.colors = shuffleArray(this.config.colors);
|
|
46267
46267
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46268
46268
|
this.colorIndex = 0;
|
|
46269
|
-
this.version = "2.20.1-next.
|
|
46269
|
+
this.version = "2.20.1-next.3";
|
|
46270
46270
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46271
46271
|
this.superdocId = config.superdocId || v4();
|
|
46272
46272
|
this.colors = this.config.colors ?? [];
|