@malloy-publisher/sdk 0.0.199 → 0.0.201
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-BSyxB6sf.cjs.js +1 -0
- package/dist/{ServerProvider-BuM1usxf.es.js → ServerProvider-DSnbMlP3.es.js} +330 -470
- package/dist/client/api.d.ts +21 -121
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Connections/EditConnectionDialog.d.ts +2 -1
- package/dist/components/given/GivenInput.d.ts +16 -0
- package/dist/components/given/GivensPanel.d.ts +18 -0
- package/dist/components/given/index.d.ts +2 -0
- package/dist/{core-DfcpQGVP.es.js → core-B3IQNPBD.es.js} +1 -1
- package/dist/{core-yDgxkpo0.cjs.js → core-GkjltsUf.cjs.js} +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useGivensForm.d.ts +33 -0
- package/dist/hooks/useModelGivens.d.ts +10 -0
- package/dist/index-BpoC5QHF.cjs.js +229 -0
- package/dist/{index-Y4ooZDYA.es.js → index-uW-ZBpF2.es.js} +26102 -25626
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +28 -26
- package/package.json +1 -1
- package/src/components/Connections/DeleteConnectionDialog.tsx +10 -3
- package/src/components/Connections/EditConnectionDialog.tsx +11 -3
- package/src/components/Environment/Connections.tsx +388 -0
- package/src/components/Environment/Environment.tsx +7 -2
- package/src/components/Notebook/Notebook.tsx +81 -23
- package/src/components/Package/Package.tsx +0 -7
- package/src/components/given/GivenInput.tsx +190 -0
- package/src/components/given/GivensPanel.tsx +85 -0
- package/src/components/given/index.ts +2 -0
- package/src/hooks/index.ts +8 -0
- package/src/hooks/useGivensForm.ts +110 -0
- package/src/hooks/useModelGivens.ts +26 -0
- package/dist/ServerProvider-C_Mnvmgc.cjs.js +0 -1
- package/dist/index-CMA8U4-B.cjs.js +0 -228
- package/src/components/Package/Connections.tsx +0 -373
- /package/dist/components/{Package → Environment}/Connections.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Given, RawNotebook } from '../client';
|
|
2
|
+
/**
|
|
3
|
+
* Extracts the deduplicated list of model-level `given:` declarations from
|
|
4
|
+
* a notebook's sources. The server attaches the same model-level givens to
|
|
5
|
+
* every `Source` for SDK ergonomics (see #761); this hook collapses them
|
|
6
|
+
* back to one entry per name so callers render a single input per given.
|
|
7
|
+
*
|
|
8
|
+
* Returns an empty array when no givens are declared on any source.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useModelGivens(notebook: RawNotebook | undefined): Given[];
|