storyloco 1.8.1 → 1.9.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/package.json CHANGED
@@ -1,96 +1,97 @@
1
1
  {
2
- "name": "storyloco",
3
- "version": "1.8.1",
4
- "description": "A collection of slick Storyblok field plugins built with Svelte 5, TypeScript, and Tailwind CSS",
5
- "keywords": [
6
- "storyblok",
7
- "field-plugin",
8
- "svelte",
9
- "typescript",
10
- "tailwind",
11
- "cms",
12
- "headless"
13
- ],
14
- "license": "MIT",
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/darbymanning/storyloco.git"
18
- },
19
- "main": "./src/index.ts",
20
- "types": "./src/index.ts",
21
- "files": [
22
- "src",
23
- "packages/mux/types.ts",
24
- "packages/heading/types.ts",
25
- "packages/plans/types.ts",
26
- "packages/link/types.ts",
27
- "packages/theme/types.ts",
28
- "packages/shared/dist",
29
- "packages/vite/dist",
30
- "packages/ticketsource/types.ts"
31
- ],
32
- "exports": {
33
- ".": {
34
- "types": "./src/index.ts",
35
- "import": "./src/index.ts"
36
- },
37
- "./mux": {
38
- "types": "./packages/mux/types.ts"
39
- },
40
- "./heading": {
41
- "types": "./packages/heading/types.ts"
42
- },
43
- "./plans": {
44
- "types": "./packages/plans/types.ts"
45
- },
46
- "./ticketsource": {
47
- "types": "./packages/ticketsource/types.ts"
48
- },
49
- "./shared": {
50
- "types": "./packages/shared/dist/index.d.ts",
51
- "svelte": "./packages/shared/dist/index.js"
52
- },
53
- "./link": {
54
- "types": "./packages/link/types.ts"
55
- },
56
- "./shared/utils": {
57
- "types": "./packages/shared/dist/utils.d.ts",
58
- "svelte": "./packages/shared/dist/utils.js"
59
- },
60
- "./vite": {
61
- "types": "./packages/vite/dist/index.d.ts",
62
- "import": "./packages/vite/dist/index.js"
63
- }
64
- },
65
- "devDependencies": {
66
- "@types/node": "24.0.4",
67
- "@typescript-eslint/eslint-plugin": "8.35.0",
68
- "@typescript-eslint/parser": "8.35.0",
69
- "eslint": "9.29.0",
70
- "eslint-plugin-prettier": "5.5.1",
71
- "kitto": "1.0.0-rc.12",
72
- "prettier": "3.6.1",
73
- "typescript": "5.8.3",
74
- "vite": "7.0.0"
75
- },
76
- "peerDependencies": {
77
- "@storyblok/svelte": "^5.0.0",
78
- "@storyblok/field-plugin": "^1.6.0",
79
- "svelte": "^5.0.0"
80
- },
81
- "scripts": {
82
- "add-plugin": "npx @storyblok/field-plugin-cli@latest add --dir \"./packages\" --structure monorepo",
83
- "build": "cd packages/vite && npm run build && cd ../../packages/shared && npm run build",
84
- "lint": "eslint --ext .js .",
85
- "format": "prettier . --write"
86
- },
87
- "type": "module",
88
- "workspaces": [
89
- "packages/*"
90
- ],
91
- "dependencies": {
92
- "chalk": "5.4.1",
93
- "ora": "8.2.0",
94
- "storyblok-generate-ts": "^2.2.0"
95
- }
2
+ "name": "storyloco",
3
+ "version": "1.9.0",
4
+ "description": "A collection of slick Storyblok field plugins built with Svelte 5, TypeScript, and Tailwind CSS",
5
+ "keywords": [
6
+ "storyblok",
7
+ "field-plugin",
8
+ "svelte",
9
+ "typescript",
10
+ "tailwind",
11
+ "cms",
12
+ "headless"
13
+ ],
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/darbymanning/storyloco.git"
18
+ },
19
+ "main": "./src/index.ts",
20
+ "types": "./src/index.ts",
21
+ "files": [
22
+ "src",
23
+ "packages/mux/types.ts",
24
+ "packages/heading/types.ts",
25
+ "packages/plans/types.ts",
26
+ "packages/link/types.ts",
27
+ "packages/theme/types.ts",
28
+ "packages/shared/dist",
29
+ "packages/vite/dist",
30
+ "packages/ticketsource/types.ts"
31
+ ],
32
+ "exports": {
33
+ ".": {
34
+ "types": "./src/index.ts",
35
+ "import": "./src/index.ts"
36
+ },
37
+ "./mux": {
38
+ "types": "./packages/mux/types.ts"
39
+ },
40
+ "./heading": {
41
+ "types": "./packages/heading/types.ts"
42
+ },
43
+ "./plans": {
44
+ "types": "./packages/plans/types.ts"
45
+ },
46
+ "./ticketsource": {
47
+ "types": "./packages/ticketsource/types.ts",
48
+ "svelte": "./packages/ticketsource/src/app.svelte.ts"
49
+ },
50
+ "./shared": {
51
+ "types": "./packages/shared/dist/index.d.ts",
52
+ "svelte": "./packages/shared/dist/index.js"
53
+ },
54
+ "./link": {
55
+ "types": "./packages/link/types.ts"
56
+ },
57
+ "./shared/utils": {
58
+ "types": "./packages/shared/dist/utils.d.ts",
59
+ "svelte": "./packages/shared/dist/utils.js"
60
+ },
61
+ "./vite": {
62
+ "types": "./packages/vite/dist/index.d.ts",
63
+ "import": "./packages/vite/dist/index.js"
64
+ }
65
+ },
66
+ "devDependencies": {
67
+ "@types/node": "24.0.4",
68
+ "@typescript-eslint/eslint-plugin": "8.35.0",
69
+ "@typescript-eslint/parser": "8.35.0",
70
+ "eslint": "9.29.0",
71
+ "eslint-plugin-prettier": "5.5.1",
72
+ "kitto": "1.0.0-rc.12",
73
+ "prettier": "3.6.1",
74
+ "typescript": "5.8.3",
75
+ "vite": "7.0.0"
76
+ },
77
+ "peerDependencies": {
78
+ "@storyblok/svelte": "^5.2.4",
79
+ "@storyblok/field-plugin": "^1.6.0",
80
+ "svelte": "^5.0.0"
81
+ },
82
+ "scripts": {
83
+ "add-plugin": "npx @storyblok/field-plugin-cli@latest add --dir \"./packages\" --structure monorepo",
84
+ "build": "cd packages/vite && npm run build && cd ../../packages/shared && npm run build",
85
+ "lint": "eslint --ext .js .",
86
+ "format": "prettier . --write"
87
+ },
88
+ "type": "module",
89
+ "workspaces": [
90
+ "packages/*"
91
+ ],
92
+ "dependencies": {
93
+ "chalk": "5.4.1",
94
+ "ora": "8.2.0",
95
+ "storyblok-generate-ts": "^2.2.0"
96
+ }
96
97
  }
@@ -1,127 +1,8 @@
1
- type DateWithPrice = EventDatesResponse['data'][number] & {
2
- price: string
3
- }
4
-
5
1
  export interface Ticketsource {
6
2
  event: string
7
- dates?: Array<{
3
+ dates: Array<{
8
4
  id: string
9
5
  start: string
10
6
  price: string
11
7
  }>
12
8
  }
13
-
14
- export interface PaginatedResponse<T> {
15
- data: T
16
- links: {
17
- first: string
18
- last: string | null
19
- prev: string | null
20
- next: string | null
21
- }
22
- meta: {
23
- current_page: number
24
- from: number
25
- path: string
26
- per_page: number
27
- to: number
28
- }
29
- }
30
-
31
- export type ListEventsResponse = PaginatedResponse<
32
- Array<{
33
- id: string
34
- type: string
35
- attributes: {
36
- name: string
37
- reference: string
38
- description: string
39
- comment: string
40
- keywords: string
41
- terms: string
42
- category: string
43
- genre: string
44
- images: Array<{
45
- type: string
46
- src: string
47
- }>
48
- third_party_consent: {
49
- capture: boolean
50
- name: string
51
- show_consent: {
52
- email: boolean
53
- post: boolean
54
- sms: boolean
55
- }
56
- }
57
- activated: boolean
58
- archived: boolean
59
- public: boolean
60
- settled: boolean
61
- created_at: string
62
- updated_at: string
63
- }
64
- links: {
65
- self: string
66
- venues: string
67
- dates: string
68
- }
69
- venues?: EventVenuesResponse['data']
70
- dates?: EventDatesResponse['data']
71
- count?: number
72
- }>
73
- >
74
-
75
- export type EventVenuesResponse = PaginatedResponse<
76
- Array<{
77
- id: string
78
- type: string
79
- attributes: {
80
- name: string
81
- address: {
82
- line_1: string
83
- line_2: string
84
- line_3: string
85
- line_4: string
86
- postcode: string
87
- }
88
- boxoffice: {
89
- telephone: string
90
- email: string
91
- }
92
- created_at: string
93
- updated_at: any
94
- }
95
- links: {
96
- self: string
97
- dates: string
98
- event: string
99
- }
100
- }>
101
- >
102
-
103
- export type EventDatesResponse = PaginatedResponse<
104
- Array<{
105
- id: string
106
- type: string
107
- attributes: {
108
- doors_open: any
109
- start: string
110
- end: string
111
- on_sale: boolean
112
- on_sale_start: string
113
- on_sale_end: string
114
- public: boolean
115
- cancelled: boolean
116
- created_at: string
117
- updated_at: string
118
- }
119
- links: {
120
- self: string
121
- book_now: string
122
- bookings: string
123
- event: string
124
- venue: string
125
- }
126
- }>
127
- >
@@ -0,0 +1,6 @@
1
+ declare namespace _default {
2
+ let additionalProperties: boolean;
3
+ let format: boolean;
4
+ let unknownAny: boolean;
5
+ }
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export default {
2
+ additionalProperties: false,
3
+ format: false,
4
+ unknownAny: true,
5
+ }