efficient-web-builder 70.1.0 → 70.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 70.2.0 - 2026-11-17
4
+
5
+ From main at `874c0488`: #780. A minor: no `!`, no export is removed, no export changes its type, the peers stay `efficient-easel` `^35.0.0` and `efficient-shell` `^13.17.0`. New exports and one optional prop. No stored key or value moves.
6
+
7
+ **For hosts:**
8
+ - No step is required. A host may open the website editor with the Add page window open: `<StorefrontEditor target={…} openAddPage />`.
9
+
10
+ ### Added
11
+
12
+ - **Open the editor with the Add page window open** (#780): `StorefrontEditor` takes the optional `openAddPage`. New `components/AddPageOnOpen` (`AddPageOnOpen`, `useTakeAddPageOnOpen`) holds the request and gives it once, so a page switch does not open the window again. The Pages panel takes it on mount and calls the same path as its **+** button, so a backend that cannot add a page still hands the job to the host (`storefront-editor:new-page`).
13
+
3
14
  ## 70.1.0 - 2026-11-17
4
15
 
5
16
  From main at `74cb8eb0`: #776, #777, #778. A minor: no `!`, no export is removed, no export changes its type, the peers stay `efficient-easel` `^35.0.0` and `efficient-shell` `^13.17.0`. New exports only. No stored key or value moves.
@@ -0,0 +1,6 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function AddPageOnOpen({ open, children }: {
3
+ open?: boolean;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ export declare function useTakeAddPageOnOpen(): () => boolean;
@@ -0,0 +1 @@
1
+ "use client";import{jsx as o}from"react/jsx-runtime";import{createContext as u,useContext as s,useRef as a}from"react";const n=u(null);function f({open:e,children:t}){const r=a(!!e);return o(n.Provider,{value:r,children:t})}function i(){const e=s(n);return()=>e?.current?(e.current=!1,!0):!1}export{f as AddPageOnOpen,i as useTakeAddPageOnOpen};
@@ -1 +1 @@
1
- "use client";import{jsx as t,Fragment as we,jsxs as A}from"react/jsx-runtime";import{Fragment as ye,useEffect as ke,useMemo as $,useRef as Ce,useState as d}from"react";import{useScreenDocument as ee}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as G}from"efficient-easel/draw/client";import Ie from"efficient-easel/screen/components/SidePanelHead";import{useWebsiteName as Re}from"./WebsiteSettingsPanel.js";import{InspectorIconButton as Ae}from"efficient-easel/chrome";import{Input as De,PopupMenu as xe,PopupMenuItem as te,toast as ne}from"efficient-shell/ui";import{LayersTree as Oe,TreeGroupLabel as Ee,TreeRow as oe,TreeRowAction as D}from"efficient-easel/tree";import{AddIcon as Ne,DuplicateIcon as Le,PageIcon as Be,SettingsIcon as Me}from"efficient-easel/icons";import{PagesIcon as _e}from"efficient-easel/rail";import{useEaselHost as Fe}from"efficient-easel/screen/lib/host";import{bucketEditorPageRows as ve,DYNAMIC_PAGES_GROUP_KEY as ze,isDynamicPageRow as Ge,isPopupPageRow as He,MAIN_PAGES_GROUP as We}from"../../format/lib/editor-page-rows.js";import{useEaselSession as H}from"efficient-easel/screen/lib/session-context";import{holdPageRow as W,usePageRows as Te}from"../lib/page-rows.js";import{say as n,sayCount as je}from"../../format/lib/editor-words.js";import{canDuplicatePage as Ue,DuplicatePageDialog as Ye}from"efficient-easel/page-copy";import qe from"./AddPageWindow.js";import{backendOf as se}from"../lib/website-session.js";import{shopHost as Je}from"../../format/lib/web-runtime.js";import{newPopupPage as Ke}from"../../format/lib/popup/new-popup.js";const ae="sf-editor-pages-collapsed-groups";function Qe(){const r=H(),{siteId:x,templateId:S}=ee(),w=se(r).pages;if(!(!w.duplicate||S))return(u,y)=>w.duplicate(u.id,{...y,...x?{siteId:x}:{}})}function Ve({onNavigate:r,onClose:x,activeSurface:S,onPreviewSurface:w}){const u=H().chrome?.pageRows,y=Fe(),{adapter:k,capabilities:p,ready:T,currentSlug:j}=ee(),le=Re(),{rows:c,reload:O,setRows:U,getRows:re}=Te(),[E,ie]=d(""),[m,Y]=d(!1),[q,C]=d(null),[J,N]=d(!1),ce=!!se(H()).pages.createFromStarter,L=Qe(),[g,B]=d(null),[M,de]=d(()=>{if(typeof window>"u")return new Set;try{const e=window.localStorage.getItem(ae);return new Set(e?JSON.parse(e):[])}catch{return new Set}});ke(()=>{try{window.localStorage.setItem(ae,JSON.stringify([...M]))}catch{}},[M]);const ue=e=>de(s=>{const o=new Set(s);return o.has(e)?o.delete(e):o.add(e),o}),pe=$(()=>ve(c??[]),[c]),_=E.trim().toLowerCase(),K=e=>!_||e.toLowerCase().includes(_),me=e=>_?!0:!M.has(e),F=$(()=>new Set((c??[]).map(e=>e.slug)),[c]),Q=()=>{if(p.pageCreationInAdminForm&&!ce){y.send("storefront-editor:new-page");return}C(null),N(!0)},I=p.hasSiteSettings&&!!k.createPage,ge=async()=>{if(!(!T||m||!k.createPage)){Y(!0),C(null);try{const e=await k.createPage(Ke(n("New popup"),F));await O(),r(e.slug)}catch{C(n("Couldn’t add the popup — please retry."))}finally{Y(!1)}}},V=Ce(null),[f,h]=d(null),fe=()=>{if(!I)return Q();if(f)return h(null);const e=V.current?.getBoundingClientRect();e&&h({top:e.bottom+6,right:Math.max(8,window.innerWidth-e.right)})},he=e=>{const s=c??[],o=k.deletePage;if(!T||m||!o||s.length<=1)return;const l=s.findIndex(a=>a.id===e.id),i=s.filter(a=>a.id!==e.id),b=e.slug===j;W(e.id,!0),U(i),C(null),b&&i[0]&&r(i[0].slug);const R=()=>{W(e.id,!1);const a=re()??[];if(a.some(Se=>Se.id===e.id))return;const P=[...a];P.splice(Math.max(0,Math.min(l,P.length)),0,e),U(P)};ne.undoable(n("Deleted “{name}”",{name:e.label}),{actionLabel:n("Undo"),commit:async a=>{await o(e.id,a),W(e.id,!1)},undo:()=>{R(),b&&r(e.slug)},onFail:()=>{R(),ne.error(n("Couldn’t delete the page — please retry."))}})},be=e=>y.send("storefront-editor:open-page",{slug:e}),Pe=e=>{if(!K(e.label))return null;const s=!S&&e.slug===j,o=p.canDeletePagesInline&&(c??[]).length>1,l=Ge(e),i=He(e),b=[...l?[{label:n("Dynamic"),tone:"info"}]:[],...i?[{label:n("Lightbox"),tone:"success"}]:[],...e.draft?[{label:n("draft"),tone:"draft"}]:[]],R=b.length>0?b:void 0,a=!!L&&Ue(e),P=a||p.pageCreationInAdminForm||o?A(we,{children:[a&&t(D,{kind:"plain",label:n("Duplicate “{name}”",{name:e.label}),disabled:m,onClick:()=>B(e),children:t(Le,{size:13})}),p.pageCreationInAdminForm&&t(D,{kind:"plain",label:n("Page settings for “{name}”",{name:e.label}),onClick:()=>be(e.slug),children:t(Me,{size:13})}),o&&t(D,{kind:"delete",label:n("Delete “{name}”",{name:e.label}),disabled:m,onClick:()=>he(e),children:t(G,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return t(oe,{icon:t(Be,{size:14}),name:e.label,selected:s,onSelect:()=>r(e.slug),badge:R,actions:P,rowProps:{"data-page-slug":e.slug}},e.id)},v=(e,s,o)=>{const l=o.filter(Boolean);if(l.length===0)return null;const i=me(e);return A(ye,{children:[t(Ee,{count:l.length,countLabel:je("{n} page","{n} pages",l.length),expanded:i,onToggle:()=>ue(e),children:s}),i&&l]},e)},X=(u?.rows??[]).filter(e=>K(e.label)).map(e=>{const s=S===e.key;return t(oe,{icon:e.icon,name:e.label,selected:s,onSelect:()=>w(e.key),badge:{label:n("Preview"),tone:"warning"},actions:t(D,{kind:"plain",label:n("Open the {name} in a new tab",{name:e.label}),onClick:()=>window.open(e.href,"_blank","noopener,noreferrer"),children:t(G,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":e.key}},e.key)}),Z=p.hasSiteSettings&&!!u,z=(()=>{if(c===null)return null;const e=[];let s=!1;for(const o of pe){Z&&!s&&o.key.startsWith("system:")&&(e.push(v("shop",u.title,X)),s=!0);const l=o.key===ze||o.label===We?n(o.label):o.label;e.push(v(o.key,l,o.rows.map(Pe)))}return Z&&!s&&e.push(v("shop",u.title,X)),e})();return A("div",{className:"sf-pages",children:[t(Ie,{icon:t(_e,{}),title:n("Pages"),context:le,actions:t(Ae,{buttonRef:V,label:I?n("Add"):n("New page"),hasPopup:I?"menu":void 0,expanded:I?f!==null:void 0,onClick:fe,children:t(Ne,{size:15})})}),f&&t(xe,{portal:!0,style:{top:f.top,right:f.right},onClose:()=>h(null),children:A("div",{role:"menu","aria-label":n("Add"),children:[t(te,{role:"menuitem",onClick:()=>{h(null),Q()},children:n("Page")}),t(te,{role:"menuitem",disabled:m,onClick:()=>{h(null),ge()},children:n("Popup")})]})}),t("div",{className:"sf-pages-find",children:t(De,{type:"search",leftIcon:t(G,{name:"search",size:14,rounded:!0}),placeholder:n("Search all pages…"),value:E,onChange:e=>ie(e.target.value),"aria-label":n("Search all pages")})}),q&&!J&&t("div",{className:"sf-note sf-note--error",role:"alert",children:q}),z===null?t("div",{className:"sf-note",children:n("Loading…")}):z.some(Boolean)?t(Oe,{ariaLabel:n("Pages"),className:"sf-scroll",children:z}):t("div",{className:"sf-note",children:E.trim()?n("No pages match your search"):n("No pages yet. Add one with + above.")}),L&&g&&t(Ye,{source:{title:g.label,slug:g.slug},taken:F,host:Je(),duplicate:e=>L(g,e),onClose:()=>B(null),onDuplicated:e=>{B(null),O(),r(e.slug)}},g.id),J?t(qe,{open:!0,onClose:()=>N(!1),takenSlugs:F,onCreated:e=>{N(!1),O(),r(e.slug)}}):null]})}export{Ve as default};
1
+ "use client";import{jsx as n,Fragment as ke,jsxs as R}from"react/jsx-runtime";import{Fragment as Ce,useEffect as $,useMemo as ee,useRef as Ae,useState as d}from"react";import{useScreenDocument as ne}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as H}from"efficient-easel/draw/client";import Ie from"efficient-easel/screen/components/SidePanelHead";import{useWebsiteName as Re}from"./WebsiteSettingsPanel.js";import{InspectorIconButton as De}from"efficient-easel/chrome";import{Input as Oe,PopupMenu as xe,PopupMenuItem as te,toast as oe}from"efficient-shell/ui";import{LayersTree as Ee,TreeGroupLabel as Ne,TreeRow as se,TreeRowAction as D}from"efficient-easel/tree";import{AddIcon as Le,DuplicateIcon as Be,PageIcon as Me,SettingsIcon as _e}from"efficient-easel/icons";import{PagesIcon as Fe}from"efficient-easel/rail";import{useEaselHost as ve}from"efficient-easel/screen/lib/host";import{bucketEditorPageRows as ze,DYNAMIC_PAGES_GROUP_KEY as Ge,isDynamicPageRow as He,isPopupPageRow as Te,MAIN_PAGES_GROUP as We}from"../../format/lib/editor-page-rows.js";import{useEaselSession as T}from"efficient-easel/screen/lib/session-context";import{holdPageRow as W,usePageRows as je}from"../lib/page-rows.js";import{say as t,sayCount as Ue}from"../../format/lib/editor-words.js";import{canDuplicatePage as Ye,DuplicatePageDialog as qe}from"efficient-easel/page-copy";import Je from"./AddPageWindow.js";import{useTakeAddPageOnOpen as Ke}from"./AddPageOnOpen.js";import{backendOf as ae}from"../lib/website-session.js";import{shopHost as Qe}from"../../format/lib/web-runtime.js";import{newPopupPage as Ve}from"../../format/lib/popup/new-popup.js";const le="sf-editor-pages-collapsed-groups";function Xe(){const r=T(),{siteId:O,templateId:S}=ne(),w=ae(r).pages;if(!(!w.duplicate||S))return(u,y)=>w.duplicate(u.id,{...y,...O?{siteId:O}:{}})}function Ze({onNavigate:r,onClose:O,activeSurface:S,onPreviewSurface:w}){const u=T().chrome?.pageRows,y=ve(),{adapter:k,capabilities:p,ready:j,currentSlug:U}=ne(),re=Re(),{rows:c,reload:x,setRows:Y,getRows:ie}=je(),[E,ce]=d(""),[m,q]=d(!1),[J,C]=d(null),[K,N]=d(!1),de=!!ae(T()).pages.createFromStarter,L=Xe(),[g,B]=d(null),[M,ue]=d(()=>{if(typeof window>"u")return new Set;try{const e=window.localStorage.getItem(le);return new Set(e?JSON.parse(e):[])}catch{return new Set}});$(()=>{try{window.localStorage.setItem(le,JSON.stringify([...M]))}catch{}},[M]);const pe=e=>ue(s=>{const o=new Set(s);return o.has(e)?o.delete(e):o.add(e),o}),me=ee(()=>ze(c??[]),[c]),_=E.trim().toLowerCase(),Q=e=>!_||e.toLowerCase().includes(_),ge=e=>_?!0:!M.has(e),F=ee(()=>new Set((c??[]).map(e=>e.slug)),[c]),v=()=>{if(p.pageCreationInAdminForm&&!de){y.send("storefront-editor:new-page");return}C(null),N(!0)},fe=Ke();$(()=>{fe()&&v()},[]);const A=p.hasSiteSettings&&!!k.createPage,he=async()=>{if(!(!j||m||!k.createPage)){q(!0),C(null);try{const e=await k.createPage(Ve(t("New popup"),F));await x(),r(e.slug)}catch{C(t("Couldn’t add the popup — please retry."))}finally{q(!1)}}},V=Ae(null),[f,h]=d(null),be=()=>{if(!A)return v();if(f)return h(null);const e=V.current?.getBoundingClientRect();e&&h({top:e.bottom+6,right:Math.max(8,window.innerWidth-e.right)})},Pe=e=>{const s=c??[],o=k.deletePage;if(!j||m||!o||s.length<=1)return;const l=s.findIndex(a=>a.id===e.id),i=s.filter(a=>a.id!==e.id),b=e.slug===U;W(e.id,!0),Y(i),C(null),b&&i[0]&&r(i[0].slug);const I=()=>{W(e.id,!1);const a=ie()??[];if(a.some(ye=>ye.id===e.id))return;const P=[...a];P.splice(Math.max(0,Math.min(l,P.length)),0,e),Y(P)};oe.undoable(t("Deleted “{name}”",{name:e.label}),{actionLabel:t("Undo"),commit:async a=>{await o(e.id,a),W(e.id,!1)},undo:()=>{I(),b&&r(e.slug)},onFail:()=>{I(),oe.error(t("Couldn’t delete the page — please retry."))}})},Se=e=>y.send("storefront-editor:open-page",{slug:e}),we=e=>{if(!Q(e.label))return null;const s=!S&&e.slug===U,o=p.canDeletePagesInline&&(c??[]).length>1,l=He(e),i=Te(e),b=[...l?[{label:t("Dynamic"),tone:"info"}]:[],...i?[{label:t("Lightbox"),tone:"success"}]:[],...e.draft?[{label:t("draft"),tone:"draft"}]:[]],I=b.length>0?b:void 0,a=!!L&&Ye(e),P=a||p.pageCreationInAdminForm||o?R(ke,{children:[a&&n(D,{kind:"plain",label:t("Duplicate “{name}”",{name:e.label}),disabled:m,onClick:()=>B(e),children:n(Be,{size:13})}),p.pageCreationInAdminForm&&n(D,{kind:"plain",label:t("Page settings for “{name}”",{name:e.label}),onClick:()=>Se(e.slug),children:n(_e,{size:13})}),o&&n(D,{kind:"delete",label:t("Delete “{name}”",{name:e.label}),disabled:m,onClick:()=>Pe(e),children:n(H,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return n(se,{icon:n(Me,{size:14}),name:e.label,selected:s,onSelect:()=>r(e.slug),badge:I,actions:P,rowProps:{"data-page-slug":e.slug}},e.id)},z=(e,s,o)=>{const l=o.filter(Boolean);if(l.length===0)return null;const i=ge(e);return R(Ce,{children:[n(Ne,{count:l.length,countLabel:Ue("{n} page","{n} pages",l.length),expanded:i,onToggle:()=>pe(e),children:s}),i&&l]},e)},X=(u?.rows??[]).filter(e=>Q(e.label)).map(e=>{const s=S===e.key;return n(se,{icon:e.icon,name:e.label,selected:s,onSelect:()=>w(e.key),badge:{label:t("Preview"),tone:"warning"},actions:n(D,{kind:"plain",label:t("Open the {name} in a new tab",{name:e.label}),onClick:()=>window.open(e.href,"_blank","noopener,noreferrer"),children:n(H,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":e.key}},e.key)}),Z=p.hasSiteSettings&&!!u,G=(()=>{if(c===null)return null;const e=[];let s=!1;for(const o of me){Z&&!s&&o.key.startsWith("system:")&&(e.push(z("shop",u.title,X)),s=!0);const l=o.key===Ge||o.label===We?t(o.label):o.label;e.push(z(o.key,l,o.rows.map(we)))}return Z&&!s&&e.push(z("shop",u.title,X)),e})();return R("div",{className:"sf-pages",children:[n(Ie,{icon:n(Fe,{}),title:t("Pages"),context:re,actions:n(De,{buttonRef:V,label:A?t("Add"):t("New page"),hasPopup:A?"menu":void 0,expanded:A?f!==null:void 0,onClick:be,children:n(Le,{size:15})})}),f&&n(xe,{portal:!0,style:{top:f.top,right:f.right},onClose:()=>h(null),children:R("div",{role:"menu","aria-label":t("Add"),children:[n(te,{role:"menuitem",onClick:()=>{h(null),v()},children:t("Page")}),n(te,{role:"menuitem",disabled:m,onClick:()=>{h(null),he()},children:t("Popup")})]})}),n("div",{className:"sf-pages-find",children:n(Oe,{type:"search",leftIcon:n(H,{name:"search",size:14,rounded:!0}),placeholder:t("Search all pages…"),value:E,onChange:e=>ce(e.target.value),"aria-label":t("Search all pages")})}),J&&!K&&n("div",{className:"sf-note sf-note--error",role:"alert",children:J}),G===null?n("div",{className:"sf-note",children:t("Loading…")}):G.some(Boolean)?n(Ee,{ariaLabel:t("Pages"),className:"sf-scroll",children:G}):n("div",{className:"sf-note",children:E.trim()?t("No pages match your search"):t("No pages yet. Add one with + above.")}),L&&g&&n(qe,{source:{title:g.label,slug:g.slug},taken:F,host:Qe(),duplicate:e=>L(g,e),onClose:()=>B(null),onDuplicated:e=>{B(null),x(),r(e.slug)}},g.id),K?n(Je,{open:!0,onClose:()=>N(!1),takenSlugs:F,onCreated:e=>{N(!1),x(),r(e.slug)}}):null]})}export{Ze as default};
@@ -14,6 +14,7 @@ import "efficient-easel/drag.css";
14
14
  import "efficient-easel/screen.css";
15
15
  import "./storefront-editor.css";
16
16
  import { type ScreenTarget as EditorTarget } from "efficient-easel/screen/components/ScreenDocumentContext";
17
- export default function StorefrontEditor({ target }: {
17
+ export default function StorefrontEditor({ target, openAddPage }: {
18
18
  target: EditorTarget;
19
+ openAddPage?: boolean;
19
20
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as c,jsxs as wt}from"react/jsx-runtime";import{useCallback as o,useEffect as f,useMemo as Ct,useRef as g,useState as r}from"react";import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/drag.css";import"efficient-easel/screen.css";import"./storefront-editor.css";import{useHostConfig as _t}from"../lib/document/host-config.js";import{ChromeWrap as Pt}from"efficient-easel/screen/lib/host-chrome";import{refreshSiteLiveState as Tt}from"../lib/site-live-state.js";import{holdSiteWrites as Et}from"../../format/lib/site-writes.js";import{backendOf as W}from"../lib/website-session.js";import{useEaselSession as yt}from"efficient-easel/screen/lib/session-context";import{withSiteBlockGapFields as Gt}from"../../format/lib/document/site-gap-fields.js";import{withTemplateMediaPlaceholders as vt}from"../../format/lib/document/templateFields.js";import{setEditorPage as he}from"../../format/lib/document/editor-page-context.js";import{EditorPagePathProvider as kt}from"./EditorPagePathProvider.js";import{resolveSiteName as Ht}from"../../format/lib/content/site-name.js";import{normalizeSiteGutter as Wt,normalizeSiteGutterPhone as Bt,normalizeSiteWidth as Rt}from"../../format/lib/content/page-width.js";import{siteLengthNumber as w,siteLengthUnitsOfRow as Ft}from"../../format/lib/content/css-length.js";import{normalizeSiteBackground as ue}from"../../format/lib/content/section-width.js";import{normalizeSiteBlockGap as le}from"../../format/lib/content/container-gap.js";import It,{DocumentScreen as Dt}from"efficient-easel/screen/components/ScreenMount";import bt from"./WebsiteHintsProvider.js";import{useScreenDocument as Mt}from"efficient-easel/screen/components/ScreenDocumentContext";import{PreviewHeaderProvider as Nt,siteThemeRow as xt,themeEdited as Ot,themeSeeded as Ut}from"../../render/components/PreviewHeaderContext.js";import{PreviewFooterProvider as At}from"./PreviewFooterContext.js";import{PreviewChatProvider as Lt,DEFAULT_CHAT_PREVIEW as zt}from"./PreviewChatContext.js";import{PreviewSocialProvider as Yt}from"../../render/components/PreviewSocialContext.js";import{useSocialSettings as jt}from"./useSocialSettings.js";import{PreviewSurfaceProvider as Kt}from"./PreviewSurfaceContext.js";import{WEBSITE_ADDRESSING as Vt}from"../lib/website-document-addressing.js";import{PreviewTickerProvider as Xt}from"../../render/components/PreviewTickerContext.js";import{PreviewHeroPartProvider as Zt}from"../../render/components/PreviewHeroPartContext.js";import{PreviewPartsProvider as qt}from"efficient-easel/draw/client";import{CanvasPartsBridge as Jt}from"./CanvasPartsBridge.js";import{PreviewLocationPartProvider as Qt}from"../../render/components/PreviewLocationPartContext.js";import{PreviewPartStyleProvider as $t}from"./PreviewPartStyleContext.js";import{CORNER_STYLE_TO_PX as er,DEFAULT_HEADING_COMPRESSION as tr,DEFAULT_HEADING_TYPOGRAPHY as rr,DEFAULT_SWITCH_SHOWN as B,DEFAULT_SIZES as or,DEFAULT_THEME_MODE as T,normalizeCornerRadius as nr,normalizeCornerStyle as ir,normalizeCardShadow as ar,normalizeCardGap as cr,normalizeHoverEffect as sr,IDENTITY_CARD_GAP as me,IDENTITY_CARD_SHADOW as dr,IDENTITY_HOVER_EFFECT as hr,THEME_MODE_KEY as pe,THEME_STORAGE_KEY as ur,THEME_SWITCH_HIDE as Se,THEME_SWITCH_KEY as R}from"../../format/lib/theme.js";import{pictureShadowColor as lr}from"efficient-easel/screen/lib/document/shadow-values";import{DEFAULT_FONTS as mr}from"../../format/lib/fonts.js";import{WEBSITE_SCREEN as pr}from"./WebsiteScreenParts.js";import{routeWebsiteHostMessage as Sr}from"../../format/lib/website-host-inbound.js";import{siteTextFromRow as fr}from"../../render/lib/text-styles/site-text-styles.js";import{wordStylesFromRow as gr}from"../../format/lib/word-styles.js";import{chatPreviewFrom as wr}from"./PreviewChatContext.js";const Cr=()=>{if(typeof window>"u")return T;try{const s=window.localStorage.getItem(pe);return s==="light"||s==="dark"||s==="auto"?s:T}catch{return T}},fe=s=>{if(!(typeof window>"u"))try{window.localStorage.setItem(pe,s)}catch{}},_r=()=>{if(typeof window>"u")return B;try{return window.localStorage.getItem(R)!==Se}catch{return B}},Pr=()=>{if(!(typeof window>"u"))try{window.localStorage.removeItem(ur)}catch{}},ge=s=>{if(!(typeof window>"u"))try{s?window.localStorage.removeItem(R):window.localStorage.setItem(R,Se)}catch{}};function Tr(){const{adapter:s,capabilities:d,templateId:F,ready:_,token:h,siteId:a,currentSlug:I,currentKind:D}=Mt();f(()=>(he(I,D),()=>he(null,null)),[I,D]);const E=d.placeholderFrames,[we,b]=r(null),[Ce,M]=r("");f(()=>{const e=s.templateName;if(!_||!F||!e){M("");return}let i=!1;return e().then(u=>!i&&M(u??"")).catch(()=>{}),()=>{i=!0}},[_,h,F,s]);const[_e,y]=r(T),[Pe,G]=r(B),[N,x]=r({value:{selected:0,themes:[]},readFor:null}),Te=N.value,[Ee,O]=r(mr),[ye,U]=r(or),[Ge,A]=r(null),[ve,L]=r(tr),[ke,z]=r(null),[He,Y]=r(null),[We,j]=r(me),[Be,K]=r(null),[Re,V]=r(null),[Fe,X]=r(null),[Ie,Z]=r(null),[v,q]=r(null),[k,J]=r(null),[De,Q]=r({}),be=o(e=>Q(i=>({...i,...e})),[]),l=yt(),$=_t(),Me=Ct(()=>Gt(vt($,E),v,k),[$,E,v,k]),[Ne,ee]=r(rr),[xe,te]=r(null),[Oe,re]=r(null),[Ue,oe]=r(null),[Ae,ne]=r(null),[Le,ie]=r(null),ae=g(null),n=g(!1);f(()=>{y(Cr()),G(_r())},[]);const ze=o(e=>{n.current=!0,Pr(),fe(e),y(e)},[]),Ye=o(e=>{n.current=!0,ge(e),G(e)},[]),je=o(e=>{n.current=!0,x(i=>Ot(i,e,a??""))},[a]),Ke=o(e=>{n.current=!0,O(e)},[]),Ve=o(e=>{n.current=!0,U(e)},[]),Xe=o(e=>{n.current=!0,A(e)},[]),Ze=o(e=>{n.current=!0,L(e)},[]),qe=o(e=>{n.current=!0,z(e)},[]),Je=o(e=>{n.current=!0,Y(e)},[]),Qe=o(e=>{n.current=!0,j(e)},[]),$e=o(e=>{n.current=!0,K(e)},[]),et=o(e=>{n.current=!0,ee(e)},[]),[tt,ce]=r(null),[rt,ot]=r(null),nt=o(e=>{n.current=!0,ce(e)},[]),it=o(e=>{n.current=!0,V(e)},[]),at=o(e=>{n.current=!0,X(e)},[]),ct=o(e=>{n.current=!0,Z(e)},[]),st=o(e=>{n.current=!0,q(e)},[]),dt=o(e=>{n.current=!0,J(e)},[]),ht=o(e=>{n.current=!0,te(e)},[]),ut=o(e=>{n.current=!0,re(e)},[]),lt=o(e=>{n.current=!0,oe(e)},[]),mt=o(e=>{n.current=!0,ne(e)},[]),pt=o(e=>{n.current=!0,ie(e)},[]);f(()=>{const e=W(l).theme;if(!h||!d.hasSiteTheme||!e)return;const i=a??"";ae.current!==i&&(ae.current=i,n.current=!1);let u=!1;return e.get(a?{siteId:a}:void 0).then(t=>{if(u||n.current)return;fe(t.default_mode),ge(t.show_theme_switch),y(t.default_mode),G(t.show_theme_switch),x(Ut({selected:t.selected_preset,themes:t.theme_presets},i));const C=fr(t);O(C.fonts),U(C.sizes);const S=Ft(t);Q(S),A(t.corner_radius_px===void 0?er[ir(t.corner_style)]:w(t.corner_radius_px,S.cornerRadiusUnit,nr)),L(C.compression),z(t.card_shadow==null?dr:ar(t.card_shadow)),j(t.card_gap==null?me:cr(t.card_gap)),K(t.hover_effect==null?hr:sr(t.hover_effect)),Y(lr(t.shadow_color)),V(w(t.site_width,S.siteWidthUnit,Rt)),X(w(t.site_gutter,S.siteGutterUnit,Wt)),Z(w(t.site_gutter_phone,S.siteGutterPhoneUnit,Bt)),q(w(t.block_gap,S.blockGapUnit,le)),J(w(t.block_gap_phone,S.blockGapPhoneUnit,le)),ee(C.typography),ce(C.textStyles),ot(gr(t)),te(t.hero_background_follows_width===!0),re(ue(t.section_background_width)),oe(ue(t.section_content_width)),ne(t.photography_grayscale===!0),ie(t.share_button_on_posts===!0)}).catch(()=>{}),()=>{u=!0}},[h,a,d.hasSiteTheme,l]);const St=jt({token:h,siteId:a,enabled:d.hasSiteSettings}),[ft,se]=r(zt),de=g(null),H=g(!1),m=g(null),p=g({}),P=o(async()=>{m.current&&clearTimeout(m.current),m.current=null;const e=p.current;p.current={};try{await W(l).chat?.update(e,a?{siteId:a}:void 0),Tt()}catch(i){throw p.current={...e,...p.current},i}},[l,a]);f(()=>Et(()=>m.current||Object.keys(p.current).length>0?P():void 0),[P]);const gt=o(e=>{H.current=!0,se(i=>({...i,...e})),!(!d.hasSiteSettings||!h)&&(p.current={...p.current,...e},m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{P().catch(()=>{})},500))},[d.hasSiteSettings,h,P]);return f(()=>{if(!h||!d.hasSiteSettings)return;const e=a??"";de.current!==e&&(de.current=e,H.current=!1);let i=!1;const u=W(l).chat;if(u)return u.get(a?{siteId:a}:void 0).then(t=>{i||H.current||se(wr(t))}).catch(()=>{}),()=>{i=!0}},[h,a,d.hasSiteSettings,l]),f(()=>{const e=s.site;if(!_||!d.hasSiteRecord||!e){b(null);return}let i=!1;return e().then(u=>{i||b(Ht(u.name))}).catch(()=>{}),()=>{i=!0}},[_,h,d.hasSiteRecord,a,s]),c(Dt,{config:Me,parts:pr,wrap:(e,i)=>c(Nt,{websiteName:we,templateChrome:E,templateName:Ce||null,themeMode:_e,onThemeModeChange:ze,themeSwitchShown:Pe,onThemeSwitchShownChange:Ye,theme:Te,themeRow:xt(d.hasSiteTheme,N.readFor,a??""),onThemeChange:je,fonts:Ee,onFontsChange:Ke,cornerRadiusPx:Ge,onCornerRadiusPxChange:Xe,cardShadow:ke,onCardShadowChange:qe,shadowColor:He,onShadowColorChange:Je,cardGap:We,onCardGapChange:Qe,hoverEffect:Be,onHoverEffectChange:$e,headingCompression:ve,onHeadingCompressionChange:Ze,headingTypography:Ne,onHeadingTypographyChange:et,textStyles:tt,onTextStylesChange:nt,wordStyles:rt,sizes:ye,onSizesChange:Ve,siteWidth:Re,onSiteWidthChange:it,siteGutter:Fe,onSiteGutterChange:at,siteGutterPhone:Ie,onSiteGutterPhoneChange:ct,blockGap:v,onBlockGapChange:st,blockGapPhone:k,onBlockGapPhoneChange:dt,siteLengthUnits:De,onSiteLengthUnitsChange:be,heroBackgroundFollowsWidth:xe,onHeroBackgroundFollowsWidthChange:ht,sectionBackgroundWidth:Oe,onSectionBackgroundWidthChange:ut,sectionContentWidth:Ue,onSectionContentWidthChange:lt,photographyGrayscale:Ae,onPhotographyGrayscaleChange:mt,shareButtonOnPosts:Le,onShareButtonOnPostsChange:pt,themeFromDocument:!d.hasSiteTheme,children:c(At,{children:c(Pt,{wrap:l.chrome?.wrap,surface:"page",children:c(Xt,{children:c(Zt,{children:c(qt,{children:c(Qt,{children:c(Jt,{children:wt($t,{children:[c(Lt,{chat:ft,onChatChange:gt,children:c(Yt,{value:St,children:c(Kt,{children:c(kt,{children:c(bt,{children:e})})})})}),i]})})})})})})})})})})}function Er({target:s}){return c(It,{target:s,addressing:Vt,onHostMessage:Sr,children:c(Tr,{})})}export{Er as default};
1
+ "use client";import{jsx as a,jsxs as wt}from"react/jsx-runtime";import{useCallback as o,useEffect as f,useMemo as Ct,useRef as g,useState as r}from"react";import"efficient-easel/easel.css";import"efficient-easel/shell.css";import"efficient-easel/rail.css";import"efficient-easel/panel.css";import"efficient-easel/fields.css";import"efficient-easel/pick.css";import"efficient-easel/copy.css";import"efficient-easel/gold.css";import"efficient-easel/text-styles.css";import"efficient-easel/menu.css";import"efficient-easel/chrome.css";import"efficient-easel/tree.css";import"efficient-easel/drag.css";import"efficient-easel/screen.css";import"./storefront-editor.css";import{useHostConfig as _t}from"../lib/document/host-config.js";import{ChromeWrap as Pt}from"efficient-easel/screen/lib/host-chrome";import{refreshSiteLiveState as Tt}from"../lib/site-live-state.js";import{holdSiteWrites as Et}from"../../format/lib/site-writes.js";import{backendOf as W}from"../lib/website-session.js";import{useEaselSession as yt}from"efficient-easel/screen/lib/session-context";import{withSiteBlockGapFields as Gt}from"../../format/lib/document/site-gap-fields.js";import{withTemplateMediaPlaceholders as vt}from"../../format/lib/document/templateFields.js";import{setEditorPage as he}from"../../format/lib/document/editor-page-context.js";import{EditorPagePathProvider as kt}from"./EditorPagePathProvider.js";import{AddPageOnOpen as Ht}from"./AddPageOnOpen.js";import{resolveSiteName as Wt}from"../../format/lib/content/site-name.js";import{normalizeSiteGutter as Bt,normalizeSiteGutterPhone as Rt,normalizeSiteWidth as Ft}from"../../format/lib/content/page-width.js";import{siteLengthNumber as w,siteLengthUnitsOfRow as It}from"../../format/lib/content/css-length.js";import{normalizeSiteBackground as ue}from"../../format/lib/content/section-width.js";import{normalizeSiteBlockGap as le}from"../../format/lib/content/container-gap.js";import Dt,{DocumentScreen as bt}from"efficient-easel/screen/components/ScreenMount";import Ot from"./WebsiteHintsProvider.js";import{useScreenDocument as Mt}from"efficient-easel/screen/components/ScreenDocumentContext";import{PreviewHeaderProvider as Nt,siteThemeRow as xt,themeEdited as Ut,themeSeeded as At}from"../../render/components/PreviewHeaderContext.js";import{PreviewFooterProvider as Lt}from"./PreviewFooterContext.js";import{PreviewChatProvider as zt,DEFAULT_CHAT_PREVIEW as Yt}from"./PreviewChatContext.js";import{PreviewSocialProvider as jt}from"../../render/components/PreviewSocialContext.js";import{useSocialSettings as Kt}from"./useSocialSettings.js";import{PreviewSurfaceProvider as Vt}from"./PreviewSurfaceContext.js";import{WEBSITE_ADDRESSING as Xt}from"../lib/website-document-addressing.js";import{PreviewTickerProvider as Zt}from"../../render/components/PreviewTickerContext.js";import{PreviewHeroPartProvider as qt}from"../../render/components/PreviewHeroPartContext.js";import{PreviewPartsProvider as Jt}from"efficient-easel/draw/client";import{CanvasPartsBridge as Qt}from"./CanvasPartsBridge.js";import{PreviewLocationPartProvider as $t}from"../../render/components/PreviewLocationPartContext.js";import{PreviewPartStyleProvider as er}from"./PreviewPartStyleContext.js";import{CORNER_STYLE_TO_PX as tr,DEFAULT_HEADING_COMPRESSION as rr,DEFAULT_HEADING_TYPOGRAPHY as or,DEFAULT_SWITCH_SHOWN as B,DEFAULT_SIZES as nr,DEFAULT_THEME_MODE as T,normalizeCornerRadius as ir,normalizeCornerStyle as ar,normalizeCardShadow as cr,normalizeCardGap as sr,normalizeHoverEffect as dr,IDENTITY_CARD_GAP as me,IDENTITY_CARD_SHADOW as hr,IDENTITY_HOVER_EFFECT as ur,THEME_MODE_KEY as pe,THEME_STORAGE_KEY as lr,THEME_SWITCH_HIDE as Se,THEME_SWITCH_KEY as R}from"../../format/lib/theme.js";import{pictureShadowColor as mr}from"efficient-easel/screen/lib/document/shadow-values";import{DEFAULT_FONTS as pr}from"../../format/lib/fonts.js";import{WEBSITE_SCREEN as Sr}from"./WebsiteScreenParts.js";import{routeWebsiteHostMessage as fr}from"../../format/lib/website-host-inbound.js";import{siteTextFromRow as gr}from"../../render/lib/text-styles/site-text-styles.js";import{wordStylesFromRow as wr}from"../../format/lib/word-styles.js";import{chatPreviewFrom as Cr}from"./PreviewChatContext.js";const _r=()=>{if(typeof window>"u")return T;try{const s=window.localStorage.getItem(pe);return s==="light"||s==="dark"||s==="auto"?s:T}catch{return T}},fe=s=>{if(!(typeof window>"u"))try{window.localStorage.setItem(pe,s)}catch{}},Pr=()=>{if(typeof window>"u")return B;try{return window.localStorage.getItem(R)!==Se}catch{return B}},Tr=()=>{if(!(typeof window>"u"))try{window.localStorage.removeItem(lr)}catch{}},ge=s=>{if(!(typeof window>"u"))try{s?window.localStorage.removeItem(R):window.localStorage.setItem(R,Se)}catch{}};function Er(){const{adapter:s,capabilities:d,templateId:F,ready:_,token:h,siteId:c,currentSlug:I,currentKind:D}=Mt();f(()=>(he(I,D),()=>he(null,null)),[I,D]);const E=d.placeholderFrames,[we,b]=r(null),[Ce,O]=r("");f(()=>{const e=s.templateName;if(!_||!F||!e){O("");return}let i=!1;return e().then(u=>!i&&O(u??"")).catch(()=>{}),()=>{i=!0}},[_,h,F,s]);const[_e,y]=r(T),[Pe,G]=r(B),[M,N]=r({value:{selected:0,themes:[]},readFor:null}),Te=M.value,[Ee,x]=r(pr),[ye,U]=r(nr),[Ge,A]=r(null),[ve,L]=r(rr),[ke,z]=r(null),[He,Y]=r(null),[We,j]=r(me),[Be,K]=r(null),[Re,V]=r(null),[Fe,X]=r(null),[Ie,Z]=r(null),[v,q]=r(null),[k,J]=r(null),[De,Q]=r({}),be=o(e=>Q(i=>({...i,...e})),[]),l=yt(),$=_t(),Oe=Ct(()=>Gt(vt($,E),v,k),[$,E,v,k]),[Me,ee]=r(or),[Ne,te]=r(null),[xe,re]=r(null),[Ue,oe]=r(null),[Ae,ne]=r(null),[Le,ie]=r(null),ae=g(null),n=g(!1);f(()=>{y(_r()),G(Pr())},[]);const ze=o(e=>{n.current=!0,Tr(),fe(e),y(e)},[]),Ye=o(e=>{n.current=!0,ge(e),G(e)},[]),je=o(e=>{n.current=!0,N(i=>Ut(i,e,c??""))},[c]),Ke=o(e=>{n.current=!0,x(e)},[]),Ve=o(e=>{n.current=!0,U(e)},[]),Xe=o(e=>{n.current=!0,A(e)},[]),Ze=o(e=>{n.current=!0,L(e)},[]),qe=o(e=>{n.current=!0,z(e)},[]),Je=o(e=>{n.current=!0,Y(e)},[]),Qe=o(e=>{n.current=!0,j(e)},[]),$e=o(e=>{n.current=!0,K(e)},[]),et=o(e=>{n.current=!0,ee(e)},[]),[tt,ce]=r(null),[rt,ot]=r(null),nt=o(e=>{n.current=!0,ce(e)},[]),it=o(e=>{n.current=!0,V(e)},[]),at=o(e=>{n.current=!0,X(e)},[]),ct=o(e=>{n.current=!0,Z(e)},[]),st=o(e=>{n.current=!0,q(e)},[]),dt=o(e=>{n.current=!0,J(e)},[]),ht=o(e=>{n.current=!0,te(e)},[]),ut=o(e=>{n.current=!0,re(e)},[]),lt=o(e=>{n.current=!0,oe(e)},[]),mt=o(e=>{n.current=!0,ne(e)},[]),pt=o(e=>{n.current=!0,ie(e)},[]);f(()=>{const e=W(l).theme;if(!h||!d.hasSiteTheme||!e)return;const i=c??"";ae.current!==i&&(ae.current=i,n.current=!1);let u=!1;return e.get(c?{siteId:c}:void 0).then(t=>{if(u||n.current)return;fe(t.default_mode),ge(t.show_theme_switch),y(t.default_mode),G(t.show_theme_switch),N(At({selected:t.selected_preset,themes:t.theme_presets},i));const C=gr(t);x(C.fonts),U(C.sizes);const S=It(t);Q(S),A(t.corner_radius_px===void 0?tr[ar(t.corner_style)]:w(t.corner_radius_px,S.cornerRadiusUnit,ir)),L(C.compression),z(t.card_shadow==null?hr:cr(t.card_shadow)),j(t.card_gap==null?me:sr(t.card_gap)),K(t.hover_effect==null?ur:dr(t.hover_effect)),Y(mr(t.shadow_color)),V(w(t.site_width,S.siteWidthUnit,Ft)),X(w(t.site_gutter,S.siteGutterUnit,Bt)),Z(w(t.site_gutter_phone,S.siteGutterPhoneUnit,Rt)),q(w(t.block_gap,S.blockGapUnit,le)),J(w(t.block_gap_phone,S.blockGapPhoneUnit,le)),ee(C.typography),ce(C.textStyles),ot(wr(t)),te(t.hero_background_follows_width===!0),re(ue(t.section_background_width)),oe(ue(t.section_content_width)),ne(t.photography_grayscale===!0),ie(t.share_button_on_posts===!0)}).catch(()=>{}),()=>{u=!0}},[h,c,d.hasSiteTheme,l]);const St=Kt({token:h,siteId:c,enabled:d.hasSiteSettings}),[ft,se]=r(Yt),de=g(null),H=g(!1),m=g(null),p=g({}),P=o(async()=>{m.current&&clearTimeout(m.current),m.current=null;const e=p.current;p.current={};try{await W(l).chat?.update(e,c?{siteId:c}:void 0),Tt()}catch(i){throw p.current={...e,...p.current},i}},[l,c]);f(()=>Et(()=>m.current||Object.keys(p.current).length>0?P():void 0),[P]);const gt=o(e=>{H.current=!0,se(i=>({...i,...e})),!(!d.hasSiteSettings||!h)&&(p.current={...p.current,...e},m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{P().catch(()=>{})},500))},[d.hasSiteSettings,h,P]);return f(()=>{if(!h||!d.hasSiteSettings)return;const e=c??"";de.current!==e&&(de.current=e,H.current=!1);let i=!1;const u=W(l).chat;if(u)return u.get(c?{siteId:c}:void 0).then(t=>{i||H.current||se(Cr(t))}).catch(()=>{}),()=>{i=!0}},[h,c,d.hasSiteSettings,l]),f(()=>{const e=s.site;if(!_||!d.hasSiteRecord||!e){b(null);return}let i=!1;return e().then(u=>{i||b(Wt(u.name))}).catch(()=>{}),()=>{i=!0}},[_,h,d.hasSiteRecord,c,s]),a(bt,{config:Oe,parts:Sr,wrap:(e,i)=>a(Nt,{websiteName:we,templateChrome:E,templateName:Ce||null,themeMode:_e,onThemeModeChange:ze,themeSwitchShown:Pe,onThemeSwitchShownChange:Ye,theme:Te,themeRow:xt(d.hasSiteTheme,M.readFor,c??""),onThemeChange:je,fonts:Ee,onFontsChange:Ke,cornerRadiusPx:Ge,onCornerRadiusPxChange:Xe,cardShadow:ke,onCardShadowChange:qe,shadowColor:He,onShadowColorChange:Je,cardGap:We,onCardGapChange:Qe,hoverEffect:Be,onHoverEffectChange:$e,headingCompression:ve,onHeadingCompressionChange:Ze,headingTypography:Me,onHeadingTypographyChange:et,textStyles:tt,onTextStylesChange:nt,wordStyles:rt,sizes:ye,onSizesChange:Ve,siteWidth:Re,onSiteWidthChange:it,siteGutter:Fe,onSiteGutterChange:at,siteGutterPhone:Ie,onSiteGutterPhoneChange:ct,blockGap:v,onBlockGapChange:st,blockGapPhone:k,onBlockGapPhoneChange:dt,siteLengthUnits:De,onSiteLengthUnitsChange:be,heroBackgroundFollowsWidth:Ne,onHeroBackgroundFollowsWidthChange:ht,sectionBackgroundWidth:xe,onSectionBackgroundWidthChange:ut,sectionContentWidth:Ue,onSectionContentWidthChange:lt,photographyGrayscale:Ae,onPhotographyGrayscaleChange:mt,shareButtonOnPosts:Le,onShareButtonOnPostsChange:pt,themeFromDocument:!d.hasSiteTheme,children:a(Lt,{children:a(Pt,{wrap:l.chrome?.wrap,surface:"page",children:a(Zt,{children:a(qt,{children:a(Jt,{children:a($t,{children:a(Qt,{children:wt(er,{children:[a(zt,{chat:ft,onChatChange:gt,children:a(jt,{value:St,children:a(Vt,{children:a(kt,{children:a(Ot,{children:e})})})})}),i]})})})})})})})})})})}function yr({target:s,openAddPage:d}){return a(Ht,{open:d,children:a(Dt,{target:s,addressing:Xt,onHostMessage:fr,children:a(Er,{})})})}export{yr as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "70.1.0",
3
+ "version": "70.2.0",
4
4
  "description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",