@xyo-network/xl1-react-client-sdk 1.30.1 → 1.30.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.
Files changed (30) hide show
  1. package/dist/browser/client/components/connected/ApprovedLakeSelector.d.ts +24 -0
  2. package/dist/browser/client/components/connected/ApprovedLakeSelector.d.ts.map +1 -0
  3. package/dist/browser/client/components/connected/DataLakeGetButton.d.ts +18 -0
  4. package/dist/browser/client/components/connected/DataLakeGetButton.d.ts.map +1 -0
  5. package/dist/browser/client/components/connected/DataLakeGetPanel.d.ts +15 -0
  6. package/dist/browser/client/components/connected/DataLakeGetPanel.d.ts.map +1 -0
  7. package/dist/browser/client/components/connected/DataLakeInsertButton.d.ts +19 -0
  8. package/dist/browser/client/components/connected/DataLakeInsertButton.d.ts.map +1 -0
  9. package/dist/browser/client/components/connected/DataLakeInsertPanel.d.ts +16 -0
  10. package/dist/browser/client/components/connected/DataLakeInsertPanel.d.ts.map +1 -0
  11. package/dist/browser/client/components/connected/DataLakeListButton.d.ts +13 -0
  12. package/dist/browser/client/components/connected/DataLakeListButton.d.ts.map +1 -0
  13. package/dist/browser/client/components/connected/DataLakeOperationsPanel.d.ts +20 -0
  14. package/dist/browser/client/components/connected/DataLakeOperationsPanel.d.ts.map +1 -0
  15. package/dist/browser/client/components/connected/DataLakeRequestAccessButton.d.ts +16 -0
  16. package/dist/browser/client/components/connected/DataLakeRequestAccessButton.d.ts.map +1 -0
  17. package/dist/browser/client/components/connected/index.d.ts +8 -0
  18. package/dist/browser/client/components/connected/index.d.ts.map +1 -1
  19. package/dist/browser/client/context/in-page/lib/buildGateway.d.ts.map +1 -1
  20. package/dist/browser/client/index.mjs +739 -88
  21. package/dist/browser/client/index.mjs.map +7 -1
  22. package/dist/browser/index.mjs +794 -145
  23. package/dist/browser/index.mjs.map +7 -1
  24. package/dist/browser/model/index.mjs +1 -1
  25. package/dist/browser/model/index.mjs.map +7 -1
  26. package/dist/browser/shared/components/menu-item/ActiveMenuItem.d.ts.map +1 -1
  27. package/dist/browser/shared/components/stack/DetailsStack.d.ts.map +1 -1
  28. package/dist/browser/shared/index.mjs +24 -26
  29. package/dist/browser/shared/index.mjs.map +7 -1
  30. package/package.json +17 -17
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ export interface ApprovedLakeSelectorProps {
3
+ /** Filter to lakes with this capability — `viewer` for read flows, `runner` for write flows. */
4
+ capability: 'viewer' | 'runner';
5
+ /** Label shown above the dropdown. */
6
+ label?: string;
7
+ /** Called with the new selection when the user picks a lake. */
8
+ onChange: (id: string) => void;
9
+ /** Currently selected per-origin lake id, or empty string for no selection. */
10
+ selectedId: string;
11
+ timeout?: number;
12
+ }
13
+ /**
14
+ * Fetches `client.dataLakes.list()` from the wallet and renders a dropdown of
15
+ * approved lakes filtered by the requested capability. Used by the Get and
16
+ * Insert panels to let the user pick which lake to operate against without
17
+ * needing to paste a per-origin id by hand.
18
+ *
19
+ * The dropdown labels each lake by its opaque per-origin id (the only handle
20
+ * the page ever sees) plus its capability set as a small caption — names and
21
+ * endpoints are redacted server-side.
22
+ */
23
+ export declare const ApprovedLakeSelector: React.FC<ApprovedLakeSelectorProps>;
24
+ //# sourceMappingURL=ApprovedLakeSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApprovedLakeSelector.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/ApprovedLakeSelector.tsx"],"names":[],"mappings":"AAOA,OAAO,KAEN,MAAM,OAAO,CAAA;AAId,MAAM,WAAW,yBAAyB;IACxC,gGAAgG;IAChG,UAAU,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC/B,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gEAAgE;IAChE,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,+EAA+E;IAC/E,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAgHpE,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { StackProps } from '@mui/material';
2
+ import type { Hash } from '@xylabs/sdk-js';
3
+ import React from 'react';
4
+ export interface DataLakeGetButtonProps extends StackProps {
5
+ /** Hashes to fetch from the lake bound to `id`. */
6
+ hashes: Hash[];
7
+ /** Per-origin opaque id from `requestAccess` or `list`. */
8
+ id: string;
9
+ timeout?: number;
10
+ }
11
+ /**
12
+ * Calls `client.dataLakes.get(id, hashes)` against a live wallet extension
13
+ * and renders the returned `DataLakeData[]` as JSON. Use after granting
14
+ * read access via {@link DataLakeRequestAccessButton} — the `id` arg is the
15
+ * per-origin handle the popup minted on Connect.
16
+ */
17
+ export declare const DataLakeGetButton: React.FC<DataLakeGetButtonProps>;
18
+ //# sourceMappingURL=DataLakeGetButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLakeGetButton.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/DataLakeGetButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAG1C,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACxD,mDAAmD;IACnD,MAAM,EAAE,IAAI,EAAE,CAAA;IACd,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAqF9D,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { StackProps } from '@mui/material';
2
+ import React from 'react';
3
+ export interface DataLakeGetPanelProps extends StackProps {
4
+ timeout?: number;
5
+ }
6
+ /**
7
+ * Self-contained Get flow: dropdown of viewer-capable approved lakes + a
8
+ * textarea for hashes + the underlying `DataLakeGetButton`. Built for
9
+ * Storybook's isolation mode, where the args panel is not available and the
10
+ * component needs to render its own controls.
11
+ *
12
+ * One hash per line in the textarea; whitespace-only lines are ignored.
13
+ */
14
+ export declare const DataLakeGetPanel: React.FC<DataLakeGetPanelProps>;
15
+ //# sourceMappingURL=DataLakeGetPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLakeGetPanel.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/DataLakeGetPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAK/C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAKhD,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA0C5D,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { StackProps } from '@mui/material';
2
+ import type { DataLakeData } from '@xyo-network/xl1-protocol-lib';
3
+ import React from 'react';
4
+ export interface DataLakeInsertButtonProps extends StackProps {
5
+ /** Per-origin opaque id from `requestAccess` or `list`. */
6
+ id: string;
7
+ /** Payloads to insert into the lake bound to `id`. */
8
+ payloads: DataLakeData[];
9
+ timeout?: number;
10
+ }
11
+ /**
12
+ * Calls `client.dataLakes.insert(id, payloads)` against a live wallet
13
+ * extension and renders the wallet's response (typically the hashes of the
14
+ * accepted payloads) as JSON. Use after granting write access via
15
+ * {@link DataLakeRequestAccessButton} — the `id` arg is the per-origin handle
16
+ * the popup minted on Connect.
17
+ */
18
+ export declare const DataLakeInsertButton: React.FC<DataLakeInsertButtonProps>;
19
+ //# sourceMappingURL=DataLakeInsertButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLakeInsertButton.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/DataLakeInsertButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAO/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAA;IACV,sDAAsD;IACtD,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAqFpE,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { StackProps } from '@mui/material';
2
+ import React from 'react';
3
+ export interface DataLakeInsertPanelProps extends StackProps {
4
+ timeout?: number;
5
+ }
6
+ /**
7
+ * Self-contained Insert flow: dropdown of runner-capable approved lakes + a
8
+ * JSON textarea + the underlying `DataLakeInsertButton`. Built for Storybook's
9
+ * isolation mode, where the args panel is not available and the component
10
+ * needs to render its own controls.
11
+ *
12
+ * The textarea accepts either one payload object or a JSON array of payload
13
+ * objects; bad JSON shows an inline parse error and disables the button.
14
+ */
15
+ export declare const DataLakeInsertPanel: React.FC<DataLakeInsertPanelProps>;
16
+ //# sourceMappingURL=DataLakeInsertPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLakeInsertPanel.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/DataLakeInsertPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAK/C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAKhD,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAkDD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwDlE,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { StackProps } from '@mui/material';
2
+ import React from 'react';
3
+ export interface DataLakeListButtonProps extends StackProps {
4
+ timeout?: number;
5
+ }
6
+ /**
7
+ * Calls `client.dataLakes.list()` against a live wallet extension and renders
8
+ * the approved-lake summary per origin. The page only ever sees the opaque
9
+ * per-origin `id`, the granted `capabilities`, and the lake's public schema
10
+ * policy — names and endpoints are deliberately redacted by the wallet.
11
+ */
12
+ export declare const DataLakeListButton: React.FC<DataLakeListButtonProps>;
13
+ //# sourceMappingURL=DataLakeListButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLakeListButton.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/DataLakeListButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAQ/C,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAsEhE,CAAA"}
@@ -0,0 +1,20 @@
1
+ import type { StackProps } from '@mui/material';
2
+ import React from 'react';
3
+ export interface DataLakeOperationsPanelProps extends StackProps {
4
+ timeout?: number;
5
+ }
6
+ /**
7
+ * Combined panel for exercising every page-side data-lake operation against a
8
+ * live wallet in a single rendered surface — `list`, `insert`, and `get`
9
+ * stacked with their own controls so a manual tester can drive the full flow
10
+ * without jumping between Storybook stories. Insert sits above Get so a
11
+ * tester can write a payload, copy the returned hash, and read it back in
12
+ * the same scroll. Designed for isolation mode where the args panel isn't
13
+ * available.
14
+ *
15
+ * Single-purpose: composes the three operation components and labels each
16
+ * section. State within each operation (selected lake, hashes, payload JSON)
17
+ * is owned by the underlying panel, not by this wrapper.
18
+ */
19
+ export declare const DataLakeOperationsPanel: React.FC<DataLakeOperationsPanelProps>;
20
+ //# sourceMappingURL=DataLakeOperationsPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLakeOperationsPanel.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/DataLakeOperationsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI/C,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA8B1E,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { StackProps } from '@mui/material';
2
+ import type { DataLakeRequestAccessOptions } from '@xyo-network/xl1-protocol-lib';
3
+ import React from 'react';
4
+ export interface DataLakeRequestAccessButtonProps extends StackProps {
5
+ options: DataLakeRequestAccessOptions;
6
+ timeout?: number;
7
+ }
8
+ /**
9
+ * Calls `client.dataLakes.requestAccess(options)` against a live wallet
10
+ * extension. Renders the resulting `{ id }` (the per-origin opaque handle
11
+ * for the most-recently-granted lake) or any error. Pair with
12
+ * {@link DataLakeListButton} after running to discover ALL granted lake ids
13
+ * when the user picks multiple lakes in the popup.
14
+ */
15
+ export declare const DataLakeRequestAccessButton: React.FC<DataLakeRequestAccessButtonProps>;
16
+ //# sourceMappingURL=DataLakeRequestAccessButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataLakeRequestAccessButton.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/DataLakeRequestAccessButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAO/C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAA;AACjF,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,MAAM,WAAW,gCAAiC,SAAQ,UAAU;IAClE,OAAO,EAAE,4BAA4B,CAAA;IACrC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CAqElF,CAAA"}
@@ -1,4 +1,12 @@
1
1
  export * from './account/index.ts';
2
+ export * from './ApprovedLakeSelector.tsx';
2
3
  export * from './ConnectAccountsStack.tsx';
4
+ export * from './DataLakeGetButton.tsx';
5
+ export * from './DataLakeGetPanel.tsx';
6
+ export * from './DataLakeInsertButton.tsx';
7
+ export * from './DataLakeInsertPanel.tsx';
8
+ export * from './DataLakeListButton.tsx';
9
+ export * from './DataLakeOperationsPanel.tsx';
10
+ export * from './DataLakeRequestAccessButton.tsx';
3
11
  export * from './RequestPermissionsButton.tsx';
4
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/components/connected/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mCAAmC,CAAA;AACjD,cAAc,gCAAgC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildGateway.d.ts","sourceRoot":"","sources":["../../../../../../src/client/context/in-page/lib/buildGateway.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACG,YAAY,EAAE,gBAAgB,EAC5C,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAO7B,eAAO,MAAM,YAAY,GAAU,aAAa,WAAW,EAAE,kBAAkB,YAAY,CAAC,mBAAmB,CAAC,wFAkB/G,CAAA"}
1
+ {"version":3,"file":"buildGateway.d.ts","sourceRoot":"","sources":["../../../../../../src/client/context/in-page/lib/buildGateway.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACG,YAAY,EAAE,gBAAgB,EAC5C,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAO7B,eAAO,MAAM,YAAY,GAAU,aAAa,WAAW,EAAE,kBAAkB,YAAY,CAAC,mBAAmB,CAAC,wFAgB/G,CAAA"}