@jetprint/editor-sdk 1.2.10 → 1.2.12
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/components/Editor/components/EditorHoverTip.vue.d.ts +2 -0
- package/dist/components/Editor/composables/useFontLoader.d.ts +15 -0
- package/dist/components/Editor/index.vue.d.ts +5 -5
- package/dist/editor-sdk.es.js +17078 -17001
- package/dist/style.css +1 -1
- package/dist/utils/fileToken.d.ts +0 -1
- package/dist/utils/protection/encryptedModules.generated.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/** 每个字体实际拥有的变体能力(据 document.fonts 加载结果探测):用于禁用无粗体/斜体字体的 B/I 按钮 */
|
|
2
|
+
export declare const fontCapabilities: import("vue").Ref<Record<string, {
|
|
3
|
+
bold: boolean;
|
|
4
|
+
italic: boolean;
|
|
5
|
+
}>, Record<string, {
|
|
6
|
+
bold: boolean;
|
|
7
|
+
italic: boolean;
|
|
8
|
+
}>>;
|
|
1
9
|
export declare function loadFont(fontFamily: string): Promise<void>;
|
|
2
10
|
export declare function preloadAllFonts(): Promise<void>;
|
|
3
11
|
export declare function useFontLoader(): {
|
|
@@ -5,4 +13,11 @@ export declare function useFontLoader(): {
|
|
|
5
13
|
loadFont: typeof loadFont;
|
|
6
14
|
loadedFonts: Set<string>;
|
|
7
15
|
preloadAllFonts: typeof preloadAllFonts;
|
|
16
|
+
fontCapabilities: import("vue").Ref<Record<string, {
|
|
17
|
+
bold: boolean;
|
|
18
|
+
italic: boolean;
|
|
19
|
+
}>, Record<string, {
|
|
20
|
+
bold: boolean;
|
|
21
|
+
italic: boolean;
|
|
22
|
+
}>>;
|
|
8
23
|
};
|
|
@@ -43,15 +43,15 @@ type EditorProps = {
|
|
|
43
43
|
/** 左侧栏额外 Tab(竖条 + 内容区由宿主传入 Vue 组件) */
|
|
44
44
|
customSidebarTabs?: CustomSidebarTabDef[];
|
|
45
45
|
};
|
|
46
|
-
declare var
|
|
46
|
+
declare var __VLS_25: {}, __VLS_31: {}, __VLS_144: {}, __VLS_150: {};
|
|
47
47
|
type __VLS_Slots = {} & {
|
|
48
|
-
'topbar-left'?: (props: typeof
|
|
48
|
+
'topbar-left'?: (props: typeof __VLS_25) => any;
|
|
49
49
|
} & {
|
|
50
|
-
'topbar-right'?: (props: typeof
|
|
50
|
+
'topbar-right'?: (props: typeof __VLS_31) => any;
|
|
51
51
|
} & {
|
|
52
|
-
'topbar-left'?: (props: typeof
|
|
52
|
+
'topbar-left'?: (props: typeof __VLS_144) => any;
|
|
53
53
|
} & {
|
|
54
|
-
'topbar-right'?: (props: typeof
|
|
54
|
+
'topbar-right'?: (props: typeof __VLS_150) => any;
|
|
55
55
|
};
|
|
56
56
|
declare const __VLS_component: import("vue").DefineComponent<EditorProps, {
|
|
57
57
|
renderAllTemplates: () => Promise<Array<{
|