grapes-vue-lite 0.1.21 → 0.1.22
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 +4 -2
- package/dist-lib/grapes-vue-lite.js +2852 -2806
- package/dist-lib/grapes-vue-lite.umd.cjs +15 -15
- package/dist-lib/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -268,13 +268,15 @@ The built-in component library panel currently supports:
|
|
|
268
268
|
|
|
269
269
|
- choosing local `.json` component files
|
|
270
270
|
- browsing static or paged host-provided sources
|
|
271
|
-
- search, category filtering, and
|
|
271
|
+
- per-source search, category filtering, and previous/next pagination
|
|
272
272
|
- importing an item once and preventing duplicate imports in the browser view
|
|
273
273
|
- inserting already imported items directly from the library browser
|
|
274
274
|
- removing imported items from the local project library
|
|
275
275
|
|
|
276
276
|
If a remote source request fails, the browser view exposes a retry action instead of silently failing. When no sources are configured, the panel renders an explicit empty state.
|
|
277
277
|
|
|
278
|
+
The built-in image library dialog follows the same paged-browser model for remote `assets.sources`: static sources render as immediate thumbnail grids, while paged sources render a fixed previous/next footer and switch pages instead of appending more thumbnails into the current view.
|
|
279
|
+
|
|
278
280
|
The package treats `vue` as a peer dependency, so the host application owns the Vue runtime version.
|
|
279
281
|
|
|
280
282
|
Hosts that own application theme state can control the editor theme with the dedicated `theme` prop. The prop accepts the same `ThemeInput` shape as `options.theme`, and updates are applied to the active editor instance without remounting:
|
|
@@ -582,7 +584,7 @@ const options: EditorOptions = {
|
|
|
582
584
|
- `I18n`: English and Simplified Chinese UI messages with English as the default locale.
|
|
583
585
|
- `Theme`: light/dark editor UI themes and host-provided design tokens.
|
|
584
586
|
- `Assets`: image asset registry and image assignment.
|
|
585
|
-
- `EditorOptions.assets.sources`: host-provided third-party image lists that appear in the left asset panel as selectable thumbnails.
|
|
587
|
+
- `EditorOptions.assets.sources`: host-provided third-party image lists that appear in the left asset panel as selectable thumbnails. Paged sources open in the built-in image library dialog with fixed previous/next pagination.
|
|
586
588
|
- `EditorOptions.assets.allowManual`: keep or hide the manual URL entry form when the host wants only curated assets.
|
|
587
589
|
- `Storage`: local and custom storage adapters.
|
|
588
590
|
- `Commands`: command registry and shortcuts.
|