@xyo-network/react-share 7.6.2 → 8.0.0
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/browser/button/ShareButton.d.ts.map +1 -1
- package/dist/browser/index.mjs +218 -117
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/meta-server/live-share/HideParentsFlexbox.d.ts.map +1 -1
- package/dist/browser/out/CopyLinkStack.d.ts.map +1 -1
- package/dist/browser/out/Dialog.d.ts.map +1 -1
- package/dist/browser/out/Explanation.d.ts.map +1 -1
- package/dist/browser/out/HeadingFlexbox.d.ts.map +1 -1
- package/dist/browser/out/SocialButtonsFlexbox.d.ts.map +1 -1
- package/package.json +43 -43
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareButton.d.ts","sourceRoot":"","sources":["../../../src/button/ShareButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzD,OAAO,KAEN,MAAM,OAAO,CAAA;AAEd,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,YAAY,CAAA;KAAE,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ShareButton.d.ts","sourceRoot":"","sources":["../../../src/button/ShareButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzD,OAAO,KAEN,MAAM,OAAO,CAAA;AAEd,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,YAAY,CAAA;KAAE,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsElD,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -27,19 +27,26 @@ var ShareButton = ({
|
|
|
27
27
|
useEffect(() => {
|
|
28
28
|
setAnchorEl(anchorRef.current);
|
|
29
29
|
}, []);
|
|
30
|
-
return /* @__PURE__ */ jsxs(FlexRow, { gap: 1, children: [
|
|
30
|
+
return /* @__PURE__ */ jsxs(FlexRow, { sx: { gap: 1 }, children: [
|
|
31
31
|
/* @__PURE__ */ jsx(
|
|
32
32
|
ButtonEx,
|
|
33
33
|
{
|
|
34
34
|
variant: "text",
|
|
35
|
-
minWidth: 32,
|
|
36
35
|
size: "small",
|
|
37
36
|
disabled: !prepared,
|
|
38
37
|
onClick: () => {
|
|
39
38
|
setExpanded(true);
|
|
40
39
|
},
|
|
41
40
|
...props,
|
|
42
|
-
|
|
41
|
+
sx: [{ minWidth: 32 }, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
42
|
+
children: /* @__PURE__ */ jsx(
|
|
43
|
+
ShareIcon,
|
|
44
|
+
{
|
|
45
|
+
htmlColor: "gray",
|
|
46
|
+
ref: anchorRef,
|
|
47
|
+
sx: { fontSize: "small" }
|
|
48
|
+
}
|
|
49
|
+
)
|
|
43
50
|
}
|
|
44
51
|
),
|
|
45
52
|
/* @__PURE__ */ jsx(
|
|
@@ -56,31 +63,40 @@ var ShareButton = ({
|
|
|
56
63
|
...slot?.popover?.sx
|
|
57
64
|
},
|
|
58
65
|
...slot?.popover,
|
|
59
|
-
children: /* @__PURE__ */ jsxs(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
66
|
+
children: /* @__PURE__ */ jsxs(
|
|
67
|
+
FlexRow,
|
|
68
|
+
{
|
|
69
|
+
sx: {
|
|
70
|
+
gap: 0.5,
|
|
71
|
+
padding: 0.5
|
|
72
|
+
},
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsx(
|
|
75
|
+
LinkEx,
|
|
76
|
+
{
|
|
77
|
+
onClick: () => {
|
|
78
|
+
window.open(`https://x.com/intent/tweet?url=${encodeURIComponent(link)}`);
|
|
79
|
+
setExpanded(false);
|
|
80
|
+
},
|
|
81
|
+
sx: { lineHeight: 0 },
|
|
82
|
+
children: /* @__PURE__ */ jsx(XIcon, { sx: { fontSize: "small" } })
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ jsx(
|
|
86
|
+
LinkEx,
|
|
87
|
+
{
|
|
88
|
+
style: { color: "#4267b2" },
|
|
89
|
+
onClick: () => {
|
|
90
|
+
window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(link)}`);
|
|
91
|
+
setExpanded(false);
|
|
92
|
+
},
|
|
93
|
+
sx: { lineHeight: 0 },
|
|
94
|
+
children: /* @__PURE__ */ jsx(FacebookIcon, { sx: { fontSize: "small" } })
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
)
|
|
84
100
|
}
|
|
85
101
|
)
|
|
86
102
|
] });
|
|
@@ -143,7 +159,18 @@ var HideParentsFlexbox = ({ children, ...props }) => {
|
|
|
143
159
|
style.remove();
|
|
144
160
|
};
|
|
145
161
|
}, []);
|
|
146
|
-
return /* @__PURE__ */ jsx5(
|
|
162
|
+
return /* @__PURE__ */ jsx5(
|
|
163
|
+
FlexGrowRow,
|
|
164
|
+
{
|
|
165
|
+
id: "preview-area",
|
|
166
|
+
...props,
|
|
167
|
+
sx: [{
|
|
168
|
+
alignItems: "stretch",
|
|
169
|
+
justifyContent: "start"
|
|
170
|
+
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
171
|
+
children
|
|
172
|
+
}
|
|
173
|
+
);
|
|
147
174
|
};
|
|
148
175
|
|
|
149
176
|
// src/out/CopyLinkStack.tsx
|
|
@@ -296,36 +323,57 @@ var CopyLinkStack = ({
|
|
|
296
323
|
}
|
|
297
324
|
}, [addToXnsName, shareUrl, xnsNameProp]);
|
|
298
325
|
const [part1, xnsName, part3] = parsedXnsName || [];
|
|
299
|
-
return /* @__PURE__ */ jsxs3(
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
return /* @__PURE__ */ jsxs3(
|
|
327
|
+
Stack,
|
|
328
|
+
{
|
|
329
|
+
direction: "row",
|
|
330
|
+
...props,
|
|
331
|
+
sx: [{
|
|
332
|
+
alignItems: "center",
|
|
333
|
+
gap: 0.25
|
|
334
|
+
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
335
|
+
children: [
|
|
336
|
+
xnsName && addToXnsName ? /* @__PURE__ */ jsxs3(
|
|
337
|
+
Stack,
|
|
338
|
+
{
|
|
339
|
+
direction: "row",
|
|
340
|
+
sx: {
|
|
341
|
+
maxWidth: "100%",
|
|
342
|
+
overflowX: "auto"
|
|
343
|
+
},
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ jsx7(Typography2, { sx: { display: "inline-flex" }, children: part1 }),
|
|
346
|
+
/* @__PURE__ */ jsx7(AnimatedGradientTypography, { color1: xnsStartColor, color2: xnsEndColor, sx: { display: "inline-flex" }, children: xnsName }),
|
|
347
|
+
/* @__PURE__ */ jsx7(Typography2, { sx: { display: "inline-flex" }, children: part3 })
|
|
348
|
+
]
|
|
349
|
+
}
|
|
350
|
+
) : /* @__PURE__ */ jsx7(
|
|
351
|
+
Typography2,
|
|
352
|
+
{
|
|
353
|
+
sx: {
|
|
354
|
+
display: "inline-flex",
|
|
355
|
+
maxWidth: "100%",
|
|
356
|
+
overflow: "auto"
|
|
357
|
+
},
|
|
358
|
+
children: shareUrl
|
|
359
|
+
}
|
|
360
|
+
),
|
|
361
|
+
/* @__PURE__ */ jsx7(
|
|
362
|
+
CopyIconButton,
|
|
363
|
+
{
|
|
364
|
+
copiedLinkText,
|
|
365
|
+
copyLinkText,
|
|
366
|
+
onClickError,
|
|
367
|
+
shareLinkName,
|
|
368
|
+
shareUrl,
|
|
369
|
+
sx: { display: "inline-flex" },
|
|
370
|
+
uploadPayloads
|
|
371
|
+
}
|
|
372
|
+
),
|
|
373
|
+
error ? /* @__PURE__ */ jsx7(Tooltip2, { title: error.message, children: /* @__PURE__ */ jsx7(Cancel, { color: "error", sx: { display: "inline-flex" } }) }) : null
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
);
|
|
329
377
|
};
|
|
330
378
|
|
|
331
379
|
// src/out/CopyLinkTextField.tsx
|
|
@@ -385,18 +433,36 @@ var ShareOutDialog = ({
|
|
|
385
433
|
};
|
|
386
434
|
return /* @__PURE__ */ jsxs4(Dialog, { onClose, open, ...props, children: [
|
|
387
435
|
/* @__PURE__ */ jsx9(DialogTitle, { children: /* @__PURE__ */ jsxs4(Stack2, { direction: "row", spacing: 2, children: [
|
|
388
|
-
/* @__PURE__ */ jsxs4(
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
436
|
+
/* @__PURE__ */ jsxs4(
|
|
437
|
+
FlexGrowCol,
|
|
438
|
+
{
|
|
439
|
+
sx: {
|
|
440
|
+
alignItems: "flex-start",
|
|
441
|
+
width: "60%"
|
|
442
|
+
},
|
|
443
|
+
children: [
|
|
444
|
+
/* @__PURE__ */ jsx9(Typography3, { variant: "h5", children: title }),
|
|
445
|
+
/* @__PURE__ */ jsxs4(Typography3, { variant: "body1", children: [
|
|
446
|
+
" ",
|
|
447
|
+
subtitle
|
|
448
|
+
] })
|
|
449
|
+
]
|
|
450
|
+
}
|
|
451
|
+
),
|
|
452
|
+
/* @__PURE__ */ jsx9(
|
|
453
|
+
FlexGrowCol,
|
|
454
|
+
{
|
|
455
|
+
sx: {
|
|
456
|
+
alignItems: "flex-end",
|
|
457
|
+
width: "40%"
|
|
458
|
+
},
|
|
459
|
+
children: cardImg
|
|
460
|
+
}
|
|
461
|
+
)
|
|
396
462
|
] }) }),
|
|
397
463
|
/* @__PURE__ */ jsxs4(DialogContent, { children: [
|
|
398
464
|
shareOutDialogContent,
|
|
399
|
-
/* @__PURE__ */ jsx9(FlexCol, { alignItems: "stretch" })
|
|
465
|
+
/* @__PURE__ */ jsx9(FlexCol, { sx: { alignItems: "stretch" } })
|
|
400
466
|
] }),
|
|
401
467
|
ShareOutDialogActions ? /* @__PURE__ */ jsx9(DialogActions, { children: /* @__PURE__ */ jsx9(ShareOutDialogActions, { onClose: handleClose }) }) : null
|
|
402
468
|
] });
|
|
@@ -414,14 +480,27 @@ import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
|
414
480
|
var ShareOutExplanation = ({ toolTipTitle }) => {
|
|
415
481
|
const theme = useTheme();
|
|
416
482
|
const title = toolTipTitle ?? "In order for your data to be publicly viewable, it needs to be saved to the XYO Network Public Archivist. Public data can be seen by your friends, and XYO can generate preview images for easier sharing on social media.";
|
|
417
|
-
return /* @__PURE__ */ jsxs5(FlexGrowRow2, { alignItems: "center", children: [
|
|
418
|
-
/* @__PURE__ */ jsx10(
|
|
483
|
+
return /* @__PURE__ */ jsxs5(FlexGrowRow2, { sx: { alignItems: "center" }, children: [
|
|
484
|
+
/* @__PURE__ */ jsx10(
|
|
485
|
+
Typography4,
|
|
486
|
+
{
|
|
487
|
+
variant: "body2",
|
|
488
|
+
sx: { paddingRight: 0.5 },
|
|
489
|
+
children: "What am I sharing?"
|
|
490
|
+
}
|
|
491
|
+
),
|
|
419
492
|
/* @__PURE__ */ jsx10(
|
|
420
493
|
Tooltip3,
|
|
421
494
|
{
|
|
422
495
|
title,
|
|
423
496
|
placement: "bottom",
|
|
424
|
-
children: /* @__PURE__ */ jsx10(
|
|
497
|
+
children: /* @__PURE__ */ jsx10(
|
|
498
|
+
InfoOutlined,
|
|
499
|
+
{
|
|
500
|
+
fontSize: "small",
|
|
501
|
+
sx: { fontSize: theme.typography.caption.fontSize }
|
|
502
|
+
}
|
|
503
|
+
)
|
|
425
504
|
}
|
|
426
505
|
)
|
|
427
506
|
] });
|
|
@@ -468,11 +547,21 @@ var ShareOutHeadingFlexbox = ({
|
|
|
468
547
|
...props
|
|
469
548
|
}) => {
|
|
470
549
|
const GenerateShareLinkExplanation = "When you generate your share link, we'll make a small amount of your data public so friends can check it out!";
|
|
471
|
-
return /* @__PURE__ */ jsxs6(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
550
|
+
return /* @__PURE__ */ jsxs6(
|
|
551
|
+
FlexGrowCol2,
|
|
552
|
+
{
|
|
553
|
+
...props,
|
|
554
|
+
sx: [{
|
|
555
|
+
alignItems: "flex-start",
|
|
556
|
+
paddingBottom: 1
|
|
557
|
+
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
558
|
+
children: [
|
|
559
|
+
/* @__PURE__ */ jsx12(Typography5, { variant: "body1", gutterBottom: true, children: /* @__PURE__ */ jsx12("strong", { children: "Your Share Link" }) }),
|
|
560
|
+
/* @__PURE__ */ jsx12(Typography5, { variant: "body1", children: shareUrl ? `Use this link or the buttons below to share ${shareLinkName}` : GenerateShareLinkExplanation }),
|
|
561
|
+
children
|
|
562
|
+
]
|
|
563
|
+
}
|
|
564
|
+
);
|
|
476
565
|
};
|
|
477
566
|
|
|
478
567
|
// src/out/SocialButtonsFlexbox.tsx
|
|
@@ -503,47 +592,59 @@ var SocialButtonsFlexbox = ({
|
|
|
503
592
|
setError(e);
|
|
504
593
|
}
|
|
505
594
|
};
|
|
506
|
-
return /* @__PURE__ */ jsxs7(
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
{
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
595
|
+
return /* @__PURE__ */ jsxs7(
|
|
596
|
+
FlexGrowCol3,
|
|
597
|
+
{
|
|
598
|
+
...props,
|
|
599
|
+
sx: [{
|
|
600
|
+
alignItems: "stretch",
|
|
601
|
+
paddingTop: 2
|
|
602
|
+
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
603
|
+
children: [
|
|
604
|
+
/* @__PURE__ */ jsx13(Typography6, { variant: "body1", gutterBottom: true, children: /* @__PURE__ */ jsx13("strong", { children: "Share on Social Media" }) }),
|
|
605
|
+
/* @__PURE__ */ jsx13(
|
|
606
|
+
FlexRow2,
|
|
607
|
+
{
|
|
608
|
+
sx: {
|
|
609
|
+
gap: 0.5,
|
|
610
|
+
flexDirection: { md: "row", xs: "column" }
|
|
611
|
+
},
|
|
612
|
+
children: shareUrl ? /* @__PURE__ */ jsxs7(Fragment, { children: [
|
|
613
|
+
/* @__PURE__ */ jsx13(
|
|
614
|
+
ButtonEx2,
|
|
615
|
+
{
|
|
616
|
+
variant: "contained",
|
|
617
|
+
style: { backgroundColor: "#000", color: "#fff" },
|
|
618
|
+
busy: xLoading,
|
|
619
|
+
onClick: async () => {
|
|
620
|
+
const openUrl = () => window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(shareUrl)}`);
|
|
621
|
+
await handleClick(openUrl, "x");
|
|
622
|
+
},
|
|
623
|
+
startIcon: /* @__PURE__ */ jsx13(XTwitterSvgIcon, { sx: { width: "20px" } }),
|
|
624
|
+
children: "Share on X (Twitter)"
|
|
625
|
+
}
|
|
626
|
+
),
|
|
627
|
+
/* @__PURE__ */ jsx13(
|
|
628
|
+
ButtonEx2,
|
|
629
|
+
{
|
|
630
|
+
busy: fbLoading,
|
|
631
|
+
variant: "contained",
|
|
632
|
+
style: { backgroundColor: "#4267b2", color: "#fff" },
|
|
633
|
+
onClick: async () => {
|
|
634
|
+
const openUrl = () => window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`);
|
|
635
|
+
await handleClick(openUrl, "fb");
|
|
636
|
+
},
|
|
637
|
+
startIcon: /* @__PURE__ */ jsx13(FacebookSvgIcon, {}),
|
|
638
|
+
children: "Share on Facebook"
|
|
639
|
+
}
|
|
640
|
+
)
|
|
641
|
+
] }) : null
|
|
642
|
+
}
|
|
643
|
+
),
|
|
644
|
+
/* @__PURE__ */ jsx13(ErrorRender, { error, scope: "SocialButtonsFlexbox" })
|
|
645
|
+
]
|
|
646
|
+
}
|
|
647
|
+
);
|
|
547
648
|
};
|
|
548
649
|
export {
|
|
549
650
|
CopyLinkStack,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/button/ShareButton.tsx","../../src/icons/social/Facebook.tsx","../../src/icons/social/XTwitter.tsx","../../src/meta-server/dynamic-share/DynamicShareImage.tsx","../../src/meta-server/live-share/HideParentsFlexbox.tsx","../../src/out/CopyLinkStack.tsx","../../src/out/CopyIconButton.tsx","../../src/out/lib/AnimatedGradientTypography.tsx","../../src/out/lib/splitAroundSubstring.ts","../../src/out/CopyLinkTextField.tsx","../../src/out/Dialog.tsx","../../src/out/Explanation.tsx","../../src/out/GenerateShareLinkButton.tsx","../../src/out/HeadingFlexbox.tsx","../../src/out/SocialButtonsFlexbox.tsx"],"sourcesContent":["import {\n Facebook as FacebookIcon, Share as ShareIcon,\n X as XIcon,\n} from '@mui/icons-material'\nimport type { PopoverProps } from '@mui/material'\nimport { Popover } from '@mui/material'\nimport type { ButtonExProps } from '@xylabs/react-button'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx } from '@xylabs/react-link'\nimport React, {\n useEffect, useRef, useState,\n} from 'react'\n\nexport type ShareButtonProps = ButtonExProps & {\n prepared?: boolean\n shareLink?: string\n slot?: { popover?: PopoverProps }\n}\n\nexport const ShareButton: React.FC<ShareButtonProps> = ({\n prepared = true, shareLink, slot, ...props\n}) => {\n const [expanded, setExpanded] = useState(false)\n const anchorRef = useRef(null)\n const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null)\n const link = shareLink ?? globalThis.location.href\n\n useEffect(() => {\n setAnchorEl(anchorRef.current)\n }, [])\n\n return (\n <FlexRow gap={1}>\n <ButtonEx\n variant=\"text\"\n minWidth={32}\n size=\"small\"\n disabled={!prepared}\n onClick={() => {\n setExpanded(true)\n }}\n {...props}\n >\n <ShareIcon htmlColor=\"gray\" fontSize=\"small\" ref={anchorRef} />\n </ButtonEx>\n <Popover\n open={prepared ? expanded : false}\n anchorEl={anchorEl}\n anchorOrigin={{ vertical: 'top', horizontal: 'right' }}\n onClose={() => setExpanded(false)}\n transitionDuration={500}\n sx={{\n ml: 1, top: -4, ...slot?.popover?.sx,\n }}\n {...slot?.popover}\n >\n <FlexRow gap={0.5} padding={0.5}>\n <LinkEx\n lineHeight={0}\n onClick={() => {\n window.open(`https://x.com/intent/tweet?url=${encodeURIComponent(link)}`)\n setExpanded(false)\n }}\n >\n <XIcon fontSize=\"small\" />\n </LinkEx>\n <LinkEx\n lineHeight={0}\n style={{ color: '#4267b2' }}\n onClick={() => {\n window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(link)}`)\n setExpanded(false)\n }}\n >\n <FacebookIcon fontSize=\"small\" />\n </LinkEx>\n </FlexRow>\n </Popover>\n </FlexRow>\n )\n}\n","/* eslint-disable @stylistic/max-len */\nimport { createSvgIcon } from '@mui/material'\nimport React from 'react'\n\nexport const FacebookSvgIcon = createSvgIcon(\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"800\" width=\"1200\" viewBox=\"-204.79995 -341.33325 1774.9329 2047.9995\">\n <path d=\"M1365.333 682.667C1365.333 305.64 1059.693 0 682.667 0 305.64 0 0 305.64 0 682.667c0 340.738 249.641 623.16 576 674.373V880H402.667V682.667H576v-150.4c0-171.094 101.917-265.6 257.853-265.6 74.69 0 152.814 13.333 152.814 13.333v168h-86.083c-84.804 0-111.25 52.623-111.25 106.61v128.057h189.333L948.4 880H789.333v477.04c326.359-51.213 576-333.635 576-674.373\" fill=\"#1877f2\" />\n <path d=\"M948.4 880l30.267-197.333H789.333V554.609C789.333 500.623 815.78 448 900.584 448h86.083V280s-78.124-13.333-152.814-13.333c-155.936 0-257.853 94.506-257.853 265.6v150.4H402.667V880H576v477.04a687.805 687.805 0 00106.667 8.293c36.288 0 71.91-2.84 106.666-8.293V880H948.4\" fill=\"#fff\" />\n </svg>,\n 'Facebook',\n)\n","/* eslint-disable @stylistic/max-len */\nimport { createSvgIcon } from '@mui/material'\nimport React from 'react'\n\nexport const XTwitterSvgIcon = createSvgIcon(\n <svg viewBox=\"0 0 1200 1227\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z\" fill=\"white\" />\n </svg>,\n 'XTwitterSvgIcon',\n)\n","import React from 'react'\nimport { Helmet } from 'react-helmet'\n\n/**\n * The props for the DynamicShareImage component.\n */\nexport interface DynamicShareImageProps {\n /**\n * The URL of the share image for the page.\n */\n image: string\n}\n\n/**\n * Used in conjunction with the XY Meta Server to dynamically set the share image for a page.\n */\nexport const DynamicShareImage: React.FC<DynamicShareImageProps> = ({ image }) => {\n return (\n <Helmet>\n <meta property=\"xyo:og:image\" content={image} />\n </Helmet>\n )\n}\n","import type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport type { PropsWithChildren } from 'react'\nimport React, { useEffect } from 'react'\n\nexport const HideParentsFlexbox: React.FC<PropsWithChildren & FlexBoxProps> = ({ children, ...props }) => {\n useEffect(() => {\n const style = document.createElement('style')\n document.head.append(style)\n style.innerHTML = `\n /** make all elements hidden */\n * {\n visibility: hidden;\n }\n\n /** move the preview area to the top of the page */\n #preview-area {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n z-index: 9999;\n }\n\n /** make the preview area and all its children visible */\n #preview-area * {\n visibility: visible;\n }`\n\n return () => {\n style.remove()\n }\n }, [])\n\n return (\n <FlexGrowRow alignItems=\"stretch\" id=\"preview-area\" justifyContent=\"start\" {...props}>\n {children}\n </FlexGrowRow>\n )\n}\n","import { Cancel } from '@mui/icons-material'\nimport type { StackProps } from '@mui/material'\nimport {\n Stack,\n Tooltip,\n Typography,\n} from '@mui/material'\nimport React, {\n useCallback, useMemo, useState,\n} from 'react'\n\nimport { CopyIconButton } from './CopyIconButton.tsx'\nimport {\n AnimatedGradientTypography, type ShareLinkProps, splitAroundSubstring,\n} from './lib/index.ts'\n\nexport interface CopyLinkStackProps extends ShareLinkProps, StackProps {\n addToXnsName?: boolean\n copiedLinkText?: string\n copyLinkText?: string\n xnsEndColor?: string\n xnsStartColor?: string\n}\n\nexport const CopyLinkStack: React.FC<CopyLinkStackProps> = ({\n addToXnsName, copiedLinkText, copyLinkText, shareLinkName, shareUrl, xnsName: xnsNameProp, xnsEndColor, uploadPayloads, xnsStartColor, ...props\n}) => {\n const [error, setError] = useState<Error>()\n\n const onClickError = useCallback((error: Error) => {\n setError(error)\n }, [])\n\n const parsedXnsName = useMemo(() => {\n if (shareUrl && xnsNameProp && addToXnsName) {\n try {\n return splitAroundSubstring(shareUrl, xnsNameProp)\n } catch {\n return\n }\n }\n }, [addToXnsName, shareUrl, xnsNameProp])\n\n const [part1, xnsName, part3] = parsedXnsName || []\n\n return (\n <Stack direction=\"row\" alignItems=\"center\" gap={0.25} {...props}>\n {xnsName && addToXnsName\n ? (\n <Stack direction=\"row\" maxWidth=\"100%\" sx={{ overflowX: 'auto' }}>\n <Typography sx={{ display: 'inline-flex' }}>{part1}</Typography>\n <AnimatedGradientTypography color1={xnsStartColor} color2={xnsEndColor} sx={{ display: 'inline-flex' }}>{xnsName}</AnimatedGradientTypography>\n <Typography sx={{ display: 'inline-flex' }}>{part3}</Typography>\n </Stack>\n )\n : (\n <Typography sx={{\n display: 'inline-flex', maxWidth: '100%', overflow: 'auto',\n }}\n >\n {shareUrl}\n </Typography>\n )}\n <CopyIconButton\n copiedLinkText={copiedLinkText}\n copyLinkText={copyLinkText}\n onClickError={onClickError}\n shareLinkName={shareLinkName}\n shareUrl={shareUrl}\n sx={{ display: 'inline-flex' }}\n uploadPayloads={uploadPayloads}\n />\n {error ? <Tooltip title={error.message}><Cancel color=\"error\" sx={{ display: 'inline-flex' }} /></Tooltip> : null}\n </Stack>\n )\n}\n","import { CopyAllRounded } from '@mui/icons-material'\nimport {\n type ButtonProps, CircularProgress, IconButton, Tooltip,\n} from '@mui/material'\nimport { forget } from '@xylabs/sdk-js'\nimport React, { useState } from 'react'\n\nimport type { ShareLinkProps } from './lib/index.ts'\n\nexport interface CopyIconButtonProps extends ButtonProps, ShareLinkProps {\n onClickError?: (error: Error) => void\n}\n\nexport const CopyIconButton: React.FC<CopyIconButtonProps> = ({\n copyLinkText, copiedLinkText, onClickError, shareLinkName, shareUrl, uploadPayloads, ...props\n}) => {\n const CopyLink = copyLinkText ?? 'Copy Link'\n const Copied = copiedLinkText ?? 'Copied!'\n\n const [copyTooltipTitle, setCopyTooltipTitle] = useState(CopyLink)\n const [loading, setLoading] = useState(false)\n\n const copyToClipboard = async (link?: string) => {\n if (link) {\n try {\n setLoading(true)\n await uploadPayloads?.()\n await navigator.clipboard.writeText(link)\n setCopyTooltipTitle(Copied)\n setTimeout(() => setCopyTooltipTitle(CopyLink), 2000)\n setLoading(false)\n } catch (e) {\n setLoading(false)\n const message = 'Error copying shareUrl to clipboard'\n console.error(message, e, link)\n onClickError?.(new Error(message))\n }\n } else {\n console.warn('tried to copy shareUrl before it was generated')\n }\n }\n\n return (\n <Tooltip title={copyTooltipTitle}>\n {loading\n ? (\n <IconButton>\n <CircularProgress size=\"24px\" />\n </IconButton>\n )\n : (\n <IconButton aria-label={`copy ${shareLinkName} link`} onClick={() => forget(copyToClipboard(shareUrl))} edge=\"end\" {...props}>\n <CopyAllRounded />\n </IconButton>\n )}\n </Tooltip>\n )\n}\n","import {\n keyframes, styled, Typography,\n} from '@mui/material'\nimport type React from 'react'\n\n/**\n * Start the animation at 100% to give the gradient a left to right effect\n */\nconst moveBg = keyframes(`\n 0% {\n background-position: 100% 0%;\n }\n 100% {\n background-position: 0% 0%;\n }\n`)\n\n/**\n * Adapted from - https://codepen.io/web-dot-dev/pen/vYrGPNE\n */\nexport const AnimatedGradientTypography: React.FC<\n React.ComponentProps<typeof Typography> & { color1?: string; color2?: string }\n> = styled(Typography, { name: 'AnimatedGradientTypography' })<{ color1?: string; color2?: string }>(({\n theme, color1, color2,\n}) => {\n return {\n // Set the color variables for the gradient\n '--color-one': color1 ?? theme.vars.palette.secondary.dark,\n '--color-two': color2 ?? theme.vars.palette.primary.light,\n // set the gradient so it has the same start and end color for looping effect\n 'background': `linear-gradient(\n .25turn,\n var(--color-one),\n var(--color-two),\n var(--color-one)\n )`,\n // Set the text color to transparent so the gradient shows through\n 'color': 'transparent',\n // Clip the background to the text shape\n 'backgroundClip': 'text',\n // Set the background size to 800% so we don't see the third color initially creating the looping effect\n 'backgroundSize': '800%',\n // Set the text to bold so the gradient is more visible\n 'fontWeight': 'bold',\n // Set the animation\n '@media (prefers-reduced-motion: no-preference)': {\n animationName: moveBg,\n animationDuration: '2s',\n animationIterationCount: 'infinite',\n },\n // reset for users that prefer reduced motion\n '@media (prefers-reduced-motion)': {\n background: 'none',\n color: theme.vars.palette.text.primary,\n },\n }\n})\n","export const splitAroundSubstring = (path: string, substring: string): [string, string, string] => {\n // Find the index of the substring\n const index = path.indexOf(substring)\n\n if (index === -1) {\n throw new Error(`XNS name \"${substring}\" not found in path.`)\n }\n\n // Extract the part before the substring\n const part1 = path.slice(0, index)\n\n // The substring itself is part2\n const part2 = substring\n\n // Extract the part after the substring\n const part3 = path.slice(index + substring.length)\n\n return [part1, part2, part3]\n}\n","import type { StandardTextFieldProps } from '@mui/material'\nimport { InputAdornment, TextField } from '@mui/material'\nimport React, { useCallback, useState } from 'react'\n\nimport { CopyIconButton } from './CopyIconButton.tsx'\n\nexport interface CopyLinkTextFieldProps extends StandardTextFieldProps {\n shareLinkName?: string\n shareUrl?: string\n}\n\nexport const CopyLinkTextField: React.FC<CopyLinkTextFieldProps> = ({\n shareLinkName, shareUrl, ...props\n}) => {\n const [error, setError] = useState<Error>()\n\n const onClickError = useCallback((error?: Error) => {\n setError(error)\n }, [])\n\n return (\n <TextField\n disabled\n error={!!error}\n helperText={error?.message}\n // to override the color that appears when it's a text field, only on dark mode\n sx={{ input: { WebkitTextFillColor: 'lightgray !important' } }}\n value={shareUrl}\n {...props}\n slotProps={{\n input: {\n endAdornment: (\n <InputAdornment position=\"end\">\n <CopyIconButton shareLinkName={shareLinkName} shareUrl={shareUrl} onClickError={onClickError} />\n </InputAdornment>\n ),\n },\n }}\n />\n )\n}\n","import type { DialogProps } from '@mui/material'\nimport {\n Dialog, DialogActions, DialogContent, DialogTitle, Stack, Typography,\n} from '@mui/material'\nimport { FlexCol, FlexGrowCol } from '@xylabs/react-flexbox'\nimport type { ComponentType, ReactNode } from 'react'\nimport React from 'react'\n\nexport interface ShareOutDialogProps extends DialogProps {\n ShareOutDialogActions?: ComponentType<{ onClose?: () => void }>\n cardImg?: ReactNode\n shareOutDialogContent?: ReactNode\n subtitle?: string\n title?: string\n}\n\nexport const ShareOutDialog: React.FC<ShareOutDialogProps> = ({\n ShareOutDialogActions, cardImg, open, onClose, shareOutDialogContent, subtitle, title, ...props\n}) => {\n const handleClose = () => {\n onClose?.('', 'backdropClick')\n }\n\n return (\n <Dialog onClose={onClose} open={open} {...props}>\n <DialogTitle>\n <Stack direction=\"row\" spacing={2}>\n <FlexGrowCol alignItems=\"flex-start\" width=\"60%\">\n <Typography variant=\"h5\">{title}</Typography>\n <Typography variant=\"body1\">\n {' '}\n {subtitle}\n </Typography>\n </FlexGrowCol>\n <FlexGrowCol alignItems=\"flex-end\" width=\"40%\">\n {cardImg}\n </FlexGrowCol>\n </Stack>\n </DialogTitle>\n <DialogContent>\n {shareOutDialogContent}\n <FlexCol alignItems=\"stretch\">\n </FlexCol>\n </DialogContent>\n {ShareOutDialogActions ? <DialogActions><ShareOutDialogActions onClose={handleClose} /></DialogActions> : null}\n </Dialog>\n )\n}\n","import { InfoOutlined } from '@mui/icons-material'\nimport {\n Tooltip, Typography, useTheme,\n} from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nexport interface ShareOutExplanationProps {\n toolTipTitle?: string\n}\n\nexport const ShareOutExplanation: React.FC<ShareOutExplanationProps> = ({ toolTipTitle }) => {\n const theme = useTheme()\n // eslint-disable-next-line @stylistic/max-len\n const title = toolTipTitle ?? 'In order for your data to be publicly viewable, it needs to be saved to the XYO Network Public Archivist. Public data can be seen by your friends, and XYO can generate preview images for easier sharing on social media.'\n return (\n <FlexGrowRow alignItems=\"center\">\n <Typography variant=\"body2\" paddingRight={0.5}>\n What am I sharing?\n </Typography>\n <Tooltip\n title={title}\n placement=\"bottom\"\n >\n <InfoOutlined fontSize=\"small\" sx={{ fontSize: theme.typography.caption.fontSize }} />\n </Tooltip>\n </FlexGrowRow>\n )\n}\n","import type { ButtonProps } from '@mui/material'\nimport {\n Button, CircularProgress, styled,\n} from '@mui/material'\nimport React from 'react'\n\nexport interface GenerateShareLinkButtonProps extends ButtonProps {\n loading?: boolean\n}\n\nexport const GenerateShareLinkButton: React.FC<GenerateShareLinkButtonProps> = ({\n children = 'Generate My Share Link', loading, ...props\n}) => {\n return (\n <Button\n variant=\"contained\"\n startIcon={loading ? <StyledCircularProgress size=\"small\" /> : null}\n {...props}\n >\n {children}\n </Button>\n )\n}\n\nconst StyledCircularProgress = styled(CircularProgress, { name: 'StyledCircularProgress' })(({ theme }) => ({\n // ensure the color of the spinner is the same as the button color\n color: theme.vars.palette.primary.contrastText,\n height: '20px',\n opacity: '.87',\n width: '20px',\n}))\n","import { Typography } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nexport interface ShareOutHeadingFlexboxProps extends FlexBoxProps {\n shareLinkName?: string\n shareUrl?: string\n}\n\nexport const ShareOutHeadingFlexbox: React.FC<ShareOutHeadingFlexboxProps> = ({\n children, shareLinkName, shareUrl, ...props\n}) => {\n const GenerateShareLinkExplanation = \"When you generate your share link, we'll make a small amount of your data public so friends can check it out!\"\n\n return (\n <FlexGrowCol alignItems=\"flex-start\" paddingBottom={1} {...props}>\n <Typography variant=\"body1\" gutterBottom>\n <strong>Your Share Link</strong>\n </Typography>\n <Typography variant=\"body1\">\n {shareUrl ? `Use this link or the buttons below to share ${shareLinkName}` : GenerateShareLinkExplanation}\n </Typography>\n {children}\n </FlexGrowCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { ErrorRender } from '@xylabs/react-error'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { useState } from 'react'\n\nimport { FacebookSvgIcon, XTwitterSvgIcon } from '../icons/index.ts'\n\nexport interface SocialButtonsFlexboxProps extends FlexBoxProps {\n shareUrl?: string\n uploadPayloads?: () => Promise<void>\n}\n\nexport const SocialButtonsFlexbox: React.FC<SocialButtonsFlexboxProps> = ({\n shareUrl, uploadPayloads, ...props\n}) => {\n const [error, setError] = useState<Error>()\n const [xLoading, setXLoading] = useState(false)\n const [fbLoading, setFbLoading] = useState(false)\n\n const handleClick = async (openUrl: () => void, buttonName: 'x' | 'fb') => {\n const setLoading = buttonName === 'x' ? setXLoading : setFbLoading\n try {\n setLoading(true)\n await uploadPayloads?.()\n setLoading(false)\n openUrl()\n } catch (e) {\n setLoading(false)\n console.error('Error uploading payloads', e)\n setError(e as Error)\n }\n }\n\n return (\n <FlexGrowCol alignItems=\"stretch\" paddingTop={2} {...props}>\n <Typography variant=\"body1\" gutterBottom>\n <strong>Share on Social Media</strong>\n </Typography>\n <FlexRow\n gap={0.5}\n sx={{ flexDirection: { md: 'row', xs: 'column' } }}\n >\n {shareUrl\n ? (\n <>\n <ButtonEx\n variant=\"contained\"\n style={{ backgroundColor: '#000', color: '#fff' }}\n busy={xLoading}\n onClick={async () => {\n const openUrl = () => window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(shareUrl)}`)\n await handleClick(openUrl, 'x')\n }}\n startIcon={<XTwitterSvgIcon width=\"20px\" />}\n >\n Share on X (Twitter)\n </ButtonEx>\n <ButtonEx\n busy={fbLoading}\n variant=\"contained\"\n style={{ backgroundColor: '#4267b2', color: '#fff' }}\n onClick={async () => {\n const openUrl = () => window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`)\n await handleClick(openUrl, 'fb')\n }}\n startIcon={<FacebookSvgIcon />}\n >\n Share on Facebook\n </ButtonEx>\n </>\n )\n : null}\n </FlexRow>\n <ErrorRender error={error} scope=\"SocialButtonsFlexbox\" />\n </FlexGrowCol>\n )\n}\n"],"mappings":";AAAA;AAAA,EACE,YAAY;AAAA,EAAc,SAAS;AAAA,EACnC,KAAK;AAAA,OACA;AAEP,SAAS,eAAe;AAExB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB;AAAA,EACE;AAAA,EAAW;AAAA,EAAQ;AAAA,OACd;AAgCC,cAaA,YAbA;AAxBD,IAAM,cAA0C,CAAC;AAAA,EACtD,WAAW;AAAA,EAAM;AAAA,EAAW;AAAA,EAAM,GAAG;AACvC,MAAM;AACJ,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,YAAY,OAAO,IAAI;AAC7B,QAAM,CAAC,UAAU,WAAW,IAAI,SAA6B,IAAI;AACjE,QAAM,OAAO,aAAa,WAAW,SAAS;AAE9C,YAAU,MAAM;AACd,gBAAY,UAAU,OAAO;AAAA,EAC/B,GAAG,CAAC,CAAC;AAEL,SACE,qBAAC,WAAQ,KAAK,GACZ;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,UAAU;AAAA,QACV,MAAK;AAAA,QACL,UAAU,CAAC;AAAA,QACX,SAAS,MAAM;AACb,sBAAY,IAAI;AAAA,QAClB;AAAA,QACC,GAAG;AAAA,QAEJ,8BAAC,aAAU,WAAU,Q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AA,IACA,gBAAAA,MAAC,eAAY,OAAc,OAAM,wBAAuB;AAAA,KAC1D;AAEJ;","names":["jsx","jsxs","createSvgIcon","jsx","jsx","useEffect","jsx","Tooltip","Typography","useState","useState","jsx","jsx","jsxs","useState","error","Typography","Tooltip","useCallback","useState","jsx","useState","useCallback","error","Stack","Typography","jsx","jsxs","Tooltip","Typography","FlexGrowRow","jsx","jsxs","CircularProgress","styled","jsx","Typography","FlexGrowCol","jsx","jsxs","Typography","ButtonEx","FlexGrowCol","FlexRow","useState","jsx","jsxs","useState","FlexGrowCol","Typography","FlexRow","ButtonEx"]}
|
|
1
|
+
{"version":3,"sources":["../../src/button/ShareButton.tsx","../../src/icons/social/Facebook.tsx","../../src/icons/social/XTwitter.tsx","../../src/meta-server/dynamic-share/DynamicShareImage.tsx","../../src/meta-server/live-share/HideParentsFlexbox.tsx","../../src/out/CopyLinkStack.tsx","../../src/out/CopyIconButton.tsx","../../src/out/lib/AnimatedGradientTypography.tsx","../../src/out/lib/splitAroundSubstring.ts","../../src/out/CopyLinkTextField.tsx","../../src/out/Dialog.tsx","../../src/out/Explanation.tsx","../../src/out/GenerateShareLinkButton.tsx","../../src/out/HeadingFlexbox.tsx","../../src/out/SocialButtonsFlexbox.tsx"],"sourcesContent":["import {\n Facebook as FacebookIcon, Share as ShareIcon,\n X as XIcon,\n} from '@mui/icons-material'\nimport type { PopoverProps } from '@mui/material'\nimport { Popover } from '@mui/material'\nimport type { ButtonExProps } from '@xylabs/react-button'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx } from '@xylabs/react-link'\nimport React, {\n useEffect, useRef, useState,\n} from 'react'\n\nexport type ShareButtonProps = ButtonExProps & {\n prepared?: boolean\n shareLink?: string\n slot?: { popover?: PopoverProps }\n}\n\nexport const ShareButton: React.FC<ShareButtonProps> = ({\n prepared = true, shareLink, slot, ...props\n}) => {\n const [expanded, setExpanded] = useState(false)\n const anchorRef = useRef(null)\n const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null)\n const link = shareLink ?? globalThis.location.href\n\n useEffect(() => {\n setAnchorEl(anchorRef.current)\n }, [])\n\n return (\n <FlexRow sx={{ gap: 1 }}>\n <ButtonEx\n variant=\"text\"\n size=\"small\"\n disabled={!prepared}\n onClick={() => {\n setExpanded(true)\n }}\n {...props}\n sx={[{ minWidth: 32 }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <ShareIcon\n htmlColor=\"gray\"\n ref={anchorRef}\n sx={{ fontSize: 'small' }}\n />\n </ButtonEx>\n <Popover\n open={prepared ? expanded : false}\n anchorEl={anchorEl}\n anchorOrigin={{ vertical: 'top', horizontal: 'right' }}\n onClose={() => setExpanded(false)}\n transitionDuration={500}\n sx={{\n ml: 1, top: -4, ...slot?.popover?.sx,\n }}\n {...slot?.popover}\n >\n <FlexRow\n sx={{\n gap: 0.5,\n padding: 0.5,\n }}\n >\n <LinkEx\n onClick={() => {\n window.open(`https://x.com/intent/tweet?url=${encodeURIComponent(link)}`)\n setExpanded(false)\n }}\n sx={{ lineHeight: 0 }}\n >\n <XIcon sx={{ fontSize: 'small' }} />\n </LinkEx>\n <LinkEx\n style={{ color: '#4267b2' }}\n onClick={() => {\n window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(link)}`)\n setExpanded(false)\n }}\n sx={{ lineHeight: 0 }}\n >\n <FacebookIcon sx={{ fontSize: 'small' }} />\n </LinkEx>\n </FlexRow>\n </Popover>\n </FlexRow>\n )\n}\n","/* eslint-disable @stylistic/max-len */\nimport { createSvgIcon } from '@mui/material'\nimport React from 'react'\n\nexport const FacebookSvgIcon = createSvgIcon(\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"800\" width=\"1200\" viewBox=\"-204.79995 -341.33325 1774.9329 2047.9995\">\n <path d=\"M1365.333 682.667C1365.333 305.64 1059.693 0 682.667 0 305.64 0 0 305.64 0 682.667c0 340.738 249.641 623.16 576 674.373V880H402.667V682.667H576v-150.4c0-171.094 101.917-265.6 257.853-265.6 74.69 0 152.814 13.333 152.814 13.333v168h-86.083c-84.804 0-111.25 52.623-111.25 106.61v128.057h189.333L948.4 880H789.333v477.04c326.359-51.213 576-333.635 576-674.373\" fill=\"#1877f2\" />\n <path d=\"M948.4 880l30.267-197.333H789.333V554.609C789.333 500.623 815.78 448 900.584 448h86.083V280s-78.124-13.333-152.814-13.333c-155.936 0-257.853 94.506-257.853 265.6v150.4H402.667V880H576v477.04a687.805 687.805 0 00106.667 8.293c36.288 0 71.91-2.84 106.666-8.293V880H948.4\" fill=\"#fff\" />\n </svg>,\n 'Facebook',\n)\n","/* eslint-disable @stylistic/max-len */\nimport { createSvgIcon } from '@mui/material'\nimport React from 'react'\n\nexport const XTwitterSvgIcon = createSvgIcon(\n <svg viewBox=\"0 0 1200 1227\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z\" fill=\"white\" />\n </svg>,\n 'XTwitterSvgIcon',\n)\n","import React from 'react'\nimport { Helmet } from 'react-helmet'\n\n/**\n * The props for the DynamicShareImage component.\n */\nexport interface DynamicShareImageProps {\n /**\n * The URL of the share image for the page.\n */\n image: string\n}\n\n/**\n * Used in conjunction with the XY Meta Server to dynamically set the share image for a page.\n */\nexport const DynamicShareImage: React.FC<DynamicShareImageProps> = ({ image }) => {\n return (\n <Helmet>\n <meta property=\"xyo:og:image\" content={image} />\n </Helmet>\n )\n}\n","import type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport type { PropsWithChildren } from 'react'\nimport React, { useEffect } from 'react'\n\nexport const HideParentsFlexbox: React.FC<PropsWithChildren & FlexBoxProps> = ({ children, ...props }) => {\n useEffect(() => {\n const style = document.createElement('style')\n document.head.append(style)\n style.innerHTML = `\n /** make all elements hidden */\n * {\n visibility: hidden;\n }\n\n /** move the preview area to the top of the page */\n #preview-area {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n z-index: 9999;\n }\n\n /** make the preview area and all its children visible */\n #preview-area * {\n visibility: visible;\n }`\n\n return () => {\n style.remove()\n }\n }, [])\n\n return (\n <FlexGrowRow\n id=\"preview-area\"\n {...props}\n sx={[{\n alignItems: 'stretch',\n justifyContent: 'start',\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n {children}\n </FlexGrowRow>\n )\n}\n","import { Cancel } from '@mui/icons-material'\nimport type { StackProps } from '@mui/material'\nimport {\n Stack,\n Tooltip,\n Typography,\n} from '@mui/material'\nimport React, {\n useCallback, useMemo, useState,\n} from 'react'\n\nimport { CopyIconButton } from './CopyIconButton.tsx'\nimport {\n AnimatedGradientTypography, type ShareLinkProps, splitAroundSubstring,\n} from './lib/index.ts'\n\nexport interface CopyLinkStackProps extends ShareLinkProps, StackProps {\n addToXnsName?: boolean\n copiedLinkText?: string\n copyLinkText?: string\n xnsEndColor?: string\n xnsStartColor?: string\n}\n\nexport const CopyLinkStack: React.FC<CopyLinkStackProps> = ({\n addToXnsName, copiedLinkText, copyLinkText, shareLinkName, shareUrl, xnsName: xnsNameProp, xnsEndColor, uploadPayloads, xnsStartColor, ...props\n}) => {\n const [error, setError] = useState<Error>()\n\n const onClickError = useCallback((error: Error) => {\n setError(error)\n }, [])\n\n const parsedXnsName = useMemo(() => {\n if (shareUrl && xnsNameProp && addToXnsName) {\n try {\n return splitAroundSubstring(shareUrl, xnsNameProp)\n } catch {\n return\n }\n }\n }, [addToXnsName, shareUrl, xnsNameProp])\n\n const [part1, xnsName, part3] = parsedXnsName || []\n\n return (\n <Stack\n direction=\"row\"\n {...props}\n sx={[{\n alignItems: 'center',\n gap: 0.25,\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n {xnsName && addToXnsName\n ? (\n <Stack\n direction=\"row\"\n sx={{\n maxWidth: '100%',\n overflowX: 'auto',\n }}\n >\n <Typography sx={{ display: 'inline-flex' }}>{part1}</Typography>\n <AnimatedGradientTypography color1={xnsStartColor} color2={xnsEndColor} sx={{ display: 'inline-flex' }}>{xnsName}</AnimatedGradientTypography>\n <Typography sx={{ display: 'inline-flex' }}>{part3}</Typography>\n </Stack>\n )\n : (\n <Typography sx={{\n display: 'inline-flex', maxWidth: '100%', overflow: 'auto',\n }}\n >\n {shareUrl}\n </Typography>\n )}\n <CopyIconButton\n copiedLinkText={copiedLinkText}\n copyLinkText={copyLinkText}\n onClickError={onClickError}\n shareLinkName={shareLinkName}\n shareUrl={shareUrl}\n sx={{ display: 'inline-flex' }}\n uploadPayloads={uploadPayloads}\n />\n {error ? <Tooltip title={error.message}><Cancel color=\"error\" sx={{ display: 'inline-flex' }} /></Tooltip> : null}\n </Stack>\n )\n}\n","import { CopyAllRounded } from '@mui/icons-material'\nimport {\n type ButtonProps, CircularProgress, IconButton, Tooltip,\n} from '@mui/material'\nimport { forget } from '@xylabs/sdk-js'\nimport React, { useState } from 'react'\n\nimport type { ShareLinkProps } from './lib/index.ts'\n\nexport interface CopyIconButtonProps extends ButtonProps, ShareLinkProps {\n onClickError?: (error: Error) => void\n}\n\nexport const CopyIconButton: React.FC<CopyIconButtonProps> = ({\n copyLinkText, copiedLinkText, onClickError, shareLinkName, shareUrl, uploadPayloads, ...props\n}) => {\n const CopyLink = copyLinkText ?? 'Copy Link'\n const Copied = copiedLinkText ?? 'Copied!'\n\n const [copyTooltipTitle, setCopyTooltipTitle] = useState(CopyLink)\n const [loading, setLoading] = useState(false)\n\n const copyToClipboard = async (link?: string) => {\n if (link) {\n try {\n setLoading(true)\n await uploadPayloads?.()\n await navigator.clipboard.writeText(link)\n setCopyTooltipTitle(Copied)\n setTimeout(() => setCopyTooltipTitle(CopyLink), 2000)\n setLoading(false)\n } catch (e) {\n setLoading(false)\n const message = 'Error copying shareUrl to clipboard'\n console.error(message, e, link)\n onClickError?.(new Error(message))\n }\n } else {\n console.warn('tried to copy shareUrl before it was generated')\n }\n }\n\n return (\n <Tooltip title={copyTooltipTitle}>\n {loading\n ? (\n <IconButton>\n <CircularProgress size=\"24px\" />\n </IconButton>\n )\n : (\n <IconButton aria-label={`copy ${shareLinkName} link`} onClick={() => forget(copyToClipboard(shareUrl))} edge=\"end\" {...props}>\n <CopyAllRounded />\n </IconButton>\n )}\n </Tooltip>\n )\n}\n","import {\n keyframes, styled, Typography,\n} from '@mui/material'\nimport type React from 'react'\n\n/**\n * Start the animation at 100% to give the gradient a left to right effect\n */\nconst moveBg = keyframes(`\n 0% {\n background-position: 100% 0%;\n }\n 100% {\n background-position: 0% 0%;\n }\n`)\n\n/**\n * Adapted from - https://codepen.io/web-dot-dev/pen/vYrGPNE\n */\nexport const AnimatedGradientTypography: React.FC<\n React.ComponentProps<typeof Typography> & { color1?: string; color2?: string }\n> = styled(Typography, { name: 'AnimatedGradientTypography' })<{ color1?: string; color2?: string }>(({\n theme, color1, color2,\n}) => {\n return {\n // Set the color variables for the gradient\n '--color-one': color1 ?? theme.vars.palette.secondary.dark,\n '--color-two': color2 ?? theme.vars.palette.primary.light,\n // set the gradient so it has the same start and end color for looping effect\n 'background': `linear-gradient(\n .25turn,\n var(--color-one),\n var(--color-two),\n var(--color-one)\n )`,\n // Set the text color to transparent so the gradient shows through\n 'color': 'transparent',\n // Clip the background to the text shape\n 'backgroundClip': 'text',\n // Set the background size to 800% so we don't see the third color initially creating the looping effect\n 'backgroundSize': '800%',\n // Set the text to bold so the gradient is more visible\n 'fontWeight': 'bold',\n // Set the animation\n '@media (prefers-reduced-motion: no-preference)': {\n animationName: moveBg,\n animationDuration: '2s',\n animationIterationCount: 'infinite',\n },\n // reset for users that prefer reduced motion\n '@media (prefers-reduced-motion)': {\n background: 'none',\n color: theme.vars.palette.text.primary,\n },\n }\n})\n","export const splitAroundSubstring = (path: string, substring: string): [string, string, string] => {\n // Find the index of the substring\n const index = path.indexOf(substring)\n\n if (index === -1) {\n throw new Error(`XNS name \"${substring}\" not found in path.`)\n }\n\n // Extract the part before the substring\n const part1 = path.slice(0, index)\n\n // The substring itself is part2\n const part2 = substring\n\n // Extract the part after the substring\n const part3 = path.slice(index + substring.length)\n\n return [part1, part2, part3]\n}\n","import type { StandardTextFieldProps } from '@mui/material'\nimport { InputAdornment, TextField } from '@mui/material'\nimport React, { useCallback, useState } from 'react'\n\nimport { CopyIconButton } from './CopyIconButton.tsx'\n\nexport interface CopyLinkTextFieldProps extends StandardTextFieldProps {\n shareLinkName?: string\n shareUrl?: string\n}\n\nexport const CopyLinkTextField: React.FC<CopyLinkTextFieldProps> = ({\n shareLinkName, shareUrl, ...props\n}) => {\n const [error, setError] = useState<Error>()\n\n const onClickError = useCallback((error?: Error) => {\n setError(error)\n }, [])\n\n return (\n <TextField\n disabled\n error={!!error}\n helperText={error?.message}\n // to override the color that appears when it's a text field, only on dark mode\n sx={{ input: { WebkitTextFillColor: 'lightgray !important' } }}\n value={shareUrl}\n {...props}\n slotProps={{\n input: {\n endAdornment: (\n <InputAdornment position=\"end\">\n <CopyIconButton shareLinkName={shareLinkName} shareUrl={shareUrl} onClickError={onClickError} />\n </InputAdornment>\n ),\n },\n }}\n />\n )\n}\n","import type { DialogProps } from '@mui/material'\nimport {\n Dialog, DialogActions, DialogContent, DialogTitle, Stack, Typography,\n} from '@mui/material'\nimport { FlexCol, FlexGrowCol } from '@xylabs/react-flexbox'\nimport type { ComponentType, ReactNode } from 'react'\nimport React from 'react'\n\nexport interface ShareOutDialogProps extends DialogProps {\n ShareOutDialogActions?: ComponentType<{ onClose?: () => void }>\n cardImg?: ReactNode\n shareOutDialogContent?: ReactNode\n subtitle?: string\n title?: string\n}\n\nexport const ShareOutDialog: React.FC<ShareOutDialogProps> = ({\n ShareOutDialogActions, cardImg, open, onClose, shareOutDialogContent, subtitle, title, ...props\n}) => {\n const handleClose = () => {\n onClose?.('', 'backdropClick')\n }\n\n return (\n <Dialog onClose={onClose} open={open} {...props}>\n <DialogTitle>\n <Stack direction=\"row\" spacing={2}>\n <FlexGrowCol\n sx={{\n alignItems: 'flex-start',\n width: '60%',\n }}\n >\n <Typography variant=\"h5\">{title}</Typography>\n <Typography variant=\"body1\">\n {' '}\n {subtitle}\n </Typography>\n </FlexGrowCol>\n <FlexGrowCol\n sx={{\n alignItems: 'flex-end',\n width: '40%',\n }}\n >\n {cardImg}\n </FlexGrowCol>\n </Stack>\n </DialogTitle>\n <DialogContent>\n {shareOutDialogContent}\n <FlexCol sx={{ alignItems: 'stretch' }}>\n </FlexCol>\n </DialogContent>\n {ShareOutDialogActions ? <DialogActions><ShareOutDialogActions onClose={handleClose} /></DialogActions> : null}\n </Dialog>\n )\n}\n","import { InfoOutlined } from '@mui/icons-material'\nimport {\n Tooltip, Typography, useTheme,\n} from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nexport interface ShareOutExplanationProps {\n toolTipTitle?: string\n}\n\nexport const ShareOutExplanation: React.FC<ShareOutExplanationProps> = ({ toolTipTitle }) => {\n const theme = useTheme()\n // eslint-disable-next-line @stylistic/max-len\n const title = toolTipTitle ?? 'In order for your data to be publicly viewable, it needs to be saved to the XYO Network Public Archivist. Public data can be seen by your friends, and XYO can generate preview images for easier sharing on social media.'\n return (\n <FlexGrowRow sx={{ alignItems: 'center' }}>\n <Typography\n variant=\"body2\"\n sx={{ paddingRight: 0.5 }}\n >\n What am I sharing?\n </Typography>\n <Tooltip\n title={title}\n placement=\"bottom\"\n >\n <InfoOutlined\n fontSize=\"small\"\n sx={{ fontSize: theme.typography.caption.fontSize }}\n />\n </Tooltip>\n </FlexGrowRow>\n )\n}\n","import type { ButtonProps } from '@mui/material'\nimport {\n Button, CircularProgress, styled,\n} from '@mui/material'\nimport React from 'react'\n\nexport interface GenerateShareLinkButtonProps extends ButtonProps {\n loading?: boolean\n}\n\nexport const GenerateShareLinkButton: React.FC<GenerateShareLinkButtonProps> = ({\n children = 'Generate My Share Link', loading, ...props\n}) => {\n return (\n <Button\n variant=\"contained\"\n startIcon={loading ? <StyledCircularProgress size=\"small\" /> : null}\n {...props}\n >\n {children}\n </Button>\n )\n}\n\nconst StyledCircularProgress = styled(CircularProgress, { name: 'StyledCircularProgress' })(({ theme }) => ({\n // ensure the color of the spinner is the same as the button color\n color: theme.vars.palette.primary.contrastText,\n height: '20px',\n opacity: '.87',\n width: '20px',\n}))\n","import { Typography } from '@mui/material'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport React from 'react'\n\nexport interface ShareOutHeadingFlexboxProps extends FlexBoxProps {\n shareLinkName?: string\n shareUrl?: string\n}\n\nexport const ShareOutHeadingFlexbox: React.FC<ShareOutHeadingFlexboxProps> = ({\n children, shareLinkName, shareUrl, ...props\n}) => {\n const GenerateShareLinkExplanation = \"When you generate your share link, we'll make a small amount of your data public so friends can check it out!\"\n\n return (\n <FlexGrowCol\n {...props}\n sx={[{\n alignItems: 'flex-start',\n paddingBottom: 1,\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <Typography variant=\"body1\" gutterBottom>\n <strong>Your Share Link</strong>\n </Typography>\n <Typography variant=\"body1\">\n {shareUrl ? `Use this link or the buttons below to share ${shareLinkName}` : GenerateShareLinkExplanation}\n </Typography>\n {children}\n </FlexGrowCol>\n )\n}\n","import { Typography } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { ErrorRender } from '@xylabs/react-error'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { useState } from 'react'\n\nimport { FacebookSvgIcon, XTwitterSvgIcon } from '../icons/index.ts'\n\nexport interface SocialButtonsFlexboxProps extends FlexBoxProps {\n shareUrl?: string\n uploadPayloads?: () => Promise<void>\n}\n\nexport const SocialButtonsFlexbox: React.FC<SocialButtonsFlexboxProps> = ({\n shareUrl, uploadPayloads, ...props\n}) => {\n const [error, setError] = useState<Error>()\n const [xLoading, setXLoading] = useState(false)\n const [fbLoading, setFbLoading] = useState(false)\n\n const handleClick = async (openUrl: () => void, buttonName: 'x' | 'fb') => {\n const setLoading = buttonName === 'x' ? setXLoading : setFbLoading\n try {\n setLoading(true)\n await uploadPayloads?.()\n setLoading(false)\n openUrl()\n } catch (e) {\n setLoading(false)\n console.error('Error uploading payloads', e)\n setError(e as Error)\n }\n }\n\n return (\n <FlexGrowCol\n {...props}\n sx={[{\n alignItems: 'stretch',\n paddingTop: 2,\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <Typography variant=\"body1\" gutterBottom>\n <strong>Share on Social Media</strong>\n </Typography>\n <FlexRow\n sx={{\n gap: 0.5,\n flexDirection: { md: 'row', xs: 'column' },\n }}\n >\n {shareUrl\n ? (\n <>\n <ButtonEx\n variant=\"contained\"\n style={{ backgroundColor: '#000', color: '#fff' }}\n busy={xLoading}\n onClick={async () => {\n const openUrl = () => window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(shareUrl)}`)\n await handleClick(openUrl, 'x')\n }}\n startIcon={(\n <XTwitterSvgIcon sx={{ width: '20px' }} />\n )}\n >\n Share on X (Twitter)\n </ButtonEx>\n <ButtonEx\n busy={fbLoading}\n variant=\"contained\"\n style={{ backgroundColor: '#4267b2', color: '#fff' }}\n onClick={async () => {\n const openUrl = () => window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`)\n await handleClick(openUrl, 'fb')\n }}\n startIcon={<FacebookSvgIcon />}\n >\n Share on Facebook\n </ButtonEx>\n </>\n )\n : null}\n </FlexRow>\n <ErrorRender error={error} scope=\"SocialButtonsFlexbox\" />\n </FlexGrowCol>\n )\n}\n"],"mappings":";AAAA;AAAA,EACE,YAAY;AAAA,EAAc,SAAS;AAAA,EACnC,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Ae,EAAE,IAAI,OAAO,IAAI,SAAS;AAAA,YAC3C;AAAA,YAEC,qBAEK,gBAAAJ,MAAA,YACE;AAAA,8BAAAD;AAAA,gBAACM;AAAA,gBAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,OAAO,EAAE,iBAAiB,QAAQ,OAAO,OAAO;AAAA,kBAChD,MAAM;AAAA,kBACN,SAAS,YAAY;AACnB,0BAAM,UAAU,MAAM,OAAO,KAAK,wCAAwC,mBAAmB,QAAQ,CAAC,EAAE;AACxG,0BAAM,YAAY,SAAS,GAAG;AAAA,kBAChC;AAAA,kBACA,WACE,gBAAAN,MAAC,mBAAgB,IAAI,EAAE,OAAO,OAAO,GAAG;AAAA,kBAE3C;AAAA;AAAA,cAED;AAAA,cACA,gBAAAA;AAAA,gBAACM;AAAA,gBAAA;AAAA,kBACC,MAAM;AAAA,kBACN,SAAQ;AAAA,kBACR,OAAO,EAAE,iBAAiB,WAAW,OAAO,OAAO;AAAA,kBACnD,SAAS,YAAY;AACnB,0BAAM,UAAU,MAAM,OAAO,KAAK,gDAAgD,mBAAmB,QAAQ,CAAC,EAAE;AAChH,0BAAM,YAAY,SAAS,IAAI;AAAA,kBACjC;AAAA,kBACA,WAAW,gBAAAN,MAAC,mBAAgB;AAAA,kBAC7B;AAAA;AAAA,cAED;AAAA,eACF,IAEF;AAAA;AAAA,QACN;AAAA,QACA,gBAAAA,MAAC,eAAY,OAAc,OAAM,wBAAuB;AAAA;AAAA;AAAA,EAC1D;AAEJ;","names":["jsx","jsxs","createSvgIcon","jsx","jsx","useEffect","jsx","Tooltip","Typography","useState","useState","jsx","jsx","jsxs","useState","error","Typography","Tooltip","useCallback","useState","jsx","useState","useCallback","error","Stack","Typography","jsx","jsxs","Tooltip","Typography","FlexGrowRow","jsx","jsxs","CircularProgress","styled","jsx","Typography","FlexGrowCol","jsx","jsxs","Typography","ButtonEx","FlexGrowCol","FlexRow","useState","jsx","jsxs","useState","FlexGrowCol","Typography","FlexRow","ButtonEx"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HideParentsFlexbox.d.ts","sourceRoot":"","sources":["../../../../src/meta-server/live-share/HideParentsFlexbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAoB,MAAM,OAAO,CAAA;AAExC,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"HideParentsFlexbox.d.ts","sourceRoot":"","sources":["../../../../src/meta-server/live-share/HideParentsFlexbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAoB,MAAM,OAAO,CAAA;AAExC,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,YAAY,CAyCzE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyLinkStack.d.ts","sourceRoot":"","sources":["../../../src/out/CopyLinkStack.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/C,OAAO,KAEN,MAAM,OAAO,CAAA;AAGd,OAAO,EACuB,KAAK,cAAc,EAChD,MAAM,gBAAgB,CAAA;AAEvB,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,UAAU;IACpE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"CopyLinkStack.d.ts","sourceRoot":"","sources":["../../../src/out/CopyLinkStack.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/C,OAAO,KAEN,MAAM,OAAO,CAAA;AAGd,OAAO,EACuB,KAAK,cAAc,EAChD,MAAM,gBAAgB,CAAA;AAEvB,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,UAAU;IACpE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgEtD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/out/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAKhD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,qBAAqB,CAAC,EAAE,aAAa,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAA;IAC/D,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,qBAAqB,CAAC,EAAE,SAAS,CAAA;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/out/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAKhD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,qBAAqB,CAAC,EAAE,aAAa,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAA;IAC/D,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,qBAAqB,CAAC,EAAE,SAAS,CAAA;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyCxD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Explanation.d.ts","sourceRoot":"","sources":["../../../src/out/Explanation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"Explanation.d.ts","sourceRoot":"","sources":["../../../src/out/Explanation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAuBlE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingFlexbox.d.ts","sourceRoot":"","sources":["../../../src/out/HeadingFlexbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,
|
|
1
|
+
{"version":3,"file":"HeadingFlexbox.d.ts","sourceRoot":"","sources":["../../../src/out/HeadingFlexbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAsBxE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialButtonsFlexbox.d.ts","sourceRoot":"","sources":["../../../src/out/SocialButtonsFlexbox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CACrC;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"SocialButtonsFlexbox.d.ts","sourceRoot":"","sources":["../../../src/out/SocialButtonsFlexbox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CACrC;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA0EpE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-share",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,23 +41,23 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@mui/icons-material": "
|
|
45
|
-
"@mui/material": "
|
|
44
|
+
"@mui/icons-material": "~9.0",
|
|
45
|
+
"@mui/material": "~9.0",
|
|
46
46
|
"@opentelemetry/api": "^1.9.1",
|
|
47
47
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
48
48
|
"@storybook/react-vite": "~10.3.6",
|
|
49
49
|
"@types/react": "^19.2.14",
|
|
50
50
|
"@types/react-helmet": "~6.1.11",
|
|
51
|
-
"@xylabs/pixel": "~5.1.
|
|
52
|
-
"@xylabs/react-button": "~
|
|
53
|
-
"@xylabs/react-error": "~
|
|
54
|
-
"@xylabs/react-flexbox": "~
|
|
55
|
-
"@xylabs/react-link": "~
|
|
56
|
-
"@xylabs/sdk-js": "^5.1.
|
|
57
|
-
"@xylabs/toolchain": "~7.13.
|
|
58
|
-
"@xylabs/tsconfig": "^7.13.
|
|
59
|
-
"@xylabs/tsconfig-dom": "^7.13.
|
|
60
|
-
"@xylabs/tsconfig-react": "~7.13.
|
|
51
|
+
"@xylabs/pixel": "~5.1.2",
|
|
52
|
+
"@xylabs/react-button": "~8.0",
|
|
53
|
+
"@xylabs/react-error": "~8.0",
|
|
54
|
+
"@xylabs/react-flexbox": "~8.0",
|
|
55
|
+
"@xylabs/react-link": "~8.0",
|
|
56
|
+
"@xylabs/sdk-js": "^5.1.2",
|
|
57
|
+
"@xylabs/toolchain": "~7.13.22",
|
|
58
|
+
"@xylabs/tsconfig": "^7.13.22",
|
|
59
|
+
"@xylabs/tsconfig-dom": "^7.13.22",
|
|
60
|
+
"@xylabs/tsconfig-react": "~7.13.22",
|
|
61
61
|
"async-mutex": "^0.5.0",
|
|
62
62
|
"bn.js": "^5.2.3",
|
|
63
63
|
"bowser": "^2.14.1",
|
|
@@ -70,44 +70,44 @@
|
|
|
70
70
|
"mixpanel-browser": "~2.78.0",
|
|
71
71
|
"pako": "^2.1.0",
|
|
72
72
|
"query-string": "~9.3.1",
|
|
73
|
-
"react": "^19.2.
|
|
74
|
-
"react-dom": "^19.2.
|
|
73
|
+
"react": "^19.2.6",
|
|
74
|
+
"react-dom": "^19.2.6",
|
|
75
75
|
"react-helmet": "~6.1.0",
|
|
76
76
|
"react-router-dom": "^7.15.0",
|
|
77
77
|
"spark-md5": "~3.0.2",
|
|
78
78
|
"storybook": "^10.3.6",
|
|
79
79
|
"typescript": "^5.9.3",
|
|
80
|
-
"vite": "^8.0.
|
|
80
|
+
"vite": "^8.0.11",
|
|
81
81
|
"zod": "^4.4.3"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@mui/icons-material": "
|
|
85
|
-
"@mui/material": "
|
|
86
|
-
"@opentelemetry/api": "
|
|
87
|
-
"@opentelemetry/sdk-trace-base": "
|
|
88
|
-
"@xylabs/pixel": "
|
|
89
|
-
"@xylabs/react-button": "
|
|
90
|
-
"@xylabs/react-error": "
|
|
91
|
-
"@xylabs/react-flexbox": "
|
|
92
|
-
"@xylabs/react-link": "
|
|
93
|
-
"@xylabs/sdk-js": "
|
|
94
|
-
"async-mutex": "
|
|
95
|
-
"bn.js": "
|
|
96
|
-
"bowser": "
|
|
97
|
-
"buffer": "
|
|
98
|
-
"chalk": "
|
|
99
|
-
"ethers": "
|
|
100
|
-
"fast-deep-equal": "
|
|
101
|
-
"js-cookie": "
|
|
102
|
-
"mixpanel-browser": "
|
|
103
|
-
"pako": "
|
|
104
|
-
"query-string": "
|
|
105
|
-
"react": "
|
|
106
|
-
"react-dom": "
|
|
107
|
-
"react-helmet": "
|
|
108
|
-
"react-router-dom": "
|
|
109
|
-
"spark-md5": "
|
|
110
|
-
"zod": "
|
|
84
|
+
"@mui/icons-material": "~9.0",
|
|
85
|
+
"@mui/material": "~9.0",
|
|
86
|
+
"@opentelemetry/api": "^1.9",
|
|
87
|
+
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
88
|
+
"@xylabs/pixel": "~5.1",
|
|
89
|
+
"@xylabs/react-button": "~8.0",
|
|
90
|
+
"@xylabs/react-error": "~8.0",
|
|
91
|
+
"@xylabs/react-flexbox": "~8.0",
|
|
92
|
+
"@xylabs/react-link": "~8.0",
|
|
93
|
+
"@xylabs/sdk-js": "^5.1",
|
|
94
|
+
"async-mutex": "^0.5",
|
|
95
|
+
"bn.js": "^5.2",
|
|
96
|
+
"bowser": "^2.14",
|
|
97
|
+
"buffer": "^6.0",
|
|
98
|
+
"chalk": "^5.6",
|
|
99
|
+
"ethers": "^6.16",
|
|
100
|
+
"fast-deep-equal": "~3.1",
|
|
101
|
+
"js-cookie": "~3.0",
|
|
102
|
+
"mixpanel-browser": "~2.78",
|
|
103
|
+
"pako": "^2.1",
|
|
104
|
+
"query-string": "~9.3",
|
|
105
|
+
"react": "^19.2",
|
|
106
|
+
"react-dom": "^19.2",
|
|
107
|
+
"react-helmet": "~6.1",
|
|
108
|
+
"react-router-dom": "^7.15",
|
|
109
|
+
"spark-md5": "~3.0",
|
|
110
|
+
"zod": "^4.4"
|
|
111
111
|
},
|
|
112
112
|
"publishConfig": {
|
|
113
113
|
"access": "public"
|