@meeovi/layer-shared 1.0.11 → 1.0.12

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 (2) hide show
  1. package/package.json +4 -2
  2. package/src/global.d.ts +0 -109
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meeovi/layer-shared",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Shared Layer for the Alternate Framework",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -64,5 +64,7 @@
64
64
  "prisma",
65
65
  "i18n"
66
66
  ],
67
- "exports": { ".": "./nuxt.config.ts", "./nuxt.config": "./nuxt.config.ts" }
67
+ "exports": {
68
+ "./nuxt.config": "./nuxt.config.ts"
69
+ }
68
70
  }
package/src/global.d.ts DELETED
@@ -1,109 +0,0 @@
1
- // Minimal global declarations to unblock type-checking in the monorepo build.
2
- // These are temporary shims; replace with proper types or install @types packages.
3
-
4
- declare module '#imports' {
5
- export type UseFetchOptions = any
6
- export function useNuxtApp(): any
7
- export function useAsyncData<T = any>(key: string, fn: () => Promise<T>): Promise<{ data: T }>
8
- export function useRuntimeConfig(): any
9
- export function isNuxtError(e: any): boolean
10
- export type NuxtError = any
11
- }
12
-
13
- declare module '#components' {
14
- const AdminTable: any
15
- export type AdminTable = any
16
- export default AdminTable
17
- }
18
-
19
- declare module 'vue' {
20
- export * from 'vue'
21
- }
22
-
23
- declare module '@vue/test-utils' {
24
- export function mount(...args: any[]): any
25
- export function shallowMount(...args: any[]): any
26
- export const config: any
27
- export default { mount }
28
- }
29
-
30
- declare module '@vue-storefront/unified-data-model' {
31
- export type SfProduct = any
32
- export type SfCart = any
33
- const whatever: any
34
- export default whatever
35
- }
36
-
37
- // Project-specific shims for layers and themes
38
- declare module '@meeovi/commerce' {
39
- export type Product = any
40
- export type Cart = any
41
- export type Category = any
42
- }
43
-
44
- declare module '@meeovi/chat' {
45
- export function registerChatProviderRuntime(...args: any[]): void
46
- }
47
-
48
- // Global helper used across apps/themes
49
- declare function useMeeovi(): any
50
-
51
- declare module '@nuxt/kit' { export const defineNuxtModule: any; export const addPlugin: any; export const createResolver: any }
52
- declare module '#app' { export const defineNuxtPlugin: any; export const useRuntimeConfig: any }
53
- declare module 'ofetch' { export const ofetch: any }
54
- declare module 'vitest' { export const describe: any; export const it: any; export const expect: any }
55
- declare module '@nuxt/test-utils/e2e' { export const setup: any; export const $fetch: any }
56
- declare module '@vuelidate/validators' { const v: any; export = v }
57
- declare module '@directus/types' { const t: any; export = t }
58
- declare module '@nuxt/test-utils' { export const setup: any }
59
- declare module '@nuxt/test-utils/*' { const whatever: any; export default whatever }
60
-
61
- declare module 'zod' {
62
- export type ZodSchema = any
63
- export type ZodError = any
64
- }
65
-
66
- declare module '@vue/shared' { const s: any; export = s }
67
-
68
- declare global {
69
- function defineNuxtConfig<T = any>(c: T): T
70
- function defineEventHandler<T = any>(h: (event: any) => T): T
71
- function defineI18nConfig<T = any>(c: T): T
72
- function defineI18nLocale<T = any>(c: T): T
73
- const useCookie: any
74
- const useRuntimeConfig: any
75
- const useStorage: any
76
- const formatFileSize: (n: number) => string
77
- }
78
-
79
- declare module 'micromark' {
80
- export function micromark(input: string): string
81
- }
82
-
83
- declare module 'micromark-extension-gfm' {
84
- export const gfm: any
85
- export const gfmHtml: any
86
- }
87
-
88
- declare module 'uuid' {
89
- export function v4(): string
90
- }
91
-
92
- declare module '*.vue' {
93
- import type { DefineComponent } from 'vue'
94
- const component: DefineComponent<{}, {}, any>
95
- export default component
96
- }
97
-
98
- declare module '*.js'
99
-
100
- declare const useTemplateRef: any
101
- declare const usePreviewMode: any
102
- declare const useMeilisearch: any
103
- declare function readonly<T>(v: T): Readonly<T>
104
-
105
- declare namespace NodeJS {
106
- interface ProcessEnv { [key: string]: string | undefined }
107
- }
108
-
109
- export {}