@charisol/plexo-sdk 2.0.9 → 2.0.11
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/dist/{InlineColorPicker-BGyPZzyk.js → InlineColorPicker-BaWBhgH4.js} +98 -81
- package/dist/{client-CAWtj9sV.js → client-C4x8S8h9.js} +1 -1
- package/dist/{colorUtils-ohNG3v1i.js → colorUtils-BaVkGjFC.js} +1 -1
- package/dist/index.js +10323 -10340
- package/dist/{lint-CTTecyu_.js → lint-BWdiaRwp.js} +95 -79
- package/dist/plexo-sdk.css +1 -1
- package/dist/{v1-DTtcJDF-.js → v1-IIzUA4pk.js} +1930 -1862
- package/dist/v2/components/design/useStrataSync.d.ts +3 -1
- package/dist/v2/design/lint.d.ts +0 -6
- package/dist/v2/email/compile.d.ts +4 -0
- package/dist/v2/strata/types.d.ts +7 -2
- package/dist/v2-compile.js +2 -2
- package/dist/v2-strata.js +1 -1
- package/dist/v2.js +4156 -4049
- package/package.json +1 -1
|
@@ -20,7 +20,9 @@ export interface StrataSync {
|
|
|
20
20
|
busy: string | null;
|
|
21
21
|
error: string | null;
|
|
22
22
|
notice: string | null;
|
|
23
|
-
connect(
|
|
23
|
+
connect(options?: {
|
|
24
|
+
switchAccount?: boolean;
|
|
25
|
+
}): Promise<void>;
|
|
24
26
|
disconnect(): Promise<void>;
|
|
25
27
|
loadProjects(): Promise<void>;
|
|
26
28
|
link(project: StrataProjectSummary): Promise<void>;
|
package/dist/v2/design/lint.d.ts
CHANGED
|
@@ -13,10 +13,4 @@ export interface DesignSystemIssue {
|
|
|
13
13
|
fixable: boolean;
|
|
14
14
|
}
|
|
15
15
|
export declare function lintDesignSystem(ds: DesignSystem): DesignSystemIssue[];
|
|
16
|
-
/**
|
|
17
|
-
* Fixes what can be fixed without asking: drops units from tokens that point at other tokens, drops duplicate keys (the
|
|
18
|
-
* first wins), gives brand tokens real values instead of references, defines the heading/body font tokens that semantic
|
|
19
|
-
* font tokens point at, and renames tokens older design systems got wrong. Returns the same object when nothing needed
|
|
20
|
-
* fixing, so it is safe to run on every load.
|
|
21
|
-
*/
|
|
22
16
|
export declare function repairDesignSystem(ds: DesignSystem): DesignSystem;
|
|
@@ -9,6 +9,8 @@ export interface CompileEmailOptions {
|
|
|
9
9
|
preheader?: string;
|
|
10
10
|
/** Set a different width (default 600). */
|
|
11
11
|
width?: number;
|
|
12
|
+
/** 'auto' (default) adds a dark version for apps that switch with the phone's setting; 'off' leaves the email as designed. */
|
|
13
|
+
dark?: 'auto' | 'off';
|
|
12
14
|
}
|
|
13
15
|
export interface CompiledEmail {
|
|
14
16
|
/** The whole document, ready to hand to an email sender. */
|
|
@@ -17,6 +19,8 @@ export interface CompiledEmail {
|
|
|
17
19
|
text: string;
|
|
18
20
|
warnings: string[];
|
|
19
21
|
}
|
|
22
|
+
export type DarkKind = 'bg' | 'text' | 'line' | 'border' | 'btnbg' | 'btntext';
|
|
23
|
+
export declare function darkVersion(kind: DarkKind, c: string): string | null;
|
|
20
24
|
/**
|
|
21
25
|
* Writes a page as an email: nested tables with the styling inline, which is the one thing every email app understands.
|
|
22
26
|
* Boxes become tables (a row of children is one table row, a column is a stack of rows), text and buttons sit in cells, and
|
|
@@ -43,8 +43,13 @@ export interface StrataPushResult {
|
|
|
43
43
|
}
|
|
44
44
|
export interface StrataAdapter {
|
|
45
45
|
status(): Promise<StrataStatus>;
|
|
46
|
-
/**
|
|
47
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Connects Strata. By default it uses the person's own account without asking them to sign in (the host decides how); with
|
|
48
|
+
* `switchAccount` it asks which Strata account to use instead. Resolves once done.
|
|
49
|
+
*/
|
|
50
|
+
connect(options?: {
|
|
51
|
+
switchAccount?: boolean;
|
|
52
|
+
}): Promise<StrataStatus>;
|
|
48
53
|
disconnect(): Promise<void>;
|
|
49
54
|
listProjects(): Promise<StrataProjectSummary[]>;
|
|
50
55
|
/** `blank` = an empty project; `base` = Strata's starter set (optionally in the given brand colour). */
|
package/dist/v2-compile.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, A as t, C as n, Ct as r, Dt as i, E as a, Et as o, N as s, Ot as c, P as l, St as u, Tt as d, _ as f, a as p, at as m, c as h, d as g, et as _, f as v, g as y, gn as b, h as x, i as S, it as C, j as w, kt as T, l as E, m as D, n as O, nt as ee, o as k, on as A, ot as j, p as M, r as N, rt as P, s as F, sn as I, st as L, t as R, tt as z, u as B, v as V, vn as H, wt as U, xn as W, yn as G } from "./v1-
|
|
2
|
-
import { n as K, t as q } from "./lint-
|
|
1
|
+
import { $ as e, A as t, C as n, Ct as r, Dt as i, E as a, Et as o, N as s, Ot as c, P as l, St as u, Tt as d, _ as f, a as p, at as m, c as h, d as g, et as _, f as v, g as y, gn as b, h as x, i as S, it as C, j as w, kt as T, l as E, m as D, n as O, nt as ee, o as k, on as A, ot as j, p as M, r as N, rt as P, s as F, sn as I, st as L, t as R, tt as z, u as B, v as V, vn as H, wt as U, xn as W, yn as G } from "./v1-IIzUA4pk.js";
|
|
2
|
+
import { n as K, t as q } from "./lint-BWdiaRwp.js";
|
|
3
3
|
//#region src/v2/compile/react.ts
|
|
4
4
|
var J = /^[A-Z][A-Za-z0-9]*$/, Y = (e) => JSON.stringify(e);
|
|
5
5
|
function X(e) {
|
package/dist/v2-strata.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./client-
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./client-C4x8S8h9.js";
|
|
2
2
|
export { l as StrataError, c as applySync, t as baseOf, a as componentFromStrata, s as createStrataClient, i as hasAnything, o as planAutoUpdate, u as planSync, r as projectFromStrata, n as summarize, e as tokenFromStrata };
|