@bygga.dev/editor 1.2.0 → 1.3.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-JwRYUlJJ.js} +509 -491
- package/bygga-editor.js +2317 -2220
- package/element.d.ts +8 -2
- package/package.json +1 -1
- package/{vue.runtime.esm-bundler-C8OyVIE3.js → providerKeys-BrTFiegH.js} +2 -2
- package/{urls-Cw507ilt.js → urls-B4ECLEvt.js} +3219 -3144
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;
|
|
@@ -105,4 +111,4 @@ declare global {
|
|
|
105
111
|
}
|
|
106
112
|
|
|
107
113
|
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 };
|
|
114
|
+
export type { BlockPlugin, BlockPluginGlobalSettings, BlockPluginGlobalsContext, BlockPluginSettingsContext, Brand, BrandCustomFont, BrandFont, ByggaEditorElement, ByggaEditorEventMap, Document, EditorConfig, LicenseError, LicenseErrorReason, Locale, MergeTagLabels, 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 };
|