@bygga.dev/editor 1.3.0 → 1.4.0
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/{TextEditor-JwRYUlJJ.js → TextEditor-BfX5P-be.js} +482 -482
- package/bygga-editor.js +1317 -1260
- package/element.d.ts +10 -2
- package/package.json +1 -1
- package/{urls-B4ECLEvt.js → urls-T0CnP_ys.js} +2798 -2728
package/element.d.ts
CHANGED
|
@@ -77,7 +77,15 @@ type LicenseError = {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
type MergeTagLabels = Partial<Record<Locale, string>>;
|
|
80
|
-
type
|
|
80
|
+
type MergeTagOption = {
|
|
81
|
+
value: string;
|
|
82
|
+
label: string;
|
|
83
|
+
};
|
|
84
|
+
type MergeTagEntry = MergeTagLabels & {
|
|
85
|
+
options?: MergeTagOption[];
|
|
86
|
+
conditionOnly?: boolean;
|
|
87
|
+
};
|
|
88
|
+
type MergeTags = Record<string, MergeTagEntry>;
|
|
81
89
|
|
|
82
90
|
declare const EDITOR_TAG = "bygga-editor";
|
|
83
91
|
declare const ByggaEditor: CustomElementConstructor;
|
|
@@ -111,4 +119,4 @@ declare global {
|
|
|
111
119
|
}
|
|
112
120
|
|
|
113
121
|
export { ByggaEditor, DEFAULT_LOCALE, EDITOR_TAG, SUPPORTED_LOCALES, createEmptyDocument, parseDocument, parseSavedBlock };
|
|
114
|
-
export type { BlockPlugin, BlockPluginGlobalSettings, BlockPluginGlobalsContext, BlockPluginSettingsContext, Brand, BrandCustomFont, BrandFont, ByggaEditorElement, ByggaEditorEventMap, Document, EditorConfig, LicenseError, LicenseErrorReason, Locale, MergeTagLabels, MergeTags, SavedBlock, SavedBlockContent };
|
|
122
|
+
export type { BlockPlugin, BlockPluginGlobalSettings, BlockPluginGlobalsContext, BlockPluginSettingsContext, Brand, BrandCustomFont, BrandFont, ByggaEditorElement, ByggaEditorEventMap, Document, EditorConfig, LicenseError, LicenseErrorReason, Locale, MergeTagEntry, MergeTagLabels, MergeTagOption, MergeTags, SavedBlock, SavedBlockContent };
|