@marimo-team/marimo-export 0.0.7 → 0.1.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.
@@ -26,6 +26,6 @@ interface LoadedAnyWidget<State extends AnyWidgetStateShape<State> = ModelState,
26
26
  //#endregion
27
27
  //#region src/loader/anywidget.d.ts
28
28
  /** Decode an exported AnyWidget value and prepare it for browser mounting. */
29
- declare const anyWidgetLoader: <State extends AnyWidgetStateShape<State> = ModelState, Exports extends object | undefined = object | undefined>() => BlobAssetLoader<LoadedAnyWidget<State, Exports>>;
29
+ export declare const anyWidgetLoader: <State extends AnyWidgetStateShape<State> = ModelState, Exports extends object | undefined = object | undefined>() => BlobAssetLoader<LoadedAnyWidget<State, Exports>>;
30
30
  //#endregion
31
- export { type AnyModel, type AnyWidgetMountOptions, type AnyWidgetStateShape, type LoadedAnyWidget, type ModelState, type MountedAnyWidget, anyWidgetLoader };
31
+ export type { AnyModel, AnyWidgetMountOptions, AnyWidgetStateShape, LoadedAnyWidget, ModelState, MountedAnyWidget };
@@ -1,10 +1,9 @@
1
1
  import { j as OutputLoader } from "../types-D52GHn1Q.mjs";
2
2
  import { ExtractionOptions, Table } from "@uwdata/flechette";
3
3
  //#region ../loader-arrow/src/index.d.ts
4
- interface ArrowTableLoaderOptions {
4
+ export interface ArrowTableLoaderOptions {
5
5
  readonly extraction?: ExtractionOptions;
6
6
  }
7
7
  /** Decode a verified Arrow IPC file as a Flechette table. */
8
- declare function arrowTableLoader(options?: ArrowTableLoaderOptions): OutputLoader<"apache.arrow.file.v1", Table>;
9
- //#endregion
10
- export { ArrowTableLoaderOptions, arrowTableLoader };
8
+ export declare function arrowTableLoader(options?: ArrowTableLoaderOptions): OutputLoader<"apache.arrow.file.v1", Table>;
9
+ //#endregion
@@ -1,6 +1,5 @@
1
1
  import { s as BlobAssetLoader } from "../types-D52GHn1Q.mjs";
2
2
  //#region src/loader/html.d.ts
3
3
  /** Decode a UTF-8 HTML BlobAsset into an inert string. */
4
- declare const htmlLoader: () => BlobAssetLoader<string>;
5
- //#endregion
6
- export { htmlLoader };
4
+ export declare const htmlLoader: () => BlobAssetLoader<string>;
5
+ //#endregion
@@ -1,6 +1,5 @@
1
1
  import { H as JsonValue, j as OutputLoader } from "../types-D52GHn1Q.mjs";
2
2
  //#region src/loader/json.d.ts
3
3
  /** Return one detached, immutable JSON projection. */
4
- declare const jsonLoader: () => OutputLoader<"marimo.json.v1", JsonValue>;
5
- //#endregion
6
- export { jsonLoader };
4
+ export declare const jsonLoader: () => OutputLoader<"marimo.json.v1", JsonValue>;
5
+ //#endregion
@@ -2,6 +2,5 @@ import { j as OutputLoader } from "../types-D52GHn1Q.mjs";
2
2
  import { o as MarimoCellSnapshot } from "../marimo-snapshot-Df66Xan0.mjs";
3
3
  //#region src/loader/marimo-cell.d.ts
4
4
  /** Decode one inert complete-cell snapshot. */
5
- declare const marimoCellLoader: () => OutputLoader<"marimo.cell.v1", MarimoCellSnapshot>;
6
- //#endregion
7
- export { marimoCellLoader };
5
+ export declare const marimoCellLoader: () => OutputLoader<"marimo.cell.v1", MarimoCellSnapshot>;
6
+ //#endregion
@@ -2,6 +2,5 @@ import { j as OutputLoader } from "../types-D52GHn1Q.mjs";
2
2
  import { m as MarimoOutputSnapshot } from "../marimo-snapshot-Df66Xan0.mjs";
3
3
  //#region src/loader/marimo-output.d.ts
4
4
  /** Decode one inert Marimo output snapshot. */
5
- declare const marimoOutputLoader: () => OutputLoader<"marimo.output.v1", MarimoOutputSnapshot>;
6
- //#endregion
7
- export { marimoOutputLoader };
5
+ export declare const marimoOutputLoader: () => OutputLoader<"marimo.output.v1", MarimoOutputSnapshot>;
6
+ //#endregion
@@ -1,19 +1,18 @@
1
1
  import { j as OutputLoader } from "../types-D52GHn1Q.mjs";
2
2
  //#region ../loader-numpy/src/index.d.ts
3
- type NumpyDTypeKind = "boolean" | "signed-integer" | "unsigned-integer" | "floating-point" | "complex-floating-point";
4
- interface NumpyDType {
3
+ export type NumpyDTypeKind = "boolean" | "signed-integer" | "unsigned-integer" | "floating-point" | "complex-floating-point";
4
+ export interface NumpyDType {
5
5
  readonly descriptor: string;
6
6
  readonly kind: NumpyDTypeKind;
7
7
  readonly itemSize: number;
8
8
  readonly byteOrder: "little" | "big" | "not-applicable";
9
9
  }
10
- interface NumpyArray {
10
+ export interface NumpyArray {
11
11
  readonly data: ArrayBufferView;
12
12
  readonly shape: readonly number[];
13
13
  readonly dtype: NumpyDType;
14
14
  readonly fortranOrder: boolean;
15
15
  }
16
16
  /** Decode a verified portable NPY asset. */
17
- declare function numpyLoader(): OutputLoader<"numpy.npy.v1", NumpyArray>;
18
- //#endregion
19
- export { NumpyArray, NumpyDType, NumpyDTypeKind, numpyLoader };
17
+ export declare function numpyLoader(): OutputLoader<"numpy.npy.v1", NumpyArray>;
18
+ //#endregion
@@ -9,6 +9,6 @@ interface ParquetRow {
9
9
  readonly [column: string]: ParquetValue;
10
10
  }
11
11
  /** Read a verified Parquet BlobAsset into row objects. */
12
- declare function parquetRowsLoader(options?: ParquetRowsLoaderOptions): BlobAssetLoader<readonly ParquetRow[]>;
12
+ export declare function parquetRowsLoader(options?: ParquetRowsLoaderOptions): BlobAssetLoader<readonly ParquetRow[]>;
13
13
  //#endregion
14
- export { type ParquetRow, type ParquetRowsLoaderOptions, type ParquetValue, parquetRowsLoader };
14
+ export type { ParquetRow, ParquetRowsLoaderOptions, ParquetValue };
@@ -1,6 +1,5 @@
1
1
  import { s as BlobAssetLoader } from "../types-D52GHn1Q.mjs";
2
2
  //#region src/loader/text.d.ts
3
3
  /** Decode a UTF-8 text BlobAsset. */
4
- declare const textLoader: () => BlobAssetLoader<string>;
5
- //#endregion
6
- export { textLoader };
4
+ export declare const textLoader: () => BlobAssetLoader<string>;
5
+ //#endregion
@@ -13,6 +13,6 @@ interface VegaLiteChart {
13
13
  mount(element: HTMLElement, options?: VegaLiteMountOptions): Promise<MountedVegaLite>;
14
14
  }
15
15
  /** Load an exported Vega-Lite value and prepare it for browser mounting. */
16
- declare function vegaLiteLoader(defaults?: EmbedOptions): BlobAssetLoader<VegaLiteChart>;
16
+ export declare function vegaLiteLoader(defaults?: EmbedOptions): BlobAssetLoader<VegaLiteChart>;
17
17
  //#endregion
18
- export { type MountedVegaLite, type VegaLiteChart, type VegaLiteMountOptions, type VegaLiteSpec, vegaLiteLoader };
18
+ export type { MountedVegaLite, VegaLiteChart, VegaLiteMountOptions, VegaLiteSpec };
@@ -16,17 +16,17 @@ interface PreparedPublication {
16
16
  interface OpenPreparedPublicationOptions extends OpenExportOptions {
17
17
  readonly openExport?: (base: string | URL, options?: OpenExportOptions) => Promise<NotebookExport>;
18
18
  }
19
- declare const parsePreparedExportManifest: <Input>(input: Input) => PreparedExportManifest;
20
- declare const resolvePreparedPublication: (manifest: PreparedExportManifest, manifestUrl: URL, notebookExport: NotebookExport) => PreparedPublication;
21
- declare const openPreparedPublication: (manifest: PreparedExportManifest, manifestUrl: URL, options?: OpenPreparedPublicationOptions) => Promise<PreparedPublication>;
19
+ export declare const parsePreparedExportManifest: <Input>(input: Input) => PreparedExportManifest;
20
+ export declare const resolvePreparedPublication: (manifest: PreparedExportManifest, manifestUrl: URL, notebookExport: NotebookExport) => PreparedPublication;
21
+ export declare const openPreparedPublication: (manifest: PreparedExportManifest, manifestUrl: URL, options?: OpenPreparedPublicationOptions) => Promise<PreparedPublication>;
22
22
  //#endregion
23
23
  //#region src/prepared/manifest-fetch.d.ts
24
24
  interface PreparedManifestFetchOptions {
25
25
  readonly fetch?: typeof globalThis.fetch;
26
26
  readonly signal?: AbortSignal;
27
27
  }
28
- declare const fetchPreparedExportManifest: (url: URL, options?: PreparedManifestFetchOptions) => Promise<PreparedExportManifest>;
29
- declare const fetchPreparedManifestDocument: (url: URL, options?: PreparedManifestFetchOptions) => Promise<JsonValue>;
28
+ export declare const fetchPreparedExportManifest: (url: URL, options?: PreparedManifestFetchOptions) => Promise<PreparedExportManifest>;
29
+ export declare const fetchPreparedManifestDocument: (url: URL, options?: PreparedManifestFetchOptions) => Promise<JsonValue>;
30
30
  //#endregion
31
31
  //#region src/prepared/state-port.d.ts
32
32
  type PreparedStateChangeReason = "start" | "state" | "publication";
@@ -54,7 +54,7 @@ interface PreparedStateSnapshot {
54
54
  }
55
55
  //#endregion
56
56
  //#region src/prepared/controller.d.ts
57
- declare class PreparedStateController {
57
+ export declare class PreparedStateController {
58
58
  #private;
59
59
  constructor(port: PreparedStatePort, signal?: AbortSignal);
60
60
  snapshot(): PreparedStateSnapshot;
@@ -80,7 +80,7 @@ interface PreparedPublicationRefreshOptions {
80
80
  readonly signal?: AbortSignal;
81
81
  readonly onError?: (cause: unknown) => void;
82
82
  }
83
- declare class PreparedPublicationRefresh {
83
+ export declare class PreparedPublicationRefresh {
84
84
  #private;
85
85
  constructor(manifestUrl: URL, state: PreparedStateController, options?: PreparedPublicationRefreshOptions);
86
86
  start(signal?: AbortSignal): Promise<void>;
@@ -91,15 +91,15 @@ declare class PreparedPublicationRefresh {
91
91
  }
92
92
  //#endregion
93
93
  //#region src/prepared/control.d.ts
94
- declare const samePreparedInputs: (left: JsonObject, right: JsonObject) => boolean;
95
- declare const preparedControlInputPatch: (inputs: JsonObject, binding: ControlBinding, value: JsonValue) => JsonObject | undefined;
94
+ export declare const samePreparedInputs: (left: JsonObject, right: JsonObject) => boolean;
95
+ export declare const preparedControlInputPatch: (inputs: JsonObject, binding: ControlBinding, value: JsonValue) => JsonObject | undefined;
96
96
  //#endregion
97
97
  //#region src/prepared/query.d.ts
98
- declare const resolvePreparedQuerySelection: (notebookExport: NotebookExport, current: ExportState, query: string) => ExportState | undefined;
99
- declare const resolvePreparedQueryState: (notebookExport: NotebookExport, current: ExportState, query: string) => ExportState;
98
+ export declare const resolvePreparedQuerySelection: (notebookExport: NotebookExport, current: ExportState, query: string) => ExportState | undefined;
99
+ export declare const resolvePreparedQueryState: (notebookExport: NotebookExport, current: ExportState, query: string) => ExportState;
100
100
  //#endregion
101
101
  //#region src/prepared/cancellation.d.ts
102
- declare const isPreparedAbort: <Value>(value: Value) => boolean;
102
+ export declare const isPreparedAbort: <Value>(value: Value) => boolean;
103
103
  //#endregion
104
104
  //#region src/prepared/errors.d.ts
105
105
  declare const PREPARED_EXPORT_ERROR_CODES: readonly ["manifest_invalid", "manifest_read_failed", "query_ambiguous", "query_miss"];
@@ -107,11 +107,11 @@ type PreparedExportErrorCode = (typeof PREPARED_EXPORT_ERROR_CODES)[number];
107
107
  interface PreparedExportErrorOptions {
108
108
  readonly cause?: unknown;
109
109
  }
110
- declare class PreparedExportError extends Error {
110
+ export declare class PreparedExportError extends Error {
111
111
  readonly code: PreparedExportErrorCode;
112
112
  readonly cause: unknown;
113
113
  constructor(code: PreparedExportErrorCode, message: string, options?: PreparedExportErrorOptions);
114
114
  }
115
- declare const isPreparedExportError: <Value>(value: Value) => value is Value & PreparedExportError;
115
+ export declare const isPreparedExportError: <Value>(value: Value) => value is Value & PreparedExportError;
116
116
  //#endregion
117
- export { type OpenPreparedPublicationOptions, PreparedExportError, type PreparedExportErrorCode, type PreparedExportManifest, type PreparedManifestFetchOptions, type PreparedPublication, PreparedPublicationRefresh, type PreparedPublicationRefreshDependencies, type PreparedPublicationRefreshOptions, type PreparedStateChange, type PreparedStateChangeReason, PreparedStateController, type PreparedStatePort, type PreparedStateSnapshot, fetchPreparedExportManifest, fetchPreparedManifestDocument, isPreparedAbort, isPreparedExportError, openPreparedPublication, parsePreparedExportManifest, preparedControlInputPatch, resolvePreparedPublication, resolvePreparedQuerySelection, resolvePreparedQueryState, samePreparedInputs };
117
+ export type { OpenPreparedPublicationOptions, PreparedExportErrorCode, PreparedExportManifest, PreparedManifestFetchOptions, PreparedPublication, PreparedPublicationRefreshDependencies, PreparedPublicationRefreshOptions, PreparedStateChange, PreparedStateChangeReason, PreparedStatePort, PreparedStateSnapshot };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/marimo-export",
3
- "version": "0.0.7",
3
+ "version": "0.1.0",
4
4
  "description": "Open and load verified marimo notebook exports in browser applications",
5
5
  "homepage": "https://marimo-team.github.io/marimo-export/",
6
6
  "bugs": {
@@ -80,19 +80,19 @@
80
80
  "@marimo-team/portable-json": "0.0.0",
81
81
  "@types/node": "^24.13.3",
82
82
  "@uwdata/flechette": "^2.5.0",
83
- "hyparquet": "^1.29.2",
84
- "lz4js": "0.2.0",
83
+ "hyparquet": "^1.30.0",
84
+ "lz4js": "^0.2.0",
85
85
  "picomatch": "4.0.7",
86
86
  "typescript": "^6.0.3",
87
87
  "vega-embed": "^7.2.0",
88
- "vite-plus": "0.3.0",
89
- "yaml": "2.9.0"
88
+ "vite-plus": "0.3.2",
89
+ "yaml": "2.9.1"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@anywidget/types": "^0.4.0",
93
93
  "@uwdata/flechette": "^2.5.0",
94
94
  "hyparquet": "^1.26.2",
95
- "lz4js": "0.2.0",
95
+ "lz4js": "^0.2.0",
96
96
  "vega-embed": "^7.1.0"
97
97
  },
98
98
  "peerDependenciesMeta": {