@xyo-network/react-share 8.0.0 → 9.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/index.mjs
CHANGED
|
@@ -122,16 +122,12 @@ var XTwitterSvgIcon = createSvgIcon2(
|
|
|
122
122
|
);
|
|
123
123
|
|
|
124
124
|
// src/meta-server/dynamic-share/DynamicShareImage.tsx
|
|
125
|
-
|
|
126
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
127
|
-
var DynamicShareImage = ({ image }) => {
|
|
128
|
-
return /* @__PURE__ */ jsx4(Helmet, { children: /* @__PURE__ */ jsx4("meta", { property: "xyo:og:image", content: image }) });
|
|
129
|
-
};
|
|
125
|
+
var DynamicShareImage = () => null;
|
|
130
126
|
|
|
131
127
|
// src/meta-server/live-share/HideParentsFlexbox.tsx
|
|
132
128
|
import { FlexGrowRow } from "@xylabs/react-flexbox";
|
|
133
129
|
import { useEffect as useEffect2 } from "react";
|
|
134
|
-
import { jsx as
|
|
130
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
135
131
|
var HideParentsFlexbox = ({ children, ...props }) => {
|
|
136
132
|
useEffect2(() => {
|
|
137
133
|
const style = document.createElement("style");
|
|
@@ -159,7 +155,7 @@ var HideParentsFlexbox = ({ children, ...props }) => {
|
|
|
159
155
|
style.remove();
|
|
160
156
|
};
|
|
161
157
|
}, []);
|
|
162
|
-
return /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ jsx4(
|
|
163
159
|
FlexGrowRow,
|
|
164
160
|
{
|
|
165
161
|
id: "preview-area",
|
|
@@ -195,7 +191,7 @@ import {
|
|
|
195
191
|
} from "@mui/material";
|
|
196
192
|
import { forget } from "@xylabs/sdk-js";
|
|
197
193
|
import { useState as useState2 } from "react";
|
|
198
|
-
import { jsx as
|
|
194
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
199
195
|
var CopyIconButton = ({
|
|
200
196
|
copyLinkText,
|
|
201
197
|
copiedLinkText,
|
|
@@ -228,7 +224,7 @@ var CopyIconButton = ({
|
|
|
228
224
|
console.warn("tried to copy shareUrl before it was generated");
|
|
229
225
|
}
|
|
230
226
|
};
|
|
231
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ jsx5(Tooltip, { title: copyTooltipTitle, children: loading ? /* @__PURE__ */ jsx5(IconButton, { children: /* @__PURE__ */ jsx5(CircularProgress, { size: "24px" }) }) : /* @__PURE__ */ jsx5(IconButton, { "aria-label": `copy ${shareLinkName} link`, onClick: () => forget(copyToClipboard(shareUrl)), edge: "end", ...props, children: /* @__PURE__ */ jsx5(CopyAllRounded, {}) }) });
|
|
232
228
|
};
|
|
233
229
|
|
|
234
230
|
// src/out/lib/AnimatedGradientTypography.tsx
|
|
@@ -296,7 +292,7 @@ var splitAroundSubstring = (path, substring) => {
|
|
|
296
292
|
};
|
|
297
293
|
|
|
298
294
|
// src/out/CopyLinkStack.tsx
|
|
299
|
-
import { jsx as
|
|
295
|
+
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
300
296
|
var CopyLinkStack = ({
|
|
301
297
|
addToXnsName,
|
|
302
298
|
copiedLinkText,
|
|
@@ -342,12 +338,12 @@ var CopyLinkStack = ({
|
|
|
342
338
|
overflowX: "auto"
|
|
343
339
|
},
|
|
344
340
|
children: [
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ jsx6(Typography2, { sx: { display: "inline-flex" }, children: part1 }),
|
|
342
|
+
/* @__PURE__ */ jsx6(AnimatedGradientTypography, { color1: xnsStartColor, color2: xnsEndColor, sx: { display: "inline-flex" }, children: xnsName }),
|
|
343
|
+
/* @__PURE__ */ jsx6(Typography2, { sx: { display: "inline-flex" }, children: part3 })
|
|
348
344
|
]
|
|
349
345
|
}
|
|
350
|
-
) : /* @__PURE__ */
|
|
346
|
+
) : /* @__PURE__ */ jsx6(
|
|
351
347
|
Typography2,
|
|
352
348
|
{
|
|
353
349
|
sx: {
|
|
@@ -358,7 +354,7 @@ var CopyLinkStack = ({
|
|
|
358
354
|
children: shareUrl
|
|
359
355
|
}
|
|
360
356
|
),
|
|
361
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ jsx6(
|
|
362
358
|
CopyIconButton,
|
|
363
359
|
{
|
|
364
360
|
copiedLinkText,
|
|
@@ -370,7 +366,7 @@ var CopyLinkStack = ({
|
|
|
370
366
|
uploadPayloads
|
|
371
367
|
}
|
|
372
368
|
),
|
|
373
|
-
error ? /* @__PURE__ */
|
|
369
|
+
error ? /* @__PURE__ */ jsx6(Tooltip2, { title: error.message, children: /* @__PURE__ */ jsx6(Cancel, { color: "error", sx: { display: "inline-flex" } }) }) : null
|
|
374
370
|
]
|
|
375
371
|
}
|
|
376
372
|
);
|
|
@@ -379,7 +375,7 @@ var CopyLinkStack = ({
|
|
|
379
375
|
// src/out/CopyLinkTextField.tsx
|
|
380
376
|
import { InputAdornment, TextField } from "@mui/material";
|
|
381
377
|
import { useCallback as useCallback2, useState as useState4 } from "react";
|
|
382
|
-
import { jsx as
|
|
378
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
383
379
|
var CopyLinkTextField = ({
|
|
384
380
|
shareLinkName,
|
|
385
381
|
shareUrl,
|
|
@@ -389,7 +385,7 @@ var CopyLinkTextField = ({
|
|
|
389
385
|
const onClickError = useCallback2((error2) => {
|
|
390
386
|
setError(error2);
|
|
391
387
|
}, []);
|
|
392
|
-
return /* @__PURE__ */
|
|
388
|
+
return /* @__PURE__ */ jsx7(
|
|
393
389
|
TextField,
|
|
394
390
|
{
|
|
395
391
|
disabled: true,
|
|
@@ -400,7 +396,7 @@ var CopyLinkTextField = ({
|
|
|
400
396
|
...props,
|
|
401
397
|
slotProps: {
|
|
402
398
|
input: {
|
|
403
|
-
endAdornment: /* @__PURE__ */
|
|
399
|
+
endAdornment: /* @__PURE__ */ jsx7(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx7(CopyIconButton, { shareLinkName, shareUrl, onClickError }) })
|
|
404
400
|
}
|
|
405
401
|
}
|
|
406
402
|
}
|
|
@@ -417,7 +413,7 @@ import {
|
|
|
417
413
|
Typography as Typography3
|
|
418
414
|
} from "@mui/material";
|
|
419
415
|
import { FlexCol, FlexGrowCol } from "@xylabs/react-flexbox";
|
|
420
|
-
import { jsx as
|
|
416
|
+
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
421
417
|
var ShareOutDialog = ({
|
|
422
418
|
ShareOutDialogActions,
|
|
423
419
|
cardImg,
|
|
@@ -432,7 +428,7 @@ var ShareOutDialog = ({
|
|
|
432
428
|
onClose?.("", "backdropClick");
|
|
433
429
|
};
|
|
434
430
|
return /* @__PURE__ */ jsxs4(Dialog, { onClose, open, ...props, children: [
|
|
435
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ jsx8(DialogTitle, { children: /* @__PURE__ */ jsxs4(Stack2, { direction: "row", spacing: 2, children: [
|
|
436
432
|
/* @__PURE__ */ jsxs4(
|
|
437
433
|
FlexGrowCol,
|
|
438
434
|
{
|
|
@@ -441,7 +437,7 @@ var ShareOutDialog = ({
|
|
|
441
437
|
width: "60%"
|
|
442
438
|
},
|
|
443
439
|
children: [
|
|
444
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ jsx8(Typography3, { variant: "h5", children: title }),
|
|
445
441
|
/* @__PURE__ */ jsxs4(Typography3, { variant: "body1", children: [
|
|
446
442
|
" ",
|
|
447
443
|
subtitle
|
|
@@ -449,7 +445,7 @@ var ShareOutDialog = ({
|
|
|
449
445
|
]
|
|
450
446
|
}
|
|
451
447
|
),
|
|
452
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ jsx8(
|
|
453
449
|
FlexGrowCol,
|
|
454
450
|
{
|
|
455
451
|
sx: {
|
|
@@ -462,9 +458,9 @@ var ShareOutDialog = ({
|
|
|
462
458
|
] }) }),
|
|
463
459
|
/* @__PURE__ */ jsxs4(DialogContent, { children: [
|
|
464
460
|
shareOutDialogContent,
|
|
465
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ jsx8(FlexCol, { sx: { alignItems: "stretch" } })
|
|
466
462
|
] }),
|
|
467
|
-
ShareOutDialogActions ? /* @__PURE__ */
|
|
463
|
+
ShareOutDialogActions ? /* @__PURE__ */ jsx8(DialogActions, { children: /* @__PURE__ */ jsx8(ShareOutDialogActions, { onClose: handleClose }) }) : null
|
|
468
464
|
] });
|
|
469
465
|
};
|
|
470
466
|
|
|
@@ -476,12 +472,12 @@ import {
|
|
|
476
472
|
useTheme
|
|
477
473
|
} from "@mui/material";
|
|
478
474
|
import { FlexGrowRow as FlexGrowRow2 } from "@xylabs/react-flexbox";
|
|
479
|
-
import { jsx as
|
|
475
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
480
476
|
var ShareOutExplanation = ({ toolTipTitle }) => {
|
|
481
477
|
const theme = useTheme();
|
|
482
478
|
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.";
|
|
483
479
|
return /* @__PURE__ */ jsxs5(FlexGrowRow2, { sx: { alignItems: "center" }, children: [
|
|
484
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ jsx9(
|
|
485
481
|
Typography4,
|
|
486
482
|
{
|
|
487
483
|
variant: "body2",
|
|
@@ -489,12 +485,12 @@ var ShareOutExplanation = ({ toolTipTitle }) => {
|
|
|
489
485
|
children: "What am I sharing?"
|
|
490
486
|
}
|
|
491
487
|
),
|
|
492
|
-
/* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ jsx9(
|
|
493
489
|
Tooltip3,
|
|
494
490
|
{
|
|
495
491
|
title,
|
|
496
492
|
placement: "bottom",
|
|
497
|
-
children: /* @__PURE__ */
|
|
493
|
+
children: /* @__PURE__ */ jsx9(
|
|
498
494
|
InfoOutlined,
|
|
499
495
|
{
|
|
500
496
|
fontSize: "small",
|
|
@@ -512,17 +508,17 @@ import {
|
|
|
512
508
|
CircularProgress as CircularProgress2,
|
|
513
509
|
styled as styled2
|
|
514
510
|
} from "@mui/material";
|
|
515
|
-
import { jsx as
|
|
511
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
516
512
|
var GenerateShareLinkButton = ({
|
|
517
513
|
children = "Generate My Share Link",
|
|
518
514
|
loading,
|
|
519
515
|
...props
|
|
520
516
|
}) => {
|
|
521
|
-
return /* @__PURE__ */
|
|
517
|
+
return /* @__PURE__ */ jsx10(
|
|
522
518
|
Button,
|
|
523
519
|
{
|
|
524
520
|
variant: "contained",
|
|
525
|
-
startIcon: loading ? /* @__PURE__ */
|
|
521
|
+
startIcon: loading ? /* @__PURE__ */ jsx10(StyledCircularProgress, { size: "small" }) : null,
|
|
526
522
|
...props,
|
|
527
523
|
children
|
|
528
524
|
}
|
|
@@ -539,7 +535,7 @@ var StyledCircularProgress = styled2(CircularProgress2, { name: "StyledCircularP
|
|
|
539
535
|
// src/out/HeadingFlexbox.tsx
|
|
540
536
|
import { Typography as Typography5 } from "@mui/material";
|
|
541
537
|
import { FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
|
|
542
|
-
import { jsx as
|
|
538
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
543
539
|
var ShareOutHeadingFlexbox = ({
|
|
544
540
|
children,
|
|
545
541
|
shareLinkName,
|
|
@@ -556,8 +552,8 @@ var ShareOutHeadingFlexbox = ({
|
|
|
556
552
|
paddingBottom: 1
|
|
557
553
|
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
558
554
|
children: [
|
|
559
|
-
/* @__PURE__ */
|
|
560
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ jsx11(Typography5, { variant: "body1", gutterBottom: true, children: /* @__PURE__ */ jsx11("strong", { children: "Your Share Link" }) }),
|
|
556
|
+
/* @__PURE__ */ jsx11(Typography5, { variant: "body1", children: shareUrl ? `Use this link or the buttons below to share ${shareLinkName}` : GenerateShareLinkExplanation }),
|
|
561
557
|
children
|
|
562
558
|
]
|
|
563
559
|
}
|
|
@@ -570,7 +566,7 @@ import { ButtonEx as ButtonEx2 } from "@xylabs/react-button";
|
|
|
570
566
|
import { ErrorRender } from "@xylabs/react-error";
|
|
571
567
|
import { FlexGrowCol as FlexGrowCol3, FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
|
|
572
568
|
import { useState as useState5 } from "react";
|
|
573
|
-
import { Fragment, jsx as
|
|
569
|
+
import { Fragment, jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
574
570
|
var SocialButtonsFlexbox = ({
|
|
575
571
|
shareUrl,
|
|
576
572
|
uploadPayloads,
|
|
@@ -601,8 +597,8 @@ var SocialButtonsFlexbox = ({
|
|
|
601
597
|
paddingTop: 2
|
|
602
598
|
}, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
|
|
603
599
|
children: [
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
/* @__PURE__ */
|
|
600
|
+
/* @__PURE__ */ jsx12(Typography6, { variant: "body1", gutterBottom: true, children: /* @__PURE__ */ jsx12("strong", { children: "Share on Social Media" }) }),
|
|
601
|
+
/* @__PURE__ */ jsx12(
|
|
606
602
|
FlexRow2,
|
|
607
603
|
{
|
|
608
604
|
sx: {
|
|
@@ -610,7 +606,7 @@ var SocialButtonsFlexbox = ({
|
|
|
610
606
|
flexDirection: { md: "row", xs: "column" }
|
|
611
607
|
},
|
|
612
608
|
children: shareUrl ? /* @__PURE__ */ jsxs7(Fragment, { children: [
|
|
613
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ jsx12(
|
|
614
610
|
ButtonEx2,
|
|
615
611
|
{
|
|
616
612
|
variant: "contained",
|
|
@@ -620,11 +616,11 @@ var SocialButtonsFlexbox = ({
|
|
|
620
616
|
const openUrl = () => window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(shareUrl)}`);
|
|
621
617
|
await handleClick(openUrl, "x");
|
|
622
618
|
},
|
|
623
|
-
startIcon: /* @__PURE__ */
|
|
619
|
+
startIcon: /* @__PURE__ */ jsx12(XTwitterSvgIcon, { sx: { width: "20px" } }),
|
|
624
620
|
children: "Share on X (Twitter)"
|
|
625
621
|
}
|
|
626
622
|
),
|
|
627
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ jsx12(
|
|
628
624
|
ButtonEx2,
|
|
629
625
|
{
|
|
630
626
|
busy: fbLoading,
|
|
@@ -634,14 +630,14 @@ var SocialButtonsFlexbox = ({
|
|
|
634
630
|
const openUrl = () => window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`);
|
|
635
631
|
await handleClick(openUrl, "fb");
|
|
636
632
|
},
|
|
637
|
-
startIcon: /* @__PURE__ */
|
|
633
|
+
startIcon: /* @__PURE__ */ jsx12(FacebookSvgIcon, {}),
|
|
638
634
|
children: "Share on Facebook"
|
|
639
635
|
}
|
|
640
636
|
)
|
|
641
637
|
] }) : null
|
|
642
638
|
}
|
|
643
639
|
),
|
|
644
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ jsx12(ErrorRender, { error, scope: "SocialButtonsFlexbox" })
|
|
645
641
|
]
|
|
646
642
|
}
|
|
647
643
|
);
|
|
@@ -660,4 +656,4 @@ export {
|
|
|
660
656
|
SocialButtonsFlexbox,
|
|
661
657
|
XTwitterSvgIcon
|
|
662
658
|
};
|
|
663
|
-
//# sourceMappingURL=index.mjs.map
|
|
659
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1,7 @@
|
|
|
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,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,cAiBA,YAjBA;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,CA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AA,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
|
+
{
|
|
2
|
+
"version": 3,
|
|
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"],
|
|
4
|
+
"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 type React from 'react'\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> = () => null\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"],
|
|
5
|
+
"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,cAiBA,YAjBA;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,IAAI,EAAE,KAAK,EAAE,GACpB;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,UAAU,CAAC;AAAA,QACX,SAAS,MAAM;AACb,sBAAY,IAAI;AAAA,QAClB;AAAA,QACC,GAAG;AAAA,QACJ,IAAI,CAAC,EAAE,UAAU,GAAG,GAAG,GAAI,MAAM,QAAQ,MAAM,EAAE,IAAI,MAAM,KAAK,CAAC,MAAM,EAAE,CAAE;AAAA,QAE3E;AAAA,UAAC;AAAA;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", "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"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicShareImage.d.ts","sourceRoot":"","sources":["../../../../src/meta-server/dynamic-share/DynamicShareImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DynamicShareImage.d.ts","sourceRoot":"","sources":["../../../../src/meta-server/dynamic-share/DynamicShareImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-share",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,56 +41,54 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@mui/icons-material": "
|
|
45
|
-
"@mui/material": "
|
|
44
|
+
"@mui/icons-material": "^9.0.1",
|
|
45
|
+
"@mui/material": "^9.0.1",
|
|
46
46
|
"@opentelemetry/api": "^1.9.1",
|
|
47
47
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
48
|
-
"@storybook/react-vite": "~10.
|
|
49
|
-
"@types/react": "^19.2.
|
|
50
|
-
"@
|
|
51
|
-
"@xylabs/
|
|
52
|
-
"@xylabs/react-
|
|
53
|
-
"@xylabs/react-
|
|
54
|
-
"@xylabs/react-
|
|
55
|
-
"@xylabs/
|
|
56
|
-
"@xylabs/
|
|
57
|
-
"@xylabs/
|
|
58
|
-
"@xylabs/tsconfig": "^
|
|
59
|
-
"@xylabs/tsconfig-
|
|
60
|
-
"@xylabs/tsconfig-react": "~7.13.22",
|
|
48
|
+
"@storybook/react-vite": "~10.4.0",
|
|
49
|
+
"@types/react": "^19.2.15",
|
|
50
|
+
"@xylabs/pixel": "~6.0.2",
|
|
51
|
+
"@xylabs/react-button": "~9.0.0",
|
|
52
|
+
"@xylabs/react-error": "~9.0.0",
|
|
53
|
+
"@xylabs/react-flexbox": "~9.0.0",
|
|
54
|
+
"@xylabs/react-link": "~9.0.0",
|
|
55
|
+
"@xylabs/sdk-js": "^6.0.2",
|
|
56
|
+
"@xylabs/toolchain": "~8.1.1",
|
|
57
|
+
"@xylabs/tsconfig": "^8.1.1",
|
|
58
|
+
"@xylabs/tsconfig-dom": "^8.1.1",
|
|
59
|
+
"@xylabs/tsconfig-react": "~8.1.1",
|
|
61
60
|
"async-mutex": "^0.5.0",
|
|
62
61
|
"bn.js": "^5.2.3",
|
|
63
62
|
"bowser": "^2.14.1",
|
|
64
63
|
"buffer": "^6.0.3",
|
|
65
64
|
"chalk": "^5.6.2",
|
|
66
|
-
"eslint": "^10.
|
|
65
|
+
"eslint": "^10.4.0",
|
|
67
66
|
"ethers": "^6.16.0",
|
|
68
67
|
"fast-deep-equal": "~3.1.3",
|
|
69
|
-
"js-cookie": "~3.0.
|
|
70
|
-
"mixpanel-browser": "~2.
|
|
68
|
+
"js-cookie": "~3.0.7",
|
|
69
|
+
"mixpanel-browser": "~2.79.0",
|
|
71
70
|
"pako": "^2.1.0",
|
|
72
71
|
"query-string": "~9.3.1",
|
|
73
72
|
"react": "^19.2.6",
|
|
74
73
|
"react-dom": "^19.2.6",
|
|
75
|
-
"react-
|
|
76
|
-
"react-router-dom": "^7.15.0",
|
|
74
|
+
"react-router-dom": "^7.15.1",
|
|
77
75
|
"spark-md5": "~3.0.2",
|
|
78
|
-
"storybook": "^10.
|
|
79
|
-
"typescript": "^
|
|
80
|
-
"vite": "^8.0.
|
|
76
|
+
"storybook": "^10.4.0",
|
|
77
|
+
"typescript": "^6.0.3",
|
|
78
|
+
"vite": "^8.0.13",
|
|
81
79
|
"zod": "^4.4.3"
|
|
82
80
|
},
|
|
83
81
|
"peerDependencies": {
|
|
84
|
-
"@mui/icons-material": "
|
|
85
|
-
"@mui/material": "
|
|
82
|
+
"@mui/icons-material": "^9.0",
|
|
83
|
+
"@mui/material": "^9.0",
|
|
86
84
|
"@opentelemetry/api": "^1.9",
|
|
87
85
|
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
88
|
-
"@xylabs/pixel": "~
|
|
89
|
-
"@xylabs/react-button": "~
|
|
90
|
-
"@xylabs/react-error": "~
|
|
91
|
-
"@xylabs/react-flexbox": "~
|
|
92
|
-
"@xylabs/react-link": "~
|
|
93
|
-
"@xylabs/sdk-js": "^
|
|
86
|
+
"@xylabs/pixel": "~6.0",
|
|
87
|
+
"@xylabs/react-button": "~9.0",
|
|
88
|
+
"@xylabs/react-error": "~9.0",
|
|
89
|
+
"@xylabs/react-flexbox": "~9.0",
|
|
90
|
+
"@xylabs/react-link": "~9.0",
|
|
91
|
+
"@xylabs/sdk-js": "^6.0",
|
|
94
92
|
"async-mutex": "^0.5",
|
|
95
93
|
"bn.js": "^5.2",
|
|
96
94
|
"bowser": "^2.14",
|
|
@@ -99,12 +97,11 @@
|
|
|
99
97
|
"ethers": "^6.16",
|
|
100
98
|
"fast-deep-equal": "~3.1",
|
|
101
99
|
"js-cookie": "~3.0",
|
|
102
|
-
"mixpanel-browser": "~2.
|
|
100
|
+
"mixpanel-browser": "~2.79",
|
|
103
101
|
"pako": "^2.1",
|
|
104
102
|
"query-string": "~9.3",
|
|
105
103
|
"react": "^19.2",
|
|
106
104
|
"react-dom": "^19.2",
|
|
107
|
-
"react-helmet": "~6.1",
|
|
108
105
|
"react-router-dom": "^7.15",
|
|
109
106
|
"spark-md5": "~3.0",
|
|
110
107
|
"zod": "^4.4"
|