@xyo-network/react-share 2.56.1 → 2.56.3

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.
@@ -14,15 +14,15 @@ const react_1 = require("react");
14
14
  const ShareButton = (props) => {
15
15
  const [expanded, setExpanded] = (0, react_1.useState)(false);
16
16
  const anchorRef = (0, react_1.useRef)(null);
17
- return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, { gap: 1, ref: anchorRef, children: [(0, jsx_runtime_1.jsx)(react_button_1.ButtonEx, Object.assign({ variant: "text", minWidth: 32, size: "small", onClick: () => {
17
+ return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ gap: 1, ref: anchorRef }, { children: [(0, jsx_runtime_1.jsx)(react_button_1.ButtonEx, Object.assign({ variant: "text", minWidth: 32, size: "small", onClick: () => {
18
18
  setExpanded(true);
19
- } }, props, { children: (0, jsx_runtime_1.jsx)(Share_1.default, { htmlColor: "gray", fontSize: "small" }) })), (0, jsx_runtime_1.jsx)(material_1.Popover, { open: expanded, anchorEl: anchorRef.current, onClose: () => setExpanded(false), transitionDuration: 500, children: (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, { gap: 0.5, padding: 0.5, children: [(0, jsx_runtime_1.jsx)(react_link_1.LinkEx, { lineHeight: 0, style: { color: '#1da1f2' }, onClick: () => {
19
+ } }, props, { children: (0, jsx_runtime_1.jsx)(Share_1.default, { htmlColor: "gray", fontSize: "small" }) })), (0, jsx_runtime_1.jsx)(material_1.Popover, Object.assign({ open: expanded, anchorEl: anchorRef.current, onClose: () => setExpanded(false), transitionDuration: 500 }, { children: (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ gap: 0.5, padding: 0.5 }, { children: [(0, jsx_runtime_1.jsx)(react_link_1.LinkEx, Object.assign({ lineHeight: 0, style: { color: '#1da1f2' }, onClick: () => {
20
20
  window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(window.location.href)}`);
21
21
  setExpanded(false);
22
- }, children: (0, jsx_runtime_1.jsx)(Twitter_1.default, { fontSize: "small" }) }), (0, jsx_runtime_1.jsx)(react_link_1.LinkEx, { lineHeight: 0, style: { color: '#4267b2' }, onClick: () => {
22
+ } }, { children: (0, jsx_runtime_1.jsx)(Twitter_1.default, { fontSize: "small" }) })), (0, jsx_runtime_1.jsx)(react_link_1.LinkEx, Object.assign({ lineHeight: 0, style: { color: '#4267b2' }, onClick: () => {
23
23
  window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(window.location.href)}`);
24
24
  setExpanded(false);
25
- }, children: (0, jsx_runtime_1.jsx)(Facebook_1.default, { fontSize: "small" }) })] }) })] }));
25
+ } }, { children: (0, jsx_runtime_1.jsx)(Facebook_1.default, { fontSize: "small" }) }))] })) }))] })));
26
26
  };
27
27
  exports.ShareButton = ShareButton;
28
28
  //# sourceMappingURL=ShareButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShareButton.js","sourceRoot":"","sources":["../../src/ShareButton.tsx"],"names":[],"mappings":";;;;;AAAA,oFAAuD;AACvD,8EAAiD;AACjD,kFAAqD;AACrD,4CAAuC;AACvC,uDAA8D;AAC9D,yDAA+C;AAC/C,mDAA2C;AAC3C,iCAAwC;AAEjC,MAAM,WAAW,GAA4B,CAAC,KAAK,EAAE,EAAE;IAC5D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAC/C,MAAM,SAAS,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,CAAA;IAE9B,OAAO,CACL,wBAAC,uBAAO,IAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,aAC7B,uBAAC,uBAAQ,kBACP,OAAO,EAAC,MAAM,EACd,QAAQ,EAAE,EAAE,EACZ,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,GAAG,EAAE;oBACZ,WAAW,CAAC,IAAI,CAA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,EAAE,CAAC,EACb,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAC3B,OAAO,EAAE,GAAG,EAAE;gCACZ,MAAM,CAAC,IAAI,CAAC,gDAAgD,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;gCACvG,WAAW,CAAC,KAAK,CAAC,CAAA;4BACpB,CAAC,gBAED,uBAAC,kBAAY,IAAC,QAAQ,EAAC,OAAO,GAAG,IAC1B,KACD,IACF,KACF,CACX,CAAA;AACH,CAAC,CAAA;AA3CY,QAAA,WAAW,eA2CvB"}
package/dist/docs.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "fileName": "packages/sdk/packages/share/src/ShareButton.tsx",
17
17
  "line": 10,
18
18
  "character": 13,
19
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/beed2886ed32/packages/sdk/packages/share/src/ShareButton.tsx#L10"
19
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/1f16bf63f2f5/packages/sdk/packages/share/src/ShareButton.tsx#L10"
20
20
  }
21
21
  ],
22
22
  "signatures": [
@@ -28,8 +28,8 @@
28
28
  "flags": {},
29
29
  "sources": [
30
30
  {
31
- "fileName": "node_modules/@types/react/index.d.ts",
32
- "line": 556,
31
+ "fileName": "node_modules/@types/react/ts5.0/index.d.ts",
32
+ "line": 525,
33
33
  "character": 8
34
34
  }
35
35
  ],
@@ -65,14 +65,33 @@
65
65
  }
66
66
  ],
67
67
  "type": {
68
- "type": "reference",
69
- "target": {
70
- "sourceFileName": "../../../../node_modules/@types/react/index.d.ts",
71
- "qualifiedName": "React.ReactNode"
72
- },
73
- "name": "ReactNode",
74
- "package": "@types/react",
75
- "qualifiedName": "React.ReactNode"
68
+ "type": "union",
69
+ "types": [
70
+ {
71
+ "type": "literal",
72
+ "value": null
73
+ },
74
+ {
75
+ "type": "reference",
76
+ "target": {
77
+ "sourceFileName": "../../../../node_modules/@types/react/ts5.0/index.d.ts",
78
+ "qualifiedName": "React.ReactElement"
79
+ },
80
+ "typeArguments": [
81
+ {
82
+ "type": "intrinsic",
83
+ "name": "any"
84
+ },
85
+ {
86
+ "type": "intrinsic",
87
+ "name": "any"
88
+ }
89
+ ],
90
+ "name": "ReactElement",
91
+ "package": "@types/react",
92
+ "qualifiedName": "React.ReactElement"
93
+ }
94
+ ]
76
95
  }
77
96
  }
78
97
  ]
@@ -103,15 +122,15 @@
103
122
  "qualifiedName": "ShareButton"
104
123
  },
105
124
  "2": {
106
- "sourceFileName": "../../../../node_modules/@types/react/index.d.ts",
125
+ "sourceFileName": "../../../../node_modules/@types/react/ts5.0/index.d.ts",
107
126
  "qualifiedName": "ShareButton"
108
127
  },
109
128
  "3": {
110
- "sourceFileName": "../../../../node_modules/@types/react/index.d.ts",
129
+ "sourceFileName": "../../../../node_modules/@types/react/ts5.0/index.d.ts",
111
130
  "qualifiedName": "props"
112
131
  },
113
132
  "4": {
114
- "sourceFileName": "../../../../node_modules/@types/react/index.d.ts",
133
+ "sourceFileName": "../../../../node_modules/@types/react/ts5.0/index.d.ts",
115
134
  "qualifiedName": "context"
116
135
  }
117
136
  }
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "react-router-dom": "^6"
26
26
  },
27
27
  "devDependencies": {
28
- "@xylabs/ts-scripts-yarn3": "^2.17.17",
28
+ "@xylabs/ts-scripts-yarn3": "^2.18.7",
29
29
  "typescript": "^5.1.6"
30
30
  },
31
31
  "description": "Common React library for all XYO projects that use React",
@@ -71,5 +71,5 @@
71
71
  },
72
72
  "sideEffects": false,
73
73
  "types": "dist/types/index.d.ts",
74
- "version": "2.56.1"
74
+ "version": "2.56.3"
75
75
  }