@bygga.dev/editor 1.2.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/README.md +30 -4
- package/{TextEditor-DZmlpRNW.js → TextEditor-BfX5P-be.js} +532 -514
- package/bygga-editor.js +2352 -2198
- package/element.d.ts +17 -3
- package/package.json +1 -1
- package/{vue.runtime.esm-bundler-C8OyVIE3.js → providerKeys-BrTFiegH.js} +2 -2
- package/{urls-Cw507ilt.js → urls-T0CnP_ys.js} +3293 -3148
package/element.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
type BrandFont = 'arial' | 'tahoma' | 'trebuchet' | 'verdana' | 'georgia' | 'times' | 'courier';
|
|
2
|
+
type BrandCustomFont = {
|
|
3
|
+
name: string;
|
|
4
|
+
href: string;
|
|
5
|
+
fontFamily?: string;
|
|
6
|
+
};
|
|
2
7
|
type Brand = {
|
|
3
8
|
colors?: string[];
|
|
4
9
|
fonts?: BrandFont[];
|
|
10
|
+
customFonts?: BrandCustomFont[];
|
|
5
11
|
};
|
|
6
12
|
|
|
7
13
|
declare const brand$1: unique symbol;
|
|
@@ -9,7 +15,7 @@ type Document = {
|
|
|
9
15
|
readonly [brand$1]: 'Document';
|
|
10
16
|
};
|
|
11
17
|
declare function parseDocument(json: unknown): Document;
|
|
12
|
-
declare function createEmptyDocument(): Document;
|
|
18
|
+
declare function createEmptyDocument(kind?: 'email' | 'page'): Document;
|
|
13
19
|
|
|
14
20
|
type BlockPluginSettingsContext<Data = unknown, Globals = unknown> = {
|
|
15
21
|
readonly data: Data;
|
|
@@ -71,7 +77,15 @@ type LicenseError = {
|
|
|
71
77
|
};
|
|
72
78
|
|
|
73
79
|
type MergeTagLabels = Partial<Record<Locale, string>>;
|
|
74
|
-
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>;
|
|
75
89
|
|
|
76
90
|
declare const EDITOR_TAG = "bygga-editor";
|
|
77
91
|
declare const ByggaEditor: CustomElementConstructor;
|
|
@@ -105,4 +119,4 @@ declare global {
|
|
|
105
119
|
}
|
|
106
120
|
|
|
107
121
|
export { ByggaEditor, DEFAULT_LOCALE, EDITOR_TAG, SUPPORTED_LOCALES, createEmptyDocument, parseDocument, parseSavedBlock };
|
|
108
|
-
export type { BlockPlugin, BlockPluginGlobalSettings, BlockPluginGlobalsContext, BlockPluginSettingsContext, Brand, 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
|
@@ -4772,6 +4772,6 @@ var su = !1, cu = () => {
|
|
|
4772
4772
|
withMemo: () => qs,
|
|
4773
4773
|
withModifiers: () => ql,
|
|
4774
4774
|
withScopeId: () => cr
|
|
4775
|
-
}), uu = () => {};
|
|
4775
|
+
}), uu = () => {}, du = Symbol("editorData"), fu = Symbol("documentActions"), pu = Symbol("stackAcceptsDrop"), mu = Symbol("anchorIds"), hu = Symbol("documentFont"), gu = Symbol("documentKind"), _u = Symbol("pluginGlobals"), vu = Symbol("underCondition"), yu = Symbol("columnsAcross");
|
|
4776
4776
|
//#endregion
|
|
4777
|
-
export {
|
|
4777
|
+
export { Me as $, Q as A, fr as B, os as C, J as D, gs as E, Kn as F, Ja as G, sa as H, Gi as I, _r as J, ei as K, Hi as L, pr as M, Da as N, Oi as O, xs as P, je as Q, Ki as R, fs as S, as as T, ta as U, aa as V, Qr as W, ur as X, lr as Y, mn as Z, Yl as _, gu as a, rn as at, Zo as b, pu as c, ln as ct, fl as d, j as dt, L as et, tu as f, Ee as ft, Mc as g, Nl as h, hu as i, Jt as it, Gs as j, Zr as k, vu as l, _e as lt, Ll as m, yu as n, Ne as nt, du as o, an as ot, Pl as p, t as pt, br as q, fu as r, Kt as rt, _u as s, un as st, mu as t, en as tt, lu as u, ve as ut, ql as v, vs as w, Ws as x, G as y, es as z };
|