shop-components 0.1.68 → 0.2.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.
Files changed (61) hide show
  1. package/dist/__VLS_types.d.ts +124 -0
  2. package/dist/assets/loader.worker-fysOIq2s.js +7 -0
  3. package/dist/shop-components.cjs +5077 -0
  4. package/dist/shop-components.mjs +34531 -63605
  5. package/dist/{device-viewer → stories/device-viewer}/amr.d.ts +23 -5
  6. package/dist/{device-viewer → stories/device-viewer}/dimension/size-box.d.ts +2 -3
  7. package/dist/stories/device-viewer/dimension/size-line.d.ts +24 -0
  8. package/dist/{device-viewer → stories/device-viewer}/goods-box.d.ts +1 -0
  9. package/dist/{device-viewer → stories/device-viewer}/index.d.ts +15 -2
  10. package/dist/stories/device-viewer/libs/BVH/index.d.ts +342 -0
  11. package/dist/{device-viewer → stories/device-viewer}/libs/gizmo/gizmo.d.ts +2 -0
  12. package/dist/stories/device-viewer/libs/progress-shadow/ProgressiveShadows.d.ts +91 -0
  13. package/dist/{device-viewer → stories/device-viewer}/logo.d.ts +1 -1
  14. package/dist/{device-viewer → stories/device-viewer}/outerline.d.ts +12 -0
  15. package/dist/{device-viewer → stories/device-viewer}/scene.d.ts +98 -4
  16. package/dist/{device-viewer → stories/device-viewer}/slot/slot-item.d.ts +6 -0
  17. package/dist/{device-viewer → stories/device-viewer}/slot.d.ts +11 -0
  18. package/dist/stories/device-viewer/ui/camera-position.d.ts +6 -0
  19. package/dist/stories/device-viewer/utils/geometory.d.ts +3 -0
  20. package/dist/{device-viewer → stories/device-viewer}/utils/index.d.ts +2 -0
  21. package/dist/{devices → stories/devices}/index.stories.d.ts +1 -1
  22. package/dist/{devices → stories/devices}/src/connector.d.ts +1 -1
  23. package/dist/{devices → stories/devices}/src/constraints/same-device-constraint.d.ts +2 -2
  24. package/dist/{devices → stories/devices}/src/constraints/single-connection-constraint.d.ts +2 -2
  25. package/dist/{devices → stories/devices}/src/device.d.ts +1 -1
  26. package/dist/{main.d.ts → stories/main.d.ts} +0 -1
  27. package/dist/vite-env.d.ts +11 -0
  28. package/package.json +10 -8
  29. package/dist/device-viewer/dimension/size-line.d.ts +0 -15
  30. package/dist/shop-components.umd.js +0 -9981
  31. /package/dist/{cropper → stories/cropper}/index.d.ts +0 -0
  32. /package/dist/{cropper → stories/cropper}/index.stories.d.ts +0 -0
  33. /package/dist/{device-viewer → stories/device-viewer}/assembly.d.ts +0 -0
  34. /package/dist/{device-viewer → stories/device-viewer}/belt.d.ts +0 -0
  35. /package/dist/{device-viewer → stories/device-viewer}/dimension/index.d.ts +0 -0
  36. /package/dist/{device-viewer → stories/device-viewer}/dimension/line3.d.ts +0 -0
  37. /package/dist/{device-viewer → stories/device-viewer}/group-roller.d.ts +0 -0
  38. /package/dist/{device-viewer → stories/device-viewer}/index.stories.d.ts +0 -0
  39. /package/dist/{device-viewer → stories/device-viewer}/lines.d.ts +0 -0
  40. /package/dist/{device-viewer → stories/device-viewer}/main.d.ts +0 -0
  41. /package/dist/{device-viewer → stories/device-viewer}/mechanism/mechanism.d.ts +0 -0
  42. /package/dist/{device-viewer → stories/device-viewer}/pin/pin.d.ts +0 -0
  43. /package/dist/{device-viewer → stories/device-viewer}/roller.d.ts +0 -0
  44. /package/dist/{device-viewer → stories/device-viewer}/row.d.ts +0 -0
  45. /package/dist/{device-viewer → stories/device-viewer}/sound.d.ts +0 -0
  46. /package/dist/{device-viewer → stories/device-viewer}/text2.d.ts +0 -0
  47. /package/dist/{device-viewer → stories/device-viewer}/text3.d.ts +0 -0
  48. /package/dist/{device-viewer → stories/device-viewer}/ui/right-menu.d.ts +0 -0
  49. /package/dist/{device-viewer → stories/device-viewer}/worker/generate-mesh-bvh-worker.d.ts +0 -0
  50. /package/dist/{device-viewer → stories/device-viewer}/worker/generateAsync.worker.d.ts +0 -0
  51. /package/dist/{device-viewer → stories/device-viewer}/worker/path-tracing-scene-worker.d.ts +0 -0
  52. /package/dist/{devices → stories/devices}/index.d.ts +0 -0
  53. /package/dist/{devices → stories/devices}/src/constraints/constraint.d.ts +0 -0
  54. /package/dist/{devices → stories/devices}/src/pin.d.ts +0 -0
  55. /package/dist/{main → stories/main}/index.d.ts +0 -0
  56. /package/dist/{plugin.d.ts → stories/plugin.d.ts} +0 -0
  57. /package/dist/{plugins → stories/plugins}/change-slot/index.d.ts +0 -0
  58. /package/dist/{sglb → stories/sglb}/index.d.ts +0 -0
  59. /package/dist/{step-viewer → stories/step-viewer}/index.d.ts +0 -0
  60. /package/dist/{step-viewer → stories/step-viewer}/index.stories.d.ts +0 -0
  61. /package/dist/{utils → stories/utils}/index.d.ts +0 -0
@@ -0,0 +1,124 @@
1
+ // @ts-nocheck
2
+
3
+ type __VLS_IntrinsicElements = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.IntrinsicElements, __VLS_PickNotAny<JSX.IntrinsicElements, Record<string, any>>>;
4
+ type __VLS_Element = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.Element, JSX.Element>;
5
+
6
+ type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
7
+ type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
8
+
9
+ type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {};
10
+
11
+ type __VLS_OmitKeepDiscriminatedUnion<T, K extends keyof any> =
12
+ T extends any
13
+ ? Pick<T, Exclude<keyof T, K>>
14
+ : never;
15
+
16
+ type __VLS_GlobalComponents =
17
+ __VLS_PickNotAny<import('vue').GlobalComponents, {}>
18
+ & __VLS_PickNotAny<import('@vue/runtime-core').GlobalComponents, {}>
19
+ & __VLS_PickNotAny<import('@vue/runtime-dom').GlobalComponents, {}>
20
+ & Pick<typeof import('vue'),
21
+ 'Transition'
22
+ | 'TransitionGroup'
23
+ | 'KeepAlive'
24
+ | 'Suspense'
25
+ | 'Teleport'
26
+ >;
27
+
28
+ declare const __VLS_intrinsicElements: __VLS_IntrinsicElements;
29
+
30
+ // v-for
31
+ declare function __VLS_getVForSourceType(source: number): [number, number, number][];
32
+ declare function __VLS_getVForSourceType(source: string): [string, number, number][];
33
+ declare function __VLS_getVForSourceType<T extends any[]>(source: T): [
34
+ T[number], // item
35
+ number, // key
36
+ number, // index
37
+ ][];
38
+ declare function __VLS_getVForSourceType<T extends { [Symbol.iterator](): Iterator<any> }>(source: T): [
39
+ T extends { [Symbol.iterator](): Iterator<infer T1> } ? T1 : never, // item
40
+ number, // key
41
+ undefined, // index
42
+ ][];
43
+ declare function __VLS_getVForSourceType<T>(source: T): [
44
+ T[keyof T], // item
45
+ keyof T, // key
46
+ number, // index
47
+ ][];
48
+
49
+ declare function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
50
+ declare function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
51
+ declare function __VLS_directiveFunction<T>(dir: T):
52
+ T extends import('vue').ObjectDirective<infer E, infer V> | import('vue').FunctionDirective<infer E, infer V> ? (value: V) => void
53
+ : T;
54
+ declare function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
55
+ declare function __VLS_makeOptional<T>(t: T): { [K in keyof T]?: T[K] };
56
+
57
+ type __VLS_SelfComponent<N, C> = string extends N ? {} : N extends string ? { [P in N]: C } : {};
58
+ type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> =
59
+ N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0> : { [K in N0]: LocalComponents[N1] } :
60
+ N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0> : { [K in N0]: LocalComponents[N2] } :
61
+ N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0> : { [K in N0]: LocalComponents[N3] } :
62
+ N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0> : { [K in N0]: __VLS_GlobalComponents[N1] } :
63
+ N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0> : { [K in N0]: __VLS_GlobalComponents[N2] } :
64
+ N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0> : { [K in N0]: __VLS_GlobalComponents[N3] } :
65
+ { [K in N0]: unknown }
66
+
67
+ type __VLS_FillingEventArg_ParametersLength<E extends (...args: any) => any> = __VLS_IsAny<Parameters<E>> extends true ? -1 : Parameters<E>['length'];
68
+ type __VLS_FillingEventArg<E> = E extends (...args: any) => any ? __VLS_FillingEventArg_ParametersLength<E> extends 0 ? ($event?: undefined) => ReturnType<E> : E : E;
69
+ declare function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K):
70
+ T extends new (...args: any) => any
71
+ ? (props: (K extends { $props: infer Props } ? Props : any) & Record<string, unknown>, ctx?: {
72
+ attrs?: any,
73
+ slots?: K extends { $slots: infer Slots } ? Slots : any,
74
+ emit?: K extends { $emit: infer Emit } ? Emit : any
75
+ }) => __VLS_Element & { __ctx?: typeof ctx & { props?: typeof props; expose?(exposed: K): void; } }
76
+ : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T>
77
+ : T extends (...args: any) => any ? T
78
+ : (_: {} & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {} & Record<string, unknown> } };
79
+ declare function __VLS_elementAsFunctionalComponent<T>(t: T): (_: T & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: T & Record<string, unknown> } };
80
+ declare function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): Parameters<T>['length'] extends 2 ? [any] : [];
81
+ declare function __VLS_pickEvent<E1, E2>(emitEvent: E1, propEvent: E2): __VLS_FillingEventArg<
82
+ __VLS_PickNotAny<
83
+ __VLS_AsFunctionOrAny<E2>,
84
+ __VLS_AsFunctionOrAny<E1>
85
+ >
86
+ > | undefined;
87
+ declare function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): __VLS_PickNotAny<
88
+ '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any
89
+ , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any
90
+ >;
91
+ type __VLS_FunctionalComponentProps<T, K> =
92
+ '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: { props?: infer P } } ? NonNullable<P> : never
93
+ : T extends (props: infer P, ...args: any) => any ? P :
94
+ {};
95
+ type __VLS_AsFunctionOrAny<F> = unknown extends F ? any : ((...args: any) => any) extends F ? F : any;
96
+
97
+ declare function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
98
+
99
+ /**
100
+ * emit
101
+ */
102
+ // fix https://github.com/vuejs/language-tools/issues/926
103
+ type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
104
+ type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R
105
+ ? U extends T
106
+ ? never
107
+ : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R)
108
+ : never;
109
+ type __VLS_OverloadUnion<T> = Exclude<
110
+ __VLS_OverloadUnionInner<(() => never) & T>,
111
+ T extends () => never ? never : () => never
112
+ >;
113
+ type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F
114
+ ? F extends (event: infer E, ...args: infer A) => any
115
+ ? { [K in E & string]: (...args: A) => void; }
116
+ : never
117
+ : never;
118
+ type __VLS_NormalizeEmits<T> = __VLS_Prettify<
119
+ __VLS_UnionToIntersection<
120
+ __VLS_ConstructorOverloads<T> & {
121
+ [K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never
122
+ }
123
+ >
124
+ >;