@bygga.dev/editor 1.1.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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bygga.dev/editor",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Visual content builder shipped as the <bygga-editor> custom element",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -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 { ln as $, es as A, lr as B, pr as C, Gi as D, Kn as E, Qr as F, L as G, mn as H, Ja as I, Kt as J, en as K, ei as L, aa as M, sa as N, Hi as O, ta as P, un as Q, br as R, Gs as S, xs as T, je as U, ur as V, Me as W, rn as X, Jt as Y, an as Z, gs as _, Ll as a, Zr as b, Yl as c, Zo as d, _e as et, Ws as f, as as g, vs as h, Pl as i, t as it, fr as j, Ki as k, ql as l, os as m, fl as n, j as nt, Nl as o, fs as p, Ne as q, tu as r, Ee as rt, Mc as s, lu as t, ve as tt, G as u, J as v, Da as w, Q as x, Oi as y, _r as z };
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 };