pagepilot-visual-editor 1.0.28 → 1.0.29
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/email-builder-core/blocks/Timer/variants/CircularProgressView.d.ts +5 -1
- package/dist/email-builder-core/blocks/Timer/variants/DigitalFlipView.d.ts +4 -1
- package/dist/email-builder-core/blocks/Timer/variants/TextInlineView.d.ts +3 -1
- package/dist/email-builder-core/blocks/helpers/blockStyleHelpers.d.ts +22 -0
- package/dist/email-builder-core/index.d.ts +2 -0
- package/dist/email-builder-core/renderers/themeTokens.d.ts +13 -0
- package/dist/{index-Cp5AeqH5.js → index-BN1BduFG.js} +1 -1
- package/dist/{index-SYmY8c1I.cjs → index-BRq3RgdO.cjs} +1 -1
- package/dist/{index-Br_dDd3Z.cjs → index-DEBoxZlq.cjs} +239 -222
- package/dist/{index-DcN8zC8_.js → index-DojXOBrb.js} +15558 -15489
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render.cjs +173 -156
- package/dist/render.js +4342 -4273
- package/dist/{xlsx-Bk2GErZO.js → xlsx-0y4dyiCO.js} +1 -1
- package/dist/{xlsx-vznvhtjT.cjs → xlsx-D2quXLTv.cjs} +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,10 @@ type Props = {
|
|
|
8
8
|
textColor?: string | null;
|
|
9
9
|
numberColor?: string | null;
|
|
10
10
|
numberFontWeight?: string | null;
|
|
11
|
+
fallbackInk?: string;
|
|
12
|
+
fallbackMuted?: string;
|
|
13
|
+
fallbackAccent?: string;
|
|
14
|
+
fallbackTrack?: string;
|
|
11
15
|
};
|
|
12
|
-
export default function CircularProgressView({ days, hours, minutes, seconds, showLabels, accentColor, textColor, numberColor, numberFontWeight, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default function CircularProgressView({ days, hours, minutes, seconds, showLabels, accentColor, textColor, numberColor, numberFontWeight, fallbackInk, fallbackMuted, fallbackAccent, fallbackTrack, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
17
|
export {};
|
|
@@ -7,6 +7,9 @@ type Props = {
|
|
|
7
7
|
accentColor?: string | null;
|
|
8
8
|
textColor?: string | null;
|
|
9
9
|
numberColor?: string | null;
|
|
10
|
+
fallbackInk?: string;
|
|
11
|
+
fallbackMuted?: string;
|
|
12
|
+
fallbackOnAccent?: string;
|
|
10
13
|
};
|
|
11
|
-
export default function DigitalFlipView({ days, hours, minutes, seconds, showLabels, accentColor, textColor, numberColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function DigitalFlipView({ days, hours, minutes, seconds, showLabels, accentColor, textColor, numberColor, fallbackInk, fallbackMuted, fallbackOnAccent, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
15
|
export {};
|
|
@@ -6,6 +6,8 @@ type Props = {
|
|
|
6
6
|
showLabels: boolean;
|
|
7
7
|
accentColor?: string | null;
|
|
8
8
|
textColor?: string | null;
|
|
9
|
+
fallbackInk?: string;
|
|
10
|
+
fallbackAccent?: string;
|
|
9
11
|
};
|
|
10
|
-
export default function TextInlineView({ days, hours, minutes, seconds, showLabels, accentColor, textColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default function TextInlineView({ days, hours, minutes, seconds, showLabels, accentColor, textColor, fallbackInk, fallbackAccent, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export {};
|
|
@@ -10,6 +10,12 @@ type TMargin = {
|
|
|
10
10
|
bottom: number;
|
|
11
11
|
left: number;
|
|
12
12
|
} | null | undefined;
|
|
13
|
+
export type TBorderRadius = number | string | {
|
|
14
|
+
topLeft: number;
|
|
15
|
+
topRight: number;
|
|
16
|
+
bottomRight: number;
|
|
17
|
+
bottomLeft: number;
|
|
18
|
+
} | null | undefined;
|
|
13
19
|
/**
|
|
14
20
|
* True when a color value is a CSS gradient rather than a solid color.
|
|
15
21
|
*
|
|
@@ -42,6 +48,22 @@ export declare function isGradientColor(value: string | null | undefined): value
|
|
|
42
48
|
export declare function resolveShadowColor(color: string): string;
|
|
43
49
|
export declare function formatPadding(p: TPadding): string | undefined;
|
|
44
50
|
export declare function formatMargin(m: TMargin): string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Convert an authored border radius into a CSS `border-radius` value.
|
|
53
|
+
*
|
|
54
|
+
* Four input shapes are accepted because block `style` objects are declared as
|
|
55
|
+
* an unvalidated `z.object({}).passthrough()`, so saved documents may legitimately
|
|
56
|
+
* hold any of them:
|
|
57
|
+
* - `null`/`undefined` → no declaration at all (let the property stay unset)
|
|
58
|
+
* - `number` → legacy single-value radius, e.g. `8`
|
|
59
|
+
* - `string` → an already-formatted CSS value, e.g. `"8px"` or `"50%"`
|
|
60
|
+
* - per-corner object → emitted in CSS shorthand order: TL TR BR BL
|
|
61
|
+
*
|
|
62
|
+
* The corner order matters and is not arbitrary — it matches the native
|
|
63
|
+
* `border-radius` shorthand, so it must stay in step with the TL/TR/BR/BL
|
|
64
|
+
* ordering used by the sidebar's `RadiusInput`.
|
|
65
|
+
*/
|
|
66
|
+
export declare function formatBorderRadius(radius: TBorderRadius): string | undefined;
|
|
45
67
|
/**
|
|
46
68
|
* Pick the visible text for a trigger with an optional "show text" toggle.
|
|
47
69
|
* - When `showText` is false → returns null (caller should render no text).
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as renderToStaticMarkup } from './renderers/renderToStaticMarkup';
|
|
2
2
|
export type { TReaderBlock, TReaderDocument, TReaderBlockProps, TReaderProps, } from './Reader/core';
|
|
3
3
|
export { ReaderBlockSchema, ReaderDocumentSchema, ReaderBlock, default as Reader, } from './Reader/core';
|
|
4
|
+
export { buildGeneratedThemeMarkup } from './renderers/pageScripts';
|
|
5
|
+
export { GENERATED_THEME_ATTR, GENERATED_THEME_AUTO } from './renderers/themeTokens';
|
|
@@ -122,6 +122,19 @@ export declare const ThemeTokenProvider: import('react').Provider<TokenRegistry>
|
|
|
122
122
|
* branch will misfire on the returned `var(...)` string.
|
|
123
123
|
*/
|
|
124
124
|
export declare function useColorToken(raw: string | null | undefined): string | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* A themer for colors that live in a LIST.
|
|
127
|
+
*
|
|
128
|
+
* `useColorToken` is a hook, so it cannot be called from inside `.map()` or any
|
|
129
|
+
* other loop — blocks whose colors come from per-row data (breadcrumb items,
|
|
130
|
+
* menu entries, pagination buttons) have no fixed number of colors to theme and
|
|
131
|
+
* would break the rules of hooks. This returns a plain function instead: call
|
|
132
|
+
* the hook once at the top of the component, then apply the result per item.
|
|
133
|
+
*
|
|
134
|
+
* Outside a publish render it is the identity function, exactly like
|
|
135
|
+
* `useColorToken`.
|
|
136
|
+
*/
|
|
137
|
+
export declare function useColorTokenizer(): (raw: string | null | undefined) => string | undefined;
|
|
125
138
|
export declare function themeAuthorHtml(html: string, registry: TokenRegistry | null): string;
|
|
126
139
|
/**
|
|
127
140
|
* Hook form of `themeAuthorHtml`, for blocks that render author HTML.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const fe=require("./index-
|
|
1
|
+
"use strict";const fe=require("./index-DEBoxZlq.cjs"),It=require("./_commonjs-dynamic-modules-DMkBISW1.cjs");function zl(e,n){for(var t=0;t<n.length;t++){const i=n[t];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(i,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var nn={},da="1.13.8",Ro=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},ui=Array.prototype,la=Object.prototype,No=typeof Symbol<"u"?Symbol.prototype:null,Xl=ui.push,Ft=ui.slice,mt=la.toString,Vl=la.hasOwnProperty,ku=typeof ArrayBuffer<"u",Hl=typeof DataView<"u",$l=Array.isArray,Io=Object.keys,Lo=Object.create,Mo=ku&&ArrayBuffer.isView,Gl=isNaN,Zl=isFinite,Wu=!{toString:null}.propertyIsEnumerable("toString"),qo=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Yl=Math.pow(2,53)-1;function Me(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),i=Array(t),r=0;r<t;r++)i[r]=arguments[r+n];switch(n){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var a=Array(n+1);for(r=0;r<n;r++)a[r]=arguments[r];return a[n]=i,e.apply(this,a)}}function An(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function Ou(e){return e===null}function fa(e){return e===void 0}function ha(e){return e===!0||e===!1||mt.call(e)==="[object Boolean]"}function Ru(e){return!!(e&&e.nodeType===1)}function Ie(e){var n="[object "+e+"]";return function(t){return mt.call(t)===n}}const si=Ie("String"),pa=Ie("Number"),Nu=Ie("Date"),Iu=Ie("RegExp"),Lu=Ie("Error"),ga=Ie("Symbol"),ma=Ie("ArrayBuffer");var Mu=Ie("Function"),Kl=Ro.document&&Ro.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Kl!="function"&&(Mu=function(e){return typeof e=="function"||!1});const Ne=Mu,qu=Ie("Object");var Pu=Hl&&(!/\[native code\]/.test(String(DataView))||qu(new DataView(new ArrayBuffer(8)))),ba=typeof Map<"u"&&qu(new Map),Ql=Ie("DataView");function Jl(e){return e!=null&&Ne(e.getInt8)&&ma(e.buffer)}const bt=Pu?Jl:Ql,Fn=$l||Ie("Array");function Cn(e,n){return e!=null&&Vl.call(e,n)}var aa=Ie("Arguments");(function(){aa(arguments)||(aa=function(e){return Cn(e,"callee")})})();const di=aa;function ju(e){return!ga(e)&&Zl(e)&&!isNaN(parseFloat(e))}function ya(e){return pa(e)&&Gl(e)}function Da(e){return function(){return e}}function zu(e){return function(n){var t=e(n);return typeof t=="number"&&t>=0&&t<=Yl}}function Xu(e){return function(n){return n==null?void 0:n[e]}}const Zt=Xu("byteLength"),ef=zu(Zt);var nf=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function tf(e){return Mo?Mo(e)&&!bt(e):ef(e)&&nf.test(mt.call(e))}const va=ku?tf:Da(!1),Re=Xu("length");function rf(e){for(var n={},t=e.length,i=0;i<t;++i)n[e[i]]=!0;return{contains:function(r){return n[r]===!0},push:function(r){return n[r]=!0,e.push(r)}}}function Vu(e,n){n=rf(n);var t=qo.length,i=e.constructor,r=Ne(i)&&i.prototype||la,a="constructor";for(Cn(e,a)&&!n.contains(a)&&n.push(a);t--;)a=qo[t],a in e&&e[a]!==r[a]&&!n.contains(a)&&n.push(a)}function Ee(e){if(!An(e))return[];if(Io)return Io(e);var n=[];for(var t in e)Cn(e,t)&&n.push(t);return Wu&&Vu(e,n),n}function Hu(e){if(e==null)return!0;var n=Re(e);return typeof n=="number"&&(Fn(e)||si(e)||di(e))?n===0:Re(Ee(e))===0}function xa(e,n){var t=Ee(n),i=t.length;if(e==null)return!i;for(var r=Object(e),a=0;a<i;a++){var o=t[a];if(n[o]!==r[o]||!(o in r))return!1}return!0}function ye(e){if(e instanceof ye)return e;if(!(this instanceof ye))return new ye(e);this._wrapped=e}ye.VERSION=da;ye.prototype.value=function(){return this._wrapped};ye.prototype.valueOf=ye.prototype.toJSON=ye.prototype.value;ye.prototype.toString=function(){return String(this._wrapped)};function Po(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Zt(e))}var jo="[object DataView]";function $u(e,n){for(var t=[{a:e,b:n}],i=[],r=[];t.length;){var a=t.pop();if(a===!0){i.pop(),r.pop();continue}if(e=a.a,n=a.b,e===n){if(e!==0||1/e===1/n)continue;return!1}if(e==null||n==null)return!1;if(e!==e){if(n!==n)continue;return!1}var o=typeof e;if(o!=="function"&&o!=="object"&&typeof n!="object")return!1;e instanceof ye&&(e=e._wrapped),n instanceof ye&&(n=n._wrapped);var c=mt.call(e);if(c!==mt.call(n))return!1;if(Pu&&c=="[object Object]"&&bt(e)){if(!bt(n))return!1;c=jo}switch(c){case"[object RegExp]":case"[object String]":if(""+e==""+n)continue;return!1;case"[object Number]":t.push({a:+e,b:+n});continue;case"[object Date]":case"[object Boolean]":if(+e==+n)continue;return!1;case"[object Symbol]":if(No.valueOf.call(e)===No.valueOf.call(n))continue;return!1;case"[object ArrayBuffer]":case jo:t.push({a:Po(e),b:Po(n)});continue}var u=c==="[object Array]";if(!u&&va(e)){var s=Zt(e);if(s!==Zt(n))return!1;if(e.buffer===n.buffer&&e.byteOffset===n.byteOffset)continue;u=!0}if(!u){if(typeof e!="object"||typeof n!="object")return!1;var d=e.constructor,p=n.constructor;if(d!==p&&!(Ne(d)&&d instanceof d&&Ne(p)&&p instanceof p)&&"constructor"in e&&"constructor"in n)return!1}for(var b=i.length;b--;)if(i[b]===e){if(r[b]===n)break;return!1}if(!(b>=0))if(i.push(e),r.push(n),t.push(!0),u){if(b=e.length,b!==n.length)return!1;for(;b--;)t.push({a:e[b],b:n[b]})}else{var m=Ee(e),y;if(b=m.length,Ee(n).length!==b)return!1;for(;b--;){if(y=m[b],!Cn(n,y))return!1;t.push({a:e[y],b:n[y]})}}}return!0}function it(e){if(!An(e))return[];var n=[];for(var t in e)n.push(t);return Wu&&Vu(e,n),n}function _a(e){var n=Re(e);return function(t){if(t==null)return!1;var i=it(t);if(Re(i))return!1;for(var r=0;r<n;r++)if(!Ne(t[e[r]]))return!1;return e!==Yu||!Ne(t[Ua])}}var Ua="forEach",Gu="has",Ta=["clear","delete"],Zu=["get",Gu,"set"],af=Ta.concat(Ua,Zu),Yu=Ta.concat(Zu),of=["add"].concat(Ta,Ua,Gu);const Ku=ba?_a(af):Ie("Map"),Qu=ba?_a(Yu):Ie("WeakMap"),Ju=ba?_a(of):Ie("Set"),es=Ie("WeakSet");function Ln(e){for(var n=Ee(e),t=n.length,i=Array(t),r=0;r<t;r++)i[r]=e[n[r]];return i}function ns(e){for(var n=Ee(e),t=n.length,i=Array(t),r=0;r<t;r++)i[r]=[n[r],e[n[r]]];return i}function wa(e){for(var n={},t=Ee(e),i=0,r=t.length;i<r;i++)n[e[t[i]]]=t[i];return n}function yt(e){var n=[];for(var t in e)Ne(e[t])&&n.push(t);return n.sort()}function Ea(e,n){return function(t){var i=arguments.length;if(n&&(t=Object(t)),i<2||t==null)return t;for(var r=1;r<i;r++)for(var a=arguments[r],o=e(a),c=o.length,u=0;u<c;u++){var s=o[u];(!n||t[s]===void 0)&&(t[s]=a[s])}return t}}const Aa=Ea(it),Yn=Ea(Ee),Fa=Ea(it,!0);function cf(){return function(){}}function ts(e){if(!An(e))return{};if(Lo)return Lo(e);var n=cf();n.prototype=e;var t=new n;return n.prototype=null,t}function is(e,n){var t=ts(e);return n&&Yn(t,n),t}function rs(e){return An(e)?Fn(e)?e.slice():Aa({},e):e}function as(e,n){return n(e),e}function Ca(e){return Fn(e)?e:[e]}ye.toPath=Ca;function Ct(e){return ye.toPath(e)}function Sa(e,n){for(var t=n.length,i=0;i<t;i++){if(e==null)return;e=e[n[i]]}return t?e:void 0}function Ba(e,n,t){var i=Sa(e,Ct(n));return fa(i)?t:i}function os(e,n){n=Ct(n);for(var t=n.length,i=0;i<t;i++){var r=n[i];if(!Cn(e,r))return!1;e=e[r]}return!!t}function li(e){return e}function On(e){return e=Yn({},e),function(n){return xa(n,e)}}function fi(e){return e=Ct(e),function(n){return Sa(n,e)}}function St(e,n,t){if(n===void 0)return e;switch(t??3){case 1:return function(i){return e.call(n,i)};case 3:return function(i,r,a){return e.call(n,i,r,a)};case 4:return function(i,r,a,o){return e.call(n,i,r,a,o)}}return function(){return e.apply(n,arguments)}}function cs(e,n,t){return e==null?li:Ne(e)?St(e,n,t):An(e)&&!Fn(e)?On(e):fi(e)}function hi(e,n){return cs(e,n,1/0)}ye.iteratee=hi;function ze(e,n,t){return ye.iteratee!==hi?ye.iteratee(e,n):cs(e,n,t)}function us(e,n,t){n=ze(n,t);for(var i=Ee(e),r=i.length,a={},o=0;o<r;o++){var c=i[o];a[c]=n(e[c],c,e)}return a}function ka(){}function ss(e){return e==null?ka:function(n){return Ba(e,n)}}function ds(e,n,t){var i=Array(Math.max(0,e));n=St(n,t,1);for(var r=0;r<e;r++)i[r]=n(r);return i}function Yt(e,n){return n==null&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}const Kn=Date.now||function(){return new Date().getTime()};function ls(e){var n=function(a){return e[a]},t="(?:"+Ee(e).join("|")+")",i=RegExp(t),r=RegExp(t,"g");return function(a){return a=a==null?"":""+a,i.test(a)?a.replace(r,n):a}}const fs={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},hs=ls(fs),uf=wa(fs),ps=ls(uf),gs=ye.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Yi=/(.)^/,sf={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},df=/\\|'|\r|\n|\u2028|\u2029/g;function lf(e){return"\\"+sf[e]}var ff=/^\s*(\w|\$)+\s*$/;function ms(e,n,t){!n&&t&&(n=t),n=Fa({},n,ye.templateSettings);var i=RegExp([(n.escape||Yi).source,(n.interpolate||Yi).source,(n.evaluate||Yi).source].join("|")+"|$","g"),r=0,a="__p+='";e.replace(i,function(s,d,p,b,m){return a+=e.slice(r,m).replace(df,lf),r=m+s.length,d?a+=`'+
|
|
2
2
|
((__t=(`+d+`))==null?'':_.escape(__t))+
|
|
3
3
|
'`:p?a+=`'+
|
|
4
4
|
((__t=(`+p+`))==null?'':__t)+
|