@charisol/plexo-sdk 2.0.3 → 2.0.5
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/README.md +2 -2
- package/dist/{InlineColorPicker-8ewm1Asx.js → InlineColorPicker-BGyPZzyk.js} +326 -138
- package/dist/{client-DlVJt_6V.js → client-CAWtj9sV.js} +1 -1
- package/dist/index.js +12669 -12857
- package/dist/lint-CTTecyu_.js +429 -0
- package/dist/plexo-sdk.css +1 -1
- package/dist/{legacy-B4E71HSa.js → v1-DgwxU8IH.js} +4295 -1654
- package/dist/v2/compile/build.d.ts +15 -0
- package/dist/v2/compile/extras.d.ts +19 -0
- package/dist/v2/compile/html.d.ts +8 -0
- package/dist/v2/compile/index.d.ts +3 -0
- package/dist/v2/compile/sanitizeHtml.d.ts +37 -0
- package/dist/v2/components/fonts/EditorFonts.d.ts +2 -0
- package/dist/v2/components/fonts/FontPicker.d.ts +15 -0
- package/dist/v2/components/fonts/fontLoader.d.ts +13 -0
- package/dist/v2/components/properties/TypeControls.d.ts +10 -0
- package/dist/v2/components/sidebar/ImagesPanel.d.ts +6 -0
- package/dist/v2/context/EditorContext.d.ts +3 -1
- package/dist/v2/data/insertableComponents.d.ts +1 -1
- package/dist/v2/design/css.d.ts +1 -1
- package/dist/v2/design/customFonts.d.ts +49 -0
- package/dist/v2/design/fonts.d.ts +36 -2
- package/dist/v2/design/googleFontsData.d.ts +1 -0
- package/dist/v2/design/index.d.ts +4 -1
- package/dist/v2/design/textStyles.d.ts +6 -2
- package/dist/v2/design/typeScale.d.ts +43 -0
- package/dist/v2/design/types.d.ts +2 -0
- package/dist/v2/host/HostContext.d.ts +15 -0
- package/dist/v2/index.d.ts +5 -0
- package/dist/v2/migrate/v1.d.ts +43 -0
- package/dist/v2/render/dynamicBlocks.d.ts +53 -0
- package/dist/v2/render/elementProps.d.ts +2 -1
- package/dist/v2/render/elements.d.ts +4 -0
- package/dist/v2/sections/catalog/blogArticle.d.ts +2 -0
- package/dist/v2/sections/catalog/blogList.d.ts +2 -0
- package/dist/v2/sections/catalog/cartCheckout.d.ts +2 -0
- package/dist/v2/sections/catalog/dynamicKit.d.ts +10 -0
- package/dist/v2/sections/catalog/funnelSignup.d.ts +2 -0
- package/dist/v2/sections/catalog/orderConfirmation.d.ts +2 -0
- package/dist/v2/sections/catalog/orderTracking.d.ts +2 -0
- package/dist/v2/sections/catalog/productPage.d.ts +2 -0
- package/dist/v2/sections/catalog/shop.d.ts +2 -0
- package/dist/v2/sections/materialize.d.ts +7 -0
- package/dist/v2/sections/types.d.ts +6 -2
- package/dist/v2/types/editor.d.ts +1 -1
- package/dist/v2-compile.js +26 -119
- package/dist/v2-strata.js +1 -1
- package/dist/v2.js +4473 -3593
- package/package.json +1 -1
- package/dist/lint-D-2x-Yeb.js +0 -225
- package/dist/v2/components/sidebar/LibraryPanel.d.ts +0 -3
package/README.md
CHANGED
|
@@ -247,10 +247,10 @@ The editor fills its container (give the parent a height), and it is client-only
|
|
|
247
247
|
| | Where it lives | Examples |
|
|
248
248
|
|---|---|---|
|
|
249
249
|
| **SDK default** — works with no configuration | inside the editor | the whole editing UI, undo (one step per gesture), snapping, desktop/tablet/mobile frames, keyboard shortcuts (scoped to the editor, never the host page), the colour picker, Fit-to-screen, the nine elements, image upload that embeds small images, a blank starting page |
|
|
250
|
-
| **Host prop** — needs the host's server, accounts or secrets | `<V2Editor … />` props | saving (`onSave`, `onPublish`, `autoSave`), files (`onUpload`, `media`, `stockImages`), AI (`onAskSol`), brand colours (`colors`), ready-made sections (`sections`), link targets (`linkTargets`), where forms send (`formAction`, `apiKey`, `templateId`), permissions (`readOnly`, `commentMode`), header slots, turning panels off (`features`) |
|
|
250
|
+
| **Host prop** — needs the host's server, accounts or secrets | `<V2Editor … />` props | saving (`onSave`, `onPublish`, `autoSave`), files (`onUpload`, `onUploadFont`, `media`, `stockImages`), AI (`onAskSol`), brand colours (`colors`), ready-made sections (`sections`), link targets (`linkTargets`), where forms send (`formAction`, `apiKey`, `templateId`), permissions (`readOnly`, `commentMode`), header slots, turning panels off (`features`) |
|
|
251
251
|
| **Separate entry** — no React, runs on a server | `@charisol/plexo-sdk/v2/compile` | `compilePageToHtml`, `compilePageToReact`, `parsePages`, `convertLegacyDesign`, frame sizes, `computePlacements` |
|
|
252
252
|
|
|
253
|
-
Nothing is faked when a prop is missing: with no `onAskSol` the SOL button is hidden, with no `onSave` there is no Save button, with no `onUpload` images are embedded in the design (up to 1.5 MB) with a clear message beyond that. No provider key ever lives in the browser — AI and stock-image search go through the host, as in V1.
|
|
253
|
+
Nothing is faked when a prop is missing: with no `onAskSol` the SOL button is hidden, with no `onSave` there is no Save button, with no `onUpload` images are embedded in the design (up to 1.5 MB) with a clear message beyond that; with no `onUploadFont` the font picker offers Google Fonts only (no "Add a font" button). Uploaded fonts are stored in the design system (`designSystem.fonts`) and compiled to `@font-face` rules; if the host stores font files on another origin, pass it to `sanitizeV2Html(html, { fontOrigins: [...] })`. `compilePageToHtml` also returns `head` (font `<link>` tags) and `fontLinks` for hosts that place `html` + `css` in their own page. No provider key ever lives in the browser — AI and stock-image search go through the host, as in V1.
|
|
254
254
|
|
|
255
255
|
### Where a form sends messages
|
|
256
256
|
|