@weaverse/react 0.7.28 → 0.7.31
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 +7 -7
- package/dist/index.js +23 -4
- package/dist/index.mjs +23 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -49,10 +49,10 @@ interface WeaverseElementProps extends ReactElement {
|
|
|
49
49
|
['data-wv-id']: string;
|
|
50
50
|
children?: ReactElement | ReactElement[] | ReactNode | ReactNode[];
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
type WeaverseRootPropsType = {
|
|
53
53
|
context: Weaverse;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
type ItemComponentProps = {
|
|
56
56
|
instance: InstanceType<typeof WeaverseItemStore>;
|
|
57
57
|
};
|
|
58
58
|
interface PlaceholderProps {
|
|
@@ -114,15 +114,15 @@ interface VideoCommonProps {
|
|
|
114
114
|
autoPlay: boolean;
|
|
115
115
|
muted: boolean;
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
type VideoElementProps = VideoCommonProps & WeaverseElementProps;
|
|
118
118
|
interface YoutubeElementProps extends VideoCommonProps {
|
|
119
119
|
youtubeId: string;
|
|
120
120
|
}
|
|
121
121
|
interface VimeoElementProps extends VideoCommonProps {
|
|
122
122
|
vimeoId: string;
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
type CountdownTimeKey = 'days' | 'hours' | 'minutes' | 'seconds';
|
|
125
|
+
type CountdownTimerType = 'fixed-time' | 'evergreen';
|
|
126
126
|
interface CountdownElementProps extends WeaverseElementProps {
|
|
127
127
|
timerType: CountdownTimerType;
|
|
128
128
|
startTime: number;
|
|
@@ -133,7 +133,7 @@ interface CountdownElementProps extends WeaverseElementProps {
|
|
|
133
133
|
showLabel: boolean;
|
|
134
134
|
showColon: boolean;
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
type TimerBlockProps = {
|
|
137
137
|
label: string;
|
|
138
138
|
value: string | number;
|
|
139
139
|
};
|
|
@@ -144,7 +144,7 @@ interface InstagramElementProps extends WeaverseElementProps {
|
|
|
144
144
|
imagesPerRow: number;
|
|
145
145
|
gap: number;
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
type InstagramMedia = {
|
|
148
148
|
id: string;
|
|
149
149
|
media_type: 'IMAGE' | 'CAROUSEL_ALBUM';
|
|
150
150
|
media_url: string;
|
package/dist/index.js
CHANGED
|
@@ -73,7 +73,7 @@ var css = {
|
|
|
73
73
|
"@desktop": {
|
|
74
74
|
borderRadius: "72px",
|
|
75
75
|
border: "none",
|
|
76
|
-
backgroundColor: "#
|
|
76
|
+
backgroundColor: "#393e46",
|
|
77
77
|
color: "#fff",
|
|
78
78
|
fontSize: "13px",
|
|
79
79
|
padding: "10px 20px",
|
|
@@ -340,6 +340,7 @@ var Image = import_react5.default.forwardRef(
|
|
|
340
340
|
);
|
|
341
341
|
var css4 = {
|
|
342
342
|
"@desktop": {
|
|
343
|
+
overflow: "hidden",
|
|
343
344
|
img: {
|
|
344
345
|
width: "100%",
|
|
345
346
|
height: "100%",
|
|
@@ -385,7 +386,7 @@ var Layout = (0, import_react6.forwardRef)((props, ref) => {
|
|
|
385
386
|
"--row-size": rowSize + "px",
|
|
386
387
|
"--col-size": "calc((var(--grid-size) - calc(var(--columns) - 1) * var(--gap)) / var(--columns))"
|
|
387
388
|
};
|
|
388
|
-
return /* @__PURE__ */ import_react6.default.createElement("
|
|
389
|
+
return /* @__PURE__ */ import_react6.default.createElement("div", {
|
|
389
390
|
ref,
|
|
390
391
|
...rest,
|
|
391
392
|
style
|
|
@@ -466,7 +467,6 @@ var Map = (0, import_react7.forwardRef)((props, ref) => {
|
|
|
466
467
|
...rest
|
|
467
468
|
}, /* @__PURE__ */ import_react7.default.createElement("iframe", {
|
|
468
469
|
loading: "lazy",
|
|
469
|
-
scrolling: "no",
|
|
470
470
|
width: "100%",
|
|
471
471
|
height: "100%",
|
|
472
472
|
title: "map",
|
|
@@ -474,7 +474,18 @@ var Map = (0, import_react7.forwardRef)((props, ref) => {
|
|
|
474
474
|
style: { pointerEvents: "none" }
|
|
475
475
|
}));
|
|
476
476
|
});
|
|
477
|
-
var css6 = {
|
|
477
|
+
var css6 = {
|
|
478
|
+
"@desktop": {
|
|
479
|
+
iframe: {
|
|
480
|
+
border: "none"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"@mobile": {
|
|
484
|
+
iframe: {
|
|
485
|
+
border: "none"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
};
|
|
478
489
|
Map.defaultProps = {
|
|
479
490
|
place: "Hanoi",
|
|
480
491
|
zoom: 14
|
|
@@ -607,6 +618,14 @@ var css8 = {
|
|
|
607
618
|
height: "100%",
|
|
608
619
|
width: "100%",
|
|
609
620
|
aspectRatio: "16 / 9"
|
|
621
|
+
},
|
|
622
|
+
iframe: {
|
|
623
|
+
border: "none"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"@mobile": {
|
|
627
|
+
iframe: {
|
|
628
|
+
border: "none"
|
|
610
629
|
}
|
|
611
630
|
}
|
|
612
631
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -42,7 +42,7 @@ var css = {
|
|
|
42
42
|
"@desktop": {
|
|
43
43
|
borderRadius: "72px",
|
|
44
44
|
border: "none",
|
|
45
|
-
backgroundColor: "#
|
|
45
|
+
backgroundColor: "#393e46",
|
|
46
46
|
color: "#fff",
|
|
47
47
|
fontSize: "13px",
|
|
48
48
|
padding: "10px 20px",
|
|
@@ -309,6 +309,7 @@ var Image = React5.forwardRef(
|
|
|
309
309
|
);
|
|
310
310
|
var css4 = {
|
|
311
311
|
"@desktop": {
|
|
312
|
+
overflow: "hidden",
|
|
312
313
|
img: {
|
|
313
314
|
width: "100%",
|
|
314
315
|
height: "100%",
|
|
@@ -354,7 +355,7 @@ var Layout = forwardRef4((props, ref) => {
|
|
|
354
355
|
"--row-size": rowSize + "px",
|
|
355
356
|
"--col-size": "calc((var(--grid-size) - calc(var(--columns) - 1) * var(--gap)) / var(--columns))"
|
|
356
357
|
};
|
|
357
|
-
return /* @__PURE__ */ React6.createElement("
|
|
358
|
+
return /* @__PURE__ */ React6.createElement("div", {
|
|
358
359
|
ref,
|
|
359
360
|
...rest,
|
|
360
361
|
style
|
|
@@ -435,7 +436,6 @@ var Map = forwardRef5((props, ref) => {
|
|
|
435
436
|
...rest
|
|
436
437
|
}, /* @__PURE__ */ React7.createElement("iframe", {
|
|
437
438
|
loading: "lazy",
|
|
438
|
-
scrolling: "no",
|
|
439
439
|
width: "100%",
|
|
440
440
|
height: "100%",
|
|
441
441
|
title: "map",
|
|
@@ -443,7 +443,18 @@ var Map = forwardRef5((props, ref) => {
|
|
|
443
443
|
style: { pointerEvents: "none" }
|
|
444
444
|
}));
|
|
445
445
|
});
|
|
446
|
-
var css6 = {
|
|
446
|
+
var css6 = {
|
|
447
|
+
"@desktop": {
|
|
448
|
+
iframe: {
|
|
449
|
+
border: "none"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"@mobile": {
|
|
453
|
+
iframe: {
|
|
454
|
+
border: "none"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
};
|
|
447
458
|
Map.defaultProps = {
|
|
448
459
|
place: "Hanoi",
|
|
449
460
|
zoom: 14
|
|
@@ -576,6 +587,14 @@ var css8 = {
|
|
|
576
587
|
height: "100%",
|
|
577
588
|
width: "100%",
|
|
578
589
|
aspectRatio: "16 / 9"
|
|
590
|
+
},
|
|
591
|
+
iframe: {
|
|
592
|
+
border: "none"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"@mobile": {
|
|
596
|
+
iframe: {
|
|
597
|
+
border: "none"
|
|
579
598
|
}
|
|
580
599
|
}
|
|
581
600
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.7.
|
|
2
|
+
"version": "0.7.31",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-dialog": "^1.0.2",
|
|
35
35
|
"@stitches/react": "^1.2.8",
|
|
36
|
-
"@weaverse/core": "0.7.
|
|
37
|
-
"nuka-carousel": "^5.4.
|
|
36
|
+
"@weaverse/core": "0.7.31",
|
|
37
|
+
"nuka-carousel": "^5.4.1"
|
|
38
38
|
}
|
|
39
39
|
}
|