@lightspeed/crane-api 1.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 ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 - 2025-12-02
4
+
5
+ ### Added
6
+
7
+ - Add `selectionType` option to Category and Product composable functions, providing enhanced control over product selection logic and enabling more flexible user interactions.
8
+ - Add type definitions for 'content' and 'design' editors.
9
+ - Add minimal runtime API for custom sections and templates.
10
+ - Add initial extraction from '@lightspeed/crane' package.
11
+ - Introduce support for static text labels.
12
+ - Add support for Vue 3 composable functions for 'content' and 'design' elements.
13
+
14
+ ### Changed
15
+
16
+ - Move Crane app to a new package named crane-api.
17
+
18
+ ### Fixed
19
+
20
+ - Improved reactivity for `externalContent.storeData` by wrapping it with computed, ensuring more responsive updates when data changes.
21
+ - Update 'hasContent' logic in `useInputboxElementContent` to check for non-empty input.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @lightspeed/crane-api
2
+
3
+ Lightweight API package for building custom sections and templates with `@lightspeed/crane`.
4
+
5
+ This package provides only the runtime APIs and types needed for custom sections and templates, without CLI or build tools.
6
+
7
+ ## Usage
8
+
9
+ ```typescript
10
+ import { createVueServerApp, useButtonElementContent } from '@lightspeed/crane-api';
11
+ ```
12
+
13
+ ## Requirements
14
+
15
+ - Node.js >= 20
16
+ - Vue 3
17
+