@malloy-publisher/sdk 0.0.149 → 0.0.151
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/ServerProvider-BjR4D3h8.cjs.js +1 -0
- package/dist/{ServerProvider-D-y63tG0.es.js → ServerProvider-_6lPMSSy.es.js} +468 -450
- package/dist/client/api.d.ts +6 -0
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/ServerProvider.d.ts +3 -6
- package/dist/index.cjs.js +24 -24
- package/dist/index.es.js +990 -991
- package/package.json +1 -1
- package/src/components/Model/SourcesExplorer.tsx +10 -19
- package/src/components/Notebook/Notebook.tsx +6 -1
- package/src/components/ServerProvider.tsx +49 -6
- package/dist/ServerProvider-Bzid56gJ.cjs.js +0 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -879,6 +879,12 @@ export interface ServerStatus {
|
|
|
879
879
|
* @memberof ServerStatus
|
|
880
880
|
*/
|
|
881
881
|
'initialized'?: boolean;
|
|
882
|
+
/**
|
|
883
|
+
* Whether the server configuration is frozen (read-only mode). When true, all mutation operations are disabled.
|
|
884
|
+
* @type {boolean}
|
|
885
|
+
* @memberof ServerStatus
|
|
886
|
+
*/
|
|
887
|
+
'frozenConfig'?: boolean;
|
|
882
888
|
}
|
|
883
889
|
/**
|
|
884
890
|
* Snowflake database connection configuration
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ServerProvider-BjR4D3h8.cjs.js");exports.AttachedDatabaseTypeEnum=o.AttachedDatabaseTypeEnum;exports.Configuration=o.Configuration;exports.ConnectionStatusStatusEnum=o.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=o.ConnectionTypeEnum;exports.ConnectionsApi=o.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=o.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=o.ConnectionsApiFactory;exports.ConnectionsApiFp=o.ConnectionsApiFp;exports.ConnectionsTestApi=o.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=o.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=o.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=o.ConnectionsTestApiFp;exports.DatabaseTypeEnum=o.DatabaseTypeEnum;exports.DatabasesApi=o.DatabasesApi;exports.DatabasesApiAxiosParamCreator=o.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=o.DatabasesApiFactory;exports.DatabasesApiFp=o.DatabasesApiFp;exports.ModelsApi=o.ModelsApi;exports.ModelsApiAxiosParamCreator=o.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=o.ModelsApiFactory;exports.ModelsApiFp=o.ModelsApiFp;exports.NotebookCellResultTypeEnum=o.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=o.NotebookCellTypeEnum;exports.NotebooksApi=o.NotebooksApi;exports.NotebooksApiAxiosParamCreator=o.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=o.NotebooksApiFactory;exports.NotebooksApiFp=o.NotebooksApiFp;exports.PackagesApi=o.PackagesApi;exports.PackagesApiAxiosParamCreator=o.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=o.PackagesApiFactory;exports.PackagesApiFp=o.PackagesApiFp;exports.ProjectsApi=o.ProjectsApi;exports.ProjectsApiAxiosParamCreator=o.ProjectsApiAxiosParamCreator;exports.ProjectsApiFactory=o.ProjectsApiFactory;exports.ProjectsApiFp=o.ProjectsApiFp;exports.PublisherApi=o.PublisherApi;exports.PublisherApiAxiosParamCreator=o.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=o.PublisherApiFactory;exports.PublisherApiFp=o.PublisherApiFp;exports.ServerProvider=o.ServerProvider;exports.WatchModeApi=o.WatchModeApi;exports.WatchModeApiAxiosParamCreator=o.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=o.WatchModeApiFactory;exports.WatchModeApiFp=o.WatchModeApiFp;exports.globalQueryClient=o.globalQueryClient;exports.useServer=o.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o, R as e, a as i, C as t, f as r, c as p, e as A, d as n, k as c, h as C, j as P, i as F, D as b, o as l, l as m, n as u, m as y, r as d, M as k, q as x, p as h, b as M, N as T, w as g, s as D, v as E, t as N, z as j, P as S, y as W, x as v, G as f, B as Q, F as R, E as q, K as w, H as z, J as B, I as G, S as H, Q as I, W as J, O as K, L, g as O, u as U } from "../ServerProvider-
|
|
1
|
+
import { A as o, R as e, a as i, C as t, f as r, c as p, e as A, d as n, k as c, h as C, j as P, i as F, D as b, o as l, l as m, n as u, m as y, r as d, M as k, q as x, p as h, b as M, N as T, w as g, s as D, v as E, t as N, z as j, P as S, y as W, x as v, G as f, B as Q, F as R, E as q, K as w, H as z, J as B, I as G, S as H, Q as I, W as J, O as K, L, g as O, u as U } from "../ServerProvider-_6lPMSSy.es.js";
|
|
2
2
|
export {
|
|
3
3
|
o as AttachedDatabaseTypeEnum,
|
|
4
4
|
e as Configuration,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { ConnectionsApi, DatabasesApi, ModelsApi, NotebooksApi, PackagesApi, ProjectsApi, WatchModeApi } from '../client';
|
|
2
|
+
import { ConnectionsApi, DatabasesApi, ModelsApi, NotebooksApi, PackagesApi, ProjectsApi, PublisherApi, WatchModeApi } from '../client';
|
|
3
3
|
export interface ServerContextValue {
|
|
4
4
|
server: string;
|
|
5
5
|
getAccessToken?: () => Promise<string>;
|
|
6
6
|
apiClients: ApiClients;
|
|
7
7
|
mutable: boolean;
|
|
8
|
+
isLoadingStatus: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface ServerProviderProps {
|
|
10
11
|
children: ReactNode;
|
|
@@ -19,14 +20,10 @@ export interface ServerProviderProps {
|
|
|
19
20
|
* Will send "Bearer 123" in the Authorization header.
|
|
20
21
|
*/
|
|
21
22
|
getAccessToken?: () => Promise<string>;
|
|
22
|
-
/** Whether the publisher should allow project and package management operations.
|
|
23
|
-
* When false, users can only view and explore existing projects and packages.
|
|
24
|
-
* @default true
|
|
25
|
-
*/
|
|
26
|
-
mutable?: boolean;
|
|
27
23
|
}
|
|
28
24
|
declare const getApiClients: (baseURL?: string, accessToken?: () => Promise<string>) => {
|
|
29
25
|
models: ModelsApi;
|
|
26
|
+
publisher: PublisherApi;
|
|
30
27
|
projects: ProjectsApi;
|
|
31
28
|
packages: PackagesApi;
|
|
32
29
|
notebooks: NotebooksApi;
|