storyloco 1.4.6 → 1.5.1
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 +1 -1
- package/package.json +1 -1
- package/packages/plans/types.ts +5 -5
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ A collection of slick Storyblok field plugins built with Svelte 5, TypeScript, a
|
|
|
10
10
|
- **📝 Heading** - Simple heading editor with level selection (H1-H6)
|
|
11
11
|
- **🎨 Theme** - Color theme selector with visual previews
|
|
12
12
|
- **🔗 Link** - Link editor with support for internal, external, email, and asset links
|
|
13
|
-
- **🏗️ Plans** - Floor plan manager with drag-and-drop sorting for types, floors,
|
|
13
|
+
- **🏗️ Plans** - Floor plan manager with drag-and-drop sorting for types, floors, dimensions, and rooms
|
|
14
14
|
|
|
15
15
|
### Vite Plugins
|
|
16
16
|
|
package/package.json
CHANGED
package/packages/plans/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Asset } from '@storyblok/field-plugin'
|
|
1
|
+
import type { Asset } from '@storyblok/field-plugin'
|
|
2
2
|
|
|
3
3
|
export type UUID = ReturnType<typeof crypto.randomUUID>
|
|
4
4
|
|
|
@@ -12,9 +12,9 @@ export type Types = {
|
|
|
12
12
|
id: UUID
|
|
13
13
|
name: string
|
|
14
14
|
plan?: Asset
|
|
15
|
-
|
|
15
|
+
dimensions: Array<{
|
|
16
16
|
id: UUID
|
|
17
|
-
|
|
17
|
+
name: string
|
|
18
18
|
rooms: Array<{
|
|
19
19
|
id: UUID
|
|
20
20
|
name: string
|
|
@@ -28,5 +28,5 @@ export type Types = {
|
|
|
28
28
|
|
|
29
29
|
export type Type = Types['types'][number]
|
|
30
30
|
export type Floor = Type['floors'][number]
|
|
31
|
-
export type
|
|
32
|
-
export type Room =
|
|
31
|
+
export type Dimension = Floor['dimensions'][number]
|
|
32
|
+
export type Room = Dimension['rooms'][number]
|