@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/element.d.ts CHANGED
@@ -77,7 +77,15 @@ type LicenseError = {
77
77
  };
78
78
 
79
79
  type MergeTagLabels = Partial<Record<Locale, string>>;
80
- type MergeTags = Record<string, MergeTagLabels>;
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bygga.dev/editor",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Visual content builder shipped as the <bygga-editor> custom element",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",