@gravitee/graphene-core 2.41.0 → 2.42.0-monaco-base.920e0b3

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 (27) hide show
  1. package/dist/__stories__/fixtures/index.d.ts +1 -1
  2. package/dist/__stories__/fixtures/index.d.ts.map +1 -1
  3. package/dist/__stories__/fixtures/json-schema-form/disableIf.fixture.d.ts +3 -0
  4. package/dist/__stories__/fixtures/json-schema-form/disableIf.fixture.d.ts.map +1 -0
  5. package/dist/__stories__/fixtures/json-schema-form/index.d.ts +1 -0
  6. package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -1
  7. package/dist/composed/CodeEditor/CodeEditor.d.ts +29 -0
  8. package/dist/composed/CodeEditor/CodeEditor.d.ts.map +1 -0
  9. package/dist/composed/CodeEditor/index.d.ts +6 -0
  10. package/dist/composed/CodeEditor/index.d.ts.map +1 -0
  11. package/dist/composed/CodeEditor/models/index.d.ts +13 -0
  12. package/dist/composed/CodeEditor/models/index.d.ts.map +1 -0
  13. package/dist/composed/CodeEditor/setupCodeEditor.d.ts +24 -0
  14. package/dist/composed/CodeEditor/setupCodeEditor.d.ts.map +1 -0
  15. package/dist/composed/CodeEditor/theme/buildTheme.d.ts +49 -0
  16. package/dist/composed/CodeEditor/theme/buildTheme.d.ts.map +1 -0
  17. package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
  18. package/dist/composed/JsonSchemaForm/conditional/DisabledGate.d.ts +15 -0
  19. package/dist/composed/JsonSchemaForm/conditional/DisabledGate.d.ts.map +1 -0
  20. package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
  21. package/dist/composed/JsonSchemaForm/schema/types.d.ts +4 -0
  22. package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +6808 -6583
  26. package/dist/styles/globals.css +1 -1
  27. package/package.json +6 -1
@@ -5,7 +5,7 @@
5
5
  export { sampleApps, sampleAppsExtended } from './shell/app-switcher.fixture';
6
6
  export { sampleEnvironments, sampleEnvironmentsForSidebar } from './shell/environment-picker.fixture';
7
7
  export { agentManagementApps, agentManagementNavGroups, contextNavGroups, contextPageTabKeys, findContextLabel, findNavLabel, pageLayoutNavGroups, sampleNavGroups, } from './navigation.fixture';
8
- export { jsonSchemaFormArrayExampleSchema, jsonSchemaFormBannerSchema, jsonSchemaFormCombinatorsExampleSchema, jsonSchemaFormDependenciesSchema, jsonSchemaFormDeprecatedSchema, jsonSchemaFormDisplayIfSchema, jsonSchemaFormEnumExampleSchema, jsonSchemaFormPlaygroundSchema, } from './json-schema-form';
8
+ export { jsonSchemaFormArrayExampleSchema, jsonSchemaFormBannerSchema, jsonSchemaFormCombinatorsExampleSchema, jsonSchemaFormDependenciesSchema, jsonSchemaFormDeprecatedSchema, jsonSchemaFormDisableIfSchema, jsonSchemaFormDisplayIfSchema, jsonSchemaFormEnumExampleSchema, jsonSchemaFormPlaygroundSchema, } from './json-schema-form';
9
9
  export { jsonSchemaFormObjectVariantsSchema } from './json-schema-form-object-variants.fixture';
10
10
  export { catalogApis } from './apim/api-catalog.fixture';
11
11
  export { samplePlans } from './apim/plans.fixture';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAEtG,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gCAAgC,EAChC,0BAA0B,EAC1B,s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,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { JsonSchema } from '../../../composed/JsonSchemaForm';
2
+ export declare const jsonSchemaFormDisableIfSchema: JsonSchema;
3
+ //# sourceMappingURL=disableIf.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disableIf.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/disableIf.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAMlF,eAAO,MAAM,6BAA6B,EAAE,UA8H3C,CAAC"}
@@ -3,6 +3,7 @@ export { jsonSchemaFormBannerSchema } from './banner.fixture';
3
3
  export { jsonSchemaFormCombinatorsExampleSchema } from './combinators.fixture';
4
4
  export { jsonSchemaFormDependenciesSchema } from './dependencies.fixture';
5
5
  export { jsonSchemaFormDeprecatedSchema } from './deprecated.fixture';
6
+ export { jsonSchemaFormDisableIfSchema } from './disableIf.fixture';
6
7
  export { jsonSchemaFormDisplayIfSchema } from './displayIf.fixture';
7
8
  export { jsonSchemaFormEnumExampleSchema } from './enum.fixture';
8
9
  export { jsonSchemaFormPlaygroundSchema } from './playground.fixture';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { EditorProps } from '@monaco-editor/react';
2
+ import { CodeEditorLanguage } from './models';
3
+ import * as React from 'react';
4
+ export interface CodeEditorProps {
5
+ value?: string;
6
+ defaultValue?: string;
7
+ onChange?: (value: string | undefined) => void;
8
+ language?: CodeEditorLanguage;
9
+ /** Lock editing from the schema (read-only intent). */
10
+ readOnly?: boolean;
11
+ /** Lock editing from form state; also dims the editor. */
12
+ disabled?: boolean;
13
+ /**
14
+ * Explicit height of the editor container. Accepts a pixel number (`300`) or any CSS value
15
+ * (`"50vh"`, `"100%"`). When omitted, the container has no inline height — size it via
16
+ * `className` (`"h-64"`, `"h-full"`) or let a parent flex/grid item control it.
17
+ * Monaco requires a non-zero height to render; ensure one is always provided via one of
18
+ * these means.
19
+ */
20
+ height?: number | string;
21
+ className?: string;
22
+ /** Advanced escape hatch — passes through to Monaco's construction options. */
23
+ options?: EditorProps['options'];
24
+ /** Advanced escape hatch — Monaco editor + namespace once mounted. */
25
+ onMount?: EditorProps['onMount'];
26
+ }
27
+ declare function CodeEditor({ value, defaultValue, onChange, language, readOnly, disabled, height, className, options, onMount, }: CodeEditorProps): React.JSX.Element;
28
+ export { CodeEditor };
29
+ //# sourceMappingURL=CodeEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../src/composed/CodeEditor/CodeEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,WAAW,EAAU,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAoB,MAAM,UAAU,CAAC;AAIrE,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,sEAAsE;IACtE,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC;AA6BD,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,QAAsB,EACtB,QAAgB,EAChB,QAAgB,EAChB,MAAM,EACN,SAAS,EACT,OAAO,EACP,OAAO,GACR,EAAE,eAAe,qBA0EjB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { CodeEditor } from './CodeEditor';
2
+ export type { CodeEditorProps } from './CodeEditor';
3
+ export { setupCodeEditor } from './setupCodeEditor';
4
+ export type { SetupCodeEditorOptions } from './setupCodeEditor';
5
+ export type { CodeEditorLanguage } from './models';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composed/CodeEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { EditorProps } from '@monaco-editor/react';
2
+ /**
3
+ * The Monaco standalone editor instance handed to `onMount`. Internal — deliberately kept out
4
+ * of the public barrel so no engine type leaks into the package surface.
5
+ */
6
+ export type StandaloneEditor = Parameters<NonNullable<EditorProps['onMount']>>[0];
7
+ /**
8
+ * Languages with first-class support in the Graphene `CodeEditor`. The engine colors any
9
+ * built-in Monaco language id; this union curates the officially-supported set (and is what the
10
+ * JSON-schema integration maps onto in a later PR).
11
+ */
12
+ export type CodeEditorLanguage = 'json' | 'yaml' | 'html' | 'markdown' | 'css' | 'plaintext' | 'javascript';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composed/CodeEditor/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAElF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,WAAW,GAAG,YAAY,CAAC"}
@@ -0,0 +1,24 @@
1
+ export interface SetupCodeEditorOptions {
2
+ /**
3
+ * URL under which the app serves Monaco's `vs` asset folder, e.g. `"/assets/monaco/vs"`.
4
+ * Must point at a copy of `node_modules/monaco-editor/min/vs` of the **same version** as the
5
+ * installed `monaco-editor`.
6
+ */
7
+ baseUrl: string;
8
+ }
9
+ /**
10
+ * Point Monaco's loader at a self-hosted `vs` folder instead of the default jsdelivr CDN.
11
+ * Call once at app bootstrap, before the first `<CodeEditor>` mounts.
12
+ *
13
+ * Idempotent: Monaco's `loader.config` is a global singleton (first caller wins), so any
14
+ * subsequent call is ignored. Exposing this as an explicit init — rather than a hidden import
15
+ * side-effect — keeps the runtime-loading decision owned by the host app.
16
+ */
17
+ export declare function setupCodeEditor({ baseUrl }: SetupCodeEditorOptions): void;
18
+ /**
19
+ * Whether {@link setupCodeEditor} has been called. `<CodeEditor>` reads this to emit a dev-only
20
+ * warning when it mounts without an explicit init — otherwise Monaco silently falls back to the
21
+ * CDN, which breaks under a strict CSP or offline.
22
+ */
23
+ export declare function isCodeEditorConfigured(): boolean;
24
+ //# sourceMappingURL=setupCodeEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupCodeEditor.d.ts","sourceRoot":"","sources":["../../../src/composed/CodeEditor/setupCodeEditor.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,GAAG,IAAI,CAIzE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD"}
@@ -0,0 +1,49 @@
1
+ export declare const THEME_NAME = "graphene";
2
+ export declare function buildTheme(): {
3
+ base: "vs-dark" | "vs";
4
+ inherit: boolean;
5
+ rules: ({
6
+ token: string;
7
+ foreground: string;
8
+ fontStyle?: undefined;
9
+ } | {
10
+ token: string;
11
+ foreground: string;
12
+ fontStyle: string;
13
+ })[];
14
+ colors: {
15
+ 'editor.background': string;
16
+ 'editor.foreground': string;
17
+ 'editor.lineHighlightBackground': string;
18
+ 'editor.lineHighlightBorder': string;
19
+ 'editor.selectionBackground': string;
20
+ 'editor.inactiveSelectionBackground': string;
21
+ 'editorCursor.foreground': string;
22
+ 'editorLineNumber.foreground': string;
23
+ 'editorLineNumber.activeForeground': string;
24
+ 'editorGutter.background': string;
25
+ 'editorIndentGuide.background1': string;
26
+ 'editorIndentGuide.activeBackground1': string;
27
+ 'editorWidget.background': string;
28
+ 'editorWidget.foreground': string;
29
+ 'editorWidget.border': string;
30
+ 'editorWidget.resizeBorder': string;
31
+ 'widget.shadow': string;
32
+ 'input.background': string;
33
+ 'input.border': string;
34
+ 'input.foreground': string;
35
+ 'input.placeholderForeground': string;
36
+ 'inputOption.activeBorder': string;
37
+ 'inputOption.activeBackground': string;
38
+ 'inputOption.activeForeground': string;
39
+ 'button.background': string;
40
+ 'button.foreground': string;
41
+ 'editorSuggestWidget.background': string;
42
+ 'editorSuggestWidget.border': string;
43
+ 'editorSuggestWidget.selectedBackground': string;
44
+ 'scrollbarSlider.background': string;
45
+ 'scrollbarSlider.hoverBackground': string;
46
+ 'scrollbarSlider.activeBackground': string;
47
+ };
48
+ };
49
+ //# sourceMappingURL=buildTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildTheme.d.ts","sourceRoot":"","sources":["../../../../src/composed/CodeEditor/theme/buildTheme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,aAAa,CAAC;AA0BrC,wBAAgB,UAAU;UAmBe,SAAS,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAchD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AASjD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAG1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAS,EAAE,EAAE,gBAAgB,+TAyB/D;AAoED,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAehD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AASjD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAG1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAS,EAAE,EAAE,gBAAgB,+TAgC/D;AAoED,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { ResolvedCondition } from '../schema/types';
3
+ interface DisabledGateProps {
4
+ readonly condition: ResolvedCondition;
5
+ readonly children: ReactNode;
6
+ }
7
+ /**
8
+ * Propagates `disabled: true` via context when `condition` matches the live form values. The
9
+ * field stays mounted and its RHF value is preserved — only editing is prevented. All descendant
10
+ * field renderers read `disabled` from `JsonSchemaFormContext` so no extra prop-threading is
11
+ * needed. `schema.readOnly` is handled at the field level independently.
12
+ */
13
+ declare function DisabledGate({ condition, children }: DisabledGateProps): import("react").JSX.Element;
14
+ export { DisabledGate };
15
+ //# sourceMappingURL=DisabledGate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DisabledGate.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/conditional/DisabledGate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAGhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,UAAU,iBAAiB;IACzB,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B;AAED;;;;;GAKG;AACH,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAc/D;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildIndex.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/schema/buildIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK3E,OAAO,KAAK,EAAgC,WAAW,EAA6B,MAAM,SAAS,CAAC;AAgBpG,iBAAS,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,SAAK,GAAG,WAAW,CAKpE;AAqOD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"buildIndex.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/schema/buildIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK3E,OAAO,KAAK,EAAgC,WAAW,EAA6B,MAAM,SAAS,CAAC;AAgBpG,iBAAS,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,SAAK,GAAG,WAAW,CAKpE;AAyOD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -30,6 +30,10 @@ interface SchemaNode {
30
30
  /** `gioConfig.displayIf` with every key resolved to an absolute RHF path at build time, so
31
31
  * the renderer's `<ConditionalGate>` only has to `useWatch` and compare. */
32
32
  readonly displayIf?: ResolvedCondition;
33
+ /** `gioConfig.disableIf` resolved to absolute RHF paths at build time. When the condition
34
+ * matches, the renderer's `<DisabledGate>` propagates `disabled: true` via context so every
35
+ * descendant field becomes non-editable. The field stays mounted and its value is preserved. */
36
+ readonly disableIf?: ResolvedCondition;
33
37
  /** Unfolded `dependencies.X.oneOf` branches (only the discriminator-const shape — other
34
38
  * dependency shapes are skipped with a build-time warning). One entry per branch; the renderer
35
39
  * mounts each one gated on its `showIf`. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/schema/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,UAAU,UAAU;IAClB,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8FAA8F;IAC9F,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,UAAU,CAAC,EA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,CAAC,MAAM,EAAE,SAAS;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAC9E;mEAC+D;IAC/D,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACrD;;gDAE4C;IAC5C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IACnD;wDACoD;IACpD,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;CAC1B;AAED;;;GAGG;AACH,UAAU,SAAS;IACjB,oEAAoE;IACpE,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC;;mBAEe;IACf,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACtD;AAED;;;;;;;;GAQG;AACH,UAAU,iBAAiB;IACzB,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC5C;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B;;0FAEsF;IACtF,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACrD;;;;uEAImE;IACnE,QAAQ,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9C;AAED,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -51,6 +51,7 @@ export * from './composed/AppContextBar';
51
51
  export * from './composed/AppLayout';
52
52
  export * from './composed/AppSidebar';
53
53
  export * from './composed/AppSwitcher';
54
+ export * from './composed/CodeEditor';
54
55
  export * from './composed/ContentHeader';
55
56
  export * from './composed/CopyableText';
56
57
  export { buildLinearBreadcrumbs, type LinearBreadcrumbNavigate, type LinearBreadcrumbSegment, } from './lib/breadcrumbs/buildLinearBreadcrumbs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAG3F,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,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