@powerduck/schema-designer 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.
Files changed (102) hide show
  1. package/README.md +217 -0
  2. package/dist/InlineSchemaEditor-BssSx3SI.d.ts +6 -0
  3. package/dist/InlineSchemaEditor-Bua-lDhE.d.cts +6 -0
  4. package/dist/chunk-2XUQB6BQ.js +1896 -0
  5. package/dist/chunk-4H3LXOL4.cjs +1900 -0
  6. package/dist/chunk-7LG4MVMD.cjs +2 -0
  7. package/dist/chunk-BXFABOMJ.js +1475 -0
  8. package/dist/chunk-FTALJIVZ.js +1 -0
  9. package/dist/chunk-GTZH37JS.cjs +1120 -0
  10. package/dist/chunk-GWHDTTQK.js +1437 -0
  11. package/dist/chunk-GXXD6ITE.cjs +1477 -0
  12. package/dist/chunk-HI5FBHCO.js +1057 -0
  13. package/dist/chunk-KX3LFFOV.js +88 -0
  14. package/dist/chunk-MADPN2PJ.js +185 -0
  15. package/dist/chunk-NOUORNCI.cjs +1452 -0
  16. package/dist/chunk-O6PTRJQ5.js +1195 -0
  17. package/dist/chunk-OBHJC3I2.cjs +2 -0
  18. package/dist/chunk-OOSNM45O.cjs +264 -0
  19. package/dist/chunk-P5B3HSPY.js +244 -0
  20. package/dist/chunk-PBE36BVA.js +1 -0
  21. package/dist/chunk-PVEYKCM6.js +1 -0
  22. package/dist/chunk-QZADGAP3.cjs +1218 -0
  23. package/dist/chunk-S7GNTGEE.js +1 -0
  24. package/dist/chunk-SMBDRWV2.cjs +2 -0
  25. package/dist/chunk-THYDOHOP.cjs +2 -0
  26. package/dist/chunk-WRHWOMZQ.cjs +190 -0
  27. package/dist/chunk-YNKP5JJA.cjs +32 -0
  28. package/dist/chunk-YWDKCX6N.cjs +91 -0
  29. package/dist/chunk-ZHNYNFGL.js +28 -0
  30. package/dist/compat/inline.cjs +137 -0
  31. package/dist/compat/inline.css +275 -0
  32. package/dist/compat/inline.d.cts +6 -0
  33. package/dist/compat/inline.d.ts +6 -0
  34. package/dist/compat/inline.js +4 -0
  35. package/dist/compat/parameters.cjs +90 -0
  36. package/dist/compat/parameters.css +997 -0
  37. package/dist/compat/parameters.d.cts +70 -0
  38. package/dist/compat/parameters.d.ts +70 -0
  39. package/dist/compat/parameters.js +9 -0
  40. package/dist/compat/tree.cjs +142 -0
  41. package/dist/compat/tree.css +1069 -0
  42. package/dist/compat/tree.d.cts +4 -0
  43. package/dist/compat/tree.d.ts +4 -0
  44. package/dist/compat/tree.js +5 -0
  45. package/dist/compat/variable-editor.cjs +82 -0
  46. package/dist/compat/variable-editor.d.cts +68 -0
  47. package/dist/compat/variable-editor.d.ts +68 -0
  48. package/dist/compat/variable-editor.js +1 -0
  49. package/dist/core/index.cjs +197 -0
  50. package/dist/core/index.d.cts +21 -0
  51. package/dist/core/index.d.ts +21 -0
  52. package/dist/core/index.js +4 -0
  53. package/dist/index.cjs +35 -0
  54. package/dist/index.css +1791 -0
  55. package/dist/index.d.cts +9 -0
  56. package/dist/index.d.ts +9 -0
  57. package/dist/index.js +10 -0
  58. package/dist/parameterValue-2pL9n-3q.d.ts +8 -0
  59. package/dist/parameterValue-Cky9Lnd3.d.cts +8 -0
  60. package/dist/react/index.cjs +35 -0
  61. package/dist/react/index.css +1791 -0
  62. package/dist/react/index.d.cts +9 -0
  63. package/dist/react/index.d.ts +9 -0
  64. package/dist/react/index.js +10 -0
  65. package/dist/react/inlineSchemaEditor/index.cjs +97 -0
  66. package/dist/react/inlineSchemaEditor/index.css +275 -0
  67. package/dist/react/inlineSchemaEditor/index.d.cts +6 -0
  68. package/dist/react/inlineSchemaEditor/index.d.ts +6 -0
  69. package/dist/react/inlineSchemaEditor/index.js +4 -0
  70. package/dist/react/parametersTable/index.cjs +22 -0
  71. package/dist/react/parametersTable/index.css +997 -0
  72. package/dist/react/parametersTable/index.d.cts +7 -0
  73. package/dist/react/parametersTable/index.d.ts +7 -0
  74. package/dist/react/parametersTable/index.js +9 -0
  75. package/dist/react/parametersTable/libs/generateValue.cjs +558 -0
  76. package/dist/react/parametersTable/libs/generateValue.d.cts +17 -0
  77. package/dist/react/parametersTable/libs/generateValue.d.ts +17 -0
  78. package/dist/react/parametersTable/libs/generateValue.js +551 -0
  79. package/dist/react/schemaTreeEditor/index.cjs +18 -0
  80. package/dist/react/schemaTreeEditor/index.css +1069 -0
  81. package/dist/react/schemaTreeEditor/index.d.cts +7 -0
  82. package/dist/react/schemaTreeEditor/index.d.ts +7 -0
  83. package/dist/react/schemaTreeEditor/index.js +5 -0
  84. package/dist/react/variableTextEditor/index.cjs +11 -0
  85. package/dist/react/variableTextEditor/index.css +306 -0
  86. package/dist/react/variableTextEditor/index.d.cts +6 -0
  87. package/dist/react/variableTextEditor/index.d.ts +6 -0
  88. package/dist/react/variableTextEditor/index.js +2 -0
  89. package/dist/schema-CKAPsYeW.d.cts +41 -0
  90. package/dist/schema-o7OJRaJ8.d.ts +41 -0
  91. package/dist/styles.css +1791 -0
  92. package/dist/tree-D06Xa6_N.d.ts +95 -0
  93. package/dist/tree-Dq1Rk-CF.d.cts +95 -0
  94. package/dist/types-B27Dw9do.d.cts +163 -0
  95. package/dist/types-B27Dw9do.d.ts +163 -0
  96. package/dist/types-Bk9rzr6l.d.cts +48 -0
  97. package/dist/types-D2jEaM9Z.d.cts +145 -0
  98. package/dist/types-D2jEaM9Z.d.ts +145 -0
  99. package/dist/types-xAihO_KW.d.ts +48 -0
  100. package/dist/variableTextEditor.types-ClzvARvK.d.cts +49 -0
  101. package/dist/variableTextEditor.types-ClzvARvK.d.ts +49 -0
  102. package/package.json +130 -0
@@ -0,0 +1,4 @@
1
+ export { SchemaTreeEditor } from '../react/schemaTreeEditor/index.cjs';
2
+ export { A as AddFieldMode, a as AdvancedEditorContext, F as FlatNode, J as JSONSchema, b as JSONSchemaType, N as NodeKind, R as RefSegment, S as SCHEMA_TYPES, c as SchemaDesignerTreeProps, d as SchemaEditorError, e as SchemaEditorErrorScope, f as SchemaErrorHandler, c as SchemaTreeEditorProps } from '../types-D2jEaM9Z.cjs';
3
+ export { E as ExternalSchemaCheck, F as FlattenResult, K as KEY_PATTERN, c as changeSchemaType, a as cloneSchema, d as defaultSchemaFor, b as deleteIn, f as flattenSchema, g as getIn, i as insertKeyAfter, e as isExpandable, h as isPlainObject, j as isUnsafeKey, k as isValidKey, p as patchSchema, l as pointerId, m as pruneExpanded, r as remapExpanded, n as removeRequired, o as renameKey, q as renameRequired, s as reorderKeys, t as requiredOwnerPath, u as resolveRef, v as safeRun, w as samePath, x as schemaTypeOf, y as setIn, z as setRequired, A as stripUndefined, B as typeLabel, C as uniqueKey, D as verifyExternalSchema } from '../tree-Dq1Rk-CF.cjs';
4
+ import 'react';
@@ -0,0 +1,4 @@
1
+ export { SchemaTreeEditor } from '../react/schemaTreeEditor/index.js';
2
+ export { A as AddFieldMode, a as AdvancedEditorContext, F as FlatNode, J as JSONSchema, b as JSONSchemaType, N as NodeKind, R as RefSegment, S as SCHEMA_TYPES, c as SchemaDesignerTreeProps, d as SchemaEditorError, e as SchemaEditorErrorScope, f as SchemaErrorHandler, c as SchemaTreeEditorProps } from '../types-D2jEaM9Z.js';
3
+ export { E as ExternalSchemaCheck, F as FlattenResult, K as KEY_PATTERN, c as changeSchemaType, a as cloneSchema, d as defaultSchemaFor, b as deleteIn, f as flattenSchema, g as getIn, i as insertKeyAfter, e as isExpandable, h as isPlainObject, j as isUnsafeKey, k as isValidKey, p as patchSchema, l as pointerId, m as pruneExpanded, r as remapExpanded, n as removeRequired, o as renameKey, q as renameRequired, s as reorderKeys, t as requiredOwnerPath, u as resolveRef, v as safeRun, w as samePath, x as schemaTypeOf, y as setIn, z as setRequired, A as stripUndefined, B as typeLabel, C as uniqueKey, D as verifyExternalSchema } from '../tree-D06Xa6_N.js';
4
+ import 'react';
@@ -0,0 +1,5 @@
1
+ import '../chunk-S7GNTGEE.js';
2
+ export { SCHEMA_TYPES, SchemaTreeEditor } from '../chunk-O6PTRJQ5.js';
3
+ import '../chunk-2XUQB6BQ.js';
4
+ export { KEY_PATTERN, changeSchemaType, cloneSchema, defaultSchemaFor, deleteIn, flattenSchema, getIn, insertKeyAfter, isExpandable, isPlainObject, isUnsafeKey, isValidKey, patchSchema, pointerId, pruneExpanded, remapExpanded, removeRequired, renameKey, renameRequired, reorderKeys, requiredOwnerPath, resolveRef, safeRun, samePath, schemaTypeOf, setIn, setRequired, stripUndefined, typeLabel, uniqueKey, verifyExternalSchema } from '../chunk-HI5FBHCO.js';
5
+ import '../chunk-KX3LFFOV.js';
@@ -0,0 +1,82 @@
1
+ 'use strict';
2
+
3
+ var chunkOOSNM45O_cjs = require('../chunk-OOSNM45O.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "VARIABLE_NAME_PATTERN", {
8
+ enumerable: true,
9
+ get: function () { return chunkOOSNM45O_cjs.VARIABLE_NAME_PATTERN; }
10
+ });
11
+ Object.defineProperty(exports, "VARIABLE_NAME_PATTERN_STRICT", {
12
+ enumerable: true,
13
+ get: function () { return chunkOOSNM45O_cjs.VARIABLE_NAME_PATTERN_STRICT; }
14
+ });
15
+ Object.defineProperty(exports, "VARIABLE_QUERY_PATTERN", {
16
+ enumerable: true,
17
+ get: function () { return chunkOOSNM45O_cjs.VARIABLE_QUERY_PATTERN; }
18
+ });
19
+ Object.defineProperty(exports, "VARIABLE_TOKEN_REGEX", {
20
+ enumerable: true,
21
+ get: function () { return chunkOOSNM45O_cjs.VARIABLE_TOKEN_REGEX; }
22
+ });
23
+ Object.defineProperty(exports, "clampSelection", {
24
+ enumerable: true,
25
+ get: function () { return chunkOOSNM45O_cjs.clampSelection; }
26
+ });
27
+ Object.defineProperty(exports, "createMinimalChange", {
28
+ enumerable: true,
29
+ get: function () { return chunkOOSNM45O_cjs.createMinimalChange; }
30
+ });
31
+ Object.defineProperty(exports, "createTokenDecorations", {
32
+ enumerable: true,
33
+ get: function () { return chunkOOSNM45O_cjs.createTokenDecorations; }
34
+ });
35
+ Object.defineProperty(exports, "createVariableCompletionSource", {
36
+ enumerable: true,
37
+ get: function () { return chunkOOSNM45O_cjs.createVariableCompletionSource; }
38
+ });
39
+ Object.defineProperty(exports, "createVariableMap", {
40
+ enumerable: true,
41
+ get: function () { return chunkOOSNM45O_cjs.createVariableMap; }
42
+ });
43
+ Object.defineProperty(exports, "escapeCssAttrValue", {
44
+ enumerable: true,
45
+ get: function () { return chunkOOSNM45O_cjs.escapeCssAttrValue; }
46
+ });
47
+ Object.defineProperty(exports, "findVariableTokens", {
48
+ enumerable: true,
49
+ get: function () { return chunkOOSNM45O_cjs.findVariableTokens; }
50
+ });
51
+ Object.defineProperty(exports, "getTokenPresentation", {
52
+ enumerable: true,
53
+ get: function () { return chunkOOSNM45O_cjs.getTokenPresentation; }
54
+ });
55
+ Object.defineProperty(exports, "normalizeMaximumLength", {
56
+ enumerable: true,
57
+ get: function () { return chunkOOSNM45O_cjs.normalizeMaximumLength; }
58
+ });
59
+ Object.defineProperty(exports, "parseVariableNameFromToken", {
60
+ enumerable: true,
61
+ get: function () { return chunkOOSNM45O_cjs.parseVariableNameFromToken; }
62
+ });
63
+ Object.defineProperty(exports, "sanitizePlainText", {
64
+ enumerable: true,
65
+ get: function () { return chunkOOSNM45O_cjs.sanitizePlainText; }
66
+ });
67
+ Object.defineProperty(exports, "splitVariableText", {
68
+ enumerable: true,
69
+ get: function () { return chunkOOSNM45O_cjs.splitVariableText; }
70
+ });
71
+ Object.defineProperty(exports, "tokenAtPosition", {
72
+ enumerable: true,
73
+ get: function () { return chunkOOSNM45O_cjs.tokenAtPosition; }
74
+ });
75
+ Object.defineProperty(exports, "tokenTypeClass", {
76
+ enumerable: true,
77
+ get: function () { return chunkOOSNM45O_cjs.tokenTypeClass; }
78
+ });
79
+ Object.defineProperty(exports, "truncateInsertion", {
80
+ enumerable: true,
81
+ get: function () { return chunkOOSNM45O_cjs.truncateInsertion; }
82
+ });
@@ -0,0 +1,68 @@
1
+ import { CompletionSource } from '@codemirror/autocomplete';
2
+ import { EditorState } from '@codemirror/state';
3
+ import { DecorationSet } from '@codemirror/view';
4
+ import { E as EndpointVariable, b as VariableTokenMatch, c as VariableTokenPresentation, a as VariableTextPart } from '../variableTextEditor.types-ClzvARvK.cjs';
5
+ export { V as VariableTextEditorProps } from '../variableTextEditor.types-ClzvARvK.cjs';
6
+
7
+ /**
8
+ * Token name validation and parsing patterns.
9
+ *
10
+ * Requirements:
11
+ * - support Unicode letters/numbers
12
+ * - allow path-like separators: _ $ . -
13
+ * - avoid whitespace
14
+ */
15
+ declare const VARIABLE_NAME_PATTERN: RegExp;
16
+ declare const VARIABLE_NAME_PATTERN_STRICT: RegExp;
17
+ /**
18
+ * Token syntax supports:
19
+ * - {{name}}
20
+ * - {name}
21
+ */
22
+ declare const VARIABLE_TOKEN_REGEX: RegExp;
23
+ /**
24
+ * Used for completion:
25
+ * match the end of current line that is just after "{{" or "{".
26
+ */
27
+ declare const VARIABLE_QUERY_PATTERN: RegExp;
28
+ declare function tokenTypeClass(type?: string): string;
29
+ declare function parseVariableNameFromToken(token: string): string | null;
30
+ /**
31
+ * Map variable name -> variable object.
32
+ * "Last duplicate wins" to keep highlighting and completion stable.
33
+ */
34
+ declare function createVariableMap(variables: readonly EndpointVariable[]): ReadonlyMap<string, EndpointVariable>;
35
+ declare function findVariableTokens(text: string, variables: readonly EndpointVariable[]): VariableTokenMatch[];
36
+ declare function splitVariableText(text: string, variables: readonly EndpointVariable[]): VariableTextPart[];
37
+ declare function getTokenPresentation(variable: EndpointVariable | undefined, classes: Readonly<Record<string, string>>): VariableTokenPresentation;
38
+ /**
39
+ * Create decorations for tokens.
40
+ *
41
+ * REQUIRED for your hover matching:
42
+ * We add data-variable-from/to attributes for exact instance matching.
43
+ */
44
+ declare function createTokenDecorations(state: EditorState, variables: readonly EndpointVariable[], classes: Readonly<Record<string, string>>, tokens?: readonly VariableTokenMatch[]): DecorationSet;
45
+ declare function tokenAtPosition(tokens: readonly VariableTokenMatch[], position: number): VariableTokenMatch | undefined;
46
+ /**
47
+ * Completion source:
48
+ * suggest variable names when cursor is just after "{" or "{{".
49
+ *
50
+ * Caller should recreate this completion source when variables change.
51
+ */
52
+ declare function createVariableCompletionSource(variables: readonly EndpointVariable[]): CompletionSource;
53
+ declare function normalizeMaximumLength(value?: number): number;
54
+ /** Keep single-line by replacing newlines with spaces and enforce maxLength. */
55
+ declare function sanitizePlainText(text: string, maxLength?: number, allowLineBreaks?: boolean): string;
56
+ declare function truncateInsertion(insertedText: string, currentLength: number, replacedLength: number, maxLength: number): string;
57
+ declare function clampSelection(anchor: number, head: number, maxDocLength: number): {
58
+ anchor: number;
59
+ head: number;
60
+ };
61
+ declare function escapeCssAttrValue(value: string): string;
62
+ declare function createMinimalChange(oldText: string, newText: string): {
63
+ from: number;
64
+ to: number;
65
+ insert: string;
66
+ };
67
+
68
+ export { EndpointVariable, VARIABLE_NAME_PATTERN, VARIABLE_NAME_PATTERN_STRICT, VARIABLE_QUERY_PATTERN, VARIABLE_TOKEN_REGEX, VariableTextPart, VariableTokenMatch, VariableTokenPresentation, clampSelection, createMinimalChange, createTokenDecorations, createVariableCompletionSource, createVariableMap, escapeCssAttrValue, findVariableTokens, getTokenPresentation, normalizeMaximumLength, parseVariableNameFromToken, sanitizePlainText, splitVariableText, tokenAtPosition, tokenTypeClass, truncateInsertion };
@@ -0,0 +1,68 @@
1
+ import { CompletionSource } from '@codemirror/autocomplete';
2
+ import { EditorState } from '@codemirror/state';
3
+ import { DecorationSet } from '@codemirror/view';
4
+ import { E as EndpointVariable, b as VariableTokenMatch, c as VariableTokenPresentation, a as VariableTextPart } from '../variableTextEditor.types-ClzvARvK.js';
5
+ export { V as VariableTextEditorProps } from '../variableTextEditor.types-ClzvARvK.js';
6
+
7
+ /**
8
+ * Token name validation and parsing patterns.
9
+ *
10
+ * Requirements:
11
+ * - support Unicode letters/numbers
12
+ * - allow path-like separators: _ $ . -
13
+ * - avoid whitespace
14
+ */
15
+ declare const VARIABLE_NAME_PATTERN: RegExp;
16
+ declare const VARIABLE_NAME_PATTERN_STRICT: RegExp;
17
+ /**
18
+ * Token syntax supports:
19
+ * - {{name}}
20
+ * - {name}
21
+ */
22
+ declare const VARIABLE_TOKEN_REGEX: RegExp;
23
+ /**
24
+ * Used for completion:
25
+ * match the end of current line that is just after "{{" or "{".
26
+ */
27
+ declare const VARIABLE_QUERY_PATTERN: RegExp;
28
+ declare function tokenTypeClass(type?: string): string;
29
+ declare function parseVariableNameFromToken(token: string): string | null;
30
+ /**
31
+ * Map variable name -> variable object.
32
+ * "Last duplicate wins" to keep highlighting and completion stable.
33
+ */
34
+ declare function createVariableMap(variables: readonly EndpointVariable[]): ReadonlyMap<string, EndpointVariable>;
35
+ declare function findVariableTokens(text: string, variables: readonly EndpointVariable[]): VariableTokenMatch[];
36
+ declare function splitVariableText(text: string, variables: readonly EndpointVariable[]): VariableTextPart[];
37
+ declare function getTokenPresentation(variable: EndpointVariable | undefined, classes: Readonly<Record<string, string>>): VariableTokenPresentation;
38
+ /**
39
+ * Create decorations for tokens.
40
+ *
41
+ * REQUIRED for your hover matching:
42
+ * We add data-variable-from/to attributes for exact instance matching.
43
+ */
44
+ declare function createTokenDecorations(state: EditorState, variables: readonly EndpointVariable[], classes: Readonly<Record<string, string>>, tokens?: readonly VariableTokenMatch[]): DecorationSet;
45
+ declare function tokenAtPosition(tokens: readonly VariableTokenMatch[], position: number): VariableTokenMatch | undefined;
46
+ /**
47
+ * Completion source:
48
+ * suggest variable names when cursor is just after "{" or "{{".
49
+ *
50
+ * Caller should recreate this completion source when variables change.
51
+ */
52
+ declare function createVariableCompletionSource(variables: readonly EndpointVariable[]): CompletionSource;
53
+ declare function normalizeMaximumLength(value?: number): number;
54
+ /** Keep single-line by replacing newlines with spaces and enforce maxLength. */
55
+ declare function sanitizePlainText(text: string, maxLength?: number, allowLineBreaks?: boolean): string;
56
+ declare function truncateInsertion(insertedText: string, currentLength: number, replacedLength: number, maxLength: number): string;
57
+ declare function clampSelection(anchor: number, head: number, maxDocLength: number): {
58
+ anchor: number;
59
+ head: number;
60
+ };
61
+ declare function escapeCssAttrValue(value: string): string;
62
+ declare function createMinimalChange(oldText: string, newText: string): {
63
+ from: number;
64
+ to: number;
65
+ insert: string;
66
+ };
67
+
68
+ export { EndpointVariable, VARIABLE_NAME_PATTERN, VARIABLE_NAME_PATTERN_STRICT, VARIABLE_QUERY_PATTERN, VARIABLE_TOKEN_REGEX, VariableTextPart, VariableTokenMatch, VariableTokenPresentation, clampSelection, createMinimalChange, createTokenDecorations, createVariableCompletionSource, createVariableMap, escapeCssAttrValue, findVariableTokens, getTokenPresentation, normalizeMaximumLength, parseVariableNameFromToken, sanitizePlainText, splitVariableText, tokenAtPosition, tokenTypeClass, truncateInsertion };
@@ -0,0 +1 @@
1
+ export { VARIABLE_NAME_PATTERN, VARIABLE_NAME_PATTERN_STRICT, VARIABLE_QUERY_PATTERN, VARIABLE_TOKEN_REGEX, clampSelection, createMinimalChange, createTokenDecorations, createVariableCompletionSource, createVariableMap, escapeCssAttrValue, findVariableTokens, getTokenPresentation, normalizeMaximumLength, parseVariableNameFromToken, sanitizePlainText, splitVariableText, tokenAtPosition, tokenTypeClass, truncateInsertion } from '../chunk-P5B3HSPY.js';
@@ -0,0 +1,197 @@
1
+ 'use strict';
2
+
3
+ var chunkYNKP5JJA_cjs = require('../chunk-YNKP5JJA.cjs');
4
+ var chunkWRHWOMZQ_cjs = require('../chunk-WRHWOMZQ.cjs');
5
+ var chunkGTZH37JS_cjs = require('../chunk-GTZH37JS.cjs');
6
+ var chunkYWDKCX6N_cjs = require('../chunk-YWDKCX6N.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "initializeParameterValues", {
11
+ enumerable: true,
12
+ get: function () { return chunkYNKP5JJA_cjs.initializeParameterValues; }
13
+ });
14
+ Object.defineProperty(exports, "parameterKey", {
15
+ enumerable: true,
16
+ get: function () { return chunkYNKP5JJA_cjs.parameterKey; }
17
+ });
18
+ Object.defineProperty(exports, "parameterValueText", {
19
+ enumerable: true,
20
+ get: function () { return chunkYNKP5JJA_cjs.parameterValueText; }
21
+ });
22
+ Object.defineProperty(exports, "resolveParameterType", {
23
+ enumerable: true,
24
+ get: function () { return chunkWRHWOMZQ_cjs.resolveParameterType; }
25
+ });
26
+ Object.defineProperty(exports, "resolveParameterValue", {
27
+ enumerable: true,
28
+ get: function () { return chunkWRHWOMZQ_cjs.resolveParameterValue; }
29
+ });
30
+ Object.defineProperty(exports, "asOpenApiSchema", {
31
+ enumerable: true,
32
+ get: function () { return chunkGTZH37JS_cjs.asOpenApiSchema; }
33
+ });
34
+ Object.defineProperty(exports, "canParseSchemaValue", {
35
+ enumerable: true,
36
+ get: function () { return chunkGTZH37JS_cjs.canParseSchemaValue; }
37
+ });
38
+ Object.defineProperty(exports, "cloneSchema", {
39
+ enumerable: true,
40
+ get: function () { return chunkGTZH37JS_cjs.cloneSchema2; }
41
+ });
42
+ Object.defineProperty(exports, "compactSchema", {
43
+ enumerable: true,
44
+ get: function () { return chunkGTZH37JS_cjs.compactSchema; }
45
+ });
46
+ Object.defineProperty(exports, "createSchemaForType", {
47
+ enumerable: true,
48
+ get: function () { return chunkGTZH37JS_cjs.createSchemaForType; }
49
+ });
50
+ Object.defineProperty(exports, "deleteIn", {
51
+ enumerable: true,
52
+ get: function () { return chunkGTZH37JS_cjs.deleteIn; }
53
+ });
54
+ Object.defineProperty(exports, "diffSchemaLines", {
55
+ enumerable: true,
56
+ get: function () { return chunkGTZH37JS_cjs.diffSchemaLines; }
57
+ });
58
+ Object.defineProperty(exports, "flattenSchema", {
59
+ enumerable: true,
60
+ get: function () { return chunkGTZH37JS_cjs.flattenSchema; }
61
+ });
62
+ Object.defineProperty(exports, "getArrayItems", {
63
+ enumerable: true,
64
+ get: function () { return chunkGTZH37JS_cjs.getArrayItems; }
65
+ });
66
+ Object.defineProperty(exports, "getComposition", {
67
+ enumerable: true,
68
+ get: function () { return chunkGTZH37JS_cjs.getComposition; }
69
+ });
70
+ Object.defineProperty(exports, "getEnumValues", {
71
+ enumerable: true,
72
+ get: function () { return chunkGTZH37JS_cjs.getEnumValues; }
73
+ });
74
+ Object.defineProperty(exports, "getIn", {
75
+ enumerable: true,
76
+ get: function () { return chunkGTZH37JS_cjs.getIn; }
77
+ });
78
+ Object.defineProperty(exports, "getPrefixItems", {
79
+ enumerable: true,
80
+ get: function () { return chunkGTZH37JS_cjs.getPrefixItems; }
81
+ });
82
+ Object.defineProperty(exports, "getProperties", {
83
+ enumerable: true,
84
+ get: function () { return chunkGTZH37JS_cjs.getProperties; }
85
+ });
86
+ Object.defineProperty(exports, "getReferenceOptions", {
87
+ enumerable: true,
88
+ get: function () { return chunkGTZH37JS_cjs.getReferenceOptions; }
89
+ });
90
+ Object.defineProperty(exports, "getRequiredProperties", {
91
+ enumerable: true,
92
+ get: function () { return chunkGTZH37JS_cjs.getRequiredProperties; }
93
+ });
94
+ Object.defineProperty(exports, "getSchemaSummary", {
95
+ enumerable: true,
96
+ get: function () { return chunkGTZH37JS_cjs.getSchemaSummary; }
97
+ });
98
+ Object.defineProperty(exports, "getSchemaType", {
99
+ enumerable: true,
100
+ get: function () { return chunkGTZH37JS_cjs.getSchemaType; }
101
+ });
102
+ Object.defineProperty(exports, "insertKeyAfter", {
103
+ enumerable: true,
104
+ get: function () { return chunkGTZH37JS_cjs.insertKeyAfter; }
105
+ });
106
+ Object.defineProperty(exports, "isRecord", {
107
+ enumerable: true,
108
+ get: function () { return chunkGTZH37JS_cjs.isRecord; }
109
+ });
110
+ Object.defineProperty(exports, "isSchema", {
111
+ enumerable: true,
112
+ get: function () { return chunkGTZH37JS_cjs.isSchema; }
113
+ });
114
+ Object.defineProperty(exports, "mergeSchema", {
115
+ enumerable: true,
116
+ get: function () { return chunkGTZH37JS_cjs.mergeSchema; }
117
+ });
118
+ Object.defineProperty(exports, "normalizeFormatOptions", {
119
+ enumerable: true,
120
+ get: function () { return chunkGTZH37JS_cjs.normalizeFormatOptions; }
121
+ });
122
+ Object.defineProperty(exports, "normalizeSchemaType", {
123
+ enumerable: true,
124
+ get: function () { return chunkGTZH37JS_cjs.normalizeSchemaType; }
125
+ });
126
+ Object.defineProperty(exports, "parseOptionalNumber", {
127
+ enumerable: true,
128
+ get: function () { return chunkGTZH37JS_cjs.parseOptionalNumber; }
129
+ });
130
+ Object.defineProperty(exports, "parseSchemaValue", {
131
+ enumerable: true,
132
+ get: function () { return chunkGTZH37JS_cjs.parseSchemaValue; }
133
+ });
134
+ Object.defineProperty(exports, "patchSchema", {
135
+ enumerable: true,
136
+ get: function () { return chunkGTZH37JS_cjs.patchSchema; }
137
+ });
138
+ Object.defineProperty(exports, "removeProperty", {
139
+ enumerable: true,
140
+ get: function () { return chunkGTZH37JS_cjs.removeProperty; }
141
+ });
142
+ Object.defineProperty(exports, "renameKey", {
143
+ enumerable: true,
144
+ get: function () { return chunkGTZH37JS_cjs.renameKey; }
145
+ });
146
+ Object.defineProperty(exports, "renameProperty", {
147
+ enumerable: true,
148
+ get: function () { return chunkGTZH37JS_cjs.renameProperty; }
149
+ });
150
+ Object.defineProperty(exports, "reorderKeys", {
151
+ enumerable: true,
152
+ get: function () { return chunkGTZH37JS_cjs.reorderKeys; }
153
+ });
154
+ Object.defineProperty(exports, "resolveRef", {
155
+ enumerable: true,
156
+ get: function () { return chunkGTZH37JS_cjs.resolveRef; }
157
+ });
158
+ Object.defineProperty(exports, "setComposition", {
159
+ enumerable: true,
160
+ get: function () { return chunkGTZH37JS_cjs.setComposition; }
161
+ });
162
+ Object.defineProperty(exports, "setEnumValues", {
163
+ enumerable: true,
164
+ get: function () { return chunkGTZH37JS_cjs.setEnumValues; }
165
+ });
166
+ Object.defineProperty(exports, "setIn", {
167
+ enumerable: true,
168
+ get: function () { return chunkGTZH37JS_cjs.setIn; }
169
+ });
170
+ Object.defineProperty(exports, "setPropertyRequired", {
171
+ enumerable: true,
172
+ get: function () { return chunkGTZH37JS_cjs.setPropertyRequired; }
173
+ });
174
+ Object.defineProperty(exports, "stringifySchemaValue", {
175
+ enumerable: true,
176
+ get: function () { return chunkGTZH37JS_cjs.stringifySchemaValue; }
177
+ });
178
+ Object.defineProperty(exports, "toInputValue", {
179
+ enumerable: true,
180
+ get: function () { return chunkGTZH37JS_cjs.toInputValue; }
181
+ });
182
+ Object.defineProperty(exports, "toSchemaRecord", {
183
+ enumerable: true,
184
+ get: function () { return chunkGTZH37JS_cjs.toSchemaRecord; }
185
+ });
186
+ Object.defineProperty(exports, "updateProperty", {
187
+ enumerable: true,
188
+ get: function () { return chunkGTZH37JS_cjs.updateProperty; }
189
+ });
190
+ Object.defineProperty(exports, "dereferenceLocalSchema", {
191
+ enumerable: true,
192
+ get: function () { return chunkYWDKCX6N_cjs.dereferenceLocalSchema; }
193
+ });
194
+ Object.defineProperty(exports, "resolveLocalReference", {
195
+ enumerable: true,
196
+ get: function () { return chunkYWDKCX6N_cjs.resolveLocalReference; }
197
+ });
@@ -0,0 +1,21 @@
1
+ export { D as DiffLine, a as asOpenApiSchema, v as canParseSchemaValue, c as cloneSchema, b as compactSchema, d as createSchemaForType, w as diffSchemaLines, g as getArrayItems, e as getComposition, f as getEnumValues, h as getPrefixItems, i as getProperties, x as getReferenceOptions, j as getRequiredProperties, y as getSchemaSummary, k as getSchemaType, z as isRecord, A as isSchema, m as mergeSchema, n as normalizeFormatOptions, l as normalizeSchemaType, p as parseOptionalNumber, o as parseSchemaValue, B as removeProperty, C as renameProperty, s as setComposition, q as setEnumValues, E as setPropertyRequired, r as stringifySchemaValue, t as toInputValue, u as toSchemaRecord, F as updateProperty } from '../schema-CKAPsYeW.cjs';
2
+ export { b as deleteIn, f as flattenSchema, g as getIn, i as insertKeyAfter, p as patchSchema, o as renameKey, s as reorderKeys, u as resolveRef, y as setIn } from '../tree-Dq1Rk-CF.cjs';
3
+ import { i as SchemaValue } from '../types-D2jEaM9Z.cjs';
4
+ export { F as FlatNode, J as JSONSchema, b as JSONSchemaType, g as SchemaObject, h as SchemaPatch } from '../types-D2jEaM9Z.cjs';
5
+ export { r as resolveParameterType, a as resolveParameterValue } from '../parameterValue-Cky9Lnd3.cjs';
6
+ import { O as OpenApiParameter, b as ParameterValues } from '../types-B27Dw9do.cjs';
7
+ export { P as ParameterInput } from '../types-B27Dw9do.cjs';
8
+ import '../types-Bk9rzr6l.cjs';
9
+ import 'react';
10
+
11
+ /** Parameter locations are part of identity; header and query names may overlap. */
12
+ declare function parameterKey(parameter: Pick<OpenApiParameter, "in" | "name">): string;
13
+ declare function initializeParameterValues(parameters: readonly OpenApiParameter[]): ParameterValues;
14
+ declare function parameterValueText(value: unknown): string;
15
+
16
+ /** Resolve only local document pointers. This function never performs network I/O. */
17
+ declare function resolveLocalReference(reference: string, document: unknown): unknown;
18
+ /** Resolve a bounded local graph for generation without mutating its source. */
19
+ declare function dereferenceLocalSchema(schema: SchemaValue, document?: unknown, maxDepth?: number): SchemaValue;
20
+
21
+ export { OpenApiParameter, ParameterValues, SchemaValue, dereferenceLocalSchema, initializeParameterValues, parameterKey, parameterValueText, resolveLocalReference };
@@ -0,0 +1,21 @@
1
+ export { D as DiffLine, a as asOpenApiSchema, v as canParseSchemaValue, c as cloneSchema, b as compactSchema, d as createSchemaForType, w as diffSchemaLines, g as getArrayItems, e as getComposition, f as getEnumValues, h as getPrefixItems, i as getProperties, x as getReferenceOptions, j as getRequiredProperties, y as getSchemaSummary, k as getSchemaType, z as isRecord, A as isSchema, m as mergeSchema, n as normalizeFormatOptions, l as normalizeSchemaType, p as parseOptionalNumber, o as parseSchemaValue, B as removeProperty, C as renameProperty, s as setComposition, q as setEnumValues, E as setPropertyRequired, r as stringifySchemaValue, t as toInputValue, u as toSchemaRecord, F as updateProperty } from '../schema-o7OJRaJ8.js';
2
+ export { b as deleteIn, f as flattenSchema, g as getIn, i as insertKeyAfter, p as patchSchema, o as renameKey, s as reorderKeys, u as resolveRef, y as setIn } from '../tree-D06Xa6_N.js';
3
+ import { i as SchemaValue } from '../types-D2jEaM9Z.js';
4
+ export { F as FlatNode, J as JSONSchema, b as JSONSchemaType, g as SchemaObject, h as SchemaPatch } from '../types-D2jEaM9Z.js';
5
+ export { r as resolveParameterType, a as resolveParameterValue } from '../parameterValue-2pL9n-3q.js';
6
+ import { O as OpenApiParameter, b as ParameterValues } from '../types-B27Dw9do.js';
7
+ export { P as ParameterInput } from '../types-B27Dw9do.js';
8
+ import '../types-xAihO_KW.js';
9
+ import 'react';
10
+
11
+ /** Parameter locations are part of identity; header and query names may overlap. */
12
+ declare function parameterKey(parameter: Pick<OpenApiParameter, "in" | "name">): string;
13
+ declare function initializeParameterValues(parameters: readonly OpenApiParameter[]): ParameterValues;
14
+ declare function parameterValueText(value: unknown): string;
15
+
16
+ /** Resolve only local document pointers. This function never performs network I/O. */
17
+ declare function resolveLocalReference(reference: string, document: unknown): unknown;
18
+ /** Resolve a bounded local graph for generation without mutating its source. */
19
+ declare function dereferenceLocalSchema(schema: SchemaValue, document?: unknown, maxDepth?: number): SchemaValue;
20
+
21
+ export { OpenApiParameter, ParameterValues, SchemaValue, dereferenceLocalSchema, initializeParameterValues, parameterKey, parameterValueText, resolveLocalReference };
@@ -0,0 +1,4 @@
1
+ export { initializeParameterValues, parameterKey, parameterValueText } from '../chunk-ZHNYNFGL.js';
2
+ export { resolveParameterType, resolveParameterValue } from '../chunk-MADPN2PJ.js';
3
+ export { asOpenApiSchema, canParseSchemaValue, cloneSchema2 as cloneSchema, compactSchema, createSchemaForType, deleteIn, diffSchemaLines, flattenSchema, getArrayItems, getComposition, getEnumValues, getIn, getPrefixItems, getProperties, getReferenceOptions, getRequiredProperties, getSchemaSummary, getSchemaType, insertKeyAfter, isRecord, isSchema, mergeSchema, normalizeFormatOptions, normalizeSchemaType, parseOptionalNumber, parseSchemaValue, patchSchema, removeProperty, renameKey, renameProperty, reorderKeys, resolveRef, setComposition, setEnumValues, setIn, setPropertyRequired, stringifySchemaValue, toInputValue, toSchemaRecord, updateProperty } from '../chunk-HI5FBHCO.js';
4
+ export { dereferenceLocalSchema, resolveLocalReference } from '../chunk-KX3LFFOV.js';
package/dist/index.cjs ADDED
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ require('./chunk-7LG4MVMD.cjs');
4
+ var chunkQZADGAP3_cjs = require('./chunk-QZADGAP3.cjs');
5
+ var chunkNOUORNCI_cjs = require('./chunk-NOUORNCI.cjs');
6
+ var chunk4H3LXOL4_cjs = require('./chunk-4H3LXOL4.cjs');
7
+ var chunkGXXD6ITE_cjs = require('./chunk-GXXD6ITE.cjs');
8
+ require('./chunk-OOSNM45O.cjs');
9
+ require('./chunk-YNKP5JJA.cjs');
10
+ require('./chunk-WRHWOMZQ.cjs');
11
+ require('./chunk-GTZH37JS.cjs');
12
+ require('./chunk-YWDKCX6N.cjs');
13
+
14
+
15
+
16
+ Object.defineProperty(exports, "SchemaTreeEditor", {
17
+ enumerable: true,
18
+ get: function () { return chunkQZADGAP3_cjs.SchemaTreeEditor; }
19
+ });
20
+ Object.defineProperty(exports, "ParameterTable", {
21
+ enumerable: true,
22
+ get: function () { return chunkNOUORNCI_cjs.ParameterTable; }
23
+ });
24
+ Object.defineProperty(exports, "ParametersTable", {
25
+ enumerable: true,
26
+ get: function () { return chunkNOUORNCI_cjs.ParameterTable; }
27
+ });
28
+ Object.defineProperty(exports, "InlineSchemaEditor", {
29
+ enumerable: true,
30
+ get: function () { return chunk4H3LXOL4_cjs.InlineSchemaEditor; }
31
+ });
32
+ Object.defineProperty(exports, "VariableTextEditor", {
33
+ enumerable: true,
34
+ get: function () { return chunkGXXD6ITE_cjs.VariableTextEditor; }
35
+ });