oasis-editor 0.0.329 → 0.0.331
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/OasisEditorApp-CAUL_Qbk.js +1 -0
- package/dist/assets/{importDocxWorker-Ci29uUzG.js → importDocxWorker-DOTpDpIk.js} +1258 -1149
- package/dist/core/editorState/migrateBuiltinStyles.d.ts +7 -0
- package/dist/core/model/builtinStyles.d.ts +12 -0
- package/dist/core/model/types/styles.d.ts +6 -0
- package/dist/defaultToolbar-DYrAE6Ln.js +1 -0
- package/dist/i18n/locales/en.d.ts +11 -0
- package/dist/i18n/locales/pt-BR.d.ts +11 -0
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/app/essentials/builtinStyleLabel.d.ts +4 -3
- package/dist/ui/components/Toolbar/styleGalleryLayout.d.ts +4 -1
- package/package.json +1 -1
- package/dist/OasisEditorApp-CBbANoKL.js +0 -1
- package/dist/defaultToolbar-DQT_deI6.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EditorNamedStyle } from '../../../core/model.js';
|
|
2
|
-
import { TranslationKey } from '../../../i18n/index.js';
|
|
3
|
-
/**
|
|
4
|
-
export declare function builtinStyleLabel(style: EditorNamedStyle): TranslationKey | undefined;
|
|
2
|
+
import { TranslateFn, TranslationKey } from '../../../i18n/index.js';
|
|
3
|
+
/** Resolve display metadata, never rewrite the document's stored name. */
|
|
4
|
+
export declare function builtinStyleLabel(style: EditorNamedStyle, allowLegacy?: boolean): TranslationKey | undefined;
|
|
5
|
+
export declare function resolveStyleDisplayName(style: EditorNamedStyle, t: TranslateFn, allowLegacy?: boolean): string;
|
|
@@ -3,7 +3,10 @@ import { ToolbarDocumentStyle } from './schema/items.js';
|
|
|
3
3
|
export declare const STYLE_GALLERY_CARD_WIDTH = 106;
|
|
4
4
|
export declare const STYLE_GALLERY_EXPAND_WIDTH = 24;
|
|
5
5
|
export declare const STYLE_GALLERY_BORDER_WIDTH = 2;
|
|
6
|
-
|
|
6
|
+
/** A mounted strip always keeps a real preview, even while temporarily hidden.
|
|
7
|
+
* The ribbon owns collapse; a narrow strip must not degrade into a name-only
|
|
8
|
+
* placeholder when the document has available styles.
|
|
9
|
+
*/
|
|
7
10
|
export declare function styleGallerySlots(width: number): number;
|
|
8
11
|
/** Follow the active style without changing the canonical quick-style order. */
|
|
9
12
|
export declare function visibleGalleryStyles(quick: readonly ToolbarDocumentStyle[], all: readonly ToolbarDocumentStyle[], activeId: string, slots: number): ToolbarDocumentStyle[];
|