efficient-web-builder 32.2.0 → 34.0.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 +64 -0
- package/dist/editor/components/SectionIcon.js +1 -1
- package/dist/editor/components/SiteRestoreNotice.d.ts +1 -0
- package/dist/editor/components/SiteRestoreNotice.js +1 -0
- package/dist/editor/components/StorefrontEditor.js +1 -1
- package/dist/editor/components/VersionHistoryDrawer.d.ts +21 -0
- package/dist/editor/components/VersionHistoryDrawer.js +1 -0
- package/dist/editor/components/WebsiteScreenParts.js +1 -1
- package/dist/editor/components/storefront-editor.css +17 -1
- package/dist/editor/components/useWebsiteMainAction.js +1 -1
- package/dist/editor/lib/editor-document-adapter.d.ts +2 -0
- package/dist/editor/lib/editor-document-adapter.js +1 -1
- package/dist/editor/lib/puck/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/puck/heading-outline.js +1 -1
- package/dist/editor/lib/puck/overrides.js +1 -1
- package/dist/editor/lib/site-versions.d.ts +43 -0
- package/dist/editor/lib/site-versions.js +1 -0
- package/dist/format/lib/content/contact.d.ts +0 -2
- package/dist/format/lib/content/contact.js +2 -2
- package/dist/format/lib/content/footprint.d.ts +3 -3
- package/dist/format/lib/content/footprint.js +1 -1
- package/dist/format/lib/content/text-tag.d.ts +4 -0
- package/dist/format/lib/content/text-tag.js +1 -0
- package/dist/format/lib/editor-words-catalogue.d.ts +59 -0
- package/dist/format/lib/editor-words-catalogue.js +5 -5
- package/dist/format/lib/map-styles.d.ts +1 -27
- package/dist/format/lib/map-styles.js +1 -1
- package/dist/format/lib/puck/container-blocks.js +1 -1
- package/dist/format/lib/puck/passes/settings-groups.js +1 -1
- package/dist/format/lib/sections/section-head-style.d.ts +1 -0
- package/dist/format/lib/source-rules/flat-theme-palette.d.ts +1 -0
- package/dist/format/lib/source-rules/flat-theme-palette.js +5 -5
- package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.d.ts +1 -0
- package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.js +18 -18
- package/dist/format/lib/web-backend.d.ts +29 -0
- package/dist/render/components/ContactLocations.d.ts +1 -3
- package/dist/render/components/ContactLocations.js +6 -26
- package/dist/render/components/DealerFinder.d.ts +1 -1
- package/dist/render/components/DealerFinder.js +1 -1
- package/dist/render/components/Footprint.d.ts +2 -4
- package/dist/render/components/Footprint.js +1 -27
- package/dist/render/components/SectionHeader.d.ts +30 -3
- package/dist/render/components/SectionHeader.js +1 -1
- package/dist/render/components/SiteMap.d.ts +19 -0
- package/dist/render/components/SiteMap.js +1 -0
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/useCountUp.js +1 -1
- package/dist/render/lib/puck/blocks/general/ContactLocations/render.js +1 -1
- package/dist/render/lib/puck/blocks/general/Footprint/render.js +2 -2
- package/dist/render/lib/puck/blocks/general/Text/render.js +1 -1
- package/package.json +5 -6
- package/dist/format/lib/maps-loader.d.ts +0 -8
- package/dist/format/lib/maps-loader.js +0 -1
- package/dist/render/lib/maps-config.d.ts +0 -16
- package/dist/render/lib/maps-config.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as m,jsx as r}from"react/jsx-runtime";import{padValuesOf as f}from"../../../../../../format/lib/content/section-padding.js";import l from"../../../../../components/Text.js";import{hidableText as p,readHidable as x}from"efficient-easel/draw";import{PH as g}from"../../../../../../format/lib/puck/blocks/placeholders.js";import{phPrev as s}from"../../scaffold.js";const j={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0},render:t=>{const{text:e,align:a,tone:o,tag:n,contained:i,puck:d}=t;return x(e).hidden?r(m,{}):r(l,{text:s(p(e),g.body,d)??"",align:a,tone:o,tag:n,contained:i,pad:f(t)})}};export{j as TextRender};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-web-builder",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.0.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",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@tabler/icons-react": "^3.46.0",
|
|
56
|
-
"efficient-easel": "^
|
|
57
|
-
"efficient-shell": "^8.
|
|
56
|
+
"efficient-easel": "^16.1.0",
|
|
57
|
+
"efficient-shell": "^8.18.0",
|
|
58
58
|
"isomorphic-dompurify": "^3.18.0",
|
|
59
59
|
"next": ">=16",
|
|
60
60
|
"react": ">=19",
|
|
@@ -69,12 +69,11 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@tabler/icons-react": "^3.46.0",
|
|
71
71
|
"@tanstack/react-query": "^5.100.9",
|
|
72
|
-
"@types/google.maps": "^3.64.1",
|
|
73
72
|
"@types/node": "^20",
|
|
74
73
|
"@types/react": "^19",
|
|
75
74
|
"@types/react-dom": "^19",
|
|
76
|
-
"efficient-easel": "^
|
|
77
|
-
"efficient-shell": "^8.
|
|
75
|
+
"efficient-easel": "^16.1.0",
|
|
76
|
+
"efficient-shell": "^8.18.0",
|
|
78
77
|
"esbuild": "^0.28.0",
|
|
79
78
|
"happy-dom": "^20.14.5",
|
|
80
79
|
"isomorphic-dompurify": "^3.18.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const GOOGLE_MAPS_API_KEY: string;
|
|
2
|
-
export declare function loadGoogleMaps(apiKey?: string): Promise<typeof google.maps>;
|
|
3
|
-
export declare function hasMapCoords(lat: number, lng: number): boolean;
|
|
4
|
-
export declare const MAP_LOAD_TIMEOUT_MS = 15000;
|
|
5
|
-
export declare function watchMapLoad(onFail: () => void): {
|
|
6
|
-
ready: () => void;
|
|
7
|
-
stop: () => void;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const u=process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY??"",l="https://maps.googleapis.com/maps/api/js",d="__storefrontMapsReady__";let i=null;function w(e){if(typeof window>"u")return Promise.reject(new Error("ssr"));if(window.google?.maps)return Promise.resolve(window.google.maps);if(i)return i;const o=e&&e.trim()||u;return o?(i=new Promise((n,s)=>{const t=d;window[t]=()=>n(window.google.maps);const r=document.createElement("script");r.src=`${l}?key=${encodeURIComponent(o)}&libraries=marker&callback=${t}&v=weekly&loading=async`,r.async=!0,r.defer=!0,r.onerror=()=>s(new Error("Failed to load Google Maps JS SDK")),document.head.appendChild(r)}),i):Promise.reject(new Error("No Google Maps API key configured"))}function f(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}const p=15e3,c=new Set,m=()=>c.forEach(e=>e());function _(e){const o=window;return o.gm_authFailure=m,c.add(e),()=>{c.delete(e)}}function A(e){let o=!1,n;const s=()=>{o||(o=!0,a(),e())},t=()=>{n=setTimeout(()=>{document.visibilityState==="visible"?s():t()},p)},r=_(s),a=()=>{clearTimeout(n),r()};return t(),{ready:()=>{o||(o=!0,a())},stop:a}}export{u as GOOGLE_MAPS_API_KEY,p as MAP_LOAD_TIMEOUT_MS,f as hasMapCoords,w as loadGoogleMaps,A as watchMapLoad};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const MAPS_API_KEY_STORAGE = "sf:maps-api-key";
|
|
2
|
-
export declare const MAPS_MAP_ID_STORAGE = "sf:maps-map-id";
|
|
3
|
-
export declare function readSiteMapsKey(): string;
|
|
4
|
-
export declare function writeSiteMapsKey(key: string): void;
|
|
5
|
-
export declare function readSiteMapId(): string;
|
|
6
|
-
export declare function writeSiteMapId(id: string): void;
|
|
7
|
-
export interface SiteMapsValue {
|
|
8
|
-
apiKey: string;
|
|
9
|
-
setApiKey: (key: string) => void;
|
|
10
|
-
mapId: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const SiteMapsProvider: import("react").Provider<SiteMapsValue>;
|
|
13
|
-
export declare const useSiteMapsKey: () => string;
|
|
14
|
-
export declare const useSiteMapId: () => string;
|
|
15
|
-
export declare function resolveMapsKey(perBlockKey: string | undefined, siteKey: string): string;
|
|
16
|
-
export declare function resolveMapId(perBlockMapId: string | undefined, siteMapId: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{createContext as p,useContext as o}from"react";import{GOOGLE_MAPS_API_KEY as a}from"../../format/lib/maps-loader.js";const n="sf:maps-api-key",i="sf:maps-map-id";function u(){if(typeof window>"u")return"";try{return window.localStorage.getItem(n)??""}catch{return""}}function s(t){if(!(typeof window>"u"))try{window.localStorage.setItem(n,t)}catch{}}function f(){if(typeof window>"u")return"";try{return window.localStorage.getItem(i)??""}catch{return""}}function w(t){if(!(typeof window>"u"))try{window.localStorage.setItem(i,t)}catch{}}const r=p({apiKey:"",setApiKey:()=>{},mapId:""}),m=r.Provider,S=()=>o(r).apiKey,x=()=>o(r).mapId;function y(t,e){return t&&t.trim()||e&&e.trim()||a}function M(t,e){return t&&t.trim()||e&&e.trim()||""}export{n as MAPS_API_KEY_STORAGE,i as MAPS_MAP_ID_STORAGE,m as SiteMapsProvider,f as readSiteMapId,u as readSiteMapsKey,M as resolveMapId,y as resolveMapsKey,x as useSiteMapId,S as useSiteMapsKey,w as writeSiteMapId,s as writeSiteMapsKey};
|