@weaverse/react 0.7.64 → 0.7.66
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/dist/index.d.ts +71 -60
- package/dist/index.js +247 -81
- package/dist/index.mjs +250 -84
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WeaverseType, Weaverse, ElementCSS, WeaverseItemStore
|
|
1
|
+
import { WeaverseType, Weaverse, WeaverseElement, ElementCSS, WeaverseItemStore } from '@weaverse/core';
|
|
2
2
|
export * from '@weaverse/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { HTMLAttributes, CSSProperties, ReactElement, ReactNode } from 'react';
|
|
@@ -21,6 +21,9 @@ declare let ArrowLeft: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
|
21
21
|
declare let ArrowRight: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
22
22
|
declare let Image: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
23
23
|
declare let ShoppingCart: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
24
|
+
declare let Storefront: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
25
|
+
declare let Package: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
26
|
+
declare let Backpack: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
24
27
|
declare let Eye: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
25
28
|
|
|
26
29
|
declare const PhosphorIcons_CircleNotch: typeof CircleNotch;
|
|
@@ -31,6 +34,9 @@ declare const PhosphorIcons_ArrowLeft: typeof ArrowLeft;
|
|
|
31
34
|
declare const PhosphorIcons_ArrowRight: typeof ArrowRight;
|
|
32
35
|
declare const PhosphorIcons_Image: typeof Image;
|
|
33
36
|
declare const PhosphorIcons_ShoppingCart: typeof ShoppingCart;
|
|
37
|
+
declare const PhosphorIcons_Storefront: typeof Storefront;
|
|
38
|
+
declare const PhosphorIcons_Package: typeof Package;
|
|
39
|
+
declare const PhosphorIcons_Backpack: typeof Backpack;
|
|
34
40
|
declare const PhosphorIcons_Eye: typeof Eye;
|
|
35
41
|
declare namespace PhosphorIcons {
|
|
36
42
|
export {
|
|
@@ -42,6 +48,9 @@ declare namespace PhosphorIcons {
|
|
|
42
48
|
PhosphorIcons_ArrowRight as ArrowRight,
|
|
43
49
|
PhosphorIcons_Image as Image,
|
|
44
50
|
PhosphorIcons_ShoppingCart as ShoppingCart,
|
|
51
|
+
PhosphorIcons_Storefront as Storefront,
|
|
52
|
+
PhosphorIcons_Package as Package,
|
|
53
|
+
PhosphorIcons_Backpack as Backpack,
|
|
45
54
|
PhosphorIcons_Eye as Eye,
|
|
46
55
|
};
|
|
47
56
|
}
|
|
@@ -62,6 +71,7 @@ interface SliderProps {
|
|
|
62
71
|
className?: string;
|
|
63
72
|
gap?: number;
|
|
64
73
|
arrowOffset: number;
|
|
74
|
+
slidesPerView: number;
|
|
65
75
|
}
|
|
66
76
|
interface SliderArrowsProps {
|
|
67
77
|
currentSlide: number;
|
|
@@ -90,10 +100,69 @@ interface BackgroundProps {
|
|
|
90
100
|
className?: string;
|
|
91
101
|
}
|
|
92
102
|
|
|
103
|
+
declare let Modal: (props: DialogProps) => JSX.Element;
|
|
104
|
+
declare let ModalTrigger: React__default.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
105
|
+
declare let ModalHeader: React__default.ForwardRefExoticComponent<DialogTitleProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
106
|
+
declare let ModalContent: React__default.ForwardRefExoticComponent<ModalContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
107
|
+
declare let ModalClose: React__default.ForwardRefExoticComponent<DialogCloseProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
108
|
+
|
|
109
|
+
declare const ModalComponents_Modal: typeof Modal;
|
|
110
|
+
declare const ModalComponents_ModalTrigger: typeof ModalTrigger;
|
|
111
|
+
declare const ModalComponents_ModalHeader: typeof ModalHeader;
|
|
112
|
+
declare const ModalComponents_ModalContent: typeof ModalContent;
|
|
113
|
+
declare const ModalComponents_ModalClose: typeof ModalClose;
|
|
114
|
+
declare namespace ModalComponents {
|
|
115
|
+
export {
|
|
116
|
+
ModalComponents_Modal as Modal,
|
|
117
|
+
ModalComponents_ModalTrigger as ModalTrigger,
|
|
118
|
+
ModalComponents_ModalHeader as ModalHeader,
|
|
119
|
+
ModalComponents_ModalContent as ModalContent,
|
|
120
|
+
ModalComponents_ModalClose as ModalClose,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare function Spinner(): JSX.Element;
|
|
125
|
+
|
|
126
|
+
declare function Icon({ name, className, ...props }: WeaverseIconProps): JSX.Element;
|
|
127
|
+
|
|
128
|
+
declare function Tooltip({ children }: TooltipProps): JSX.Element;
|
|
129
|
+
|
|
130
|
+
declare function Slider(props: SliderProps): JSX.Element;
|
|
131
|
+
|
|
132
|
+
declare function Background(props: BackgroundProps): JSX.Element | null;
|
|
133
|
+
|
|
134
|
+
declare function Overlay(props: OverlayProps): JSX.Element | null;
|
|
135
|
+
|
|
136
|
+
declare function Arrows(props: SliderArrowsProps): JSX.Element;
|
|
137
|
+
|
|
138
|
+
declare function Dots(props: SliderDotsProps): JSX.Element;
|
|
139
|
+
|
|
140
|
+
declare function AutoplayPlugin(changeSlidesEvery: number): KeenSliderPlugin;
|
|
141
|
+
|
|
142
|
+
declare let Components: {
|
|
143
|
+
Background: typeof Background;
|
|
144
|
+
Icon: typeof Icon;
|
|
145
|
+
ModalComponents: typeof ModalComponents;
|
|
146
|
+
Overlay: typeof Overlay;
|
|
147
|
+
Placeholder: React$1.ForwardRefExoticComponent<PlaceholderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
148
|
+
Spinner: typeof Spinner;
|
|
149
|
+
Slider: typeof Slider;
|
|
150
|
+
Tooltip: typeof Tooltip;
|
|
151
|
+
};
|
|
152
|
+
declare let SliderComponents: {
|
|
153
|
+
Arrows: typeof Arrows;
|
|
154
|
+
Dots: typeof Dots;
|
|
155
|
+
ResizePlugin: keen_slider_react.KeenSliderPlugin<{}, {}, keen_slider_react.KeenSliderHooks>;
|
|
156
|
+
AutoplayPlugin: typeof AutoplayPlugin;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare const Elements: Record<string, WeaverseElement>;
|
|
160
|
+
|
|
93
161
|
interface WeaverseElementProps extends Partial<ReactElement> {
|
|
94
162
|
css?: ElementCSS;
|
|
95
163
|
children?: ReactElement | ReactElement[] | ReactNode | ReactNode[];
|
|
96
164
|
className?: string;
|
|
165
|
+
['data-wv-id']?: string;
|
|
97
166
|
}
|
|
98
167
|
type WeaverseRootPropsType = {
|
|
99
168
|
context: Weaverse;
|
|
@@ -231,64 +300,6 @@ declare global {
|
|
|
231
300
|
}
|
|
232
301
|
}
|
|
233
302
|
|
|
234
|
-
declare let Modal: (props: DialogProps) => JSX.Element;
|
|
235
|
-
declare let ModalTrigger: React__default.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
236
|
-
declare let ModalHeader: React__default.ForwardRefExoticComponent<DialogTitleProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
237
|
-
declare let ModalContent: React__default.ForwardRefExoticComponent<ModalContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
238
|
-
declare let ModalClose: React__default.ForwardRefExoticComponent<DialogCloseProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
239
|
-
|
|
240
|
-
declare const ModalComponents_Modal: typeof Modal;
|
|
241
|
-
declare const ModalComponents_ModalTrigger: typeof ModalTrigger;
|
|
242
|
-
declare const ModalComponents_ModalHeader: typeof ModalHeader;
|
|
243
|
-
declare const ModalComponents_ModalContent: typeof ModalContent;
|
|
244
|
-
declare const ModalComponents_ModalClose: typeof ModalClose;
|
|
245
|
-
declare namespace ModalComponents {
|
|
246
|
-
export {
|
|
247
|
-
ModalComponents_Modal as Modal,
|
|
248
|
-
ModalComponents_ModalTrigger as ModalTrigger,
|
|
249
|
-
ModalComponents_ModalHeader as ModalHeader,
|
|
250
|
-
ModalComponents_ModalContent as ModalContent,
|
|
251
|
-
ModalComponents_ModalClose as ModalClose,
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
declare function Spinner(): JSX.Element;
|
|
256
|
-
|
|
257
|
-
declare function Icon({ name, className, ...props }: WeaverseIconProps): JSX.Element;
|
|
258
|
-
|
|
259
|
-
declare function Tooltip({ children }: TooltipProps): JSX.Element;
|
|
260
|
-
|
|
261
|
-
declare function Slider(props: SliderProps): JSX.Element;
|
|
262
|
-
|
|
263
|
-
declare function Background(props: BackgroundProps): JSX.Element | null;
|
|
264
|
-
|
|
265
|
-
declare function Overlay(props: OverlayProps): JSX.Element | null;
|
|
266
|
-
|
|
267
|
-
declare function Arrows(props: SliderArrowsProps): JSX.Element;
|
|
268
|
-
|
|
269
|
-
declare function Dots(props: SliderDotsProps): JSX.Element;
|
|
270
|
-
|
|
271
|
-
declare function AutoplayPlugin(changeSlidesEvery: number): KeenSliderPlugin;
|
|
272
|
-
|
|
273
|
-
declare let Components: {
|
|
274
|
-
Background: typeof Background;
|
|
275
|
-
Icon: typeof Icon;
|
|
276
|
-
ModalComponents: typeof ModalComponents;
|
|
277
|
-
Overlay: typeof Overlay;
|
|
278
|
-
Placeholder: React$1.ForwardRefExoticComponent<PlaceholderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
279
|
-
Spinner: typeof Spinner;
|
|
280
|
-
Slider: typeof Slider;
|
|
281
|
-
Tooltip: typeof Tooltip;
|
|
282
|
-
};
|
|
283
|
-
declare let SliderComponents: {
|
|
284
|
-
Arrows: typeof Arrows;
|
|
285
|
-
Dots: typeof Dots;
|
|
286
|
-
ResizePlugin: keen_slider_react.KeenSliderPlugin<{}, {}, keen_slider_react.KeenSliderHooks>;
|
|
287
|
-
AutoplayPlugin: typeof AutoplayPlugin;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
declare const Elements: Record<string, WeaverseElement>;
|
|
291
|
-
|
|
292
303
|
declare let WeaverseRoot: ({ context }: WeaverseRootPropsType) => JSX.Element | null;
|
|
293
304
|
|
|
294
|
-
export {
|
|
305
|
+
export { ButtonElementProps, Components, ContainerElementProps, CountdownElementProps, CountdownTimeKey, CountdownTimerType, Elements, GridContentElementProps, ImageElementProps, InstagramElementProps, InstagramMedia, ItemComponentProps, LayoutBackgroundProps, LayoutElementProps, MapElementProps, PlaceholderProps, SlideProps, SliderComponents, SlideshowProps, TextElementProps, TimerBlockProps, VideoCommonProps, VideoElementProps, VimeoElementProps, WeaverseContext, WeaverseContextConsumer, WeaverseContextProvider, WeaverseElementProps, WeaverseRoot, WeaverseRootPropsType, YoutubeElementProps, createRootContext };
|