@qoretechnologies/reqraft 0.10.64 → 0.10.65-pr.137.g62fcecc
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/README.md +53 -1
- package/dist/components/Description/describedControl.d.ts +54 -0
- package/dist/components/Description/describedControl.d.ts.map +1 -0
- package/dist/components/Description/describedControl.js +81 -0
- package/dist/components/Description/describedControl.js.map +1 -0
- package/dist/components/Description/index.d.ts.map +1 -1
- package/dist/components/Description/index.js +3 -2
- package/dist/components/Description/index.js.map +1 -1
- package/dist/components/colorValue/colorValue.d.ts +59 -0
- package/dist/components/colorValue/colorValue.d.ts.map +1 -0
- package/dist/components/colorValue/colorValue.js +245 -0
- package/dist/components/colorValue/colorValue.js.map +1 -0
- package/dist/components/colorValue/index.d.ts +34 -0
- package/dist/components/colorValue/index.d.ts.map +1 -0
- package/dist/components/colorValue/index.js +136 -0
- package/dist/components/colorValue/index.js.map +1 -0
- package/dist/components/colorValue/labels.d.ts +12 -0
- package/dist/components/colorValue/labels.d.ts.map +1 -0
- package/dist/components/colorValue/labels.js +11 -0
- package/dist/components/colorValue/labels.js.map +1 -0
- package/dist/components/composer/Composer.d.ts +1 -1
- package/dist/components/composer/Composer.d.ts.map +1 -1
- package/dist/components/composer/Composer.js +2 -2
- package/dist/components/composer/Composer.js.map +1 -1
- package/dist/components/dpqlEditor/DpqlEditor.d.ts.map +1 -1
- package/dist/components/dpqlEditor/DpqlEditor.js +25 -5
- package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts +36 -5
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.js +340 -62
- package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.d.ts +11 -7
- package/dist/components/dpqlEditor/dpqlTags.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlTags.js +35 -17
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +54 -8
- package/dist/components/dpqlEditor/types.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.d.ts +2 -2
- package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
- package/dist/components/dpqlEditor/useDpqlSession.js +16 -7
- 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 +207 -97
- 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 +29 -3
- package/dist/components/form/engine/CompactToolbar.js.map +1 -1
- package/dist/components/form/engine/FormEngine.d.ts +58 -10
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +542 -112
- package/dist/components/form/engine/FormEngine.js.map +1 -1
- package/dist/components/form/engine/HiddenFieldsNote.d.ts +28 -0
- package/dist/components/form/engine/HiddenFieldsNote.d.ts.map +1 -0
- package/dist/components/form/engine/HiddenFieldsNote.js +32 -0
- package/dist/components/form/engine/HiddenFieldsNote.js.map +1 -0
- package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
- package/dist/components/form/engine/OptionFieldMessages.js +24 -3
- package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts +2 -2
- package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
- package/dist/components/form/engine/_structuredData/SchemaDataView.js +12 -6
- package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
- package/dist/components/form/engine/compactRowContext.d.ts +21 -0
- package/dist/components/form/engine/compactRowContext.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowContext.js.map +1 -1
- package/dist/components/form/engine/compactRowStyles.d.ts +20 -10
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +36 -30
- package/dist/components/form/engine/compactRowStyles.js.map +1 -1
- package/dist/components/form/engine/compactToolbarColors.d.ts +16 -0
- package/dist/components/form/engine/compactToolbarColors.d.ts.map +1 -0
- package/dist/components/form/engine/compactToolbarColors.js +21 -0
- package/dist/components/form/engine/compactToolbarColors.js.map +1 -0
- package/dist/components/form/engine/readFirst.d.ts +24 -8
- package/dist/components/form/engine/readFirst.d.ts.map +1 -1
- package/dist/components/form/engine/readFirst.js +77 -109
- package/dist/components/form/engine/readFirst.js.map +1 -1
- package/dist/components/form/engine/readFirstColors.d.ts +30 -0
- package/dist/components/form/engine/readFirstColors.d.ts.map +1 -0
- package/dist/components/form/engine/readFirstColors.js +51 -0
- package/dist/components/form/engine/readFirstColors.js.map +1 -0
- package/dist/components/form/engine/rowFocus.d.ts +2 -0
- package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
- package/dist/components/form/engine/rowFocus.js +26 -3
- package/dist/components/form/engine/rowFocus.js.map +1 -1
- package/dist/components/form/engine/typeChoices.d.ts +1 -1
- package/dist/components/form/engine/variants/VariantCalmTable.d.ts.map +1 -1
- package/dist/components/form/engine/variants/VariantCalmTable.js +2 -1
- package/dist/components/form/engine/variants/VariantCalmTable.js.map +1 -1
- package/dist/components/form/engine/variants/VariantCards.d.ts.map +1 -1
- package/dist/components/form/engine/variants/VariantCards.js +2 -1
- package/dist/components/form/engine/variants/VariantCards.js.map +1 -1
- package/dist/components/form/engine/variants/VariantFocus.js +1 -1
- package/dist/components/form/engine/variants/VariantFocus.js.map +1 -1
- package/dist/components/form/engine/variants/VariantMinimal.d.ts.map +1 -1
- package/dist/components/form/engine/variants/VariantMinimal.js +2 -1
- package/dist/components/form/engine/variants/VariantMinimal.js.map +1 -1
- package/dist/components/form/engine/variants/variantParts.d.ts +1 -1
- package/dist/components/form/engine/variants/variantParts.d.ts.map +1 -1
- package/dist/components/form/engine/variants/variantParts.js +25 -17
- package/dist/components/form/engine/variants/variantParts.js.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.d.ts +1 -1
- package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
- package/dist/components/form/expressions/DpqlRendering.js +3 -3
- package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
- package/dist/components/form/expressions/ExpressionField.d.ts +64 -3
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +459 -100
- package/dist/components/form/expressions/ExpressionField.js.map +1 -1
- package/dist/components/form/expressions/argumentPresence.d.ts +14 -0
- package/dist/components/form/expressions/argumentPresence.d.ts.map +1 -1
- package/dist/components/form/expressions/argumentPresence.js +16 -1
- package/dist/components/form/expressions/argumentPresence.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentDetail.js +4 -1
- package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentLabel.js +27 -9
- package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/argumentWrapper.js +3 -1
- package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +5 -4
- package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js +6 -3
- package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
- package/dist/components/form/expressions/builder/index.d.ts +24 -2
- package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/index.js +138 -78
- package/dist/components/form/expressions/builder/index.js.map +1 -1
- package/dist/components/form/expressions/builder/item.d.ts +6 -2
- package/dist/components/form/expressions/builder/item.d.ts.map +1 -1
- package/dist/components/form/expressions/builder/item.js +19 -5
- package/dist/components/form/expressions/builder/item.js.map +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js +1 -1
- package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
- package/dist/components/form/expressions/dpqlMockRecordPath.d.ts +11 -0
- package/dist/components/form/expressions/dpqlMockRecordPath.d.ts.map +1 -0
- package/dist/components/form/expressions/dpqlMockRecordPath.js +254 -0
- package/dist/components/form/expressions/dpqlMockRecordPath.js.map +1 -0
- package/dist/components/form/expressions/expressionOperands.d.ts +16 -0
- package/dist/components/form/expressions/expressionOperands.d.ts.map +1 -0
- package/dist/components/form/expressions/expressionOperands.js +97 -0
- package/dist/components/form/expressions/expressionOperands.js.map +1 -0
- package/dist/components/form/expressions/fieldPath.d.ts +24 -0
- package/dist/components/form/expressions/fieldPath.d.ts.map +1 -0
- package/dist/components/form/expressions/fieldPath.js +152 -0
- package/dist/components/form/expressions/fieldPath.js.map +1 -0
- package/dist/components/form/expressions/mockExpressions.d.ts.map +1 -1
- package/dist/components/form/expressions/mockExpressions.js +22 -5
- package/dist/components/form/expressions/mockExpressions.js.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.d.ts +2 -0
- package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
- package/dist/components/form/expressions/renderExpressionToText.js +40 -9
- package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
- package/dist/components/form/expressions/textOfExpression.d.ts +18 -0
- package/dist/components/form/expressions/textOfExpression.d.ts.map +1 -0
- package/dist/components/form/expressions/textOfExpression.js +49 -0
- package/dist/components/form/expressions/textOfExpression.js.map +1 -0
- 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/types.js +6 -1
- package/dist/components/form/expressions/types.js.map +1 -1
- package/dist/components/form/expressions/useExpressionType.d.ts +26 -0
- package/dist/components/form/expressions/useExpressionType.d.ts.map +1 -0
- package/dist/components/form/expressions/useExpressionType.js +181 -0
- package/dist/components/form/expressions/useExpressionType.js.map +1 -0
- package/dist/components/form/expressions/useRenderExpression.d.ts.map +1 -1
- package/dist/components/form/expressions/useRenderExpression.js +13 -9
- package/dist/components/form/expressions/useRenderExpression.js.map +1 -1
- package/dist/components/form/expressions/wildcardExpressions.d.ts +27 -0
- package/dist/components/form/expressions/wildcardExpressions.d.ts.map +1 -0
- package/dist/components/form/expressions/wildcardExpressions.js +101 -0
- package/dist/components/form/expressions/wildcardExpressions.js.map +1 -0
- package/dist/components/form/fields/Field.d.ts.map +1 -1
- package/dist/components/form/fields/Field.js +26 -9
- package/dist/components/form/fields/Field.js.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
- package/dist/components/form/fields/allowed-values/AllowedValues.js +17 -4
- package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAuto.js +24 -0
- package/dist/components/form/fields/array/ArrayAuto.js.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.d.ts.map +1 -1
- package/dist/components/form/fields/array/ArrayAutoField.js +36 -13
- package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts +20 -1
- package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
- package/dist/components/form/fields/auto/AutoFormField.js +81 -36
- package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
- package/dist/components/form/fields/auto/hostEditorValue.d.ts +30 -0
- package/dist/components/form/fields/auto/hostEditorValue.d.ts.map +1 -0
- package/dist/components/form/fields/auto/hostEditorValue.js +53 -0
- package/dist/components/form/fields/auto/hostEditorValue.js.map +1 -0
- package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
- package/dist/components/form/fields/binary/Binary.js +23 -3
- package/dist/components/form/fields/binary/Binary.js.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.d.ts +5 -0
- package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
- package/dist/components/form/fields/boolean/Boolean.js +9 -1
- package/dist/components/form/fields/boolean/Boolean.js.map +1 -1
- package/dist/components/form/fields/color/Color.d.ts +103 -16
- package/dist/components/form/fields/color/Color.d.ts.map +1 -1
- package/dist/components/form/fields/color/Color.js +616 -16
- package/dist/components/form/fields/color/Color.js.map +1 -1
- package/dist/components/form/fields/emittedValues.d.ts +34 -3
- package/dist/components/form/fields/emittedValues.d.ts.map +1 -1
- package/dist/components/form/fields/emittedValues.js +24 -1
- package/dist/components/form/fields/emittedValues.js.map +1 -1
- package/dist/components/form/fields/file/File.d.ts +1 -1
- package/dist/components/form/fields/file/File.d.ts.map +1 -1
- package/dist/components/form/fields/file/File.js +4 -2
- package/dist/components/form/fields/file/File.js.map +1 -1
- package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
- package/dist/components/form/fields/long-string/LongString.js +17 -3
- package/dist/components/form/fields/long-string/LongString.js.map +1 -1
- package/dist/components/form/fields/markdown/MarkdownView.js +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.d.ts.map +1 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js +4 -1
- package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
- package/dist/components/form/fields/number/Number.d.ts +6 -0
- package/dist/components/form/fields/number/Number.d.ts.map +1 -1
- package/dist/components/form/fields/number/Number.js +41 -6
- package/dist/components/form/fields/number/Number.js.map +1 -1
- package/dist/components/form/fields/object/Object.d.ts +1 -1
- package/dist/components/form/fields/object/Object.d.ts.map +1 -1
- package/dist/components/form/fields/object/Object.js +4 -2
- package/dist/components/form/fields/object/Object.js.map +1 -1
- package/dist/components/form/fields/pendingEdit.d.ts +52 -0
- package/dist/components/form/fields/pendingEdit.d.ts.map +1 -0
- package/dist/components/form/fields/pendingEdit.js +79 -0
- package/dist/components/form/fields/pendingEdit.js.map +1 -0
- package/dist/components/form/fields/rich-text/RichText.d.ts +8 -1
- package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
- package/dist/components/form/fields/rich-text/RichText.js +188 -82
- package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +18 -0
- package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -0
- package/dist/components/form/fields/rich-text/useTemplateTags.js +49 -0
- package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -0
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +4 -1
- package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +20 -5
- package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/TableEditor.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/TableEditor.js +10 -2
- package/dist/components/form/fields/schema-definition/TableEditor.js.map +1 -1
- package/dist/components/form/fields/schema-definition/index.d.ts.map +1 -1
- package/dist/components/form/fields/schema-definition/index.js +8 -4
- package/dist/components/form/fields/schema-definition/index.js.map +1 -1
- package/dist/components/form/fields/select/Select.d.ts +2 -0
- package/dist/components/form/fields/select/Select.d.ts.map +1 -1
- package/dist/components/form/fields/select/Select.js +19 -10
- package/dist/components/form/fields/select/Select.js.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
- package/dist/components/form/fields/select/SelectCollection.js +8 -2
- package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
- package/dist/components/form/fields/select/unavailableRow.d.ts +23 -0
- package/dist/components/form/fields/select/unavailableRow.d.ts.map +1 -0
- package/dist/components/form/fields/select/unavailableRow.js +55 -0
- package/dist/components/form/fields/select/unavailableRow.js.map +1 -0
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts +11 -5
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts.map +1 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js +13 -5
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js.map +1 -1
- package/dist/components/form/fields/template/TemplateBrowser.d.ts +22 -0
- package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -0
- package/dist/components/form/fields/template/TemplateBrowser.js +54 -0
- package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -0
- package/dist/components/form/fields/template/TemplateField.d.ts +102 -1
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +572 -85
- package/dist/components/form/fields/template/TemplateField.js.map +1 -1
- package/dist/components/form/fields/template/TemplateText.d.ts +0 -17
- package/dist/components/form/fields/template/TemplateText.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateText.js +9 -11
- package/dist/components/form/fields/template/TemplateText.js.map +1 -1
- package/dist/components/form/fields/template/writtenAsText.d.ts +61 -0
- package/dist/components/form/fields/template/writtenAsText.d.ts.map +1 -0
- package/dist/components/form/fields/template/writtenAsText.js +204 -0
- package/dist/components/form/fields/template/writtenAsText.js.map +1 -0
- package/dist/components/form/index.d.ts +10 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +23 -1
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
- package/dist/components/imageLightbox/ImageLightbox.js +19 -7
- package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
- package/dist/components/log/Log.d.ts.map +1 -1
- package/dist/components/log/Log.js +16 -8
- package/dist/components/log/Log.js.map +1 -1
- package/dist/components/menu/Menu.d.ts.map +1 -1
- package/dist/components/menu/Menu.js +19 -10
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/smartEditor/CompletionMenu.d.ts +43 -0
- package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -0
- package/dist/components/smartEditor/CompletionMenu.js +196 -0
- package/dist/components/smartEditor/CompletionMenu.js.map +1 -0
- package/dist/components/smartEditor/MarkdownDoc.d.ts +1 -1
- package/dist/components/smartEditor/MarkdownDoc.js +3 -3
- package/dist/components/smartEditor/MarkdownDoc.js.map +1 -1
- package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
- package/dist/components/smartEditor/SmartEditor.js +164 -180
- package/dist/components/smartEditor/SmartEditor.js.map +1 -1
- package/dist/components/smartEditor/completionStyle.d.ts +27 -0
- package/dist/components/smartEditor/completionStyle.d.ts.map +1 -0
- package/dist/components/smartEditor/completionStyle.js +68 -0
- package/dist/components/smartEditor/completionStyle.js.map +1 -0
- package/dist/components/smartEditor/index.d.ts +5 -1
- package/dist/components/smartEditor/index.d.ts.map +1 -1
- package/dist/components/smartEditor/index.js +19 -1
- package/dist/components/smartEditor/index.js.map +1 -1
- package/dist/components/smartEditor/templateCompletions.d.ts +18 -0
- package/dist/components/smartEditor/templateCompletions.d.ts.map +1 -0
- package/dist/components/smartEditor/templateCompletions.js +94 -0
- package/dist/components/smartEditor/templateCompletions.js.map +1 -0
- package/dist/components/smartEditor/typedReferences.d.ts +21 -0
- package/dist/components/smartEditor/typedReferences.d.ts.map +1 -0
- package/dist/components/smartEditor/typedReferences.js +82 -0
- package/dist/components/smartEditor/typedReferences.js.map +1 -0
- package/dist/components/smartEditor/types.d.ts +33 -1
- package/dist/components/smartEditor/types.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.d.ts +32 -0
- package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspAutocomplete.js +228 -118
- package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
- package/dist/components/smartEditor/useLspHover.d.ts +33 -7
- package/dist/components/smartEditor/useLspHover.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspHover.js +279 -35
- package/dist/components/smartEditor/useLspHover.js.map +1 -1
- package/dist/components/smartEditor/useLspSemanticTokens.js +1 -1
- package/dist/components/smartEditor/useLspSemanticTokens.js.map +1 -1
- package/dist/components/smartEditor/useLspSession.d.ts +6 -0
- package/dist/components/smartEditor/useLspSession.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspSession.js +7 -6
- package/dist/components/smartEditor/useLspSession.js.map +1 -1
- package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
- package/dist/components/supportTicket/AttachmentChips.js +15 -5
- package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.d.ts +9 -2
- package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
- package/dist/components/supportTicket/ReferencePicker.js +27 -6
- package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
- package/dist/components/supportTicket/TicketHeader.d.ts +3 -4
- package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
- package/dist/components/supportTicket/TicketHeader.js +20 -2
- package/dist/components/supportTicket/TicketHeader.js.map +1 -1
- package/dist/components/supportTicket/TicketMetaTags.d.ts +1 -1
- package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
- package/dist/components/ticketReferences/TicketReferences.js +9 -4
- package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
- package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
- package/dist/components/ticketThread/TicketThread.js +38 -13
- package/dist/components/ticketThread/TicketThread.js.map +1 -1
- package/dist/helpers/descriptionTooltip.d.ts +43 -0
- package/dist/helpers/descriptionTooltip.d.ts.map +1 -0
- package/dist/helpers/descriptionTooltip.js +70 -0
- package/dist/helpers/descriptionTooltip.js.map +1 -0
- package/dist/helpers/domProps.d.ts +5 -0
- package/dist/helpers/domProps.d.ts.map +1 -0
- package/dist/helpers/domProps.js +47 -0
- package/dist/helpers/domProps.js.map +1 -0
- package/dist/helpers/expressions.d.ts +107 -2
- package/dist/helpers/expressions.d.ts.map +1 -1
- package/dist/helpers/expressions.js +223 -8
- package/dist/helpers/expressions.js.map +1 -1
- package/dist/helpers/hoveringPointer.d.ts +26 -0
- package/dist/helpers/hoveringPointer.d.ts.map +1 -0
- package/dist/helpers/hoveringPointer.js +29 -0
- package/dist/helpers/hoveringPointer.js.map +1 -0
- package/dist/helpers/markdownText.d.ts +14 -0
- package/dist/helpers/markdownText.d.ts.map +1 -0
- package/dist/helpers/markdownText.js +160 -0
- package/dist/helpers/markdownText.js.map +1 -0
- package/dist/helpers/qorusTypeCatalogue.d.ts +53 -0
- package/dist/helpers/qorusTypeCatalogue.d.ts.map +1 -0
- package/dist/helpers/qorusTypeCatalogue.js +262 -0
- package/dist/helpers/qorusTypeCatalogue.js.map +1 -0
- package/dist/helpers/readableColors.d.ts +36 -0
- package/dist/helpers/readableColors.d.ts.map +1 -0
- package/dist/helpers/readableColors.js +116 -0
- package/dist/helpers/readableColors.js.map +1 -0
- package/dist/helpers/recordFieldReference.d.ts +15 -0
- package/dist/helpers/recordFieldReference.d.ts.map +1 -0
- package/dist/helpers/recordFieldReference.js +89 -0
- package/dist/helpers/recordFieldReference.js.map +1 -0
- package/dist/helpers/templateItems.d.ts +2 -2
- package/dist/helpers/templateItems.d.ts.map +1 -1
- package/dist/helpers/templateItems.js +6 -4
- package/dist/helpers/templateItems.js.map +1 -1
- package/dist/helpers/templateText.js +5 -2
- package/dist/helpers/templateText.js.map +1 -1
- package/dist/helpers/templates.d.ts +41 -14
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +152 -9
- package/dist/helpers/templates.js.map +1 -1
- package/dist/helpers/validations.d.ts +9 -0
- package/dist/helpers/validations.d.ts.map +1 -1
- package/dist/helpers/validations.js +139 -33
- package/dist/helpers/validations.js.map +1 -1
- package/dist/hooks/useQorusTypes.d.ts +7 -15
- package/dist/hooks/useQorusTypes.d.ts.map +1 -1
- package/dist/hooks/useQorusTypes.js +25 -166
- package/dist/hooks/useQorusTypes.js.map +1 -1
- package/dist/hooks/useReadableIntentShade.d.ts +9 -0
- package/dist/hooks/useReadableIntentShade.d.ts.map +1 -0
- package/dist/hooks/useReadableIntentShade.js +23 -0
- package/dist/hooks/useReadableIntentShade.js.map +1 -0
- package/dist/hooks/useReadableOpacity.d.ts +6 -0
- package/dist/hooks/useReadableOpacity.d.ts.map +1 -0
- package/dist/hooks/useReadableOpacity.js +17 -0
- package/dist/hooks/useReadableOpacity.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tracking/ui/ExperimentCard.d.ts +1 -1
- package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
- package/dist/tracking/ui/ExperimentCard.js +26 -10
- package/dist/tracking/ui/ExperimentCard.js.map +1 -1
- package/dist/tracking/ui/card.d.ts +2 -2
- package/dist/tracking/ui/card.d.ts.map +1 -1
- package/dist/tracking/ui/card.js +2 -2
- package/dist/tracking/ui/card.js.map +1 -1
- package/dist/tracking/ui/readable.d.ts +14 -0
- package/dist/tracking/ui/readable.d.ts.map +1 -0
- package/dist/tracking/ui/readable.js +60 -0
- package/dist/tracking/ui/readable.js.map +1 -0
- package/dist/utils/fetch.d.ts +9 -2
- package/dist/utils/fetch.d.ts.map +1 -1
- package/dist/utils/fetch.js +6 -5
- package/dist/utils/fetch.js.map +1 -1
- package/dist/utils/websocket.d.ts +65 -2
- package/dist/utils/websocket.d.ts.map +1 -1
- package/dist/utils/websocket.js +276 -44
- package/dist/utils/websocket.js.map +1 -1
- package/package.json +14 -5
- package/.claude/CLAUDE.md +0 -317
- package/.tasks/EXPORT_EXPRESSION_BUILDER.md +0 -38
- package/.tasks/EXPRESSION_BUILDER_REPORT.md +0 -149
- package/.tasks/EXPRESSION_FIELD_SEAMS.md +0 -66
- package/.tasks/FIELD_STACK_REPORT.md +0 -234
- package/.tasks/FORM_ENGINE_COMPACT_READ_FIRST.md +0 -558
- package/.tasks/FORM_ENGINE_EXPRESSIONS.md +0 -197
- package/.tasks/FORM_ENGINE_OPTIONS_SYNC.md +0 -95
- package/.tasks/FORM_FIELD_EXTRAS.md +0 -72
- package/.tasks/INDEX.md +0 -111
- package/.tasks/LSP_SHARED_CONNECTION.md +0 -75
- package/.tasks/QONSOLE_ASSIST_FEATURES.md +0 -306
- package/.tasks/RENDER_EXPRESSION_LSP.md +0 -159
- package/.tasks/REQRAFT_AUTO_FIELD.md +0 -176
- package/.tasks/SCHEMA_DEFINITION_FIELD.md +0 -250
- package/.tasks/SMART_EDITOR_CONTEXT_AND_POLISH.md +0 -340
- package/.tasks/SMART_EDITOR_LSP_FEATURES.md +0 -299
- package/.tasks/SMART_EDITOR_REVIEW_FOLLOWUPS.md +0 -280
- package/.tasks/SMART_EDITOR_UX_POLISH.md +0 -383
- package/.tasks/SMART_EDITOR_VISUAL_POLISH.md +0 -246
- package/.tasks/STORY_NETWORK_ISOLATION.md +0 -98
- package/.tasks/TEMPLATE_TOKEN_GRAMMAR.md +0 -72
- package/CODE_OF_CONDUCT.md +0 -105
- package/CONTRIBUTING.MD +0 -78
- package/SECURITY.md +0 -3
- package/chromatic.config.json +0 -5
- package/design/COMPACT_ENGINE_REDESIGN.md +0 -156
- package/design/COMPACT_INFO_DISPLAY.md +0 -87
- package/design/COMPACT_PARITY.md +0 -85
- package/design/EXPRESSION_BUILDER_REPORT_STRATEGY.md +0 -92
- package/design/FORM_ENGINE_COMPACT.md +0 -300
- package/design/FORM_ENGINE_COMPACT_UX_PLAN.md +0 -353
- package/design/FORM_ENGINE_EXPRESSIONS.md +0 -257
- package/design/FORM_ENGINE_FIELD_MIGRATION.md +0 -419
- package/design/IDE_INTEGRATION.md +0 -64
- package/design/RENDER_EXPRESSION_TRANSPORT.md +0 -156
- package/design/SELECT_DIALOG_FLOOR.md +0 -86
- package/design/SMART_EDITOR_UX.md +0 -438
- package/design/TRACKING.md +0 -290
- package/design/UNAVAILABLE_ALLOWED_VALUES.md +0 -226
- package/src/components/Description/index.tsx +0 -254
- package/src/components/Description/markdownRendererContext.tsx +0 -29
- package/src/components/FocusedEditing/index.tsx +0 -50
- package/src/components/codeSize/index.tsx +0 -79
- package/src/components/composer/Composer.stories.tsx +0 -238
- package/src/components/composer/Composer.tsx +0 -554
- package/src/components/composer/helpers.ts +0 -74
- package/src/components/composer/index.ts +0 -2
- package/src/components/dpqlEditor/DpqlEditor.stories.tsx +0 -1183
- package/src/components/dpqlEditor/DpqlEditor.tsx +0 -219
- package/src/components/dpqlEditor/dpqlHelpers.ts +0 -287
- package/src/components/dpqlEditor/dpqlInserter.ts +0 -121
- package/src/components/dpqlEditor/dpqlProbe.ts +0 -165
- package/src/components/dpqlEditor/dpqlTags.ts +0 -114
- package/src/components/dpqlEditor/index.ts +0 -41
- package/src/components/dpqlEditor/types.ts +0 -203
- package/src/components/dpqlEditor/useDpqlProbe.ts +0 -33
- package/src/components/dpqlEditor/useDpqlSession.ts +0 -411
- package/src/components/form/engine/CompactRow.tsx +0 -2620
- package/src/components/form/engine/CompactToolbar.tsx +0 -330
- package/src/components/form/engine/FormEngine.stories.tsx +0 -9920
- package/src/components/form/engine/FormEngine.tsx +0 -4569
- package/src/components/form/engine/FormEngineRemote.stories.tsx +0 -679
- package/src/components/form/engine/FormEngineStickyHeaders.stories.tsx +0 -331
- package/src/components/form/engine/FormFieldsSkeleton.tsx +0 -82
- package/src/components/form/engine/OptionFieldMessages.tsx +0 -477
- package/src/components/form/engine/OptionsHelpDialog.tsx +0 -29
- package/src/components/form/engine/__fixtures__/basicFormOptions.ts +0 -309
- package/src/components/form/engine/__fixtures__/fieldChromeOptions.ts +0 -45
- package/src/components/form/engine/_structuredData/SchemaDataView.stories.tsx +0 -233
- package/src/components/form/engine/_structuredData/SchemaDataView.tsx +0 -742
- package/src/components/form/engine/_structuredData/StructuredDataView.stories.tsx +0 -85
- package/src/components/form/engine/_structuredData/StructuredDataView.tsx +0 -75
- package/src/components/form/engine/_structuredData/structuredData.ts +0 -145
- package/src/components/form/engine/compactRowContext.ts +0 -148
- package/src/components/form/engine/compactRowStyles.ts +0 -898
- package/src/components/form/engine/compactToolbarContext.ts +0 -69
- package/src/components/form/engine/optionActions.ts +0 -128
- package/src/components/form/engine/optionsContext.ts +0 -24
- package/src/components/form/engine/readFirst.ts +0 -1077
- package/src/components/form/engine/rendererTypes.ts +0 -107
- package/src/components/form/engine/revealRow.ts +0 -123
- package/src/components/form/engine/rowFocus.ts +0 -101
- package/src/components/form/engine/rowMenuContext.ts +0 -159
- package/src/components/form/engine/rowOpenPicker.ts +0 -27
- package/src/components/form/engine/typeChoices.ts +0 -63
- package/src/components/form/engine/variants/FormEngineVariants.stories.tsx +0 -159
- package/src/components/form/engine/variants/VariantCalmTable.tsx +0 -244
- package/src/components/form/engine/variants/VariantCards.tsx +0 -212
- package/src/components/form/engine/variants/VariantFocus.tsx +0 -382
- package/src/components/form/engine/variants/VariantMinimal.tsx +0 -170
- package/src/components/form/engine/variants/focusDemo.ts +0 -145
- package/src/components/form/engine/variants/variantModel.ts +0 -223
- package/src/components/form/engine/variants/variantParts.tsx +0 -313
- package/src/components/form/expressions/DpqlRendering.tsx +0 -85
- package/src/components/form/expressions/ExpressionField.stories.tsx +0 -1395
- package/src/components/form/expressions/ExpressionField.tsx +0 -503
- package/src/components/form/expressions/argumentPresence.ts +0 -213
- package/src/components/form/expressions/builder/ExpressionBuilder.stories.tsx +0 -1683
- package/src/components/form/expressions/builder/argumentDetail.tsx +0 -17
- package/src/components/form/expressions/builder/argumentLabel.tsx +0 -146
- package/src/components/form/expressions/builder/argumentSlot.tsx +0 -101
- package/src/components/form/expressions/builder/argumentWrapper.tsx +0 -243
- package/src/components/form/expressions/builder/confirmMismatchedTypesModal.tsx +0 -120
- package/src/components/form/expressions/builder/confirmUnsupportedTypeModal.tsx +0 -69
- package/src/components/form/expressions/builder/index.tsx +0 -1545
- package/src/components/form/expressions/builder/item.tsx +0 -89
- package/src/components/form/expressions/builder/moveToPositionStrip.tsx +0 -156
- package/src/components/form/expressions/builder/renderTemplate.tsx +0 -42
- package/src/components/form/expressions/dpqlMockLanguage.ts +0 -566
- package/src/components/form/expressions/dpqlMockLsp.ts +0 -126
- package/src/components/form/expressions/mockExpressions.ts +0 -317
- package/src/components/form/expressions/renderExpressionToText.ts +0 -137
- package/src/components/form/expressions/types.ts +0 -110
- package/src/components/form/expressions/useExpressions.ts +0 -101
- package/src/components/form/expressions/useRenderExpression.ts +0 -165
- package/src/components/form/fields/Field.stories.tsx +0 -143
- package/src/components/form/fields/Field.tsx +0 -732
- package/src/components/form/fields/allowed-values/AllowedValues.tsx +0 -297
- package/src/components/form/fields/array/ArrayAuto.tsx +0 -237
- package/src/components/form/fields/array/ArrayAutoField.stories.tsx +0 -475
- package/src/components/form/fields/array/ArrayAutoField.tsx +0 -367
- package/src/components/form/fields/auto/AutoFormField.stories.tsx +0 -825
- package/src/components/form/fields/auto/AutoFormField.tsx +0 -1164
- package/src/components/form/fields/binary/Binary.stories.tsx +0 -122
- package/src/components/form/fields/binary/Binary.tsx +0 -91
- package/src/components/form/fields/boolean/Boolean.stories.tsx +0 -125
- package/src/components/form/fields/boolean/Boolean.tsx +0 -34
- package/src/components/form/fields/byte-size/ByteSize.stories.tsx +0 -87
- package/src/components/form/fields/byte-size/ByteSize.tsx +0 -58
- package/src/components/form/fields/color/Color.stories.tsx +0 -99
- package/src/components/form/fields/color/Color.tsx +0 -46
- package/src/components/form/fields/cron/Cron.stories.tsx +0 -68
- package/src/components/form/fields/cron/Cron.tsx +0 -80
- package/src/components/form/fields/date/Date.stories.tsx +0 -77
- package/src/components/form/fields/date/Date.tsx +0 -55
- package/src/components/form/fields/emittedValues.ts +0 -70
- package/src/components/form/fields/file/File.stories.tsx +0 -161
- package/src/components/form/fields/file/File.tsx +0 -227
- package/src/components/form/fields/long-string/LongString.stories.tsx +0 -120
- package/src/components/form/fields/long-string/LongString.tsx +0 -130
- package/src/components/form/fields/markdown/Markdown.stories.tsx +0 -76
- package/src/components/form/fields/markdown/Markdown.tsx +0 -81
- package/src/components/form/fields/markdown/MarkdownView.tsx +0 -222
- package/src/components/form/fields/multi-select/MultiSelectFormField.tsx +0 -139
- package/src/components/form/fields/number/Number.stories.tsx +0 -159
- package/src/components/form/fields/number/Number.tsx +0 -160
- package/src/components/form/fields/object/Object.stories.tsx +0 -398
- package/src/components/form/fields/object/Object.tsx +0 -255
- package/src/components/form/fields/radio-group/RadioGroup.stories.tsx +0 -95
- package/src/components/form/fields/radio-group/RadioGroup.tsx +0 -46
- package/src/components/form/fields/radio-group/images/java-96x128.png +0 -0
- package/src/components/form/fields/radio-group/images/python-129x128.png +0 -0
- package/src/components/form/fields/radio-group/images/qore-106x128.png +0 -0
- package/src/components/form/fields/rich-text/RichText.stories.tsx +0 -260
- package/src/components/form/fields/rich-text/RichText.tsx +0 -537
- package/src/components/form/fields/schema-definition/CatalogLeafForm.tsx +0 -242
- package/src/components/form/fields/schema-definition/CatalogNodeEditor.tsx +0 -758
- package/src/components/form/fields/schema-definition/Hint.tsx +0 -22
- package/src/components/form/fields/schema-definition/InlineValidationBanner.tsx +0 -138
- package/src/components/form/fields/schema-definition/Loader.tsx +0 -20
- package/src/components/form/fields/schema-definition/MigrationsTab.tsx +0 -187
- package/src/components/form/fields/schema-definition/SchemaDefinitionField.stories.tsx +0 -286
- package/src/components/form/fields/schema-definition/TableEditor.tsx +0 -155
- package/src/components/form/fields/schema-definition/TablesTab.tsx +0 -138
- package/src/components/form/fields/schema-definition/catalog.ts +0 -237
- package/src/components/form/fields/schema-definition/helpers.ts +0 -90
- package/src/components/form/fields/schema-definition/index.tsx +0 -418
- package/src/components/form/fields/schema-definition/mockCatalog.ts +0 -325
- package/src/components/form/fields/schema-definition/mockDefinition.ts +0 -111
- package/src/components/form/fields/schema-definition/referenceSuggestions.tsx +0 -152
- package/src/components/form/fields/schema-definition/starterTemplate.ts +0 -68
- package/src/components/form/fields/schema-definition/types.ts +0 -185
- package/src/components/form/fields/schema-definition/useSchemaOptionCatalog.ts +0 -49
- package/src/components/form/fields/select/Select.stories.tsx +0 -872
- package/src/components/form/fields/select/Select.tsx +0 -624
- package/src/components/form/fields/select/SelectCollection.tsx +0 -594
- package/src/components/form/fields/string/String.stories.tsx +0 -86
- package/src/components/form/fields/string/String.tsx +0 -43
- package/src/components/form/fields/template/ExampleValueModal.stories.tsx +0 -114
- package/src/components/form/fields/template/ExampleValueModal.tsx +0 -99
- package/src/components/form/fields/template/ReadOnlyTemplateTag.tsx +0 -47
- package/src/components/form/fields/template/TemplateField.stories.tsx +0 -1121
- package/src/components/form/fields/template/TemplateField.tsx +0 -1717
- package/src/components/form/fields/template/TemplateText.tsx +0 -115
- package/src/components/form/fields/template/__fixtures__/longExampleValue.ts +0 -7
- package/src/components/form/fields/template/__fixtures__/multiLevelTemplates.json +0 -147
- package/src/components/form/fields/template/__fixtures__/templates.json +0 -83
- package/src/components/form/fields/timeout/Timeout.stories.tsx +0 -228
- package/src/components/form/fields/timeout/Timeout.tsx +0 -87
- package/src/components/form/fields/url/Url.stories.tsx +0 -94
- package/src/components/form/fields/url/Url.tsx +0 -85
- package/src/components/form/index.tsx +0 -47
- package/src/components/imageLightbox/ImageLightbox.stories.tsx +0 -238
- package/src/components/imageLightbox/ImageLightbox.tsx +0 -236
- package/src/components/imageLightbox/index.ts +0 -1
- package/src/components/log/Log.stories.tsx +0 -333
- package/src/components/log/Log.tsx +0 -285
- package/src/components/menu/Menu.stories.tsx +0 -155
- package/src/components/menu/Menu.tsx +0 -312
- package/src/components/qonsoleSmartInput/QonsoleSmartInput.stories.tsx +0 -797
- package/src/components/qonsoleSmartInput/QonsoleSmartInput.tsx +0 -105
- package/src/components/qonsoleSmartInput/index.ts +0 -16
- package/src/components/qonsoleSmartInput/qonsoleInserter.ts +0 -77
- package/src/components/qonsoleSmartInput/types.ts +0 -133
- package/src/components/qonsoleSmartInput/useQonsoleSession.ts +0 -124
- package/src/components/searchFilterBar/SearchFilterBar.stories.tsx +0 -62
- package/src/components/searchFilterBar/SearchFilterBar.tsx +0 -144
- package/src/components/searchFilterBar/index.ts +0 -1
- package/src/components/smartEditor/MarkdownDoc.tsx +0 -190
- package/src/components/smartEditor/SmartEditor.stories.tsx +0 -475
- package/src/components/smartEditor/SmartEditor.tsx +0 -808
- package/src/components/smartEditor/__fixtures__/mockLspServer.ts +0 -205
- package/src/components/smartEditor/helpers.ts +0 -217
- package/src/components/smartEditor/index.ts +0 -35
- package/src/components/smartEditor/styling.ts +0 -45
- package/src/components/smartEditor/types.ts +0 -211
- package/src/components/smartEditor/useLspAutocomplete.ts +0 -758
- package/src/components/smartEditor/useLspDiagnosticDecorations.ts +0 -125
- package/src/components/smartEditor/useLspHover.ts +0 -230
- package/src/components/smartEditor/useLspSemanticTokens.ts +0 -298
- package/src/components/smartEditor/useLspSession.ts +0 -231
- package/src/components/smartEditor/useLspSignatureHelp.ts +0 -198
- package/src/components/supportTicket/AttachmentChips.stories.tsx +0 -171
- package/src/components/supportTicket/AttachmentChips.tsx +0 -147
- package/src/components/supportTicket/InterfaceReferenceTags.stories.tsx +0 -257
- package/src/components/supportTicket/InterfaceReferenceTags.tsx +0 -129
- package/src/components/supportTicket/ReferencePicker.stories.tsx +0 -584
- package/src/components/supportTicket/ReferencePicker.tsx +0 -563
- package/src/components/supportTicket/TicketConversation.stories.tsx +0 -121
- package/src/components/supportTicket/TicketHeader.stories.tsx +0 -183
- package/src/components/supportTicket/TicketHeader.tsx +0 -247
- package/src/components/supportTicket/TicketMetaTags.stories.tsx +0 -103
- package/src/components/supportTicket/TicketMetaTags.tsx +0 -85
- package/src/components/supportTicket/TicketReplyBox.stories.tsx +0 -354
- package/src/components/supportTicket/TicketReplyBox.tsx +0 -150
- package/src/components/supportTicket/__fixtures__/kindMarks.ts +0 -28
- package/src/components/supportTicket/attachmentAccess.ts +0 -97
- package/src/components/supportTicket/fileToAttachment.ts +0 -24
- package/src/components/supportTicket/index.ts +0 -10
- package/src/components/supportTicket/meta.ts +0 -206
- package/src/components/supportTicket/ticketModel.ts +0 -131
- package/src/components/supportTicket/useLoadedImages.ts +0 -73
- package/src/components/ticketReferences/TicketReferences.stories.tsx +0 -315
- package/src/components/ticketReferences/TicketReferences.tsx +0 -906
- package/src/components/ticketReferences/index.ts +0 -2
- package/src/components/ticketThread/TicketThread.stories.tsx +0 -829
- package/src/components/ticketThread/TicketThread.tsx +0 -719
- package/src/components/ticketThread/index.ts +0 -6
- package/src/contexts/FetchContext.tsx +0 -25
- package/src/contexts/ReqraftContext.tsx +0 -9
- package/src/contexts/StorageContext.tsx +0 -33
- package/src/global.d.ts +0 -4
- package/src/helpers/allowedValues.ts +0 -249
- package/src/helpers/choiceChip.ts +0 -227
- package/src/helpers/common.ts +0 -326
- package/src/helpers/dpqlDetection.ts +0 -209
- package/src/helpers/expressions.ts +0 -140
- package/src/helpers/optionUiTypes.ts +0 -199
- package/src/helpers/options.ts +0 -150
- package/src/helpers/providerValue.ts +0 -125
- package/src/helpers/scrollbar.ts +0 -32
- package/src/helpers/singleLineString.ts +0 -61
- package/src/helpers/templateItems.ts +0 -81
- package/src/helpers/templateText.ts +0 -350
- package/src/helpers/templates.ts +0 -602
- package/src/helpers/validations.ts +0 -2085
- package/src/hooks/useArgSchema.ts +0 -37
- package/src/hooks/useCoarsePointer.ts +0 -30
- package/src/hooks/useFetch/useFetch.stories.tsx +0 -379
- package/src/hooks/useFetch/useFetch.tsx +0 -154
- package/src/hooks/usePhoneViewport.ts +0 -34
- package/src/hooks/useQorusTypes.ts +0 -233
- package/src/hooks/useReqraftProperty.ts +0 -16
- package/src/hooks/useStorage/useStorage.stories.tsx +0 -168
- package/src/hooks/useStorage/useStorage.ts +0 -35
- package/src/hooks/useTemplates.ts +0 -123
- package/src/hooks/useValidation.ts +0 -9
- package/src/hooks/useWebSocket/useWebSocket.ts +0 -224
- package/src/hooks/useWebSocket/useWebsocket.stories.tsx +0 -640
- package/src/hooks/useWhyDidYouUpdate.ts +0 -38
- package/src/index.tsx +0 -86
- package/src/providers/FetchProvider.tsx +0 -40
- package/src/providers/ReqraftProvider.tsx +0 -52
- package/src/providers/StorageProvider.tsx +0 -131
- package/src/stores/currentUser/currentUser.stories.tsx +0 -100
- package/src/stores/currentUser/currentUser.tsx +0 -94
- package/src/stories/Data/fileFieldArgSchema.json +0 -86
- package/src/stories/Tests/utils.ts +0 -320
- package/src/stories/storyNetwork.ts +0 -92
- package/src/stories/tracking.tsx +0 -206
- package/src/tracking/browser/attach.ts +0 -186
- package/src/tracking/browser/env.ts +0 -78
- package/src/tracking/core/consent.ts +0 -37
- package/src/tracking/core/engagement.ts +0 -47
- package/src/tracking/core/experiments.ts +0 -258
- package/src/tracking/core/hash.ts +0 -26
- package/src/tracking/core/ids.ts +0 -25
- package/src/tracking/core/observable.ts +0 -23
- package/src/tracking/core/queue.ts +0 -131
- package/src/tracking/core/sections.ts +0 -166
- package/src/tracking/core/storage.ts +0 -69
- package/src/tracking/core/tracker.ts +0 -417
- package/src/tracking/core/types.ts +0 -162
- package/src/tracking/core/utm.ts +0 -23
- package/src/tracking/index.ts +0 -72
- package/src/tracking/markup.ts +0 -17
- package/src/tracking/react/Experiment.tsx +0 -44
- package/src/tracking/react/TrackingProvider.tsx +0 -56
- package/src/tracking/react/hooks.ts +0 -106
- package/src/tracking/react/index.ts +0 -13
- package/src/tracking/testing.ts +0 -108
- package/src/tracking/ui/ExperimentCard.stories.tsx +0 -296
- package/src/tracking/ui/ExperimentCard.tsx +0 -667
- package/src/tracking/ui/ExperimentsOverlay.stories.tsx +0 -155
- package/src/tracking/ui/ExperimentsOverlay.tsx +0 -437
- package/src/tracking/ui/anchor.ts +0 -180
- package/src/tracking/ui/card.ts +0 -464
- package/src/tracking/ui/client.ts +0 -117
- package/src/tracking/ui/index.ts +0 -77
- package/src/tracking/ui/types.ts +0 -110
- package/src/tracking/ui/useExperimentsAdmin.ts +0 -103
- package/src/types/Form.ts +0 -29
- package/src/types.ts +0 -14
- package/src/utils/datetime.ts +0 -10
- package/src/utils/fetch.ts +0 -457
- package/src/utils/lspClient.ts +0 -711
- package/src/utils/lspClient.types.ts +0 -211
- package/src/utils/queryUnlessCancelled.ts +0 -28
- package/src/utils/websocket.ts +0 -293
- package/vite.config.ts +0 -58
- package/vitest.config.ts +0 -69
|
@@ -1,679 +0,0 @@
|
|
|
1
|
-
// Coverage for FormEngine's remote-fetch layer (`url` / `customUrl` /
|
|
2
|
-
// `onOptionsLoaded` / `operatorsUrl`), ported from the IDE's Options
|
|
3
|
-
// (systemOptions.tsx). The IDE has NO tests for these paths — all of its 30
|
|
4
|
-
// Options stories pass fixture schemas as props — so this coverage is new,
|
|
5
|
-
// written per the team's port-with-tests method.
|
|
6
|
-
//
|
|
7
|
-
// Server data comes from a `window.fetch` mock installed in `beforeEach`
|
|
8
|
-
// (the dpqlMockLsp pattern, REST flavour). Each story uses DISTINCT urls:
|
|
9
|
-
// `query()` caches GETs for 5 minutes, so reusing a url across stories would
|
|
10
|
-
// serve another story's cached schema.
|
|
11
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
12
|
-
import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
|
|
13
|
-
import { useState } from 'react';
|
|
14
|
-
import { _testsClickButton, sleep } from '../../../stories/Tests/utils';
|
|
15
|
-
import { StoryMeta } from '../../../types';
|
|
16
|
-
import { FormEngine } from './FormEngine';
|
|
17
|
-
|
|
18
|
-
// --- fetch mock --------------------------------------------------------------
|
|
19
|
-
|
|
20
|
-
type TRoutes = Record<string, { status?: number; body: unknown }>;
|
|
21
|
-
|
|
22
|
-
/** Patch `window.fetch`: serve matching routes, pass everything else through.
|
|
23
|
-
* Hits are recorded on `window.__mockFetchHits` for play-test assertions. */
|
|
24
|
-
const mockFetchRoutes = (routes: TRoutes): (() => void) => {
|
|
25
|
-
const original = window.fetch;
|
|
26
|
-
const hits: Record<string, number> = {};
|
|
27
|
-
(window as any).__mockFetchHits = hits;
|
|
28
|
-
window.fetch = async (input: RequestInfo | URL, init?: RequestInit) => {
|
|
29
|
-
const urlStr =
|
|
30
|
-
typeof input === 'string' ? input
|
|
31
|
-
: input instanceof URL ? input.toString()
|
|
32
|
-
: input.url;
|
|
33
|
-
const match = Object.keys(routes).find((key) => urlStr.includes(key));
|
|
34
|
-
if (match) {
|
|
35
|
-
hits[match] = (hits[match] ?? 0) + 1;
|
|
36
|
-
const { status = 200, body } = routes[match];
|
|
37
|
-
return new Response(JSON.stringify(body), {
|
|
38
|
-
status,
|
|
39
|
-
headers: { 'Content-Type': 'application/json' },
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return original(input as RequestInfo, init);
|
|
43
|
-
};
|
|
44
|
-
return () => {
|
|
45
|
-
window.fetch = original;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// --- fixtures ----------------------------------------------------------------
|
|
50
|
-
|
|
51
|
-
const BASIC_SCHEMA = {
|
|
52
|
-
host: {
|
|
53
|
-
type: 'string',
|
|
54
|
-
display_name: 'Host',
|
|
55
|
-
short_desc: 'The host to connect to',
|
|
56
|
-
required: true,
|
|
57
|
-
preselected: true,
|
|
58
|
-
default_value: 'localhost',
|
|
59
|
-
},
|
|
60
|
-
port: {
|
|
61
|
-
type: 'int',
|
|
62
|
-
display_name: 'Port',
|
|
63
|
-
short_desc: 'The port to connect to',
|
|
64
|
-
preselected: true,
|
|
65
|
-
},
|
|
66
|
-
secure: {
|
|
67
|
-
type: 'bool',
|
|
68
|
-
display_name: 'Secure',
|
|
69
|
-
short_desc: 'Use TLS',
|
|
70
|
-
preselected: true,
|
|
71
|
-
default_value: true,
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
const SEARCH_SCHEMA = {
|
|
76
|
-
hostname: {
|
|
77
|
-
type: 'string',
|
|
78
|
-
display_name: 'Hostname',
|
|
79
|
-
short_desc: 'Field to search by',
|
|
80
|
-
preselected: true,
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const ALT_SCHEMA = {
|
|
85
|
-
token: {
|
|
86
|
-
type: 'string',
|
|
87
|
-
display_name: 'Token',
|
|
88
|
-
short_desc: 'Auth token',
|
|
89
|
-
required: true,
|
|
90
|
-
preselected: true,
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const OPERATORS_SCHEMA = {
|
|
95
|
-
like: { name: 'like', display_name: 'Like', desc: 'Substring match' },
|
|
96
|
-
eq: { name: 'eq', display_name: 'Equals', desc: 'Exact match' },
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
const meta = {
|
|
100
|
-
component: FormEngine,
|
|
101
|
-
title: 'Form/Engine/FormEngineRemote',
|
|
102
|
-
// Fetch-mocked and timing-sensitive — skip Chromatic snapshots.
|
|
103
|
-
parameters: { chromatic: { disable: true } },
|
|
104
|
-
args: {
|
|
105
|
-
onChange: fn(),
|
|
106
|
-
onSingleOptionsChange: fn(),
|
|
107
|
-
onDependableOptionChange: fn(),
|
|
108
|
-
onOptionsLoaded: fn(),
|
|
109
|
-
onValidityChange: fn(),
|
|
110
|
-
},
|
|
111
|
-
} as StoryMeta<typeof FormEngine>;
|
|
112
|
-
|
|
113
|
-
export default meta;
|
|
114
|
-
type Story = StoryObj<typeof meta>;
|
|
115
|
-
|
|
116
|
-
const optionCount = () => document.querySelectorAll('.system-option').length;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* The options schema is fetched from `options/{url}`; preselected defaults are
|
|
120
|
-
* seeded into the value and `onOptionsLoaded` fires with the schema.
|
|
121
|
-
*/
|
|
122
|
-
export const SchemaFromUrl: Story = {
|
|
123
|
-
args: {
|
|
124
|
-
name: 'remoteBasic',
|
|
125
|
-
url: 'sb-remote/basic',
|
|
126
|
-
},
|
|
127
|
-
parameters: {
|
|
128
|
-
docs: {
|
|
129
|
-
description: {
|
|
130
|
-
story:
|
|
131
|
-
'Renders FormEngine with a url — the options schema is fetched from options/{url}, three fields mount with the preselected localhost default seeded and onOptionsLoaded fires with the fetched schema.',
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
async beforeEach() {
|
|
136
|
-
return mockFetchRoutes({ 'options/sb-remote/basic': { body: BASIC_SCHEMA } });
|
|
137
|
-
},
|
|
138
|
-
async play({ canvasElement, args }) {
|
|
139
|
-
const canvas = within(canvasElement);
|
|
140
|
-
|
|
141
|
-
await waitFor(() => expect(optionCount()).toBe(3), { timeout: 10000 });
|
|
142
|
-
await expect(canvas.getByText('Host')).toBeInTheDocument();
|
|
143
|
-
// The preselected default landed in the seeded value.
|
|
144
|
-
await expect(canvas.getByDisplayValue('localhost')).toBeInTheDocument();
|
|
145
|
-
// The schema callback fired with the fetched schema.
|
|
146
|
-
await expect(args.onOptionsLoaded).toHaveBeenCalledWith(
|
|
147
|
-
expect.objectContaining({ host: expect.objectContaining({ display_name: 'Host' }) })
|
|
148
|
-
);
|
|
149
|
-
},
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* `operatorsUrl` fetches the operator schema and enables the per-option
|
|
154
|
-
* operator UI: the operator select plus the WHERE/IS summary tags.
|
|
155
|
-
*/
|
|
156
|
-
export const OperatorsFromUrl: Story = {
|
|
157
|
-
args: {
|
|
158
|
-
name: 'remoteSearch',
|
|
159
|
-
url: 'sb-remote/search',
|
|
160
|
-
operatorsUrl: 'sb-remote-operators',
|
|
161
|
-
value: {
|
|
162
|
-
hostname: { type: 'string', value: 'qore', op: ['like'] },
|
|
163
|
-
} as any,
|
|
164
|
-
},
|
|
165
|
-
parameters: {
|
|
166
|
-
docs: {
|
|
167
|
-
description: {
|
|
168
|
-
story:
|
|
169
|
-
'Renders FormEngine with both url and operatorsUrl — the operator select resolves the "like" op against the fetched operator schema and the WHERE/IS summary tags appear alongside the option.',
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
async beforeEach() {
|
|
174
|
-
return mockFetchRoutes({
|
|
175
|
-
'options/sb-remote/search': { body: SEARCH_SCHEMA },
|
|
176
|
-
'sb-remote-operators': { body: OPERATORS_SCHEMA },
|
|
177
|
-
});
|
|
178
|
-
},
|
|
179
|
-
async play({ canvasElement }) {
|
|
180
|
-
const canvas = within(canvasElement);
|
|
181
|
-
|
|
182
|
-
await waitFor(() => expect(optionCount()).toBe(1), { timeout: 10000 });
|
|
183
|
-
// The operator select resolved 'like' against the fetched schema.
|
|
184
|
-
await waitFor(() => expect(canvas.getByText('Like')).toBeInTheDocument(), {
|
|
185
|
-
timeout: 10000,
|
|
186
|
-
});
|
|
187
|
-
// The WHERE/IS summary tags render for the operator-carrying value.
|
|
188
|
-
await waitFor(() => expect(canvas.getByText('WHERE')).toBeInTheDocument(), {
|
|
189
|
-
timeout: 10000,
|
|
190
|
-
});
|
|
191
|
-
await expect(canvas.getByText('hostname')).toBeInTheDocument();
|
|
192
|
-
},
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
/** A failed schema fetch degrades to an empty form — no crash, no skeleton. */
|
|
196
|
-
export const FetchFailure: Story = {
|
|
197
|
-
args: {
|
|
198
|
-
name: 'remoteFail',
|
|
199
|
-
url: 'sb-remote/fail',
|
|
200
|
-
},
|
|
201
|
-
parameters: {
|
|
202
|
-
docs: {
|
|
203
|
-
description: {
|
|
204
|
-
story:
|
|
205
|
-
'Renders FormEngine when the schema fetch returns 500 — the skeleton resolves into the "No options available" empty state instead of crashing.',
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
async beforeEach() {
|
|
210
|
-
return mockFetchRoutes({
|
|
211
|
-
'options/sb-remote/fail': { status: 500, body: { err: 'boom' } },
|
|
212
|
-
});
|
|
213
|
-
},
|
|
214
|
-
async play({ canvasElement }) {
|
|
215
|
-
const canvas = within(canvasElement);
|
|
216
|
-
// The skeleton resolves into the empty-schema warning (no crash).
|
|
217
|
-
await waitFor(() => expect(canvas.getByText('No options available')).toBeInTheDocument(), {
|
|
218
|
-
timeout: 10000,
|
|
219
|
-
});
|
|
220
|
-
await expect(optionCount()).toBe(0);
|
|
221
|
-
},
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
/** Changing `url` clears the value and re-seeds the form from the new schema. */
|
|
225
|
-
export const UrlChangeResetsValue: Story = {
|
|
226
|
-
args: {
|
|
227
|
-
name: 'remoteSwitch',
|
|
228
|
-
url: 'sb-remote/first',
|
|
229
|
-
},
|
|
230
|
-
parameters: {
|
|
231
|
-
docs: {
|
|
232
|
-
description: {
|
|
233
|
-
story:
|
|
234
|
-
'Renders FormEngine wired to url="first". Clicking the switch button re-points the engine to a different schema — the previous value (localhost) is dropped and the new Token field mounts.',
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
render(args) {
|
|
239
|
-
const [url, setUrl] = useState(args.url);
|
|
240
|
-
return (
|
|
241
|
-
<>
|
|
242
|
-
<button data-testid='switch-url' onClick={() => setUrl('sb-remote/second')}>
|
|
243
|
-
switch
|
|
244
|
-
</button>
|
|
245
|
-
<FormEngine {...args} url={url} />
|
|
246
|
-
</>
|
|
247
|
-
);
|
|
248
|
-
},
|
|
249
|
-
async beforeEach() {
|
|
250
|
-
return mockFetchRoutes({
|
|
251
|
-
'options/sb-remote/first': { body: BASIC_SCHEMA },
|
|
252
|
-
'options/sb-remote/second': { body: ALT_SCHEMA },
|
|
253
|
-
});
|
|
254
|
-
},
|
|
255
|
-
async play({ canvasElement }) {
|
|
256
|
-
const canvas = within(canvasElement);
|
|
257
|
-
|
|
258
|
-
await waitFor(() => expect(optionCount()).toBe(3), { timeout: 10000 });
|
|
259
|
-
await expect(canvas.getByDisplayValue('localhost')).toBeInTheDocument();
|
|
260
|
-
|
|
261
|
-
await userEvent.click(canvas.getByTestId('switch-url'));
|
|
262
|
-
|
|
263
|
-
// The new schema renders and the old value is gone.
|
|
264
|
-
await waitFor(() => expect(canvas.getByText('Token')).toBeInTheDocument(), {
|
|
265
|
-
timeout: 10000,
|
|
266
|
-
});
|
|
267
|
-
await waitFor(() => expect(optionCount()).toBe(1));
|
|
268
|
-
await expect(canvas.queryByDisplayValue('localhost')).not.toBeInTheDocument();
|
|
269
|
-
},
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* The `optionActions` seam — per-option injected hover actions, where the IDE
|
|
274
|
-
* renders its `allowAi` AI-assist button. The factory receives the option's
|
|
275
|
-
* name/schema/value (the IDE's `AiAssistanceAction` context).
|
|
276
|
-
*/
|
|
277
|
-
export const InjectedOptionActions: Story = {
|
|
278
|
-
args: {
|
|
279
|
-
name: 'optionActionsSeam',
|
|
280
|
-
options: BASIC_SCHEMA as any,
|
|
281
|
-
optionActions: ({ name }) => [
|
|
282
|
-
{
|
|
283
|
-
icon: 'MagicLine',
|
|
284
|
-
className: 'option-ai-assist',
|
|
285
|
-
tooltip: `AI assistance for ${name}`,
|
|
286
|
-
show: 'hover',
|
|
287
|
-
size: 'tiny',
|
|
288
|
-
fixed: true,
|
|
289
|
-
},
|
|
290
|
-
],
|
|
291
|
-
},
|
|
292
|
-
parameters: {
|
|
293
|
-
docs: {
|
|
294
|
-
description: {
|
|
295
|
-
story:
|
|
296
|
-
'Renders FormEngine with an optionActions factory that injects a per-option AI-assist button. Hovering an option reveals the injected action next to it.',
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
async play() {
|
|
301
|
-
await waitFor(() => expect(optionCount()).toBe(3), { timeout: 10000 });
|
|
302
|
-
|
|
303
|
-
await userEvent.hover(document.querySelectorAll('.system-option')[0]);
|
|
304
|
-
await waitFor(
|
|
305
|
-
() => expect(document.querySelector('.option-ai-assist')).toBeInTheDocument(),
|
|
306
|
-
{ timeout: 10000 }
|
|
307
|
-
);
|
|
308
|
-
},
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* The same injected actions seam must also work in compact/read-first mode. The
|
|
313
|
-
* IDE uses this path for option-based forms and relies on the action slot for
|
|
314
|
-
* small per-field Qonsole controls.
|
|
315
|
-
*/
|
|
316
|
-
export const InjectedCompactOptionActions: Story = {
|
|
317
|
-
args: {
|
|
318
|
-
name: 'compactOptionActionsSeam',
|
|
319
|
-
compact: true,
|
|
320
|
-
options: BASIC_SCHEMA as any,
|
|
321
|
-
optionActions: ({ name }) => [
|
|
322
|
-
{
|
|
323
|
-
icon: 'MagicLine',
|
|
324
|
-
className: 'option-compact-ai-assist',
|
|
325
|
-
tooltip: `AI assistance for ${name}`,
|
|
326
|
-
// The shape the IDE passes on the classic path — hover-gated here too.
|
|
327
|
-
show: 'hover',
|
|
328
|
-
size: 'tiny',
|
|
329
|
-
fixed: true,
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
icon: 'InformationLine',
|
|
333
|
-
className: 'option-compact-always',
|
|
334
|
-
tooltip: `Details for ${name}`,
|
|
335
|
-
size: 'tiny',
|
|
336
|
-
fixed: true,
|
|
337
|
-
},
|
|
338
|
-
],
|
|
339
|
-
},
|
|
340
|
-
parameters: {
|
|
341
|
-
docs: {
|
|
342
|
-
description: {
|
|
343
|
-
story:
|
|
344
|
-
'Renders compact FormEngine rows with two injected per-option actions: one always visible, one declared `show: "hover"` that stays transparent until its row is hovered or focused. Hover-gating applies only where the pointer can hover — on touch both collapse into the row\'s overflow menu instead, so neither is ever hover-only.',
|
|
345
|
-
},
|
|
346
|
-
},
|
|
347
|
-
},
|
|
348
|
-
async play() {
|
|
349
|
-
await waitFor(
|
|
350
|
-
() => expect(document.querySelectorAll('.readfirst-row').length).toBeGreaterThan(0),
|
|
351
|
-
{ timeout: 10000 }
|
|
352
|
-
);
|
|
353
|
-
|
|
354
|
-
const rowCount = document.querySelectorAll('.readfirst-row').length;
|
|
355
|
-
|
|
356
|
-
await waitFor(() => {
|
|
357
|
-
expect(document.querySelectorAll('.option-compact-always').length).toBe(rowCount);
|
|
358
|
-
expect(document.querySelectorAll('.option-compact-ai-assist').length).toBe(rowCount);
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
// The hover-only action carries the CSS gate; the always-on one does not.
|
|
362
|
-
const hoverAction = document.querySelector(
|
|
363
|
-
'.option-compact-ai-assist.options-injected-action-hover'
|
|
364
|
-
) as HTMLElement;
|
|
365
|
-
expect(hoverAction).toBeTruthy();
|
|
366
|
-
expect(
|
|
367
|
-
document.querySelectorAll('.option-compact-always.options-injected-action-hover').length
|
|
368
|
-
).toBe(0);
|
|
369
|
-
|
|
370
|
-
// Actually exercise the reveal condition rather than just asserting the
|
|
371
|
-
// class is present: gated the action is transparent and not hit-testable.
|
|
372
|
-
expect(getComputedStyle(hoverAction).opacity).toBe('0');
|
|
373
|
-
expect(getComputedStyle(hoverAction).pointerEvents).toBe('none');
|
|
374
|
-
|
|
375
|
-
// Focus is the reveal path a test can drive: the gate keys on
|
|
376
|
-
// `:hover, :focus-within`, and a synthetic mouse event does NOT put a real
|
|
377
|
-
// browser into `:hover`. Focusing the action is also the keyboard route a
|
|
378
|
-
// user takes, so this covers the accessibility path at the same time.
|
|
379
|
-
hoverAction.focus();
|
|
380
|
-
await waitFor(() => {
|
|
381
|
-
expect(getComputedStyle(hoverAction).opacity).toBe('1');
|
|
382
|
-
expect(getComputedStyle(hoverAction).pointerEvents).toBe('auto');
|
|
383
|
-
});
|
|
384
|
-
|
|
385
|
-
// Left revealed so the captured frame shows the action rather than an
|
|
386
|
-
// empty slot — the whole point of the story.
|
|
387
|
-
await sleep(200);
|
|
388
|
-
},
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* The no-hover case. A touch device never fires `:hover`, so a hover-gated
|
|
393
|
-
* action would be permanently unreachable; instead every injected action moves
|
|
394
|
-
* into the row's own overflow menu. `optionActionsCollapse='always'` forces the
|
|
395
|
-
* branch that `(hover: none)`/`(pointer: coarse)` picks on a real phone, which a
|
|
396
|
-
* desktop browser cannot emulate.
|
|
397
|
-
*/
|
|
398
|
-
export const InjectedCompactOptionActionsMobile: Story = {
|
|
399
|
-
args: {
|
|
400
|
-
name: 'compactOptionActionsMobile',
|
|
401
|
-
compact: true,
|
|
402
|
-
options: BASIC_SCHEMA as any,
|
|
403
|
-
optionActionsCollapse: 'always',
|
|
404
|
-
optionActions: ({ name }) => [
|
|
405
|
-
{
|
|
406
|
-
icon: 'MagicLine',
|
|
407
|
-
className: 'option-compact-ai-assist',
|
|
408
|
-
tooltip: `AI assistance for ${name}`,
|
|
409
|
-
show: 'hover',
|
|
410
|
-
size: 'tiny',
|
|
411
|
-
fixed: true,
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
icon: 'InformationLine',
|
|
415
|
-
className: 'option-compact-always',
|
|
416
|
-
tooltip: `Details for ${name}`,
|
|
417
|
-
size: 'tiny',
|
|
418
|
-
fixed: true,
|
|
419
|
-
},
|
|
420
|
-
],
|
|
421
|
-
},
|
|
422
|
-
parameters: {
|
|
423
|
-
qlip: { viewport: { width: 420, height: 900 } },
|
|
424
|
-
docs: {
|
|
425
|
-
description: {
|
|
426
|
-
story:
|
|
427
|
-
'Renders the compact rows at phone width with injected actions collapsed into each row\'s overflow menu — the no-hover path, where a hover-gated button would otherwise be unreachable. The menu is opened so the actions are visible.',
|
|
428
|
-
},
|
|
429
|
-
},
|
|
430
|
-
},
|
|
431
|
-
async play() {
|
|
432
|
-
await waitFor(
|
|
433
|
-
() => expect(document.querySelectorAll('.readfirst-row').length).toBeGreaterThan(0),
|
|
434
|
-
{ timeout: 10000 }
|
|
435
|
-
);
|
|
436
|
-
|
|
437
|
-
// Collapsed: no inline injected buttons at all, one overflow menu per row.
|
|
438
|
-
const rowCount = document.querySelectorAll('.readfirst-row').length;
|
|
439
|
-
await waitFor(() => {
|
|
440
|
-
expect(document.querySelectorAll('.options-injected-actions-menu').length).toBe(rowCount);
|
|
441
|
-
});
|
|
442
|
-
expect(document.querySelectorAll('.option-compact-ai-assist').length).toBe(0);
|
|
443
|
-
expect(document.querySelectorAll('.option-compact-always').length).toBe(0);
|
|
444
|
-
|
|
445
|
-
// Both actions are reachable from the menu — the reason the collapse exists.
|
|
446
|
-
await _testsClickButton({ selector: '.options-injected-actions-menu', nth: 0 });
|
|
447
|
-
await waitFor(
|
|
448
|
-
() => {
|
|
449
|
-
const labels = Array.from(document.querySelectorAll('.reqore-menu-item')).map(
|
|
450
|
-
(item) => item.textContent ?? ''
|
|
451
|
-
);
|
|
452
|
-
expect(labels.some((label) => label.includes('AI assistance for'))).toBe(true);
|
|
453
|
-
expect(labels.some((label) => label.includes('Details for'))).toBe(true);
|
|
454
|
-
},
|
|
455
|
-
{ timeout: 10000 }
|
|
456
|
-
);
|
|
457
|
-
},
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Many injected actions. Beyond the inline cap the extras overflow into the
|
|
462
|
-
* row's menu instead of squeezing the value out of the row, so a consumer can
|
|
463
|
-
* inject any number without breaking the layout.
|
|
464
|
-
*/
|
|
465
|
-
export const InjectedCompactOptionActionsMany: Story = {
|
|
466
|
-
args: {
|
|
467
|
-
name: 'compactOptionActionsMany',
|
|
468
|
-
compact: true,
|
|
469
|
-
options: BASIC_SCHEMA as any,
|
|
470
|
-
optionActions: ({ name }) =>
|
|
471
|
-
['MagicLine', 'InformationLine', 'FileCopyLine', 'DeleteBinLine', 'ShareLine'].map(
|
|
472
|
-
(icon, index) => ({
|
|
473
|
-
icon: icon as any,
|
|
474
|
-
className: `option-compact-many-${index}`,
|
|
475
|
-
tooltip: `${icon} for ${name}`,
|
|
476
|
-
size: 'tiny',
|
|
477
|
-
fixed: true,
|
|
478
|
-
})
|
|
479
|
-
),
|
|
480
|
-
},
|
|
481
|
-
parameters: {
|
|
482
|
-
docs: {
|
|
483
|
-
description: {
|
|
484
|
-
story:
|
|
485
|
-
'Renders the compact rows with five injected actions per option — the first two stay inline and the remaining three collapse into the row\'s overflow menu, which is opened here to show them.',
|
|
486
|
-
},
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
async play() {
|
|
490
|
-
await waitFor(
|
|
491
|
-
() => expect(document.querySelectorAll('.readfirst-row').length).toBeGreaterThan(0),
|
|
492
|
-
{ timeout: 10000 }
|
|
493
|
-
);
|
|
494
|
-
|
|
495
|
-
const rowCount = document.querySelectorAll('.readfirst-row').length;
|
|
496
|
-
|
|
497
|
-
// Only the first two render inline; the rest are in the menu.
|
|
498
|
-
await waitFor(() => {
|
|
499
|
-
expect(document.querySelectorAll('.option-compact-many-0').length).toBe(rowCount);
|
|
500
|
-
expect(document.querySelectorAll('.option-compact-many-1').length).toBe(rowCount);
|
|
501
|
-
});
|
|
502
|
-
expect(document.querySelectorAll('.option-compact-many-2').length).toBe(0);
|
|
503
|
-
expect(document.querySelectorAll('.option-compact-many-4').length).toBe(0);
|
|
504
|
-
expect(document.querySelectorAll('.options-injected-actions-menu').length).toBe(rowCount);
|
|
505
|
-
|
|
506
|
-
await _testsClickButton({ selector: '.options-injected-actions-menu', nth: 0 });
|
|
507
|
-
await waitFor(
|
|
508
|
-
() => {
|
|
509
|
-
const labels = Array.from(document.querySelectorAll('.reqore-menu-item')).map(
|
|
510
|
-
(item) => item.textContent ?? ''
|
|
511
|
-
);
|
|
512
|
-
expect(labels.some((label) => label.includes('DeleteBinLine for'))).toBe(true);
|
|
513
|
-
expect(labels.some((label) => label.includes('ShareLine for'))).toBe(true);
|
|
514
|
-
},
|
|
515
|
-
{ timeout: 10000 }
|
|
516
|
-
);
|
|
517
|
-
},
|
|
518
|
-
};
|
|
519
|
-
|
|
520
|
-
// A compact row renders the SAME logical state three ways — the read row, the
|
|
521
|
-
// inline editor, and the edit card (complex types get the card). An injected
|
|
522
|
-
// action has to survive all three, and per the affordance-parity rule each
|
|
523
|
-
// branch needs its own story: the branch without one is where a dead action
|
|
524
|
-
// hides, because the branch under test is the branch that works.
|
|
525
|
-
const BRANCH_SCHEMA = {
|
|
526
|
-
host: {
|
|
527
|
-
type: 'string',
|
|
528
|
-
display_name: 'Host',
|
|
529
|
-
short_desc: 'Edits inline inside the row',
|
|
530
|
-
preselected: true,
|
|
531
|
-
default_value: 'localhost',
|
|
532
|
-
},
|
|
533
|
-
notes: {
|
|
534
|
-
type: 'string',
|
|
535
|
-
ui_type: 'long-string',
|
|
536
|
-
display_name: 'Notes',
|
|
537
|
-
short_desc: 'A complex type — edits in the card branch',
|
|
538
|
-
preselected: true,
|
|
539
|
-
// Needs a value: an empty optional field sits in the collapsed "Optional"
|
|
540
|
-
// group, where `initialExpandedOptions` has nothing to open.
|
|
541
|
-
default_value: 'Notes that are long enough to want the card editor.',
|
|
542
|
-
},
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
const branchAction = ({ name }: { name: string }) => [
|
|
546
|
-
{
|
|
547
|
-
icon: 'MagicLine' as const,
|
|
548
|
-
className: 'option-branch-action',
|
|
549
|
-
tooltip: `AI assistance for ${name}`,
|
|
550
|
-
size: 'tiny' as const,
|
|
551
|
-
fixed: true,
|
|
552
|
-
},
|
|
553
|
-
];
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Branch 1 of 3: the INLINE editor. A simple type opens inside the row itself,
|
|
557
|
-
* and the injected action has to be reachable there, not just on the read row.
|
|
558
|
-
*/
|
|
559
|
-
export const InjectedOptionActionsInlineEditing: Story = {
|
|
560
|
-
args: {
|
|
561
|
-
name: 'compactOptionActionsInline',
|
|
562
|
-
compact: true,
|
|
563
|
-
options: BRANCH_SCHEMA as any,
|
|
564
|
-
initialExpandedOptions: ['host'],
|
|
565
|
-
optionActions: branchAction,
|
|
566
|
-
},
|
|
567
|
-
parameters: {
|
|
568
|
-
docs: {
|
|
569
|
-
description: {
|
|
570
|
-
story:
|
|
571
|
-
'Renders the compact form with the simple `host` field already open, so it edits inline inside the row — the injected per-option action is asserted inside that inline branch.',
|
|
572
|
-
},
|
|
573
|
-
},
|
|
574
|
-
},
|
|
575
|
-
async play() {
|
|
576
|
-
await waitFor(
|
|
577
|
-
() => expect(document.querySelector('.readfirst-row-editing')).toBeTruthy(),
|
|
578
|
-
{ timeout: 10000 }
|
|
579
|
-
);
|
|
580
|
-
|
|
581
|
-
// Scoped to the branch on purpose: a global query would pass on the read
|
|
582
|
-
// row's copy and prove nothing about the inline editor.
|
|
583
|
-
const injected = await waitFor(() => {
|
|
584
|
-
const el = document.querySelector(
|
|
585
|
-
'.readfirst-row-editing .option-branch-action'
|
|
586
|
-
) as HTMLElement;
|
|
587
|
-
expect(el).toBeTruthy();
|
|
588
|
-
return el;
|
|
589
|
-
});
|
|
590
|
-
|
|
591
|
-
// The injected action must match the size of the row's own actions. The
|
|
592
|
-
// fixture deliberately asks for `size: 'tiny'` — the row overrides it,
|
|
593
|
-
// because a consumer-sized button rendered visibly smaller than the revert
|
|
594
|
-
// and More buttons beside it (qlip build #57 rejection).
|
|
595
|
-
const neighbour = document.querySelector(
|
|
596
|
-
'.readfirst-row-editing .options-readfirst-more'
|
|
597
|
-
) as HTMLElement;
|
|
598
|
-
expect(neighbour).toBeTruthy();
|
|
599
|
-
expect(injected.getBoundingClientRect().height).toBe(
|
|
600
|
-
neighbour.getBoundingClientRect().height
|
|
601
|
-
);
|
|
602
|
-
},
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* Branch 2 of 3: the EDIT CARD. A complex type (`long-string`) is too tall to
|
|
607
|
-
* edit in-row, so it opens as a card — a different subtree, and historically
|
|
608
|
-
* where an action wired only in the other branch went missing.
|
|
609
|
-
*/
|
|
610
|
-
export const InjectedOptionActionsEditCard: Story = {
|
|
611
|
-
args: {
|
|
612
|
-
name: 'compactOptionActionsCard',
|
|
613
|
-
compact: true,
|
|
614
|
-
options: BRANCH_SCHEMA as any,
|
|
615
|
-
initialExpandedOptions: ['notes'],
|
|
616
|
-
optionActions: branchAction,
|
|
617
|
-
},
|
|
618
|
-
parameters: {
|
|
619
|
-
docs: {
|
|
620
|
-
description: {
|
|
621
|
-
story:
|
|
622
|
-
'Renders the compact form with the complex `notes` field already open, so it edits in the card branch rather than in-row — the injected per-option action is asserted inside that card.',
|
|
623
|
-
},
|
|
624
|
-
},
|
|
625
|
-
},
|
|
626
|
-
async play() {
|
|
627
|
-
await waitFor(() => expect(document.querySelector('.options-readfirst-card')).toBeTruthy(), {
|
|
628
|
-
timeout: 10000,
|
|
629
|
-
});
|
|
630
|
-
|
|
631
|
-
await waitFor(() => {
|
|
632
|
-
expect(
|
|
633
|
-
document.querySelector('.options-readfirst-card .option-branch-action')
|
|
634
|
-
).toBeTruthy();
|
|
635
|
-
});
|
|
636
|
-
},
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* Opt-in template fetching: `interfaceContext` makes `useTemplates` fetch
|
|
641
|
-
* `system/getContextData` (the IDE's behavior); without it, no request is
|
|
642
|
-
* made (the original reqraft stub behavior).
|
|
643
|
-
*/
|
|
644
|
-
export const TemplatesFromContext: Story = {
|
|
645
|
-
args: {
|
|
646
|
-
name: 'ctxTemplates',
|
|
647
|
-
options: BASIC_SCHEMA as any,
|
|
648
|
-
interfaceContext: 'sb-ctx',
|
|
649
|
-
},
|
|
650
|
-
parameters: {
|
|
651
|
-
docs: {
|
|
652
|
-
description: {
|
|
653
|
-
story:
|
|
654
|
-
'Renders FormEngine with an interfaceContext — useTemplates hits system/getContextData so template values are available in the schema fields.',
|
|
655
|
-
},
|
|
656
|
-
},
|
|
657
|
-
},
|
|
658
|
-
async beforeEach() {
|
|
659
|
-
return mockFetchRoutes({
|
|
660
|
-
'system/getContextData': {
|
|
661
|
-
body: {
|
|
662
|
-
TestApp: {
|
|
663
|
-
display_name: 'Test App',
|
|
664
|
-
app: 'TestApp',
|
|
665
|
-
items: [{ display_name: 'Test Item', value: '$data:item', type: 'string' }],
|
|
666
|
-
},
|
|
667
|
-
},
|
|
668
|
-
},
|
|
669
|
-
});
|
|
670
|
-
},
|
|
671
|
-
async play({ canvasElement }) {
|
|
672
|
-
const canvas = within(canvasElement);
|
|
673
|
-
// The templates loading gate resolves only after the context fetch.
|
|
674
|
-
await waitFor(() => expect(optionCount()).toBe(3), { timeout: 10000 });
|
|
675
|
-
await expect(canvas.getByText('Host')).toBeInTheDocument();
|
|
676
|
-
// The context-data endpoint was actually hit (with the context param).
|
|
677
|
-
await expect((window as any).__mockFetchHits['system/getContextData']).toBeGreaterThan(0);
|
|
678
|
-
},
|
|
679
|
-
};
|