@qoretechnologies/reqraft 0.10.53 → 0.10.54-pr.115.g9bc96ed
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/.claude/CLAUDE.md +25 -0
- package/.tasks/INDEX.md +1 -0
- package/.tasks/STORY_NETWORK_ISOLATION.md +98 -0
- package/README.md +1 -1
- package/design/FORM_ENGINE_EXPRESSIONS.md +110 -0
- package/design/FORM_ENGINE_FIELD_MIGRATION.md +56 -1
- package/design/RENDER_EXPRESSION_TRANSPORT.md +76 -10
- package/design/SMART_EDITOR_UX.md +21 -0
- package/dist/components/dpqlEditor/DpqlEditor.d.ts.map +1 -1
- package/dist/components/dpqlEditor/DpqlEditor.js +3 -3
- package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts +6 -0
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.js +21 -2
- package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlProbe.d.ts +37 -0
- package/dist/components/dpqlEditor/dpqlProbe.d.ts.map +1 -0
- package/dist/components/dpqlEditor/dpqlProbe.js +203 -0
- package/dist/components/dpqlEditor/dpqlProbe.js.map +1 -0
- package/dist/components/dpqlEditor/dpqlTags.d.ts +8 -0
- package/dist/components/dpqlEditor/dpqlTags.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js +5 -1
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/index.d.ts +4 -0
- package/dist/components/dpqlEditor/index.d.ts.map +1 -1
- package/dist/components/dpqlEditor/index.js +5 -1
- package/dist/components/dpqlEditor/index.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +42 -2
- package/dist/components/dpqlEditor/types.d.ts.map +1 -1
- package/dist/components/dpqlEditor/types.js +0 -4
- package/dist/components/dpqlEditor/types.js.map +1 -1
- package/dist/components/dpqlEditor/useDpqlProbe.d.ts +4 -0
- package/dist/components/dpqlEditor/useDpqlProbe.d.ts.map +1 -0
- package/dist/components/dpqlEditor/useDpqlProbe.js +29 -0
- package/dist/components/dpqlEditor/useDpqlProbe.js.map +1 -0
- package/dist/components/dpqlEditor/useDpqlSession.d.ts +5 -2
- package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.js +8 -2
- package/dist/components/dpqlEditor/useDpqlSession.js.map +1 -1
- package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
- package/dist/components/form/engine/CompactRow.js +192 -45
- package/dist/components/form/engine/CompactRow.js.map +1 -1
- package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
- package/dist/components/form/engine/CompactToolbar.js +5 -2
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/FormEngine.d.ts +160 -12
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +376 -75
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/FormFieldsSkeleton.d.ts +48 -0
- package/dist/components/form/engine/FormFieldsSkeleton.d.ts.map +1 -0
- package/dist/components/form/engine/FormFieldsSkeleton.js +38 -0
- package/dist/components/form/engine/FormFieldsSkeleton.js.map +1 -0
- package/dist/components/form/engine/OptionFieldMessages.d.ts +17 -2
- package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +61 -11
- package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js +7 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/compactToolbarContext.d.ts +1 -0
- package/dist/components/form/engine/compactToolbarContext.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.d.ts +42 -1
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +74 -7
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/rendererTypes.d.ts +13 -0
- package/dist/components/form/engine/rendererTypes.d.ts.map +1 -1
- package/dist/components/form/engine/rendererTypes.js.map +1 -1
- package/dist/components/form/engine/rowMenuContext.d.ts +78 -0
- package/dist/components/form/engine/rowMenuContext.d.ts.map +1 -0
- package/dist/components/form/engine/rowMenuContext.js +103 -0
- package/dist/components/form/engine/rowMenuContext.js.map +1 -0
- package/dist/components/form/engine/typeChoices.d.ts +37 -0
- package/dist/components/form/engine/typeChoices.d.ts.map +1 -0
- package/dist/components/form/engine/typeChoices.js +25 -0
- package/dist/components/form/engine/typeChoices.js.map +1 -0
- package/dist/components/form/expressions/DpqlRendering.d.ts +26 -0
- package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -0
- package/dist/components/form/expressions/DpqlRendering.js +53 -0
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -0
- package/dist/components/form/expressions/ExpressionField.d.ts +7 -1
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +202 -45
- package/dist/components/form/expressions/ExpressionField.js.map +1 -1
- package/dist/components/form/expressions/argumentPresence.d.ts +97 -0
- package/dist/components/form/expressions/argumentPresence.d.ts.map +1 -0
- package/dist/components/form/expressions/argumentPresence.js +203 -0
- package/dist/components/form/expressions/argumentPresence.js.map +1 -0
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +9 -4
- package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +15 -2
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +20 -58
- package/dist/components/form/expressions/builder/index.js.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.d.ts +4 -1
- package/dist/components/form/expressions/builder/renderTemplate.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js +10 -67
- package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
- package/dist/components/form/expressions/dpqlMockLanguage.d.ts +76 -0
- package/dist/components/form/expressions/dpqlMockLanguage.d.ts.map +1 -0
- package/dist/components/form/expressions/dpqlMockLanguage.js +525 -0
- package/dist/components/form/expressions/dpqlMockLanguage.js.map +1 -0
- package/dist/components/form/expressions/dpqlMockLsp.d.ts +31 -2
- package/dist/components/form/expressions/dpqlMockLsp.d.ts.map +1 -1
- package/dist/components/form/expressions/dpqlMockLsp.js +86 -80
- package/dist/components/form/expressions/dpqlMockLsp.js.map +1 -1
- package/dist/components/form/expressions/mockExpressions.d.ts.map +1 -1
- package/dist/components/form/expressions/mockExpressions.js +8 -4
- package/dist/components/form/expressions/mockExpressions.js.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +95 -19
- package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
- package/dist/components/form/expressions/types.d.ts +7 -0
- package/dist/components/form/expressions/types.d.ts.map +1 -1
- package/dist/components/form/expressions/useRenderExpression.d.ts +7 -16
- package/dist/components/form/expressions/useRenderExpression.d.ts.map +1 -1
- package/dist/components/form/expressions/useRenderExpression.js +50 -126
- package/dist/components/form/expressions/useRenderExpression.js.map +1 -1
- package/dist/components/form/fields/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +3 -1
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts +11 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +14 -2
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +32 -8
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/date/Date.d.ts +1 -1
- package/dist/components/form/fields/date/Date.d.ts.map +1 -1
- package/dist/components/form/fields/date/Date.js +16 -2
- package/dist/components/form/fields/date/Date.js.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts +21 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +140 -8
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts +2 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts.map +1 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js +3 -2
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js.map +1 -1
- package/dist/components/form/fields/template/TemplateField.d.ts +31 -1
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +528 -50
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +1 -0
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
- package/dist/components/smartEditor/SmartEditor.js +29 -8
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/__fixtures__/mockLspServer.d.ts +8 -0
- package/dist/components/smartEditor/__fixtures__/mockLspServer.d.ts.map +1 -1
- package/dist/components/smartEditor/__fixtures__/mockLspServer.js +53 -10
- package/dist/components/smartEditor/__fixtures__/mockLspServer.js.map +1 -1
- package/dist/components/smartEditor/useLspSession.d.ts +5 -1
- package/dist/components/smartEditor/useLspSession.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspSession.js +16 -2
- package/dist/components/smartEditor/useLspSession.js.map +1 -1
- package/dist/helpers/dpqlDetection.d.ts +58 -0
- package/dist/helpers/dpqlDetection.d.ts.map +1 -0
- package/dist/helpers/dpqlDetection.js +164 -0
- package/dist/helpers/dpqlDetection.js.map +1 -0
- package/dist/helpers/optionUiTypes.d.ts +3 -3
- package/dist/helpers/options.d.ts +37 -0
- package/dist/helpers/options.d.ts.map +1 -1
- package/dist/helpers/options.js +78 -1
- package/dist/helpers/options.js.map +1 -1
- package/dist/helpers/templateItems.d.ts +47 -0
- package/dist/helpers/templateItems.d.ts.map +1 -0
- package/dist/helpers/templateItems.js +88 -0
- package/dist/helpers/templateItems.js.map +1 -0
- package/dist/helpers/templateText.d.ts +37 -0
- package/dist/helpers/templateText.d.ts.map +1 -0
- package/dist/helpers/templateText.js +64 -0
- package/dist/helpers/templateText.js.map +1 -0
- package/dist/helpers/templates.d.ts +19 -11
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +46 -29
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +56 -9
- package/dist/helpers/validations.js.map +1 -1
- package/dist/hooks/useArgSchema.d.ts +2 -1
- package/dist/hooks/useArgSchema.d.ts.map +1 -1
- package/dist/hooks/useFetch/useFetch.d.ts +3 -1
- package/dist/hooks/useFetch/useFetch.d.ts.map +1 -1
- package/dist/hooks/useFetch/useFetch.js +47 -9
- package/dist/hooks/useFetch/useFetch.js.map +1 -1
- package/dist/hooks/useTemplates.d.ts +20 -0
- package/dist/hooks/useTemplates.d.ts.map +1 -1
- package/dist/hooks/useTemplates.js +34 -2
- package/dist/hooks/useTemplates.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/stories/storyNetwork.d.ts +36 -0
- package/dist/stories/storyNetwork.d.ts.map +1 -0
- package/dist/stories/storyNetwork.js +82 -0
- package/dist/stories/storyNetwork.js.map +1 -0
- package/dist/utils/fetch.d.ts +151 -1
- package/dist/utils/fetch.d.ts.map +1 -1
- package/dist/utils/fetch.js +256 -44
- package/dist/utils/fetch.js.map +1 -1
- package/dist/utils/lspClient.d.ts +6 -0
- package/dist/utils/lspClient.d.ts.map +1 -1
- package/dist/utils/lspClient.js +62 -11
- package/dist/utils/lspClient.js.map +1 -1
- package/dist/utils/websocket.d.ts +6 -0
- package/dist/utils/websocket.d.ts.map +1 -1
- package/dist/utils/websocket.js +15 -7
- package/dist/utils/websocket.js.map +1 -1
- package/package.json +2 -2
- package/src/components/dpqlEditor/DpqlEditor.stories.tsx +3 -119
- package/src/components/dpqlEditor/DpqlEditor.tsx +5 -2
- package/src/components/dpqlEditor/dpqlHelpers.ts +20 -1
- package/src/components/dpqlEditor/dpqlProbe.ts +165 -0
- package/src/components/dpqlEditor/dpqlTags.ts +13 -0
- package/src/components/dpqlEditor/index.ts +4 -0
- package/src/components/dpqlEditor/types.ts +38 -2
- package/src/components/dpqlEditor/useDpqlProbe.ts +33 -0
- package/src/components/dpqlEditor/useDpqlSession.ts +20 -4
- package/src/components/form/engine/CompactRow.tsx +240 -51
- package/src/components/form/engine/CompactToolbar.tsx +10 -3
- package/src/components/form/engine/FormEngine.stories.tsx +423 -120
- package/src/components/form/engine/FormEngine.tsx +504 -87
- package/src/components/form/engine/FormFieldsSkeleton.tsx +76 -0
- package/src/components/form/engine/OptionFieldMessages.tsx +89 -11
- package/src/components/form/engine/_structuredData/SchemaDataView.tsx +11 -0
- package/src/components/form/engine/compactToolbarContext.ts +1 -1
- package/src/components/form/engine/readFirst.ts +86 -7
- package/src/components/form/engine/rendererTypes.ts +12 -0
- package/src/components/form/engine/rowMenuContext.ts +159 -0
- package/src/components/form/engine/typeChoices.ts +55 -0
- package/src/components/form/expressions/DpqlRendering.tsx +85 -0
- package/src/components/form/expressions/ExpressionField.stories.tsx +826 -48
- package/src/components/form/expressions/ExpressionField.tsx +265 -54
- package/src/components/form/expressions/argumentPresence.ts +200 -0
- package/src/components/form/expressions/builder/ExpressionBuilder.stories.tsx +20 -4
- package/src/components/form/expressions/builder/argumentLabel.tsx +10 -4
- package/src/components/form/expressions/builder/index.tsx +39 -77
- package/src/components/form/expressions/builder/renderTemplate.tsx +23 -56
- package/src/components/form/expressions/dpqlMockLanguage.ts +565 -0
- package/src/components/form/expressions/dpqlMockLsp.ts +109 -83
- package/src/components/form/expressions/mockExpressions.ts +8 -4
- package/src/components/form/expressions/renderExpressionToText.ts +112 -22
- package/src/components/form/expressions/types.ts +7 -0
- package/src/components/form/expressions/useRenderExpression.ts +43 -127
- package/src/components/form/fields/Field.tsx +3 -2
- package/src/components/form/fields/allowed-values/AllowedValues.tsx +13 -2
- package/src/components/form/fields/auto/AutoFormField.stories.tsx +27 -20
- package/src/components/form/fields/auto/AutoFormField.tsx +33 -9
- package/src/components/form/fields/date/Date.tsx +17 -1
- package/src/components/form/fields/rich-text/RichText.tsx +199 -22
- package/src/components/form/fields/template/ReadOnlyTemplateTag.tsx +4 -2
- package/src/components/form/fields/template/TemplateField.stories.tsx +31 -9
- package/src/components/form/fields/template/TemplateField.tsx +714 -122
- package/src/components/form/index.tsx +1 -0
- package/src/components/log/Log.stories.tsx +2 -1
- package/src/components/smartEditor/SmartEditor.tsx +41 -9
- package/src/components/smartEditor/__fixtures__/mockLspServer.ts +52 -3
- package/src/components/smartEditor/useLspSession.ts +21 -3
- package/src/helpers/dpqlDetection.ts +209 -0
- package/src/helpers/options.ts +70 -0
- package/src/helpers/templateItems.ts +81 -0
- package/src/helpers/templateText.ts +92 -0
- package/src/helpers/templates.ts +47 -37
- package/src/helpers/validations.ts +59 -9
- package/src/hooks/useFetch/useFetch.stories.tsx +6 -5
- package/src/hooks/useFetch/useFetch.tsx +53 -7
- package/src/hooks/useStorage/useStorage.stories.tsx +2 -1
- package/src/hooks/useTemplates.ts +41 -0
- package/src/hooks/useWebSocket/useWebsocket.stories.tsx +2 -1
- package/src/index.tsx +14 -1
- package/src/stores/currentUser/currentUser.stories.tsx +2 -1
- package/src/stories/storyNetwork.ts +92 -0
- package/src/utils/fetch.ts +311 -21
- package/src/utils/lspClient.ts +68 -11
- package/src/utils/websocket.ts +20 -9
|
@@ -43,94 +43,243 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
43
43
|
// Owns the `IExpression` value and offers two views of the same AST —
|
|
44
44
|
// Visual (the builder, Phase 3) and Text (DPQL, this phase). The DPQL text
|
|
45
45
|
// editor bridges to the AST via the LSP `dpql/parse` (text → AST on edit)
|
|
46
|
-
// and `dpql/serialize` (AST → text on entering Text mode); a
|
|
47
|
-
//
|
|
46
|
+
// and `dpql/serialize` (AST → text on entering Text mode); a debounced
|
|
47
|
+
// "Preview" box renders the current AST (`dpql/renderExpression`) when that
|
|
48
|
+
// rendering differs from the text the author typed.
|
|
48
49
|
var reqore_1 = require("@qoretechnologies/reqore");
|
|
49
50
|
var react_1 = require("react");
|
|
50
51
|
var dpqlEditor_1 = require("../../dpqlEditor");
|
|
52
|
+
var dpqlHelpers_1 = require("../../dpqlEditor/dpqlHelpers");
|
|
51
53
|
var builder_1 = require("./builder");
|
|
54
|
+
var DpqlRendering_1 = require("./DpqlRendering");
|
|
52
55
|
var useExpressions_1 = require("./useExpressions");
|
|
53
56
|
var useRenderExpression_1 = require("./useRenderExpression");
|
|
54
57
|
var PARSE_DEBOUNCE_MS = 300;
|
|
58
|
+
/**
|
|
59
|
+
* How long the Preview waits before catching up with the editor.
|
|
60
|
+
*
|
|
61
|
+
* It mirrors the AST, so without this it re-renders on every keystroke — a box
|
|
62
|
+
* appearing, changing and vanishing under the line being typed. Slightly
|
|
63
|
+
* SLOWER than the parse it follows, so the preview settles once after the text
|
|
64
|
+
* has stopped moving rather than twitching on the way there.
|
|
65
|
+
*/
|
|
66
|
+
var PREVIEW_DEBOUNCE_MS = 400;
|
|
55
67
|
/** Retry cadence for seeding the Text editor while its LSP session opens. */
|
|
56
68
|
var SEED_RETRY_MS = 400;
|
|
57
69
|
var SEED_MAX_TRIES = 20;
|
|
58
|
-
var noop = function () { return undefined; };
|
|
59
70
|
exports.ExpressionField = (0, react_1.memo)(function (_a) {
|
|
60
71
|
var _b;
|
|
61
|
-
var value = _a.value, onChange = _a.onChange, type = _a.type, returnType = _a.returnType, readOnly = _a.readOnly, expressionsOverride = _a.expressions, expressionsUrl = _a.expressionsUrl, localTemplates = _a.localTemplates, serverHandled = _a.serverHandled, extraActions = _a.extraActions, provider = _a.provider, recordType = _a.recordType, _c = _a.defaultMode, defaultMode = _c === void 0 ? 'visual' : _c, size = _a.size, reorder = _a.reorder;
|
|
72
|
+
var value = _a.value, onChange = _a.onChange, type = _a.type, returnType = _a.returnType, readOnly = _a.readOnly, expressionsOverride = _a.expressions, expressionsUrl = _a.expressionsUrl, localTemplates = _a.localTemplates, serverHandled = _a.serverHandled, extraActions = _a.extraActions, provider = _a.provider, recordType = _a.recordType, _c = _a.defaultMode, defaultMode = _c === void 0 ? 'visual' : _c, size = _a.size, componentOverrides = _a.componentOverrides, reorder = _a.reorder;
|
|
62
73
|
var expressions = (0, useExpressions_1.useExpressions)({
|
|
63
74
|
override: expressionsOverride,
|
|
64
75
|
expressionsUrl: expressionsUrl,
|
|
65
76
|
}).expressions;
|
|
66
77
|
var renderRich = (0, useRenderExpression_1.useRenderExpression)().renderRich;
|
|
67
78
|
var _d = (0, react_1.useState)(defaultMode), mode = _d[0], setMode = _d[1];
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}), preview = _e[0], setPreview = _e[1];
|
|
79
|
+
/* The server's rendering of the current AST; empty until it has one. There is
|
|
80
|
+
no client-side stand-in — see `useRenderExpression`. */
|
|
81
|
+
var _e = (0, react_1.useState)(''), preview = _e[0], setPreview = _e[1];
|
|
72
82
|
// Text mode state. `text` is the DPQL string the editor shows; the AST
|
|
73
83
|
// (`value`) stays the source of truth, kept in sync via parse-on-edit.
|
|
74
84
|
var _f = (0, react_1.useState)(''), text = _f[0], setText = _f[1];
|
|
85
|
+
/* The text the current AST was parsed FROM.
|
|
86
|
+
*
|
|
87
|
+
* The preview renders the AST, and the AST only moves on a SUCCESSFUL
|
|
88
|
+
* parse — so while an edit is mid-flight or simply invalid, the AST still
|
|
89
|
+
* describes the last thing that parsed. Showing it then states something
|
|
90
|
+
* the editor does not contain: deleting the `2` from `1 + 2` left
|
|
91
|
+
* "Unexpected end of input" sitting directly above a Preview confidently
|
|
92
|
+
* reading `1 + 2`. */
|
|
93
|
+
var _g = (0, react_1.useState)(''), astText = _g[0], setAstText = _g[1];
|
|
94
|
+
/**
|
|
95
|
+
* The server's answer to "can this expression's result satisfy the type
|
|
96
|
+
* this field declares?". `null` when nothing has been asked, or when the
|
|
97
|
+
* field declares no type worth asking about.
|
|
98
|
+
*/
|
|
99
|
+
var _h = (0, react_1.useState)(null), typeCheck = _h[0], setTypeCheck = _h[1];
|
|
75
100
|
var dpqlRef = (0, react_1.useRef)(null);
|
|
76
101
|
var parseTimer = (0, react_1.useRef)(null);
|
|
77
102
|
var ast = (0, react_1.useMemo)(function () { return value === null || value === void 0 ? void 0 : value.value; }, [value]);
|
|
103
|
+
/**
|
|
104
|
+
* The type the expression's result has to satisfy, sent with every parse.
|
|
105
|
+
*
|
|
106
|
+
* `auto` and `any` are left out deliberately: they accept anything, so the
|
|
107
|
+
* server would answer "compatible" for everything and the round trip would
|
|
108
|
+
* buy nothing. A field offering a CHOICE of return types has no single
|
|
109
|
+
* answer either, so it asks nothing rather than asking about the wrong one.
|
|
110
|
+
*/
|
|
111
|
+
var targetType = (0, react_1.useMemo)(function () {
|
|
112
|
+
var declared = Array.isArray(returnType) ? undefined : (returnType !== null && returnType !== void 0 ? returnType : type);
|
|
113
|
+
return declared && declared !== 'auto' && declared !== 'any' ? declared : undefined;
|
|
114
|
+
}, [returnType, type]);
|
|
115
|
+
/**
|
|
116
|
+
* Read the type analysis off a parse result, or clear it.
|
|
117
|
+
*
|
|
118
|
+
* "Fits" is read from the whole answer, not `type_compatible` alone. A
|
|
119
|
+
* conversion that exists and cannot fail — a number used as text — is a
|
|
120
|
+
* fit as far as the author is concerned, and reporting it is exactly the
|
|
121
|
+
* noise the message below is written to avoid.
|
|
122
|
+
*/
|
|
123
|
+
var readTypeCheck = (0, react_1.useCallback)(function (result) {
|
|
124
|
+
var _a;
|
|
125
|
+
if (!result || result.type_compatible === undefined) {
|
|
126
|
+
setTypeCheck(null);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
var convertsSafely = !!result.auto_coercible && !result.coercion_may_fail;
|
|
130
|
+
setTypeCheck({
|
|
131
|
+
compatible: !!result.type_compatible || convertsSafely,
|
|
132
|
+
mayFail: !!result.coercion_may_fail,
|
|
133
|
+
inferred: result.inferred_type,
|
|
134
|
+
target: result.target_type,
|
|
135
|
+
fix: (_a = result.suggested_fix) === null || _a === void 0 ? void 0 : _a.text,
|
|
136
|
+
});
|
|
137
|
+
}, []);
|
|
78
138
|
// Keep a readable rendering of the current expression in sync — the
|
|
79
|
-
// single live mirror of the AST (server `dpql/renderExpression`
|
|
80
|
-
//
|
|
139
|
+
// single live mirror of the AST (the server's `dpql/renderExpression`).
|
|
140
|
+
//
|
|
141
|
+
// Debounced: it follows the AST, which follows the text, so rendering it
|
|
142
|
+
// eagerly put a box under the cursor that appeared, changed and vanished
|
|
143
|
+
// while the author was still typing.
|
|
81
144
|
(0, react_1.useEffect)(function () {
|
|
82
145
|
var live = true;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
146
|
+
var timer = setTimeout(function () {
|
|
147
|
+
renderRich(ast !== null && ast !== void 0 ? ast : {}).then(function (r) {
|
|
148
|
+
var _a;
|
|
149
|
+
if (live)
|
|
150
|
+
setPreview((_a = r === null || r === void 0 ? void 0 : r.text) !== null && _a !== void 0 ? _a : '');
|
|
151
|
+
});
|
|
152
|
+
}, PREVIEW_DEBOUNCE_MS);
|
|
87
153
|
return function () {
|
|
88
154
|
live = false;
|
|
155
|
+
clearTimeout(timer);
|
|
89
156
|
};
|
|
90
|
-
}, [renderRich, ast
|
|
157
|
+
}, [renderRich, ast]);
|
|
91
158
|
// Tracks whether the user has typed since entering Text mode, so a
|
|
92
159
|
// slow seed response can't clobber their input.
|
|
93
160
|
var userTypedRef = (0, react_1.useRef)(false);
|
|
94
|
-
|
|
161
|
+
/* A cleared value must clear the editor with it.
|
|
162
|
+
*
|
|
163
|
+
* "Clear value" empties the option (`handleValueChange(name, undefined)`),
|
|
164
|
+
* but the DPQL text is local state seeded once on entering Text mode, and
|
|
165
|
+
* the seeding effect returns early for an empty AST — it exists to fill the
|
|
166
|
+
* editor, not to empty it. So the value went and the text stayed: the row
|
|
167
|
+
* reported "This field is required" while still showing `1 + 2`, which
|
|
168
|
+
* reads as the clear having silently failed.
|
|
169
|
+
*
|
|
170
|
+
* Only an AST that HAD content and lost it clears the box. A field that
|
|
171
|
+
* simply starts empty is left alone, so this cannot wipe what an author is
|
|
172
|
+
* part-way through typing before their first parse lands.
|
|
173
|
+
*/
|
|
174
|
+
var hadExpression = (0, react_1.useRef)(false);
|
|
95
175
|
(0, react_1.useEffect)(function () {
|
|
96
|
-
|
|
176
|
+
/* GONE, not merely incomplete.
|
|
177
|
+
*
|
|
178
|
+
* The first cut asked whether the AST still had an `exp`, and that is a
|
|
179
|
+
* state the value passes THROUGH while the author types: a half-written
|
|
180
|
+
* expression parses to something without one. So typing `1 + 2` cleared
|
|
181
|
+
* the editor mid-keystroke and the text vanished under the cursor.
|
|
182
|
+
*
|
|
183
|
+
* A clear removes the value itself, so that is what to watch: `value`
|
|
184
|
+
* empty, not an AST that is between shapes. Typing never produces that —
|
|
185
|
+
* `handleDpqlChange` only emits on a SUCCESSFUL parse, so an incomplete
|
|
186
|
+
* expression leaves the previous value in place. */
|
|
187
|
+
if (ast) {
|
|
188
|
+
hadExpression.current = true;
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
if (hadExpression.current) {
|
|
192
|
+
hadExpression.current = false;
|
|
193
|
+
userTypedRef.current = false;
|
|
194
|
+
setText('');
|
|
195
|
+
}
|
|
97
196
|
}, [ast]);
|
|
98
197
|
// Text mode: parse the DPQL into the AST (debounced).
|
|
198
|
+
/* The session may not be attached when the debounce fires — the editor
|
|
199
|
+
mounts on the render that flips the mode, and its LSP session comes up
|
|
200
|
+
after that. `dpqlRef.current?.parse?.()` is optional all the way down, so
|
|
201
|
+
an early call resolves `undefined`, `readTypeCheck` CLEARS the analysis,
|
|
202
|
+
and nothing asks again: the author types once into a fresh Text field and
|
|
203
|
+
is told nothing about the type until they happen to type another
|
|
204
|
+
character.
|
|
205
|
+
|
|
206
|
+
The seeding effect below already retries for this exact reason
|
|
207
|
+
("`serialize` resolves '' until the editor's LSP session is ready"); the
|
|
208
|
+
parse path needed the same care and did not have it. Same budget as
|
|
209
|
+
seeding, so a session that never arrives gives up rather than spinning.
|
|
210
|
+
|
|
211
|
+
Found by CI, not locally: the session is up before the debounce on a
|
|
212
|
+
fast machine, so the story asserting the type message passed here every
|
|
213
|
+
time and failed on the runner. */
|
|
99
214
|
var handleDpqlChange = (0, react_1.useCallback)(function (next) {
|
|
100
215
|
userTypedRef.current = true;
|
|
101
216
|
setText(next);
|
|
102
217
|
if (parseTimer.current)
|
|
103
218
|
clearTimeout(parseTimer.current);
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
219
|
+
var tries = 0;
|
|
220
|
+
var runParse = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
221
|
+
var parse, result;
|
|
222
|
+
var _a;
|
|
223
|
+
return __generator(this, function (_b) {
|
|
224
|
+
switch (_b.label) {
|
|
225
|
+
case 0:
|
|
226
|
+
parse = (_a = dpqlRef.current) === null || _a === void 0 ? void 0 : _a.parse;
|
|
227
|
+
if (!parse) {
|
|
228
|
+
if (++tries < SEED_MAX_TRIES) {
|
|
229
|
+
parseTimer.current = setTimeout(runParse, SEED_RETRY_MS);
|
|
230
|
+
}
|
|
231
|
+
return [2 /*return*/];
|
|
232
|
+
}
|
|
233
|
+
return [4 /*yield*/, parse(next, targetType)];
|
|
110
234
|
case 1:
|
|
111
|
-
result =
|
|
235
|
+
result = _b.sent();
|
|
236
|
+
readTypeCheck(result);
|
|
112
237
|
if ((result === null || result === void 0 ? void 0 : result.success) && result.expression) {
|
|
238
|
+
setAstText(next);
|
|
113
239
|
// `dpql/parse` returns the field-ready `{ is_expression, value }`.
|
|
114
240
|
onChange(result.expression);
|
|
115
241
|
}
|
|
116
242
|
return [2 /*return*/];
|
|
117
243
|
}
|
|
118
244
|
});
|
|
119
|
-
}); }
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
245
|
+
}); };
|
|
246
|
+
parseTimer.current = setTimeout(runParse, PARSE_DEBOUNCE_MS);
|
|
247
|
+
}, [onChange, targetType, readTypeCheck]);
|
|
248
|
+
/** Whether this visit to Text mode has already put the AST in the editor. */
|
|
249
|
+
var seededRef = (0, react_1.useRef)(false);
|
|
250
|
+
/* Seed the Text editor from the AST whenever Text mode becomes active
|
|
251
|
+
* (including a `defaultMode='text'` mount). This must run as an effect: the
|
|
252
|
+
* editor only mounts on the same render that flips the mode (so `dpqlRef`
|
|
253
|
+
* is null inside the click handler), and `serialize` resolves '' until the
|
|
254
|
+
* editor's LSP session is ready — hence the brief retry loop.
|
|
255
|
+
*
|
|
256
|
+
* It waits for an AST, because the AST can arrive AFTER the mode does. A
|
|
257
|
+
* host flips this shell into Text mode on the very render that accepts an
|
|
258
|
+
* expression, and the value it passes on that render is still the TEXT the
|
|
259
|
+
* author typed — the parsed AST only comes back through the form one render
|
|
260
|
+
* later. Keyed on the mode alone, the effect had already had its only turn
|
|
261
|
+
* by then: it found nothing to serialize, returned, and nothing asked
|
|
262
|
+
* again. The author landed in an empty editor with a Preview of their own
|
|
263
|
+
* expression sitting beside it, which reads as the text having been thrown
|
|
264
|
+
* away.
|
|
265
|
+
*
|
|
266
|
+
* Seeding happens at most ONCE per visit, and that is what makes watching
|
|
267
|
+
* the AST safe: `userTypedRef` guards what is being typed, but the AST
|
|
268
|
+
* MOVES as the author types — every successful parse replaces it — so an
|
|
269
|
+
* effect that re-seeded on each new AST would fight them for the editor. */
|
|
127
270
|
(0, react_1.useEffect)(function () {
|
|
128
|
-
if (mode !== 'text')
|
|
271
|
+
if (mode !== 'text') {
|
|
272
|
+
// Leaving Text asks the question again on the next visit; the typing
|
|
273
|
+
// flag goes with it, or a stale one would suppress that visit's seed.
|
|
274
|
+
seededRef.current = false;
|
|
275
|
+
userTypedRef.current = false;
|
|
276
|
+
return undefined;
|
|
277
|
+
}
|
|
278
|
+
if (seededRef.current || userTypedRef.current)
|
|
129
279
|
return undefined;
|
|
130
|
-
|
|
131
|
-
if (!(seedAst === null || seedAst === void 0 ? void 0 : seedAst.exp))
|
|
280
|
+
if (!(ast === null || ast === void 0 ? void 0 : ast.exp))
|
|
132
281
|
return undefined;
|
|
133
|
-
|
|
282
|
+
var seedAst = ast;
|
|
134
283
|
var cancelled = false;
|
|
135
284
|
var timer = null;
|
|
136
285
|
var tries = 0;
|
|
@@ -145,7 +294,9 @@ exports.ExpressionField = (0, react_1.memo)(function (_a) {
|
|
|
145
294
|
if (cancelled || userTypedRef.current)
|
|
146
295
|
return [2 /*return*/];
|
|
147
296
|
if (t) {
|
|
297
|
+
seededRef.current = true;
|
|
148
298
|
setText(t);
|
|
299
|
+
setAstText(t);
|
|
149
300
|
}
|
|
150
301
|
else if (++tries < SEED_MAX_TRIES) {
|
|
151
302
|
timer = setTimeout(seed, SEED_RETRY_MS);
|
|
@@ -160,7 +311,7 @@ exports.ExpressionField = (0, react_1.memo)(function (_a) {
|
|
|
160
311
|
if (timer)
|
|
161
312
|
clearTimeout(timer);
|
|
162
313
|
};
|
|
163
|
-
}, [mode]);
|
|
314
|
+
}, [mode, ast]);
|
|
164
315
|
// Switch to Text: the seeding effect above serializes the AST once
|
|
165
316
|
// the editor's session is up.
|
|
166
317
|
var enterTextMode = (0, react_1.useCallback)(function () {
|
|
@@ -176,9 +327,10 @@ exports.ExpressionField = (0, react_1.memo)(function (_a) {
|
|
|
176
327
|
if (parseTimer.current)
|
|
177
328
|
clearTimeout(parseTimer.current);
|
|
178
329
|
if (!(mode === 'text' && text)) return [3 /*break*/, 2];
|
|
179
|
-
return [4 /*yield*/, ((_b = (_a = dpqlRef.current) === null || _a === void 0 ? void 0 : _a.parse) === null || _b === void 0 ? void 0 : _b.call(_a, text))];
|
|
330
|
+
return [4 /*yield*/, ((_b = (_a = dpqlRef.current) === null || _a === void 0 ? void 0 : _a.parse) === null || _b === void 0 ? void 0 : _b.call(_a, text, targetType))];
|
|
180
331
|
case 1:
|
|
181
332
|
result = _c.sent();
|
|
333
|
+
readTypeCheck(result);
|
|
182
334
|
if ((result === null || result === void 0 ? void 0 : result.success) && result.expression) {
|
|
183
335
|
onChange(result.expression);
|
|
184
336
|
}
|
|
@@ -188,20 +340,25 @@ exports.ExpressionField = (0, react_1.memo)(function (_a) {
|
|
|
188
340
|
return [2 /*return*/];
|
|
189
341
|
}
|
|
190
342
|
});
|
|
191
|
-
}); }, [mode, text, onChange]);
|
|
343
|
+
}); }, [mode, text, onChange, targetType, readTypeCheck]);
|
|
192
344
|
(0, react_1.useEffect)(function () { return function () {
|
|
193
345
|
if (parseTimer.current)
|
|
194
346
|
clearTimeout(parseTimer.current);
|
|
195
347
|
}; }, []);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
348
|
+
/* What the Preview has to add: `none` until the server's rendering of the
|
|
349
|
+
text now showing exists, `repeats` when it reads exactly as that text does
|
|
350
|
+
(so it is not drawn — see below), `shown` otherwise. Exposed on the field,
|
|
351
|
+
because a Preview correctly left out leaves nothing else to observe. */
|
|
352
|
+
var previewState = !preview || astText.trim() !== text.trim() ? 'none'
|
|
353
|
+
: (0, dpqlHelpers_1.dpqlDisplayedText)(preview).trim() === (0, dpqlHelpers_1.dpqlDisplayedText)(text).trim() ? 'repeats'
|
|
354
|
+
: 'shown';
|
|
355
|
+
return ((0, jsx_runtime_1.jsxs)(reqore_1.ReqoreControlGroup, { vertical: true, fluid: true, gapSize: 'small', className: 'expression-field', "data-preview": mode === 'text' ? previewState : undefined, children: [(0, jsx_runtime_1.jsxs)(reqore_1.ReqoreControlGroup, { gapSize: 'small', fluid: true, children: [(0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { icon: 'NodeTree', active: mode === 'visual', onClick: enterVisualMode, disabled: readOnly, size: size, children: "Visual" }), (0, jsx_runtime_1.jsx)(reqore_1.ReqoreButton, { icon: 'CodeLine', active: mode === 'text', onClick: enterTextMode, disabled: readOnly, size: size, children: "Text" })] }), mode === 'text' ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(dpqlEditor_1.DpqlEditor, { ref: dpqlRef, value: text, onChange: handleDpqlChange, provider: provider, recordType: recordType, readOnly: readOnly, height: '48px' }), typeCheck && !typeCheck.compatible && ((0, jsx_runtime_1.jsxs)(reqore_1.ReqoreMessage, { intent: typeCheck.mayFail ? 'warning' : 'danger', size: 'small', flat: true, opaque: false, title: typeCheck.mayFail ? 'This may not fit' : 'This does not fit', children: ["The expression returns ".concat(typeCheck.inferred, ", and this field holds ").concat(typeCheck.target, "."), typeCheck.mayFail ?
|
|
356
|
+
' That conversion is attempted rather than guaranteed, so the value itself is checked when it runs.'
|
|
357
|
+
: '', typeCheck.fix ? ((0, jsx_runtime_1.jsx)("div", { style: { marginTop: '6px' }, children: (0, jsx_runtime_1.jsx)(DpqlRendering_1.DpqlRendering, { text: typeCheck.fix, "data-testid": 'expression-type-fix' }) })) : null] })), previewState === 'shown' ? ((0, jsx_runtime_1.jsx)(reqore_1.ReqoreMessage, { intent: 'info', size: 'small', title: 'Preview', flat: true, opaque: false, children: (0, jsx_runtime_1.jsx)(DpqlRendering_1.DpqlRendering, { text: preview, "data-testid": 'expression-preview' }) })) : null] })) : ((0, jsx_runtime_1.jsx)(builder_1.ExpressionBuilder, { value: value, onChange: function (v, remove) { return onChange(v, remove); }, expressions: expressions,
|
|
201
358
|
// Default to `auto` when the field declares no return type, so a
|
|
202
359
|
// valid expression renders `muted` rather than `danger` (the
|
|
203
360
|
// builder's intent requires a truthy returnType).
|
|
204
|
-
returnType: ((_b = returnType !== null && returnType !== void 0 ? returnType : type) !== null && _b !== void 0 ? _b : 'auto'), readOnly: readOnly, localTemplates: localTemplates !== null && localTemplates !== void 0 ? localTemplates : { items: [] }, serverHandled: serverHandled, extraActions: extraActions, size: size, reorder: reorder }))] }));
|
|
361
|
+
returnType: ((_b = returnType !== null && returnType !== void 0 ? returnType : type) !== null && _b !== void 0 ? _b : 'auto'), readOnly: readOnly, localTemplates: localTemplates !== null && localTemplates !== void 0 ? localTemplates : { items: [] }, serverHandled: serverHandled, componentOverrides: componentOverrides, extraActions: extraActions, size: size, reorder: reorder }))] }));
|
|
205
362
|
});
|
|
206
363
|
exports.default = exports.ExpressionField;
|
|
207
364
|
//# sourceMappingURL=ExpressionField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpressionField.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/ExpressionField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,wEAAwE;AACxE,sEAAsE;AACtE,2EAA2E;AAC3E,0EAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"ExpressionField.js","sourceRoot":"","sources":["../../../../src/components/form/expressions/ExpressionField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,wEAAwE;AACxE,sEAAsE;AACtE,2EAA2E;AAC3E,0EAA0E;AAC1E,uEAAuE;AACvE,4EAA4E;AAC5E,oDAAoD;AACpD,mDAIkC;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EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,GAChB,CACH,IACkB,CACtB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAe,uBAAe,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Is this expression argument SUPPLIED, or is it still missing?
|
|
3
|
+
*
|
|
4
|
+
* DPQL has a null literal: `null` parses to `{exp: "value", args: [null]}` and
|
|
5
|
+
* round-trips, and an author writing it in the text editor means *"this is the
|
|
6
|
+
* value — nothing"*. It is the only way to assert that a call returned no
|
|
7
|
+
* value, which is how it was reported.
|
|
8
|
+
*
|
|
9
|
+
* The rule, stated once here because three different places had drawn it
|
|
10
|
+
* differently: **an argument that is explicitly null is supplied; one that is
|
|
11
|
+
* absent or `undefined` is still missing.**
|
|
12
|
+
*
|
|
13
|
+
* The builder used to ask `size(arg) === 0`, and lodash answers `0` for `null`
|
|
14
|
+
* as readily as for `{}`. So an explicit null was read as a missing argument
|
|
15
|
+
* and reset from the catalogue's declaration — which is how a saved draft ended
|
|
16
|
+
* up holding `{"type": "any", "required": true}`, an argument DEFINITION where
|
|
17
|
+
* its value should be, with the author's `null` gone and `required` (a schema
|
|
18
|
+
* key, never a value key) left behind to give it away.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* True when `arg` carries no value yet — `undefined`, the `{}` the builder
|
|
22
|
+
* writes when a type change resets an argument, or any envelope with no
|
|
23
|
+
* `value` in it.
|
|
24
|
+
*
|
|
25
|
+
* `null` is NOT missing: it is the null literal.
|
|
26
|
+
*
|
|
27
|
+
* The rule used to be "an object with no keys at all", which let an envelope
|
|
28
|
+
* holding nothing but SCHEMA keys pass as a supplied value. That is how a saved
|
|
29
|
+
* draft kept `{type: 'any', required: true}` — an argument DEFINITION where the
|
|
30
|
+
* author's value belonged — and why re-opening the expression never repaired
|
|
31
|
+
* it: the builder looked at those two keys, concluded the argument was already
|
|
32
|
+
* supplied, and left the definition in place as data. `required` is a schema
|
|
33
|
+
* key; nothing ever reads it back off a stored value.
|
|
34
|
+
*
|
|
35
|
+
* Asking for the `value` instead makes the question the one that was always
|
|
36
|
+
* meant: has the author put something here?
|
|
37
|
+
*
|
|
38
|
+
* @param arg one entry of an expression's `args`
|
|
39
|
+
*/
|
|
40
|
+
export declare const isExpressionArgumentMissing: (arg: unknown) => boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The shape the builder stores an argument in: `{type, value}`.
|
|
43
|
+
*
|
|
44
|
+
* A parse result carries its arguments RAW — `args: [null]`, `args: [3]` —
|
|
45
|
+
* because that is what the grammar produced. The builder's editors read
|
|
46
|
+
* `arg.value`, so a raw argument has to be widened before it is stored, and
|
|
47
|
+
* widening `null` is the whole point: dropped instead, the author's null
|
|
48
|
+
* becomes an argument with no `value` key at all, which every later reader
|
|
49
|
+
* treats as an empty field.
|
|
50
|
+
*
|
|
51
|
+
* An argument that is already an envelope is returned untouched.
|
|
52
|
+
*
|
|
53
|
+
* @param arg one entry of an expression's `args`
|
|
54
|
+
* @param uiType the type the catalogue declares for that position
|
|
55
|
+
*/
|
|
56
|
+
export declare const asExpressionArgumentEnvelope: (arg: unknown, uiType?: string) => unknown;
|
|
57
|
+
/**
|
|
58
|
+
* Does this value still look like an expression AST?
|
|
59
|
+
*
|
|
60
|
+
* `{exp, args}` is the shape the builder and `dpql/parse` both produce. The
|
|
61
|
+
* check is structural on purpose: the flag that marks an option as holding an
|
|
62
|
+
* expression describes its VALUE, so the value is what should decide whether
|
|
63
|
+
* the flag survives a change that said nothing about it.
|
|
64
|
+
*/
|
|
65
|
+
export declare const looksLikeExpressionAst: (value: unknown) => boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether an option should still be marked as holding an expression.
|
|
68
|
+
*
|
|
69
|
+
* The form engine used to delete the flag on ANY change that did not re-assert
|
|
70
|
+
* it, and most changes do not: an editor re-mounting, a revert, a validation
|
|
71
|
+
* pass. The value stayed the AST while the flag went, so the option degraded
|
|
72
|
+
* into a plain hash — which is how an assertion's Expected Value came back
|
|
73
|
+
* from a saved draft as a two-field object showing `exp` and `args`, and why
|
|
74
|
+
* `encodeTestValue` then stored it with `source: "literal"`.
|
|
75
|
+
*
|
|
76
|
+
* @param isFunction what the caller said: `true` sets the flag, `false` clears
|
|
77
|
+
* it deliberately (choosing a concrete type does this), `undefined` is no
|
|
78
|
+
* opinion at all
|
|
79
|
+
* @param value the option's new value
|
|
80
|
+
* @param wasExpression whether the option was marked before this change
|
|
81
|
+
*/
|
|
82
|
+
export declare const shouldMarkAsExpression: (isFunction: boolean | undefined, value: unknown, wasExpression: boolean | undefined) => boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Fill in an expression's missing arguments, leaving the supplied ones alone.
|
|
85
|
+
*
|
|
86
|
+
* Extracted from the builder so the decision it makes can be tested directly:
|
|
87
|
+
* a component test of the same behaviour passed just as happily with the defect
|
|
88
|
+
* in place, because the builder normalises on an interaction the harness never
|
|
89
|
+
* performed. A test that cannot fail is worse than none.
|
|
90
|
+
*
|
|
91
|
+
* @param expressions the served expression catalogue
|
|
92
|
+
* @param expression the chosen expression's `name`
|
|
93
|
+
* @param args the arguments so far — raw from a parse, or envelopes from the
|
|
94
|
+
* builder's own editors
|
|
95
|
+
*/
|
|
96
|
+
export declare const addMissingExpressionArgs: (expressions: any[] | undefined, expression: string, args?: any[]) => any[];
|
|
97
|
+
//# sourceMappingURL=argumentPresence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"argumentPresence.d.ts","sourceRoot":"","sources":["../../../../src/components/form/expressions/argumentPresence.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,2BAA2B,QAAS,OAAO,KAAG,OAe1D,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,4BAA4B,QAAS,OAAO,WAAW,MAAM,KAAG,OAM5E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,UAAW,OAAO,KAAG,OAIF,CAAC;AAEvD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,eACrB,OAAO,GAAG,SAAS,SACxB,OAAO,iBACC,OAAO,GAAG,SAAS,KACjC,OAYF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB,gBACtB,GAAG,EAAE,GAAG,SAAS,cAClB,MAAM,SACZ,GAAG,EAAE,KACV,GAAG,EAqDL,CAAC"}
|