@univerjs/docs-ui 0.22.1 → 0.23.0-insiders.20260522-e8f2a3b
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/lib/cjs/index.js +3 -7
- package/lib/es/index.js +3 -7
- package/lib/index.js +3 -7
- package/lib/types/components/list-type-picker/index.d.ts +1 -1
- package/lib/types/services/clipboard/copy-content-cache.d.ts +0 -1
- package/lib/umd/index.js +9 -9
- package/package.json +10 -10
- package/LICENSE +0 -176
- /package/lib/types/components/list-type-picker/{picker.d.ts → Picker.d.ts} +0 -0
package/lib/cjs/index.js
CHANGED
|
@@ -2070,10 +2070,6 @@ const DeleteCurrentParagraphCommand = {
|
|
|
2070
2070
|
//#endregion
|
|
2071
2071
|
//#region src/services/clipboard/copy-content-cache.ts
|
|
2072
2072
|
const COPY_CONTENT_CACHE_LIMIT = 10;
|
|
2073
|
-
const ID_LENGTH$2 = 6;
|
|
2074
|
-
function genId() {
|
|
2075
|
-
return (0, _univerjs_core.generateRandomId)(ID_LENGTH$2);
|
|
2076
|
-
}
|
|
2077
2073
|
function extractId(html) {
|
|
2078
2074
|
const match = html.match(/data-copy-id="([^\s]+)"/);
|
|
2079
2075
|
if (match && match[1]) return match[1];
|
|
@@ -2880,7 +2876,7 @@ let DocClipboardService = class DocClipboardService extends _univerjs_core.Dispo
|
|
|
2880
2876
|
}
|
|
2881
2877
|
async _setClipboardData(documentList, needCache = true) {
|
|
2882
2878
|
var _documentList$0$body;
|
|
2883
|
-
const copyId =
|
|
2879
|
+
const copyId = (0, _univerjs_core.generateRandomId)(6);
|
|
2884
2880
|
const text = (documentList.length > 1 ? documentList.map((doc) => {
|
|
2885
2881
|
var _doc$body;
|
|
2886
2882
|
return ((_doc$body = doc.body) === null || _doc$body === void 0 ? void 0 : _doc$body.dataStream) || "";
|
|
@@ -8449,7 +8445,7 @@ const CloseHeaderFooterCommand = {
|
|
|
8449
8445
|
const COMPONENT_PREFIX = "UI_PLUGIN_DOCS";
|
|
8450
8446
|
|
|
8451
8447
|
//#endregion
|
|
8452
|
-
//#region src/components/list-type-picker/
|
|
8448
|
+
//#region src/components/list-type-picker/Picker.tsx
|
|
8453
8449
|
/**
|
|
8454
8450
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
8455
8451
|
*
|
|
@@ -12618,7 +12614,7 @@ function getPageSizeInModernMode(page) {
|
|
|
12618
12614
|
//#endregion
|
|
12619
12615
|
//#region package.json
|
|
12620
12616
|
var name = "@univerjs/docs-ui";
|
|
12621
|
-
var version = "0.
|
|
12617
|
+
var version = "0.23.0-insiders.20260522-e8f2a3b";
|
|
12622
12618
|
|
|
12623
12619
|
//#endregion
|
|
12624
12620
|
//#region src/controllers/doc-auto-format.controller.ts
|
package/lib/es/index.js
CHANGED
|
@@ -2069,10 +2069,6 @@ const DeleteCurrentParagraphCommand = {
|
|
|
2069
2069
|
//#endregion
|
|
2070
2070
|
//#region src/services/clipboard/copy-content-cache.ts
|
|
2071
2071
|
const COPY_CONTENT_CACHE_LIMIT = 10;
|
|
2072
|
-
const ID_LENGTH$2 = 6;
|
|
2073
|
-
function genId() {
|
|
2074
|
-
return generateRandomId(ID_LENGTH$2);
|
|
2075
|
-
}
|
|
2076
2072
|
function extractId(html) {
|
|
2077
2073
|
const match = html.match(/data-copy-id="([^\s]+)"/);
|
|
2078
2074
|
if (match && match[1]) return match[1];
|
|
@@ -2879,7 +2875,7 @@ let DocClipboardService = class DocClipboardService extends Disposable {
|
|
|
2879
2875
|
}
|
|
2880
2876
|
async _setClipboardData(documentList, needCache = true) {
|
|
2881
2877
|
var _documentList$0$body;
|
|
2882
|
-
const copyId =
|
|
2878
|
+
const copyId = generateRandomId(6);
|
|
2883
2879
|
const text = (documentList.length > 1 ? documentList.map((doc) => {
|
|
2884
2880
|
var _doc$body;
|
|
2885
2881
|
return ((_doc$body = doc.body) === null || _doc$body === void 0 ? void 0 : _doc$body.dataStream) || "";
|
|
@@ -8448,7 +8444,7 @@ const CloseHeaderFooterCommand = {
|
|
|
8448
8444
|
const COMPONENT_PREFIX = "UI_PLUGIN_DOCS";
|
|
8449
8445
|
|
|
8450
8446
|
//#endregion
|
|
8451
|
-
//#region src/components/list-type-picker/
|
|
8447
|
+
//#region src/components/list-type-picker/Picker.tsx
|
|
8452
8448
|
/**
|
|
8453
8449
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
8454
8450
|
*
|
|
@@ -12617,7 +12613,7 @@ function getPageSizeInModernMode(page) {
|
|
|
12617
12613
|
//#endregion
|
|
12618
12614
|
//#region package.json
|
|
12619
12615
|
var name = "@univerjs/docs-ui";
|
|
12620
|
-
var version = "0.
|
|
12616
|
+
var version = "0.23.0-insiders.20260522-e8f2a3b";
|
|
12621
12617
|
|
|
12622
12618
|
//#endregion
|
|
12623
12619
|
//#region src/controllers/doc-auto-format.controller.ts
|
package/lib/index.js
CHANGED
|
@@ -2069,10 +2069,6 @@ const DeleteCurrentParagraphCommand = {
|
|
|
2069
2069
|
//#endregion
|
|
2070
2070
|
//#region src/services/clipboard/copy-content-cache.ts
|
|
2071
2071
|
const COPY_CONTENT_CACHE_LIMIT = 10;
|
|
2072
|
-
const ID_LENGTH$2 = 6;
|
|
2073
|
-
function genId() {
|
|
2074
|
-
return generateRandomId(ID_LENGTH$2);
|
|
2075
|
-
}
|
|
2076
2072
|
function extractId(html) {
|
|
2077
2073
|
const match = html.match(/data-copy-id="([^\s]+)"/);
|
|
2078
2074
|
if (match && match[1]) return match[1];
|
|
@@ -2879,7 +2875,7 @@ let DocClipboardService = class DocClipboardService extends Disposable {
|
|
|
2879
2875
|
}
|
|
2880
2876
|
async _setClipboardData(documentList, needCache = true) {
|
|
2881
2877
|
var _documentList$0$body;
|
|
2882
|
-
const copyId =
|
|
2878
|
+
const copyId = generateRandomId(6);
|
|
2883
2879
|
const text = (documentList.length > 1 ? documentList.map((doc) => {
|
|
2884
2880
|
var _doc$body;
|
|
2885
2881
|
return ((_doc$body = doc.body) === null || _doc$body === void 0 ? void 0 : _doc$body.dataStream) || "";
|
|
@@ -8448,7 +8444,7 @@ const CloseHeaderFooterCommand = {
|
|
|
8448
8444
|
const COMPONENT_PREFIX = "UI_PLUGIN_DOCS";
|
|
8449
8445
|
|
|
8450
8446
|
//#endregion
|
|
8451
|
-
//#region src/components/list-type-picker/
|
|
8447
|
+
//#region src/components/list-type-picker/Picker.tsx
|
|
8452
8448
|
/**
|
|
8453
8449
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
8454
8450
|
*
|
|
@@ -12617,7 +12613,7 @@ function getPageSizeInModernMode(page) {
|
|
|
12617
12613
|
//#endregion
|
|
12618
12614
|
//#region package.json
|
|
12619
12615
|
var name = "@univerjs/docs-ui";
|
|
12620
|
-
var version = "0.
|
|
12616
|
+
var version = "0.23.0-insiders.20260522-e8f2a3b";
|
|
12621
12617
|
|
|
12622
12618
|
//#endregion
|
|
12623
12619
|
//#region src/controllers/doc-auto-format.controller.ts
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export { BulletListTypePicker, OrderListTypePicker } from './
|
|
16
|
+
export { BulletListTypePicker, OrderListTypePicker } from './Picker';
|
|
17
17
|
export declare const ORDER_LIST_TYPE_COMPONENT = "UI_PLUGIN_DOCS_ORDER_LIST_TYPE_COMPONENT";
|
|
18
18
|
export declare const BULLET_LIST_TYPE_COMPONENT = "UI_PLUGIN_DOCS_BULLET_LIST_TYPE_COMPONENT";
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IDocumentData } from '@univerjs/core';
|
|
17
|
-
export declare function genId(): string;
|
|
18
17
|
export declare function extractId(html: string): string | null;
|
|
19
18
|
export declare class CopyContentCache {
|
|
20
19
|
private _cache;
|