@weaverse/react 1.0.17 → 1.0.19
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 +29 -29
- package/dist/index.js +3 -15
- package/dist/index.mjs +1 -14
- package/package.json +2 -2
- package/README.md +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -32,44 +32,44 @@ declare let Backpack: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
|
32
32
|
declare let Newspaper: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
33
33
|
declare let Eye: (props: HTMLAttributes<SVGElement>) => JSX.Element;
|
|
34
34
|
|
|
35
|
+
declare const PhosphorIcons_ArrowLeft: typeof ArrowLeft;
|
|
36
|
+
declare const PhosphorIcons_ArrowRight: typeof ArrowRight;
|
|
37
|
+
declare const PhosphorIcons_Backpack: typeof Backpack;
|
|
38
|
+
declare const PhosphorIcons_CaretLeft: typeof CaretLeft;
|
|
39
|
+
declare const PhosphorIcons_CaretRight: typeof CaretRight;
|
|
35
40
|
declare const PhosphorIcons_Circle: typeof Circle;
|
|
36
41
|
declare const PhosphorIcons_CircleNotch: typeof CircleNotch;
|
|
37
|
-
declare const
|
|
42
|
+
declare const PhosphorIcons_Eye: typeof Eye;
|
|
43
|
+
declare const PhosphorIcons_HandBag: typeof HandBag;
|
|
44
|
+
declare const PhosphorIcons_Image: typeof Image;
|
|
38
45
|
declare const PhosphorIcons_Minus: typeof Minus;
|
|
46
|
+
declare const PhosphorIcons_Newspaper: typeof Newspaper;
|
|
47
|
+
declare const PhosphorIcons_Package: typeof Package;
|
|
39
48
|
declare const PhosphorIcons_Plus: typeof Plus;
|
|
40
|
-
declare const PhosphorIcons_CaretLeft: typeof CaretLeft;
|
|
41
|
-
declare const PhosphorIcons_CaretRight: typeof CaretRight;
|
|
42
|
-
declare const PhosphorIcons_ArrowLeft: typeof ArrowLeft;
|
|
43
|
-
declare const PhosphorIcons_ArrowRight: typeof ArrowRight;
|
|
44
|
-
declare const PhosphorIcons_Image: typeof Image;
|
|
45
49
|
declare const PhosphorIcons_ShoppingCart: typeof ShoppingCart;
|
|
46
50
|
declare const PhosphorIcons_Storefront: typeof Storefront;
|
|
47
|
-
declare const PhosphorIcons_Package: typeof Package;
|
|
48
|
-
declare const PhosphorIcons_HandBag: typeof HandBag;
|
|
49
51
|
declare const PhosphorIcons_Tag: typeof Tag;
|
|
50
|
-
declare const
|
|
51
|
-
declare const PhosphorIcons_Newspaper: typeof Newspaper;
|
|
52
|
-
declare const PhosphorIcons_Eye: typeof Eye;
|
|
52
|
+
declare const PhosphorIcons_X: typeof X;
|
|
53
53
|
declare namespace PhosphorIcons {
|
|
54
54
|
export {
|
|
55
|
+
PhosphorIcons_ArrowLeft as ArrowLeft,
|
|
56
|
+
PhosphorIcons_ArrowRight as ArrowRight,
|
|
57
|
+
PhosphorIcons_Backpack as Backpack,
|
|
58
|
+
PhosphorIcons_CaretLeft as CaretLeft,
|
|
59
|
+
PhosphorIcons_CaretRight as CaretRight,
|
|
55
60
|
PhosphorIcons_Circle as Circle,
|
|
56
61
|
PhosphorIcons_CircleNotch as CircleNotch,
|
|
57
|
-
|
|
62
|
+
PhosphorIcons_Eye as Eye,
|
|
63
|
+
PhosphorIcons_HandBag as HandBag,
|
|
64
|
+
PhosphorIcons_Image as Image,
|
|
58
65
|
PhosphorIcons_Minus as Minus,
|
|
66
|
+
PhosphorIcons_Newspaper as Newspaper,
|
|
67
|
+
PhosphorIcons_Package as Package,
|
|
59
68
|
PhosphorIcons_Plus as Plus,
|
|
60
|
-
PhosphorIcons_CaretLeft as CaretLeft,
|
|
61
|
-
PhosphorIcons_CaretRight as CaretRight,
|
|
62
|
-
PhosphorIcons_ArrowLeft as ArrowLeft,
|
|
63
|
-
PhosphorIcons_ArrowRight as ArrowRight,
|
|
64
|
-
PhosphorIcons_Image as Image,
|
|
65
69
|
PhosphorIcons_ShoppingCart as ShoppingCart,
|
|
66
70
|
PhosphorIcons_Storefront as Storefront,
|
|
67
|
-
PhosphorIcons_Package as Package,
|
|
68
|
-
PhosphorIcons_HandBag as HandBag,
|
|
69
71
|
PhosphorIcons_Tag as Tag,
|
|
70
|
-
|
|
71
|
-
PhosphorIcons_Newspaper as Newspaper,
|
|
72
|
-
PhosphorIcons_Eye as Eye,
|
|
72
|
+
PhosphorIcons_X as X,
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -126,17 +126,17 @@ declare let ModalContent: React__default.ForwardRefExoticComponent<ModalContentP
|
|
|
126
126
|
declare let ModalClose: React__default.ForwardRefExoticComponent<DialogCloseProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
127
127
|
|
|
128
128
|
declare const ModalComponents_Modal: typeof Modal;
|
|
129
|
-
declare const ModalComponents_ModalTrigger: typeof ModalTrigger;
|
|
130
|
-
declare const ModalComponents_ModalHeader: typeof ModalHeader;
|
|
131
|
-
declare const ModalComponents_ModalContent: typeof ModalContent;
|
|
132
129
|
declare const ModalComponents_ModalClose: typeof ModalClose;
|
|
130
|
+
declare const ModalComponents_ModalContent: typeof ModalContent;
|
|
131
|
+
declare const ModalComponents_ModalHeader: typeof ModalHeader;
|
|
132
|
+
declare const ModalComponents_ModalTrigger: typeof ModalTrigger;
|
|
133
133
|
declare namespace ModalComponents {
|
|
134
134
|
export {
|
|
135
135
|
ModalComponents_Modal as Modal,
|
|
136
|
-
ModalComponents_ModalTrigger as ModalTrigger,
|
|
137
|
-
ModalComponents_ModalHeader as ModalHeader,
|
|
138
|
-
ModalComponents_ModalContent as ModalContent,
|
|
139
136
|
ModalComponents_ModalClose as ModalClose,
|
|
137
|
+
ModalComponents_ModalContent as ModalContent,
|
|
138
|
+
ModalComponents_ModalHeader as ModalHeader,
|
|
139
|
+
ModalComponents_ModalTrigger as ModalTrigger,
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
|
|
@@ -176,7 +176,7 @@ declare let Components: {
|
|
|
176
176
|
declare let SliderComponents: {
|
|
177
177
|
Arrows: typeof Arrows;
|
|
178
178
|
Dots: typeof Dots;
|
|
179
|
-
ResizePlugin: keen_slider_react.KeenSliderPlugin
|
|
179
|
+
ResizePlugin: keen_slider_react.KeenSliderPlugin<{}, {}, keen_slider_react.KeenSliderHooks>;
|
|
180
180
|
AutoplayPlugin: typeof AutoplayPlugin;
|
|
181
181
|
};
|
|
182
182
|
|
package/dist/index.js
CHANGED
|
@@ -2572,8 +2572,7 @@ var WeaverseRoot = ({ context }) => {
|
|
|
2572
2572
|
suppressHydrationWarning: true,
|
|
2573
2573
|
ref: rootRef
|
|
2574
2574
|
},
|
|
2575
|
-
/* @__PURE__ */ import_react38.default.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ import_react38.default.createElement(ItemInstance, { id: context.data.rootId }))
|
|
2576
|
-
context.platformType === "react-ssr" ? /* @__PURE__ */ import_react38.default.createElement(StitchesSSR, { stitchesInstance: context.stitchesInstance }) : null
|
|
2575
|
+
/* @__PURE__ */ import_react38.default.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ import_react38.default.createElement(ItemInstance, { id: context.data.rootId }))
|
|
2577
2576
|
);
|
|
2578
2577
|
}
|
|
2579
2578
|
return null;
|
|
@@ -2614,18 +2613,6 @@ var ItemComponent = ({ instance }) => {
|
|
|
2614
2613
|
return null;
|
|
2615
2614
|
}
|
|
2616
2615
|
};
|
|
2617
|
-
var StitchesSSR = ({ stitchesInstance }) => {
|
|
2618
|
-
const stitchesCss2 = stitchesInstance.getCssText();
|
|
2619
|
-
return /* @__PURE__ */ import_react38.default.createElement(
|
|
2620
|
-
"style",
|
|
2621
|
-
{
|
|
2622
|
-
id: "stitches",
|
|
2623
|
-
"data-style": "weaverse-stitches",
|
|
2624
|
-
dangerouslySetInnerHTML: { __html: stitchesCss2 },
|
|
2625
|
-
suppressHydrationWarning: true
|
|
2626
|
-
}
|
|
2627
|
-
);
|
|
2628
|
-
};
|
|
2629
2616
|
var ItemInstance = ({ id }) => {
|
|
2630
2617
|
let context = (0, import_react38.useContext)(WeaverseContext);
|
|
2631
2618
|
let { itemInstances } = context;
|
|
@@ -2644,5 +2631,6 @@ var ItemInstance = ({ id }) => {
|
|
|
2644
2631
|
WeaverseContextConsumer,
|
|
2645
2632
|
WeaverseContextProvider,
|
|
2646
2633
|
WeaverseRoot,
|
|
2647
|
-
createRootContext
|
|
2634
|
+
createRootContext,
|
|
2635
|
+
...require("@weaverse/core")
|
|
2648
2636
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -2536,8 +2536,7 @@ var WeaverseRoot = ({ context }) => {
|
|
|
2536
2536
|
suppressHydrationWarning: true,
|
|
2537
2537
|
ref: rootRef
|
|
2538
2538
|
},
|
|
2539
|
-
/* @__PURE__ */ React30.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ React30.createElement(ItemInstance, { id: context.data.rootId }))
|
|
2540
|
-
context.platformType === "react-ssr" ? /* @__PURE__ */ React30.createElement(StitchesSSR, { stitchesInstance: context.stitchesInstance }) : null
|
|
2539
|
+
/* @__PURE__ */ React30.createElement(WeaverseContextProvider, { value: context }, /* @__PURE__ */ React30.createElement(ItemInstance, { id: context.data.rootId }))
|
|
2541
2540
|
);
|
|
2542
2541
|
}
|
|
2543
2542
|
return null;
|
|
@@ -2578,18 +2577,6 @@ var ItemComponent = ({ instance }) => {
|
|
|
2578
2577
|
return null;
|
|
2579
2578
|
}
|
|
2580
2579
|
};
|
|
2581
|
-
var StitchesSSR = ({ stitchesInstance }) => {
|
|
2582
|
-
const stitchesCss2 = stitchesInstance.getCssText();
|
|
2583
|
-
return /* @__PURE__ */ React30.createElement(
|
|
2584
|
-
"style",
|
|
2585
|
-
{
|
|
2586
|
-
id: "stitches",
|
|
2587
|
-
"data-style": "weaverse-stitches",
|
|
2588
|
-
dangerouslySetInnerHTML: { __html: stitchesCss2 },
|
|
2589
|
-
suppressHydrationWarning: true
|
|
2590
|
-
}
|
|
2591
|
-
);
|
|
2592
|
-
};
|
|
2593
2580
|
var ItemInstance = ({ id }) => {
|
|
2594
2581
|
let context = useContext6(WeaverseContext);
|
|
2595
2582
|
let { itemInstances } = context;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.19",
|
|
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.
|
|
37
|
+
"@weaverse/core": "1.0.19",
|
|
38
38
|
"clsx": "^1.2.1",
|
|
39
39
|
"keen-slider": "^6.8.5"
|
|
40
40
|
}
|
package/README.md
DELETED
|
File without changes
|