@charisol/plexo-sdk 2.0.7 → 2.0.8
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/{v1-iodIbfkY.js → v1-BCCIC3DR.js} +651 -586
- package/dist/v2/components/layout/TopToolbar.d.ts +2 -0
- package/dist/v2/render/nodeStyle.d.ts +8 -0
- package/dist/v2/types/editor.d.ts +6 -0
- package/dist/v2-compile.js +1 -1
- package/dist/v2.js +1209 -1072
- package/package.json +1 -1
|
@@ -4,5 +4,7 @@ export type ToolbarTier = 'full' | 'compact' | 'tight';
|
|
|
4
4
|
export declare const TIER_FULL_MIN = 1180;
|
|
5
5
|
export declare const TIER_COMPACT_MIN = 860;
|
|
6
6
|
export declare const CRAMPED_MAX = 760;
|
|
7
|
+
/** From this width the bar is split into equal halves around the middle group, so undo/redo, screen sizes and Design/Code sit in the exact centre. Narrower, every side takes only what it needs. */
|
|
8
|
+
export declare const CENTERED_MIN = 1240;
|
|
7
9
|
export declare const tierForWidth: (w: number) => ToolbarTier;
|
|
8
10
|
export declare const TopToolbar: React.FC;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { DocumentNode, ElementStyles, ViewportMode } from '../types/editor';
|
|
2
2
|
/** `transition` for an element, from the allow-listed property / duration / easing choices (nothing otherwise). */
|
|
3
3
|
export declare function transitionCss(styles: ElementStyles): string | undefined;
|
|
4
|
+
/** The CSS for an element while it is pointed at, from the allow-listed choice only. */
|
|
5
|
+
export declare function hoverCss(styles: ElementStyles): Record<string, string | number> | undefined;
|
|
6
|
+
/** The kinds of entrance and how long to wait: what the published page's small script and stylesheet understand. */
|
|
7
|
+
export declare const ENTRANCES: readonly ["fade", "slide-up", "slide-left", "slide-right", "zoom"];
|
|
8
|
+
export declare function entranceOf(styles: ElementStyles): {
|
|
9
|
+
kind: (typeof ENTRANCES)[number];
|
|
10
|
+
delay: number;
|
|
11
|
+
} | undefined;
|
|
4
12
|
export type CssMap = Record<string, string | number | undefined>;
|
|
5
13
|
export interface NodeCssOptions {
|
|
6
14
|
viewport: ViewportMode;
|
|
@@ -114,6 +114,12 @@ export interface ElementStyles {
|
|
|
114
114
|
/** Milliseconds, 0–2000. */
|
|
115
115
|
transitionDuration?: number;
|
|
116
116
|
transitionEasing?: 'ease' | 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
117
|
+
/** What happens when a visitor points at the element (desktop): it lifts, grows, fades or glows. */
|
|
118
|
+
hoverEffect?: 'none' | 'lift' | 'grow' | 'fade' | 'glow';
|
|
119
|
+
/** How the element arrives as the visitor scrolls it into view. */
|
|
120
|
+
entrance?: 'none' | 'fade' | 'slide-up' | 'slide-left' | 'slide-right' | 'zoom';
|
|
121
|
+
/** Milliseconds to wait before the entrance starts, 0–1500 (so a row of cards can arrive one after another). */
|
|
122
|
+
entranceDelay?: number;
|
|
117
123
|
/** The mouse pointer over the element on the published page. */
|
|
118
124
|
cursor?: 'auto' | 'pointer' | 'default' | 'text' | 'grab' | 'not-allowed';
|
|
119
125
|
}
|
package/dist/v2-compile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, Ct as t, E as n, J as r, O as i, Q as a, St as o, T as s, X as c, Y as l, Z as u, _t as d, a as f, bt as p, c as m, d as h, en as g, et as _, f as v, fn as y, hn as b, i as x, k as S, l as C, n as w, nt as T, o as E, p as D, pn as O, r as k, s as A, t as j, tn as M, tt as N, u as P, un as F, v as I, vt as L, wt as R, x as z, xt as B, yt as V } from "./v1-
|
|
1
|
+
import { $ as e, Ct as t, E as n, J as r, O as i, Q as a, St as o, T as s, X as c, Y as l, Z as u, _t as d, a as f, bt as p, c as m, d as h, en as g, et as _, f as v, fn as y, hn as b, i as x, k as S, l as C, n as w, nt as T, o as E, p as D, pn as O, r as k, s as A, t as j, tn as M, tt as N, u as P, un as F, v as I, vt as L, wt as R, x as z, xt as B, yt as V } from "./v1-BCCIC3DR.js";
|
|
2
2
|
import { n as H, t as U } from "./lint-CTTecyu_.js";
|
|
3
3
|
//#region src/v2/compile/react.ts
|
|
4
4
|
var W = /^[A-Z][A-Za-z0-9]*$/, G = (e) => JSON.stringify(e);
|