pagepilot-visual-editor 1.0.40 → 1.0.41

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.
@@ -61874,7 +61874,7 @@ function l7e(e) {
61874
61874
  return AX(t);
61875
61875
  }
61876
61876
  async function c7e(e) {
61877
- const t = await import("./xlsx-D1z_8D-l.js").then((o) => o.x), n = await e.arrayBuffer(), r = t.read(new Uint8Array(n), { type: "array", cellDates: !0 }), i = [];
61877
+ const t = await import("./xlsx-QDrfGy9O.js").then((o) => o.x), n = await e.arrayBuffer(), r = t.read(new Uint8Array(n), { type: "array", cellDates: !0 }), i = [];
61878
61878
  for (const o of r.SheetNames) {
61879
61879
  const a = r.Sheets[o], c = t.utils.sheet_to_json(a, {
61880
61880
  header: 1,
@@ -61888,7 +61888,7 @@ async function c7e(e) {
61888
61888
  return i;
61889
61889
  }
61890
61890
  async function u7e(e) {
61891
- const t = await import("./index-DVR0Xke0.js").then((i) => i.i), n = await e.arrayBuffer(), { value: r } = await t.convertToHtml({ arrayBuffer: n });
61891
+ const t = await import("./index-xCACDRV-.js").then((i) => i.i), n = await e.arrayBuffer(), { value: r } = await t.convertToHtml({ arrayBuffer: n });
61892
61892
  return r ? r7e(r).map((i, o) => ({ name: `Table ${o + 1}`, table: i })) : [];
61893
61893
  }
61894
61894
  function d7e(e, t, n, r, i, o, a = 50, s = 20) {
@@ -166266,15 +166266,19 @@ export {
166266
166266
  j8e as e,
166267
166267
  omt as f,
166268
166268
  Kht as g,
166269
- die as h,
166270
- jpt as i,
166271
- rAt as j,
166272
- Agt as k,
166273
- qa as l,
166274
- br as m,
166275
- Yht as n,
166276
- sse as o,
166269
+ f5 as h,
166270
+ kY as i,
166271
+ die as j,
166272
+ jpt as k,
166273
+ Np as l,
166274
+ rAt as m,
166275
+ Bc as n,
166276
+ Agt as o,
166277
166277
  qpt as p,
166278
+ qa as q,
166278
166279
  nAt as r,
166279
- Pt as s
166280
+ br as s,
166281
+ Yht as t,
166282
+ Pt as u,
166283
+ sse as v
166280
166284
  };
@@ -1,4 +1,4 @@
1
- import { g as jl, c as fe } from "./index-Bj8aEC5x.js";
1
+ import { g as jl, c as fe } from "./index-kjXqGRCj.js";
2
2
  import { c as It } from "./_commonjs-dynamic-modules-BpilXLfW.js";
3
3
  function Xl(e, n) {
4
4
  for (var t = 0; t < n.length; t++) {
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CHnw7-jn.cjs");exports.EditorContext=e.EditorContext;exports.PagePilotEditor=e.PagePilotEditor;exports.PagepilotApiClient=e.PagepilotApiClient;exports.Reader=e.Reader;exports.ReaderBlock=e.ReaderBlock;exports.ReaderBlockSchema=e.ReaderBlockSchema;exports.ReaderDocumentSchema=e.ReaderDocumentSchema;exports.extractApiRows=e.extractApiRows;exports.pagePilotEditorDarkTheme=e.pagePilotEditorDarkTheme;exports.pagePilotEditorLightTheme=e.pagePilotEditorLightTheme;exports.refreshApiDataSources=e.refreshApiDataSources;exports.refreshDocumentApiDataSources=e.refreshDocumentApiDataSources;exports.renderToStaticHtml=e.renderToStaticHtml;exports.renderToStaticMarkup=e.renderToStaticMarkup;exports.resetDocument=e.resetDocument;exports.resetPagePilotEditorTranslations=e.resetPagePilotEditorTranslations;exports.setDocument=e.setDocument;exports.setPagePilotEditorTranslations=e.setPagePilotEditorTranslations;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D6uaGE9o.cjs");exports.EditorContext=e.EditorContext;exports.PagePilotEditor=e.PagePilotEditor;exports.PagepilotApiClient=e.PagepilotApiClient;exports.Reader=e.Reader;exports.ReaderBlock=e.ReaderBlock;exports.ReaderBlockSchema=e.ReaderBlockSchema;exports.ReaderDocumentSchema=e.ReaderDocumentSchema;exports.applyFieldPatches=e.applyFieldPatches;exports.buildChangeTemplateDocument=e.buildChangeTemplateDocument;exports.extractApiRows=e.extractApiRows;exports.normalizeTemplateForLocalEditor=e.normalizeTemplateForLocalEditor;exports.pagePilotEditorDarkTheme=e.pagePilotEditorDarkTheme;exports.pagePilotEditorLightTheme=e.pagePilotEditorLightTheme;exports.parseTemplateConfiguration=e.parseTemplateConfiguration;exports.refreshApiDataSources=e.refreshApiDataSources;exports.refreshDocumentApiDataSources=e.refreshDocumentApiDataSources;exports.renderToStaticHtml=e.renderToStaticHtml;exports.renderToStaticMarkup=e.renderToStaticMarkup;exports.resetDocument=e.resetDocument;exports.resetPagePilotEditorTranslations=e.resetPagePilotEditorTranslations;exports.setDocument=e.setDocument;exports.setPagePilotEditorTranslations=e.setPagePilotEditorTranslations;
package/dist/index.d.ts CHANGED
@@ -8,5 +8,8 @@ export { renderToStaticHtml, refreshApiDataSources, refreshDocumentApiDataSource
8
8
  export type { RenderToStaticHtmlOptions, RenderToStaticHtmlSyncOptions, RenderToStaticHtmlPageOptions, RenderToStaticHtmlPagePathOptions, RenderToStaticHtmlTemplateOptions, RefreshApiDataSourcesOptions, RefreshApiDataSourcesResult, } from './renderToStaticHtml';
9
9
  export type { TReaderBlock, TReaderDocument, TReaderBlockProps, TReaderProps, } from './email-builder-core';
10
10
  export * as EditorContext from './editor-sample/documents/editor/EditorContext';
11
+ export { buildChangeTemplateDocument, applyFieldPatches, } from './editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers';
12
+ export type { FieldPatches } from './editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers';
13
+ export { normalizeTemplateForLocalEditor, parseTemplateConfiguration, } from './editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers';
11
14
  export { PagepilotApiClient } from './api/PagepilotApiClient';
12
15
  export type { PagepilotApiConfig, ListParams, PageListRow, PageListResponse, } from './api/PagepilotApiClient';
package/dist/index.js CHANGED
@@ -1,21 +1,25 @@
1
- import { E as t, P as s, b as r, R as o, d as i, e as c, f as d, h as l, p as n, i as m, r as p, j as P, k as h, l as g, m as u, n as D, s as E, o as R } from "./index-Bj8aEC5x.js";
1
+ import { E as t, P as s, b as o, R as r, d as i, e as l, f as n, h as c, i as d, j as m, n as p, p as u, k as P, l as h, r as g, m as T, o as D, q as E, s as R, t as S, u as f, v as k } from "./index-kjXqGRCj.js";
2
2
  export {
3
3
  t as EditorContext,
4
4
  s as PagePilotEditor,
5
- r as PagepilotApiClient,
6
- o as Reader,
5
+ o as PagepilotApiClient,
6
+ r as Reader,
7
7
  i as ReaderBlock,
8
- c as ReaderBlockSchema,
9
- d as ReaderDocumentSchema,
10
- l as extractApiRows,
11
- n as pagePilotEditorDarkTheme,
12
- m as pagePilotEditorLightTheme,
13
- p as refreshApiDataSources,
14
- P as refreshDocumentApiDataSources,
15
- h as renderToStaticHtml,
16
- g as renderToStaticMarkup,
17
- u as resetDocument,
18
- D as resetPagePilotEditorTranslations,
19
- E as setDocument,
20
- R as setPagePilotEditorTranslations
8
+ l as ReaderBlockSchema,
9
+ n as ReaderDocumentSchema,
10
+ c as applyFieldPatches,
11
+ d as buildChangeTemplateDocument,
12
+ m as extractApiRows,
13
+ p as normalizeTemplateForLocalEditor,
14
+ u as pagePilotEditorDarkTheme,
15
+ P as pagePilotEditorLightTheme,
16
+ h as parseTemplateConfiguration,
17
+ g as refreshApiDataSources,
18
+ T as refreshDocumentApiDataSources,
19
+ D as renderToStaticHtml,
20
+ E as renderToStaticMarkup,
21
+ R as resetDocument,
22
+ S as resetPagePilotEditorTranslations,
23
+ f as setDocument,
24
+ k as setPagePilotEditorTranslations
21
25
  };
@@ -1,4 +1,4 @@
1
- "use strict";const $0=require("./index-CHnw7-jn.cjs"),B0=require("./_commonjs-dynamic-modules-DMkBISW1.cjs");function op(i0,Wr){for(var l=0;l<Wr.length;l++){const x=Wr[l];if(typeof x!="string"&&!Array.isArray(x)){for(const a in x)if(a!=="default"&&!(a in i0)){const e=Object.getOwnPropertyDescriptor(x,a);e&&Object.defineProperty(i0,a,e.get?e:{enumerable:!0,get:()=>x[a]})}}}return Object.freeze(Object.defineProperty(i0,Symbol.toStringTag,{value:"Module"}))}var gi={exports:{}},xi={exports:{}},Ef;function Cf(){return Ef||(Ef=1,function(i0){var Wr={version:"1.14.0"};Wr[437]=function(){for(var l=`\0\x07\b
1
+ "use strict";const $0=require("./index-D6uaGE9o.cjs"),B0=require("./_commonjs-dynamic-modules-DMkBISW1.cjs");function op(i0,Wr){for(var l=0;l<Wr.length;l++){const x=Wr[l];if(typeof x!="string"&&!Array.isArray(x)){for(const a in x)if(a!=="default"&&!(a in i0)){const e=Object.getOwnPropertyDescriptor(x,a);e&&Object.defineProperty(i0,a,e.get?e:{enumerable:!0,get:()=>x[a]})}}}return Object.freeze(Object.defineProperty(i0,Symbol.toStringTag,{value:"Module"}))}var gi={exports:{}},xi={exports:{}},Ef;function Cf(){return Ef||(Ef=1,function(i0){var Wr={version:"1.14.0"};Wr[437]=function(){for(var l=`\0\x07\b
2
2
  \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,x=[],a={},e=0;e!=l.length;++e)l.charCodeAt(e)!==65533&&(a[l.charAt(e)]=e),x[e]=l.charAt(e);return{enc:a,dec:x}}(),Wr[620]=function(){for(var l=`\0\x07\b
3
3
  \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàąçêëèïîćÄĄĘęłôöĆûùŚÖܢ٥śƒŹŻóÓńŃźż¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,x=[],a={},e=0;e!=l.length;++e)l.charCodeAt(e)!==65533&&(a[l.charAt(e)]=e),x[e]=l.charAt(e);return{enc:a,dec:x}}(),Wr[737]=function(){for(var l=`\0\x07\b
4
4
  \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ `,x=[],a={},e=0;e!=l.length;++e)l.charCodeAt(e)!==65533&&(a[l.charAt(e)]=e),x[e]=l.charAt(e);return{enc:a,dec:x}}(),Wr[850]=function(){for(var l=`\0\x07\b
@@ -1,4 +1,4 @@
1
- import { c as Ln, g as lp, a as op } from "./index-Bj8aEC5x.js";
1
+ import { c as Ln, g as lp, a as op } from "./index-kjXqGRCj.js";
2
2
  import { c as B0 } from "./_commonjs-dynamic-modules-BpilXLfW.js";
3
3
  function up(i0, Wr) {
4
4
  for (var o = 0; o < Wr.length; o++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pagepilot-visual-editor",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "Standalone visual editor — drop <PagePilotEditor> into any React app and get Style/Layout/Inspect/Layers panels, drag-and-drop blocks, undo/redo, dirty-tracked save, multi-section pages, and light/dark themes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",