storyloco 1.4.6 → 1.5.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/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, plot dimensions, and rooms
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyloco",
3
- "version": "1.4.6",
3
+ "version": "1.5.0",
4
4
  "description": "A collection of slick Storyblok field plugins built with Svelte 5, TypeScript, and Tailwind CSS",
5
5
  "keywords": [
6
6
  "storyblok",
@@ -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
- plot_dimensions: Array<{
15
+ dimensions: Array<{
16
16
  id: UUID
17
- plot_number: number
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 PlotDimension = Floor['plot_dimensions'][number]
32
- export type Room = PlotDimension['rooms'][number]
31
+ export type Dimension = Floor['dimensions'][number]
32
+ export type Room = Dimension['rooms'][number]