@xyo-network/react-embed 4.1.5 → 4.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/components/embed-card/EmbedPluginCard.d.ts +1 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.d.ts.map +1 -1
- package/dist/browser/contexts/EmbedPluginContext/Provider.d.ts +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.d.ts.map +1 -1
- package/dist/browser/contexts/EmbedPluginContext/State.d.ts +5 -0
- package/dist/browser/contexts/EmbedPluginContext/State.d.ts.map +1 -1
- package/dist/browser/types/EmbedPluginProps.d.ts +1 -0
- package/dist/browser/types/EmbedPluginProps.d.ts.map +1 -1
- package/package.json +12 -12
@@ -6,5 +6,6 @@ export interface EmbedPluginCardProps extends WithChildren, EmbedPluginProps, Bu
|
|
6
6
|
}
|
7
7
|
export declare const ApiEmbedPluginCard: React.FC<EmbedPluginCardProps>;
|
8
8
|
export declare const EmbedPluginCardInner: React.FC<BusyCardProps>;
|
9
|
+
/** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */
|
9
10
|
export { EmbedPluginCard as EmbedPlugin } from './card/index.ts';
|
10
11
|
//# sourceMappingURL=EmbedPluginCard.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAIpD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,EAAE,gBAAgB,EAAE,aAAa;CAAG;AAE9F,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8B7D,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqBxD,CAAA;
|
1
|
+
{"version":3,"file":"EmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAIpD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,EAAE,gBAAgB,EAAE,aAAa;CAAG;AAE9F,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8B7D,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqBxD,CAAA;AAED,kFAAkF;AAElF,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAA"}
|
@@ -2,5 +2,6 @@ import type { WithChildren } from '@xylabs/react-shared';
|
|
2
2
|
import React from 'react';
|
3
3
|
import type { EmbedPluginBase } from './State.ts';
|
4
4
|
export type EmbedPluginProviderProps = EmbedPluginBase;
|
5
|
+
/** Expose passed embed plugin props via context */
|
5
6
|
export declare const EmbedPluginProvider: React.FC<WithChildren<EmbedPluginProviderProps>>;
|
6
7
|
//# sourceMappingURL=Provider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAA;
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAA;AAEtD,mDAAmD;AACnD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,wBAAwB,CAAC,CA0BhF,CAAA"}
|
@@ -10,12 +10,17 @@ export interface EmbedPluginVisibilityConfig {
|
|
10
10
|
hideTimestamp?: boolean;
|
11
11
|
hideTitle?: boolean;
|
12
12
|
}
|
13
|
+
/**
|
14
|
+
* Extend for custom plugin configuration
|
15
|
+
*/
|
13
16
|
export interface PluginConfig {
|
14
17
|
listMode?: ListMode;
|
15
18
|
}
|
16
19
|
export interface EmbedPluginBase {
|
20
|
+
/** EmbedPlugin component configuration */
|
17
21
|
embedPluginConfig?: PluginConfig;
|
18
22
|
hideElementsConfig?: EmbedPluginVisibilityConfig;
|
23
|
+
/** @deprecated use huriPayload */
|
19
24
|
huri?: string;
|
20
25
|
plugins?: PayloadRenderPlugin[];
|
21
26
|
refreshTitle?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,WAAW,2BAA2B;IAC1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W,gBAAiB,SAAQ,eAAe,EAAE,cAAc;IACvE,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC,CAAA;CAC5E"}
|
@@ -3,6 +3,7 @@ import type { EmbedPluginBase, EmbedPluginVisibilityConfig } from '../contexts/i
|
|
3
3
|
export interface EmbedPluginProps extends EmbedPluginBase {
|
4
4
|
hideElementsConfig?: EmbedPluginVisibilityConfig;
|
5
5
|
huriPayload?: string | Payload;
|
6
|
+
/** string for huri to resolve and payload for bypassing huri resolution */
|
6
7
|
onRefresh?: () => void;
|
7
8
|
validateSchema?: boolean;
|
8
9
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAExF,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAExF,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xyo-network/react-embed",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.7",
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
5
5
|
"keywords": [
|
6
6
|
"xyo",
|
@@ -43,10 +43,10 @@
|
|
43
43
|
"lint-pkg": "npmPkgJsonLint ."
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@mui/icons-material": "^6.1.
|
47
|
-
"@mui/material": "^6.1.
|
48
|
-
"@mui/styles": "^6.1.
|
49
|
-
"@xylabs/delay": "^4.
|
46
|
+
"@mui/icons-material": "^6.1.5",
|
47
|
+
"@mui/material": "^6.1.5",
|
48
|
+
"@mui/styles": "^6.1.5",
|
49
|
+
"@xylabs/delay": "^4.3.2",
|
50
50
|
"@xylabs/react-async-effect": "^5.2.2",
|
51
51
|
"@xylabs/react-flexbox": "^5.2.2",
|
52
52
|
"@xylabs/react-hooks": "^5.2.2",
|
@@ -54,9 +54,9 @@
|
|
54
54
|
"@xylabs/react-shared": "^5.2.2",
|
55
55
|
"@xyo-network/huri": "^3.3.0",
|
56
56
|
"@xyo-network/payload-model": "^3.3.0",
|
57
|
-
"@xyo-network/react-error": "^4.1.
|
58
|
-
"@xyo-network/react-payload-plugin": "^4.1.
|
59
|
-
"@xyo-network/react-shared": "^4.1.
|
57
|
+
"@xyo-network/react-error": "^4.1.7",
|
58
|
+
"@xyo-network/react-payload-plugin": "^4.1.7",
|
59
|
+
"@xyo-network/react-shared": "^4.1.7",
|
60
60
|
"@xyo-network/schema-cache": "^3.3.0",
|
61
61
|
"react": "^18.3.1",
|
62
62
|
"react-dom": "^18.3.1"
|
@@ -65,10 +65,10 @@
|
|
65
65
|
"@emotion/react": "^11.13.3",
|
66
66
|
"@emotion/styled": "^11.13.0",
|
67
67
|
"@storybook/react": "^8.3.6",
|
68
|
-
"@xylabs/ts-scripts-yarn3": "^4.2.
|
69
|
-
"@xylabs/tsconfig-react": "^4.2.
|
70
|
-
"@xyo-network/react-aggregate-price-plugin": "^4.1.
|
71
|
-
"@xyo-network/react-crypto-market-uniswap-plugin": "^4.1.
|
68
|
+
"@xylabs/ts-scripts-yarn3": "^4.2.3",
|
69
|
+
"@xylabs/tsconfig-react": "^4.2.3",
|
70
|
+
"@xyo-network/react-aggregate-price-plugin": "^4.1.7",
|
71
|
+
"@xyo-network/react-crypto-market-uniswap-plugin": "^4.1.7",
|
72
72
|
"react-router-dom": "^6.27.0",
|
73
73
|
"storybook": "^8.3.6",
|
74
74
|
"typescript": "^5.6.3"
|