@mframework/ui 0.0.6-beta5 → 0.1.0-beta.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.
Files changed (150) hide show
  1. package/package.json +31 -21
  2. package/module.ts +0 -138
  3. package/runtime/assets/config/tailwind.conifg.js +0 -11
  4. package/runtime/assets/css/tailwind.css +0 -11
  5. package/runtime/design/tokens.ts +0 -22
  6. package/runtime/plugins/icon-switcher.ts +0 -32
  7. package/runtime/plugins/theme.ts +0 -29
  8. package/runtime/plugins/vuetify.js +0 -12
  9. package/runtime/plugins/vuetify.ts +0 -64
  10. package/runtime/search/client.ts +0 -25
  11. package/runtime/search/components/MSearch.vue +0 -19
  12. package/runtime/search/plugin.ts +0 -9
  13. package/tsconfig.json +0 -16
  14. package/type.d.ts +0 -5
  15. package/types/ui/api/global-search.js +0 -1
  16. package/types/ui/api/global-search.ts +0 -8
  17. package/types/ui/blocks/block-button-group.js +0 -1
  18. package/types/ui/blocks/block-button-group.ts +0 -7
  19. package/types/ui/blocks/block-button.js +0 -1
  20. package/types/ui/blocks/block-button.ts +0 -14
  21. package/types/ui/blocks/block-column.js +0 -1
  22. package/types/ui/blocks/block-column.ts +0 -20
  23. package/types/ui/blocks/block-cta.js +0 -1
  24. package/types/ui/blocks/block-cta.ts +0 -10
  25. package/types/ui/blocks/block-divider.js +0 -1
  26. package/types/ui/blocks/block-divider.ts +0 -4
  27. package/types/ui/blocks/block-faq.js +0 -1
  28. package/types/ui/blocks/block-faq.ts +0 -12
  29. package/types/ui/blocks/block-form.js +0 -1
  30. package/types/ui/blocks/block-form.ts +0 -8
  31. package/types/ui/blocks/block-gallery.js +0 -1
  32. package/types/ui/blocks/block-gallery.ts +0 -14
  33. package/types/ui/blocks/block-hero.js +0 -1
  34. package/types/ui/blocks/block-hero.ts +0 -12
  35. package/types/ui/blocks/block-html.js +0 -1
  36. package/types/ui/blocks/block-html.ts +0 -4
  37. package/types/ui/blocks/block-logocloud.js +0 -1
  38. package/types/ui/blocks/block-logocloud.ts +0 -14
  39. package/types/ui/blocks/block-quote.js +0 -1
  40. package/types/ui/blocks/block-quote.ts +0 -11
  41. package/types/ui/blocks/block-richtext.js +0 -1
  42. package/types/ui/blocks/block-richtext.ts +0 -7
  43. package/types/ui/blocks/block-steps.js +0 -1
  44. package/types/ui/blocks/block-steps.ts +0 -22
  45. package/types/ui/blocks/block-team.js +0 -1
  46. package/types/ui/blocks/block-team.ts +0 -6
  47. package/types/ui/blocks/block-testimonial.js +0 -1
  48. package/types/ui/blocks/block-testimonial.ts +0 -14
  49. package/types/ui/blocks/block-video.js +0 -1
  50. package/types/ui/blocks/block-video.ts +0 -10
  51. package/types/ui/blocks/block.js +0 -1
  52. package/types/ui/blocks/block.ts +0 -49
  53. package/types/ui/blocks/index.js +0 -1
  54. package/types/ui/blocks/index.ts +0 -18
  55. package/types/ui/component.js +0 -1
  56. package/types/ui/component.ts +0 -7
  57. package/types/ui/content/category.js +0 -1
  58. package/types/ui/content/category.ts +0 -11
  59. package/types/ui/content/form.js +0 -1
  60. package/types/ui/content/form.ts +0 -20
  61. package/types/ui/content/index.js +0 -1
  62. package/types/ui/content/index.ts +0 -6
  63. package/types/ui/content/page.js +0 -1
  64. package/types/ui/content/page.ts +0 -76
  65. package/types/ui/content/post.js +0 -1
  66. package/types/ui/content/post.ts +0 -39
  67. package/types/ui/content/team.js +0 -1
  68. package/types/ui/content/team.ts +0 -16
  69. package/types/ui/content/testimonial.js +0 -1
  70. package/types/ui/content/testimonial.ts +0 -19
  71. package/types/ui/env.d.ts +0 -8
  72. package/types/ui/form.js +0 -1
  73. package/types/ui/form.ts +0 -17
  74. package/types/ui/help/index.js +0 -1
  75. package/types/ui/help/index.ts +0 -53
  76. package/types/ui/meta/analytics.js +0 -1
  77. package/types/ui/meta/analytics.ts +0 -18
  78. package/types/ui/meta/config.js +0 -1
  79. package/types/ui/meta/config.ts +0 -21
  80. package/types/ui/meta/globals.js +0 -1
  81. package/types/ui/meta/globals.ts +0 -30
  82. package/types/ui/meta/index.js +0 -1
  83. package/types/ui/meta/index.ts +0 -6
  84. package/types/ui/meta/navigation.js +0 -1
  85. package/types/ui/meta/navigation.ts +0 -32
  86. package/types/ui/meta/redirect.js +0 -1
  87. package/types/ui/meta/redirect.ts +0 -13
  88. package/types/ui/meta/seo.js +0 -1
  89. package/types/ui/meta/seo.ts +0 -19
  90. package/types/ui/os/contact.js +0 -1
  91. package/types/ui/os/contact.ts +0 -23
  92. package/types/ui/os/conversation.js +0 -1
  93. package/types/ui/os/conversation.ts +0 -25
  94. package/types/ui/os/index.js +0 -1
  95. package/types/ui/os/index.ts +0 -16
  96. package/types/ui/os/organization.js +0 -1
  97. package/types/ui/os/organization.ts +0 -54
  98. package/types/ui/os/os-activity.js +0 -1
  99. package/types/ui/os/os-activity.ts +0 -28
  100. package/types/ui/os/os-deal.js +0 -1
  101. package/types/ui/os/os-deal.ts +0 -45
  102. package/types/ui/os/os-expense.js +0 -1
  103. package/types/ui/os/os-expense.ts +0 -22
  104. package/types/ui/os/os-invoice.js +0 -1
  105. package/types/ui/os/os-invoice.ts +0 -48
  106. package/types/ui/os/os-item.js +0 -1
  107. package/types/ui/os/os-item.ts +0 -18
  108. package/types/ui/os/os-payment.js +0 -1
  109. package/types/ui/os/os-payment.ts +0 -29
  110. package/types/ui/os/os-project.js +0 -1
  111. package/types/ui/os/os-project.ts +0 -47
  112. package/types/ui/os/os-proposal.js +0 -1
  113. package/types/ui/os/os-proposal.ts +0 -84
  114. package/types/ui/os/os-settings.js +0 -1
  115. package/types/ui/os/os-settings.ts +0 -19
  116. package/types/ui/os/os-subscription.js +0 -1
  117. package/types/ui/os/os-subscription.ts +0 -12
  118. package/types/ui/os/os-task.js +0 -1
  119. package/types/ui/os/os-task.ts +0 -34
  120. package/types/ui/os/os-tax-rate.js +0 -1
  121. package/types/ui/os/os-tax-rate.ts +0 -13
  122. package/types/ui/pageComponentMap.js +0 -7
  123. package/types/ui/pageComponentMap.ts +0 -8
  124. package/types/ui/pagination.js +0 -1
  125. package/types/ui/pagination.ts +0 -6
  126. package/types/ui/schema.d.ts +0 -39
  127. package/types/ui/schema.js +0 -1
  128. package/types/ui/schema.ts +0 -151
  129. package/types/ui/state.js +0 -1
  130. package/types/ui/state.ts +0 -5
  131. package/types/ui/system/file.js +0 -1
  132. package/types/ui/system/file.ts +0 -46
  133. package/types/ui/system/folder.js +0 -1
  134. package/types/ui/system/folder.ts +0 -8
  135. package/types/ui/system/index.js +0 -1
  136. package/types/ui/system/index.ts +0 -4
  137. package/types/ui/system/role.js +0 -1
  138. package/types/ui/system/role.ts +0 -21
  139. package/types/ui/system/user.js +0 -1
  140. package/types/ui/system/user.ts +0 -56
  141. package/types/ui.js +0 -1
  142. package/types/ui.ts +0 -23
  143. package/utils/color.js +0 -11
  144. package/utils/color.ts +0 -14
  145. package/utils/fonts.js +0 -18
  146. package/utils/fonts.ts +0 -24
  147. package/utils/formkit.js +0 -59
  148. package/utils/formkit.ts +0 -75
  149. package/utils/icons.js +0 -36
  150. package/utils/icons.ts +0 -62
package/package.json CHANGED
@@ -1,24 +1,29 @@
1
1
  {
2
2
  "name": "@mframework/ui",
3
- "version": "0.0.6-beta5",
4
- "description": "Official opinionated UI module for the M Framework.",
3
+ "version": "0.1.0-beta.0",
4
+ "type": "module",
5
+ "description": "Opiniated UI module for the M Framework.",
6
+ "main": "dist/module.cjs",
7
+ "module": "dist/module.mjs",
8
+ "types": "dist/module.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
5
12
  "keywords": [
13
+ "vue",
14
+ "nuxt",
6
15
  "ui",
7
- "vuetify",
8
- "fontawesome",
9
- "m-framework",
16
+ "components",
17
+ "mframework",
10
18
  "meeovi"
11
19
  ],
12
- "license": "MIT",
13
- "author": "M Framework",
14
- "type": "module",
15
- "main": "module.ts",
16
- "exports": {
17
- "./module": "./module.ts"
18
- },
19
- "types": "./types.d.ts",
20
20
  "scripts": {
21
- "build": "tsc -p tsconfig.json"
21
+ "build": "nuxt-module-build",
22
+ "dev": "nuxt-module-dev"
23
+ },
24
+ "peerDependencies": {
25
+ "nuxt": "^3.13.0",
26
+ "vue": "^3.5.0"
22
27
  },
23
28
  "dependencies": {
24
29
  "@formkit/nuxt": "^1.7.2",
@@ -26,17 +31,22 @@
26
31
  "@fortawesome/fontawesome-svg-core": "^7.1.0",
27
32
  "@fortawesome/free-solid-svg-icons": "^7.1.0",
28
33
  "@fortawesome/vue-fontawesome": "^3.1.2",
34
+ "@grapesjs/studio-sdk": "^1.0.57",
29
35
  "@mdi/font": "^7.4.47",
30
- "@nuxt/fonts": "^0.13.0",
31
- "@nuxt/kit": "^4.3.1",
36
+ "@nuxt/image": "^2.0.0",
32
37
  "@vueuse/motion": "^3.0.3",
38
+ "izitoast": "^1.4.0",
39
+ "lg-thumbnail": "^1.2.1",
40
+ "lg-video": "^1.4.0",
41
+ "lg-zoom": "^1.3.0",
42
+ "lightgallery": "^2.9.0",
33
43
  "tailwindcss": "^4.1.18",
34
- "vue": "^3.5.28",
35
- "vuetify": "^3.11.8",
36
- "vuetify-nuxt-module": "^0.19.5"
44
+ "vuetify": "^3.7.0",
45
+ "vuetify-nuxt-module": "^0.18.8"
37
46
  },
38
47
  "devDependencies": {
39
48
  "sass": "^1.94.2",
40
- "sass-embedded": "^1.93.3"
49
+ "sass-embedded": "^1.93.3",
50
+ "typescript": "^5.7.0"
41
51
  }
42
- }
52
+ }
package/module.ts DELETED
@@ -1,138 +0,0 @@
1
- // @mframework/ui/module.ts
2
- import {
3
- defineNuxtModule,
4
- addPlugin,
5
- addComponentsDir,
6
- createResolver,
7
- installModule,
8
- resolveModule
9
- } from '@nuxt/kit'
10
-
11
- export interface MFrameworkUiOptions {
12
- image ? : Record < string, any >
13
- fonts ? : Record < string, any >
14
- vuetify ? : {
15
- vuetifyOptions ? : Record < string,
16
- any >
17
- }
18
- tailwind ? : {
19
- enable ? : boolean
20
- }
21
- }
22
-
23
- export default defineNuxtModule < MFrameworkUiOptions > ({
24
- meta: {
25
- name: '@mframework/ui',
26
- configKey: 'mframeworkUi'
27
- },
28
- defaults: {
29
- image: {},
30
- fonts: {},
31
- vuetify: {
32
- vuetifyOptions: {
33
- icons: {
34
- defaultSet: 'mdi'
35
- }
36
- }
37
- },
38
- tailwind: {
39
- enable: true
40
- }
41
- },
42
- async setup(options, nuxt) {
43
- const {
44
- resolve
45
- } = createResolver(import.meta.url)
46
-
47
- //
48
- // 1. Expose options to runtime
49
- //
50
- nuxt.options.runtimeConfig.public.mframeworkUi = options
51
-
52
- //
53
- // 3. Install @nuxt/fonts
54
- //
55
- await installModule('@nuxt/fonts', options.fonts || {})
56
-
57
- //
58
- // 4. Install Vuetify via vuetify-nuxt-module (optional).
59
- // First check whether the consuming project actually has `vuetify`
60
- // installed to avoid Nuxt failing during module resolution.
61
- //
62
- let vuetifyInstalled = false
63
- try {
64
- // Use Node resolution from this project's root to detect installed package
65
- // without triggering Nuxt's module loader.
66
- // eslint-disable-next-line @typescript-eslint/no-var-requires
67
- const {
68
- createRequire
69
- } = await import('module')
70
- const req = createRequire(import.meta.url)
71
- try {
72
- req.resolve('vuetify')
73
- // Vuetify is present in the project's node_modules. We won't call
74
- // `installModule` here to avoid forcing Nuxt to load the module
75
- // during `nuxt prepare` (which can fail in some install environments).
76
- vuetifyInstalled = true
77
- } catch (e) {
78
- // Vuetify not found — skip installing the module
79
- // eslint-disable-next-line no-console
80
- console.warn('@mframework/ui: Vuetify not found in project dependencies; skipping Vuetify integration.')
81
- }
82
- } catch (err) {
83
- // If resolution itself fails for any reason, avoid breaking the setup.
84
- // eslint-disable-next-line no-console
85
- console.warn('@mframework/ui: Failed to detect Vuetify availability; skipping Vuetify integration.')
86
- vuetifyInstalled = false
87
- }
88
-
89
- //
90
- // 5. Tailwind + Vuetify coexistence
91
- //
92
- if (options.tailwind?.enable !== false) {
93
- nuxt.options.css = nuxt.options.css || []
94
- nuxt.options.css.push(resolve('./runtime/assets/css/tailwind.css'))
95
-
96
- nuxt.options.postcss = nuxt.options.postcss || {
97
- plugins: {},
98
- order: []
99
- }
100
- nuxt.options.postcss.plugins = nuxt.options.postcss.plugins || {}
101
- // Use the new PostCSS adapter package name so Nuxt doesn't try to
102
- // use the old `tailwindcss` package as a PostCSS plugin.
103
- nuxt.options.postcss.plugins['@tailwindcss/postcss'] = {}
104
- nuxt.options.postcss.plugins['autoprefixer'] = {}
105
-
106
- nuxt.options.tailwindcss = {
107
- configPath: resolve('./runtime/assets/config/tailwind.config.cjs')
108
- }
109
- }
110
-
111
- //
112
- // 6. Register plugins (icons, theme, icon switching, search).
113
- // Only register plugins that require Vuetify when Vuetify is available.
114
- //
115
- // Install Vuetify first
116
- await installModule(resolveModule('vuetify-nuxt-module'), {
117
- vuetifyOptions: options.vuetify?.vuetifyOptions || {}
118
- })
119
-
120
- // THEN load plugins that depend on Vuetify
121
- addPlugin(resolve('./runtime/plugins/theme'))
122
- addPlugin(resolve('./runtime/plugins/icon-switcher'))
123
-
124
- //
125
- // 7. Auto-import components from this module
126
- //
127
- addComponentsDir({
128
- path: resolve('./runtime/components'),
129
- pathPrefix: false,
130
- prefix: 'M'
131
- })
132
-
133
- addComponentsDir({
134
- path: resolve('./runtime/search/components'),
135
- prefix: 'M'
136
- })
137
- }
138
- })
@@ -1,11 +0,0 @@
1
- const { tokens } = require('../../design/tokens')
2
-
3
- module.exports = {
4
- theme: {
5
- extend: {
6
- colors: tokens.colors,
7
- borderRadius: tokens.radius,
8
- spacing: tokens.spacing
9
- }
10
- }
11
- }
@@ -1,11 +0,0 @@
1
- /* @mframework/ui/runtime/assets/css/tailwind.css */
2
-
3
- /* Tailwind base (if using Tailwind 3 style) */
4
- @tailwind base;
5
- @tailwind components;
6
- @tailwind utilities;
7
-
8
- /* Vuetify + Tailwind coexistence tips:
9
- - Avoid global resets that fight Vuetify
10
- - Prefer utility classes for layout, spacing, etc.
11
- */
@@ -1,22 +0,0 @@
1
- export const tokens = {
2
- colors: {
3
- primary: '#4f46e5',
4
- secondary: '#64748b',
5
- success: '#22c55e',
6
- warning: '#f59e0b',
7
- error: '#ef4444',
8
- surface: '#ffffff',
9
- background: '#f8fafc'
10
- },
11
- radius: {
12
- sm: '4px',
13
- md: '8px',
14
- lg: '12px'
15
- },
16
- spacing: {
17
- xs: '4px',
18
- sm: '8px',
19
- md: '16px',
20
- lg: '24px'
21
- }
22
- }
@@ -1,32 +0,0 @@
1
- import { defineNuxtPlugin } from '#app'
2
- import { useVuetify } from 'vuetify-nuxt-module/runtime'
3
-
4
- export default defineNuxtPlugin((nuxtApp) => {
5
- const vuetify = useVuetify()
6
-
7
- // If Vuetify isn't ready yet, skip plugin initialization
8
- if (!vuetify || !vuetify.framework) {
9
- console.warn('[mframework-ui] Vuetify not ready for icon-switcher plugin')
10
- return
11
- }
12
-
13
- const stored =
14
- typeof localStorage !== 'undefined'
15
- ? localStorage.getItem('mframework-icon-set')
16
- : null
17
-
18
- const initial = stored || 'mdi'
19
-
20
- vuetify.framework.icons = vuetify.framework.icons || {}
21
- vuetify.framework.icons.defaultSet = initial
22
-
23
- const setIconSet = (name: string) => {
24
- vuetify.framework.icons.defaultSet = name
25
- localStorage.setItem('mframework-icon-set', name)
26
- }
27
-
28
- nuxtApp.provide('mIcons', {
29
- setIconSet,
30
- current: () => vuetify.framework.icons.defaultSet
31
- })
32
- })
@@ -1,29 +0,0 @@
1
- import { useTheme } from 'vuetify'
2
-
3
- export default (nuxtApp: any) => {
4
- const theme = useTheme()
5
- // Attempt to read runtime config from nuxtApp (fallbacks to undefined)
6
- const config: any = (nuxtApp && (nuxtApp as any).$config && (nuxtApp as any).$config.public && (nuxtApp as any).$config.public.mframeworkUi) || {}
7
-
8
- // 1. Load persisted theme
9
- const stored = typeof localStorage !== 'undefined' ? localStorage.getItem('mframework-theme') : null
10
- const initial = stored || config?.theme?.default || 'light'
11
- ;(theme as any).global.name.value = initial
12
-
13
- // 2. Expose a global toggle
14
- const toggleTheme = () => {
15
- const newTheme = (theme as any).global.current.value.dark ? 'light' : 'dark'
16
- ;(theme as any).global.name.value = newTheme
17
- if (typeof localStorage !== 'undefined') localStorage.setItem('mframework-theme', newTheme)
18
- }
19
-
20
- // 3. Expose to app
21
- nuxtApp.provide('mTheme', {
22
- theme,
23
- toggleTheme,
24
- setTheme: (name: string) => {
25
- ;(theme as any).global.name.value = name
26
- if (typeof localStorage !== 'undefined') localStorage.setItem('mframework-theme', name)
27
- }
28
- })
29
- }
@@ -1,12 +0,0 @@
1
- import { createVuetify } from 'vuetify';
2
- import * as components from 'vuetify/components';
3
- import * as directives from 'vuetify/directives';
4
- import 'vuetify/styles';
5
- import { defineNuxtPlugin } from '#app';
6
- export default defineNuxtPlugin((nuxtApp) => {
7
- const vuetify = createVuetify({
8
- components,
9
- directives
10
- });
11
- nuxtApp.vueApp.use(vuetify);
12
- });
@@ -1,64 +0,0 @@
1
- // plugins/vuetify.ts
2
- import '@mdi/font/css/materialdesignicons.css'
3
-
4
- import 'vuetify/styles'
5
- import { createVuetify } from 'vuetify'
6
- import { aliases, fa } from 'vuetify/iconsets/fa-svg'
7
- import { library } from '@fortawesome/fontawesome-svg-core'
8
- import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
9
- import { fas } from '@fortawesome/free-solid-svg-icons'
10
- import * as components from 'vuetify/components'
11
- import * as labsComponents from 'vuetify/labs/components'
12
- import * as directives from 'vuetify/directives'
13
- import { mdi } from 'vuetify/iconsets/mdi'
14
-
15
- // Register fontawesome icons at module scope
16
- library.add(fas)
17
-
18
- // Create Vuetify instance at module scope so other runtime plugins can import it
19
- export const vuetify = createVuetify({
20
- ssr: true,
21
- directives,
22
- icons: {
23
- defaultSet: 'fa',
24
- aliases,
25
- sets: {
26
- fa,
27
- mdi,
28
- },
29
- },
30
- components: {
31
- ...components,
32
- ...labsComponents,
33
- },
34
- theme: {
35
- defaultTheme: 'light',
36
- themes: {
37
- light: {
38
- dark: false,
39
- variables: {}, // required to avoid Vuetify crash
40
- colors: {
41
- primary: '#6200EE',
42
- 'primary-darken-1': '#3700B3',
43
- secondary: '#03DAC6',
44
- 'secondary-darken-1': '#018786',
45
- error: '#B00020',
46
- info: '#2196F3',
47
- success: '#4CAF50',
48
- warning: '#FB8C00',
49
- },
50
- },
51
- dark: {
52
- dark: true,
53
- variables: {},
54
- colors: {},
55
- },
56
- },
57
- },
58
- })
59
-
60
- export default (nuxtApp: any) => {
61
- // Register FontAwesome component on the actual Vue app instance
62
- nuxtApp.vueApp.component('font-awesome-icon', FontAwesomeIcon)
63
- nuxtApp.vueApp.use(vuetify)
64
- }
@@ -1,25 +0,0 @@
1
- import type { SearchClient } from 'instantsearch.js'
2
-
3
- export function getSearchClient(): SearchClient | null {
4
- let mod: any
5
- try {
6
- mod = require('@searchkit/instantsearch-client')
7
- } catch {
8
- console.warn('[mframework-ui] Searchkit client missing')
9
- return null
10
- }
11
-
12
- const candidate =
13
- mod?.default?.default ||
14
- mod?.default?.createClient ||
15
- mod?.default ||
16
- mod?.createClient ||
17
- mod
18
-
19
- if (typeof candidate !== 'function') return null
20
-
21
- const host = process.env.NUXT_PUBLIC_SEARCHKIT_HOST
22
- if (!host) return null
23
-
24
- return candidate({ host })
25
- }
@@ -1,19 +0,0 @@
1
- <template>
2
- <ais-instant-search :search-client="client" :index-name="index">
3
- <ais-search-box />
4
- <ais-hits>
5
- <template #item="{ item }">
6
- <slot name="hit" :item="item">
7
- <div class="p-2 border rounded">
8
- <ais-highlight attribute="title" :hit="item" />
9
- </div>
10
- </slot>
11
- </template>
12
- </ais-hits>
13
- </ais-instant-search>
14
- </template>
15
-
16
- <script setup lang="ts">
17
- const client = inject('mSearchClient')
18
- const index = inject('mSearchIndex')
19
- </script>
@@ -1,9 +0,0 @@
1
- import { getSearchClient } from './client'
2
-
3
- export default (nuxtApp: any) => {
4
- const client = getSearchClient()
5
- const indexName = process.env.NUXT_PUBLIC_SEARCH_INDEX || 'default'
6
-
7
- nuxtApp.provide('mSearchClient', client)
8
- nuxtApp.provide('mSearchIndex', indexName)
9
- }
package/tsconfig.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "declaration": true,
4
- "emitDeclarationOnly": false,
5
- "outDir": "dist",
6
- "moduleResolution": "bundler",
7
- "module": "ESNext",
8
- "target": "ESNext",
9
- "strict": true,
10
- "jsx": "react-jsx",
11
- "skipLibCheck": true,
12
- "noEmitOnError": false
13
- },
14
- "include": ["runtime/**/*", "src/**/*", "types/**/*"],
15
- "exclude": ["node_modules", "dist"]
16
- }
package/type.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /// <reference types="nuxt/app" />
2
- /// <reference types="nuxt/schema" />
3
- /// <reference types="nuxt" />
4
-
5
- export {}
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- export interface GlobalSearchResult {
2
- id?: string;
3
- title?: string;
4
- type?: string;
5
- description?: string;
6
- image?: string;
7
- url?: string;
8
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import type { BlockButton } from './block-button';
2
-
3
- export interface BlockButtonGroup {
4
- id: string;
5
- buttons: (string | BlockButton)[] | null;
6
- alignment: 'left' | 'center' | null;
7
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import type { Post, Page } from '../content';
2
-
3
- export interface BlockButton {
4
- id: string;
5
- sort: number | null;
6
- type: ('pages' | 'posts' | 'external') | null;
7
- label: string | null;
8
- color: 'primary' | 'white' | 'gray' | 'white' | 'black';
9
- variant: 'solid' | 'outline' | 'ghost' | 'link' | 'soft';
10
- page: string | Page | null;
11
- post: string | Post | null;
12
- external_url: string | null;
13
- icon: string | null;
14
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,20 +0,0 @@
1
- import type { File } from '../system';
2
- import type { BlockButtonGroup } from '.';
3
-
4
- export interface BlockColumn {
5
- headline?: string | null;
6
- id?: string;
7
- title?: string | null;
8
- rows?: (number | BlockColumnRow)[];
9
- }
10
-
11
- export interface BlockColumnRow {
12
- block_columns?: (string | BlockColumn) | null;
13
- content?: string | null;
14
- headline?: string | null;
15
- id?: string;
16
- image?: (string | File) | null;
17
- image_position?: string | null;
18
- title?: string | null;
19
- button_group?: (string | BlockButtonGroup) | null;
20
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import type { BlockButtonGroup } from '.';
2
-
3
- export interface BlockCta {
4
- buttons?: { [key: string]: any } | null;
5
- content?: string | null;
6
- headline?: string | null;
7
- id?: string;
8
- title?: string | null;
9
- button_group?: (string | BlockButtonGroup) | null;
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- export interface BlockDivider {
2
- id?: string;
3
- title?: string | null;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- export interface BlockFaq {
2
- faqs?: BlockFaqQuestion[] | null;
3
- headline?: string | null;
4
- id?: string;
5
- title?: string | null;
6
- alignment?: 'left' | 'center' | null;
7
- }
8
-
9
- export interface BlockFaqQuestion {
10
- title: string | null;
11
- answer: string | null;
12
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { Form } from '../content';
2
-
3
- export interface BlockForm {
4
- form?: (string | Form) | null;
5
- headline?: string | null;
6
- id?: string;
7
- title?: string | null;
8
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import type { File } from '../system';
2
-
3
- export interface BlockGallery {
4
- headline?: string | null;
5
- id?: string;
6
- title?: string | null;
7
- gallery_items?: BlockGalleryFile[] | null;
8
- }
9
- export interface BlockGalleryFile {
10
- block_gallery?: (string | BlockGallery) | null;
11
- directus_files_id?: (string | File) | null;
12
- id?: number;
13
- sort?: number | null;
14
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import type { File } from '../system';
2
- import type { BlockButtonGroup } from '.';
3
-
4
- export interface BlockHero {
5
- id?: string;
6
- title?: string | null;
7
- headline?: string | null;
8
- content?: string | null;
9
- image?: (string | File) | null;
10
- image_position?: 'left' | 'right' | null;
11
- button_group?: (string | BlockButtonGroup) | null;
12
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- export interface BlockHtml {
2
- id?: string;
3
- raw_html?: string | null;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import type { File } from '../system';
2
-
3
- export interface BlockLogocloud {
4
- headline?: string | null;
5
- id?: string;
6
- title?: string | null;
7
- logos?: (string | BlockLogocloudFile)[];
8
- }
9
- export interface BlockLogocloudFile {
10
- id?: string;
11
- sort?: number | null;
12
- block_logocloud_id?: (string | BlockLogocloud) | null;
13
- directus_files_id?: (string | File) | null;
14
- }