@weaverse/react 1.0.35 → 1.0.37

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 CHANGED
@@ -13,24 +13,24 @@ declare let WeaverseContext: React$1.Context<Weaverse>;
13
13
  declare let WeaverseContextProvider: React$1.Provider<Weaverse>;
14
14
  declare let WeaverseContextConsumer: React$1.Consumer<Weaverse>;
15
15
 
16
- declare let Circle: (props: HTMLAttributes<SVGElement>) => JSX.Element;
17
- declare let CircleNotch: (props: HTMLAttributes<SVGElement>) => JSX.Element;
18
- declare let X: (props: HTMLAttributes<SVGElement>) => JSX.Element;
19
- declare let Minus: (props: HTMLAttributes<SVGElement>) => JSX.Element;
20
- declare let Plus: (props: HTMLAttributes<SVGElement>) => JSX.Element;
21
- declare let CaretLeft: (props: HTMLAttributes<SVGElement>) => JSX.Element;
22
- declare let CaretRight: (props: HTMLAttributes<SVGElement>) => JSX.Element;
23
- declare let ArrowLeft: (props: HTMLAttributes<SVGElement>) => JSX.Element;
24
- declare let ArrowRight: (props: HTMLAttributes<SVGElement>) => JSX.Element;
25
- declare let Image: (props: HTMLAttributes<SVGElement>) => JSX.Element;
26
- declare let ShoppingCart: (props: HTMLAttributes<SVGElement>) => JSX.Element;
27
- declare let Storefront: (props: HTMLAttributes<SVGElement>) => JSX.Element;
28
- declare let Package: (props: HTMLAttributes<SVGElement>) => JSX.Element;
29
- declare let HandBag: (props: HTMLAttributes<SVGElement>) => JSX.Element;
30
- declare let Tag: (props: HTMLAttributes<SVGElement>) => JSX.Element;
31
- declare let Backpack: (props: HTMLAttributes<SVGElement>) => JSX.Element;
32
- declare let Newspaper: (props: HTMLAttributes<SVGElement>) => JSX.Element;
33
- declare let Eye: (props: HTMLAttributes<SVGElement>) => JSX.Element;
16
+ declare let Circle: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
17
+ declare let CircleNotch: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
18
+ declare let X: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
19
+ declare let Minus: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
20
+ declare let Plus: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
21
+ declare let CaretLeft: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
22
+ declare let CaretRight: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
23
+ declare let ArrowLeft: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
24
+ declare let ArrowRight: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
25
+ declare let Image: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
26
+ declare let ShoppingCart: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
27
+ declare let Storefront: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
28
+ declare let Package: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
29
+ declare let HandBag: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
30
+ declare let Tag: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
31
+ declare let Backpack: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
32
+ declare let Newspaper: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
33
+ declare let Eye: (props: HTMLAttributes<SVGElement>) => React__default.JSX.Element;
34
34
 
35
35
  declare const PhosphorIcons_ArrowLeft: typeof ArrowLeft;
36
36
  declare const PhosphorIcons_ArrowRight: typeof ArrowRight;
@@ -119,7 +119,7 @@ interface BackgroundProps {
119
119
  className?: string;
120
120
  }
121
121
 
122
- declare let Modal: (props: DialogProps) => JSX.Element;
122
+ declare let Modal: (props: DialogProps) => React__default.JSX.Element;
123
123
  declare let ModalTrigger: React__default.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
124
124
  declare let ModalHeader: React__default.ForwardRefExoticComponent<DialogTitleProps & React__default.RefAttributes<HTMLHeadingElement>>;
125
125
  declare let ModalContent: React__default.ForwardRefExoticComponent<ModalContentProps & React__default.RefAttributes<HTMLDivElement>>;
@@ -140,21 +140,21 @@ declare namespace ModalComponents {
140
140
  };
141
141
  }
142
142
 
143
- declare function Spinner(): JSX.Element;
143
+ declare function Spinner(): React__default.JSX.Element;
144
144
 
145
- declare function Icon({ name, className, ...props }: WeaverseIconProps): JSX.Element;
145
+ declare function Icon({ name, className, ...props }: WeaverseIconProps): React__default.JSX.Element;
146
146
 
147
- declare function Tooltip({ children }: TooltipProps): JSX.Element;
147
+ declare function Tooltip({ children }: TooltipProps): React__default.JSX.Element;
148
148
 
149
- declare function Slider(props: SliderProps): JSX.Element;
149
+ declare function Slider(props: SliderProps): React__default.JSX.Element;
150
150
 
151
- declare function Background(props: BackgroundProps): JSX.Element | null;
151
+ declare function Background(props: BackgroundProps): React__default.JSX.Element | null;
152
152
 
153
- declare function Overlay(props: OverlayProps): JSX.Element | null;
153
+ declare function Overlay(props: OverlayProps): React__default.JSX.Element | null;
154
154
 
155
- declare function Arrows(props: SliderArrowsProps): JSX.Element;
155
+ declare function Arrows(props: SliderArrowsProps): React__default.JSX.Element;
156
156
 
157
- declare function Dots(props: SliderDotsProps): JSX.Element;
157
+ declare function Dots(props: SliderDotsProps): React__default.JSX.Element;
158
158
 
159
159
  declare function AutoplayPlugin(changeSlidesEvery: number): KeenSliderPlugin;
160
160
 
@@ -162,7 +162,7 @@ type NoHydrateProps = {
162
162
  id: string;
163
163
  getHTML?: () => string;
164
164
  } & JSX.IntrinsicElements['div'];
165
- declare function NoHydrate({ id, getHTML, ...rest }: NoHydrateProps): JSX.Element;
165
+ declare function NoHydrate({ id, getHTML, ...rest }: NoHydrateProps): React__default.JSX.Element;
166
166
 
167
167
  declare let Components: {
168
168
  Background: typeof Background;
@@ -232,6 +232,10 @@ interface BackgroundDataProps {
232
232
  backgroundImage?: string;
233
233
  objectFit?: CSSProperties['objectFit'];
234
234
  objectPosition?: CSSProperties['objectPosition'];
235
+ /** @deprecated no more use but still reserved for old element */
236
+ backgroundPosition?: CSSProperties['backgroundPosition'];
237
+ /** @deprecated no more use but still reserved for old element */
238
+ backgroundFit?: CSSProperties['objectFit'];
235
239
  }
236
240
  interface LayoutElementProps extends BackgroundDataProps, WeaverseElementProps {
237
241
  contentSize: number;
@@ -335,6 +339,6 @@ declare global {
335
339
  }
336
340
  }
337
341
 
338
- declare let WeaverseRoot: React__default.MemoExoticComponent<({ context }: WeaverseRootPropsType) => JSX.Element | null>;
342
+ declare let WeaverseRoot: React__default.MemoExoticComponent<({ context }: WeaverseRootPropsType) => React__default.JSX.Element | null>;
339
343
 
340
344
  export { BackgroundProps, ButtonElementProps, Components, ContainerElementProps, CountdownElementProps, CountdownTimeKey, CountdownTimerType, Elements, GridContentElementProps, ImageElementProps, InstagramElementProps, InstagramMedia, ItemComponentProps, LayoutBackgroundProps, LayoutElementProps, MapElementProps, ModalContentProps, OverlayProps, PlaceholderProps, ScrollingTextElementProps, SlideProps, SliderArrowsProps, SliderComponents, SliderDotsProps, SliderProps, SlideshowProps, TextElementProps, TimerBlockProps, TooltipProps, VideoCommonProps, VideoElementProps, VimeoElementProps, WeaverseContext, WeaverseContextConsumer, WeaverseContextProvider, WeaverseElementProps, WeaverseIcon, WeaverseIconProps, WeaverseRoot, WeaverseRootPropsType, YoutubeElementProps, createRootContext };
package/dist/index.js CHANGED
@@ -2396,6 +2396,8 @@ var Slide = (0, import_react36.forwardRef)((props, ref) => {
2396
2396
  objectPosition,
2397
2397
  enableOverlay,
2398
2398
  overlayOpacity,
2399
+ backgroundFit,
2400
+ backgroundPosition,
2399
2401
  children,
2400
2402
  ...rest
2401
2403
  } = props;
@@ -2652,6 +2654,5 @@ var ItemInstance = (0, import_react38.memo)(({ id }) => {
2652
2654
  WeaverseContextConsumer,
2653
2655
  WeaverseContextProvider,
2654
2656
  WeaverseRoot,
2655
- createRootContext,
2656
- ...require("@weaverse/core")
2657
+ createRootContext
2657
2658
  });
package/dist/index.mjs CHANGED
@@ -2360,6 +2360,8 @@ var Slide = forwardRef12((props, ref) => {
2360
2360
  objectPosition,
2361
2361
  enableOverlay,
2362
2362
  overlayOpacity,
2363
+ backgroundFit,
2364
+ backgroundPosition,
2363
2365
  children,
2364
2366
  ...rest
2365
2367
  } = props;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.35",
2
+ "version": "1.0.37",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@radix-ui/react-dialog": "^1.0.3",
36
36
  "@stitches/react": "^1.2.8",
37
- "@weaverse/core": "1.0.35",
37
+ "@weaverse/core": "1.0.37",
38
38
  "clsx": "^1.2.1",
39
39
  "keen-slider": "^6.8.5"
40
40
  }