@xyo-network/react-share 6.1.4 → 7.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.d.ts +5 -99
- package/package.json +15 -11
- package/src/global.d.ts +1 -1
- package/typedoc.json +0 -5
- package/xy.config.ts +0 -10
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,99 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
7
|
-
|
|
8
|
-
type ShareButtonProps = ButtonExProps & {
|
|
9
|
-
prepared?: boolean;
|
|
10
|
-
shareLink?: string;
|
|
11
|
-
slot?: {
|
|
12
|
-
popover?: PopoverProps;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
declare const ShareButton: React.FC<ShareButtonProps>;
|
|
16
|
-
|
|
17
|
-
declare const FacebookSvgIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
|
18
|
-
muiName: string;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
declare const XTwitterSvgIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
|
22
|
-
muiName: string;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The props for the DynamicShareImage component.
|
|
27
|
-
*/
|
|
28
|
-
interface DynamicShareImageProps {
|
|
29
|
-
/**
|
|
30
|
-
* The URL of the share image for the page.
|
|
31
|
-
*/
|
|
32
|
-
image: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Used in conjunction with the XY Meta Server to dynamically set the share image for a page.
|
|
36
|
-
*/
|
|
37
|
-
declare const DynamicShareImage: React.FC<DynamicShareImageProps>;
|
|
38
|
-
|
|
39
|
-
declare const HideParentsFlexbox: React.FC<PropsWithChildren & FlexBoxProps>;
|
|
40
|
-
|
|
41
|
-
interface ShareLinkProps {
|
|
42
|
-
copiedLinkText?: string;
|
|
43
|
-
copyLinkText?: string;
|
|
44
|
-
shareLinkName?: string;
|
|
45
|
-
shareUrl?: string;
|
|
46
|
-
uploadPayloads?: () => Promise<void>;
|
|
47
|
-
xnsName?: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface CopyLinkStackProps extends ShareLinkProps, StackProps {
|
|
51
|
-
addToXnsName?: boolean;
|
|
52
|
-
copiedLinkText?: string;
|
|
53
|
-
copyLinkText?: string;
|
|
54
|
-
xnsEndColor?: string;
|
|
55
|
-
xnsStartColor?: string;
|
|
56
|
-
}
|
|
57
|
-
declare const CopyLinkStack: React.FC<CopyLinkStackProps>;
|
|
58
|
-
|
|
59
|
-
interface CopyLinkTextFieldProps extends StandardTextFieldProps {
|
|
60
|
-
shareLinkName?: string;
|
|
61
|
-
shareUrl?: string;
|
|
62
|
-
}
|
|
63
|
-
declare const CopyLinkTextField: React.FC<CopyLinkTextFieldProps>;
|
|
64
|
-
|
|
65
|
-
interface ShareOutDialogProps extends DialogProps {
|
|
66
|
-
ShareOutDialogActions?: ComponentType<{
|
|
67
|
-
onClose?: () => void;
|
|
68
|
-
}>;
|
|
69
|
-
cardImg?: ReactNode;
|
|
70
|
-
shareOutDialogContent?: ReactNode;
|
|
71
|
-
subtitle?: string;
|
|
72
|
-
title?: string;
|
|
73
|
-
}
|
|
74
|
-
declare const ShareOutDialog: React.FC<ShareOutDialogProps>;
|
|
75
|
-
|
|
76
|
-
interface ShareOutExplanationProps {
|
|
77
|
-
toolTipTitle?: string;
|
|
78
|
-
}
|
|
79
|
-
declare const ShareOutExplanation: React.FC<ShareOutExplanationProps>;
|
|
80
|
-
|
|
81
|
-
interface GenerateShareLinkButtonProps extends ButtonProps {
|
|
82
|
-
loading?: boolean;
|
|
83
|
-
}
|
|
84
|
-
declare const GenerateShareLinkButton: React.FC<GenerateShareLinkButtonProps>;
|
|
85
|
-
|
|
86
|
-
interface ShareOutHeadingFlexboxProps extends FlexBoxProps {
|
|
87
|
-
shareLinkName?: string;
|
|
88
|
-
shareUrl?: string;
|
|
89
|
-
}
|
|
90
|
-
declare const ShareOutHeadingFlexbox: React.FC<ShareOutHeadingFlexboxProps>;
|
|
91
|
-
|
|
92
|
-
interface SocialButtonsFlexboxProps extends FlexBoxProps {
|
|
93
|
-
shareUrl?: string;
|
|
94
|
-
uploadPayloads?: () => Promise<void>;
|
|
95
|
-
}
|
|
96
|
-
declare const SocialButtonsFlexbox: React.FC<SocialButtonsFlexboxProps>;
|
|
97
|
-
|
|
98
|
-
export { CopyLinkStack, CopyLinkTextField, DynamicShareImage, FacebookSvgIcon, GenerateShareLinkButton, HideParentsFlexbox, ShareButton, ShareOutDialog, ShareOutExplanation, ShareOutHeadingFlexbox, SocialButtonsFlexbox, XTwitterSvgIcon };
|
|
99
|
-
export type { CopyLinkStackProps, CopyLinkTextFieldProps, DynamicShareImageProps, GenerateShareLinkButtonProps, ShareButtonProps, ShareOutDialogProps, ShareOutExplanationProps, ShareOutHeadingFlexboxProps, SocialButtonsFlexboxProps };
|
|
1
|
+
export * from './button/index.ts';
|
|
2
|
+
export * from './icons/index.ts';
|
|
3
|
+
export * from './meta-server/index.ts';
|
|
4
|
+
export * from './out/index.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-share",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -38,24 +38,28 @@
|
|
|
38
38
|
},
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
40
|
"types": "dist/browser/index.d.ts",
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"src"
|
|
44
|
+
],
|
|
41
45
|
"dependencies": {
|
|
42
|
-
"@xylabs/forget": "^
|
|
43
|
-
"@xylabs/react-button": "^
|
|
44
|
-
"@xylabs/react-error": "^
|
|
45
|
-
"@xylabs/react-flexbox": "^
|
|
46
|
-
"@xylabs/react-link": "^
|
|
46
|
+
"@xylabs/forget": "^5.0.0",
|
|
47
|
+
"@xylabs/react-button": "^7.0.0",
|
|
48
|
+
"@xylabs/react-error": "^7.0.0",
|
|
49
|
+
"@xylabs/react-flexbox": "^7.0.0",
|
|
50
|
+
"@xylabs/react-link": "^7.0.0",
|
|
47
51
|
"react-helmet": "^6.1.0"
|
|
48
52
|
},
|
|
49
53
|
"devDependencies": {
|
|
50
54
|
"@mui/icons-material": "^7.2.0",
|
|
51
55
|
"@mui/material": "^7.2.0",
|
|
52
56
|
"@storybook/react-vite": "^9.0.18",
|
|
53
|
-
"@types/react": "^19.1.
|
|
57
|
+
"@types/react": "^19.1.9",
|
|
54
58
|
"@types/react-helmet": "^6.1.11",
|
|
55
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
56
|
-
"react": "^19.1.
|
|
57
|
-
"react-dom": "^19.1.
|
|
58
|
-
"react-router-dom": "^7.7.
|
|
59
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.2",
|
|
60
|
+
"react": "^19.1.1",
|
|
61
|
+
"react-dom": "^19.1.1",
|
|
62
|
+
"react-router-dom": "^7.7.1",
|
|
59
63
|
"storybook": "^9.0.18",
|
|
60
64
|
"typescript": "^5.8.3"
|
|
61
65
|
},
|
package/src/global.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '@mui/material/themeCssVarsAugmentation'
|
package/typedoc.json
DELETED