@charisol/plexo-sdk 2.0.29 → 2.0.30

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 CHANGED
@@ -263,6 +263,29 @@ The editor's own colours (not your visitors' page) follow three props. Pass any
263
263
  <V2Editor theme={{ accent: '#96F02E', background: '#000000', text: '#ffffff' }} />
264
264
  ```
265
265
 
266
+ ### A simpler screen for beginners — `experience`
267
+
268
+ ```tsx
269
+ <V2Editor experience="beginner" pages={pages} onChange={setPages} onSave={save} onPublish={publish} />
270
+ ```
271
+
272
+ `experience` is `'beginner'` or `'pro'` (the default). `'beginner'` is not a trimmed toolbar, it is a different, much simpler screen
273
+ meant for someone who has never used a design tool:
274
+
275
+ - **Your page is a list.** The left side shows the page as its sections, top to bottom. Click one, then Up / Down / Copy / Delete, or
276
+ "Add a section" to pick a ready-made one. No layers, no pixels, no free dragging.
277
+ - **Plain words on the right.** Click a section and you get boxes to type in, a layout picker and a few looks. Click a heading, text, button
278
+ or picture and you get only what applies: type new words, bigger/smaller, left/middle/right, colour, where a button goes, replace a picture.
279
+ - **Guidance built in.** A five-step first-time guide (comes back with the Help button), and a one-line tip that follows what is selected.
280
+ - **A filled-in start.** With no `pages`, it opens to a short finished page (menu, main message, highlights, footer) instead of an empty canvas.
281
+ `starterPages()` is exported if you want the same page yourself.
282
+ - Everything else is the same editor: `onSave`, `onPublish`, `pageSource`, `onAskSol`, `pageSettings`, `shell`, `headerLeft`/`headerRight`,
283
+ `theme`, `mode="email"` all work, and the saved pages are identical, so an owner can switch between `'beginner'` and `'pro'` at any time.
284
+
285
+ Anything you put in `headerRight` is shown exactly as you styled it. If you would like plain links and buttons there to match the editor's own buttons, opt in with `headerSlotStyle="editor"` (add `data-primary` to one for the highlighted look), or put the `plexo-header-button` class on a single button.
286
+
287
+ Plexo's own dashboard passes the owner's chosen experience level, so beginners get this screen and pros get the full editor.
288
+
266
289
  ### Emails
267
290
 
268
291
  The same editor designs emails: `<V2Editor mode="email" />`. In email mode only what every email app can draw is offered: text, buttons, pictures, dividers, spacing and rows of columns (which stack on a phone), in ready-made email sections (header, main message, text, highlights, call to action, picture, footer). There is no free placement, grid, shadow, animation or script, and Preview shows the email as it will arrive. Write the finished email with the compiler (tables with inline styles, plus a plain-text version):