@qoretechnologies/reqraft 0.10.62 → 0.10.63-pr.142.g0b675cd
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 +21 -1
- package/dist/components/Description/describedControl.d.ts +48 -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 +10 -1
- package/dist/components/dpqlEditor/dpqlHelpers.d.ts.map +1 -1
- package/dist/components/dpqlEditor/dpqlHelpers.js +30 -13
- 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 +11 -6
- package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
- package/dist/components/dpqlEditor/types.d.ts +47 -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 +151 -83
- 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 +34 -1
- package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
- package/dist/components/form/engine/FormEngine.js +487 -87
- 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 +19 -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 +0 -1
- package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
- package/dist/components/form/engine/compactRowStyles.js +12 -20
- 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 +41 -3
- package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
- package/dist/components/form/expressions/ExpressionField.js +396 -99
- package/dist/components/form/expressions/ExpressionField.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 +4 -2
- 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 +121 -77
- 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/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/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 +35 -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 +37 -0
- package/dist/components/form/expressions/textOfExpression.js.map +1 -0
- 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 +7 -7
- 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 +20 -7
- 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 +611 -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 +190 -81
- 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 +5 -5
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts.map +1 -1
- package/dist/components/form/fields/template/ReadOnlyTemplateTag.js +11 -4
- 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 +83 -1
- package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
- package/dist/components/form/fields/template/TemplateField.js +535 -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 +8 -4
- package/dist/components/form/fields/template/TemplateText.js.map +1 -1
- package/dist/components/form/fields/template/writtenAsText.d.ts +55 -0
- package/dist/components/form/fields/template/writtenAsText.d.ts.map +1 -0
- package/dist/components/form/fields/template/writtenAsText.js +188 -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 +15 -7
- 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 +1 -1
- 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 +51 -136
- 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 +66 -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/types.d.ts +12 -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 +22 -7
- package/dist/components/smartEditor/useLspHover.d.ts.map +1 -1
- package/dist/components/smartEditor/useLspHover.js +86 -17
- 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 +36 -11
- 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/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/templates.d.ts +26 -1
- package/dist/helpers/templates.d.ts.map +1 -1
- package/dist/helpers/templates.js +41 -6
- 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/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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domProps.d.ts","sourceRoot":"","sources":["../../src/helpers/domProps.ts"],"names":[],"mappings":"AAgCA,gHAAgH;AAChH,eAAO,MAAM,iBAAiB,SAAU,MAAM,KAAG,OACmC,CAAC;AAErF,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,4BAA6B,CAAC,KAAG,QAAQ,CAAC,CAGtD,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2026 Qore Technologies, s.r.o.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.htmlElementProps = exports.isHtmlElementProp = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* The attributes any HTML element takes, beside `aria-*`, `data-*` and event handlers (qorus#646).
|
|
7
|
+
*
|
|
8
|
+
* A component that renders a plain element and takes the rest of its props for it passes that element only these.
|
|
9
|
+
* What else it is handed is not an attribute: a Reqore control group hands each component in it its layout props
|
|
10
|
+
* (`fluid`, `spaceBetween`, `size`, `intent`, `customTheme`, ...), and spread onto an element React warns of each
|
|
11
|
+
* ("Received `true` for a non-boolean attribute `fluid`") and writes the rest into the DOM.
|
|
12
|
+
*/
|
|
13
|
+
var GLOBAL_ATTRIBUTES = new Set([
|
|
14
|
+
'id',
|
|
15
|
+
'className',
|
|
16
|
+
'style',
|
|
17
|
+
'title',
|
|
18
|
+
'role',
|
|
19
|
+
'tabIndex',
|
|
20
|
+
'lang',
|
|
21
|
+
'dir',
|
|
22
|
+
'hidden',
|
|
23
|
+
'translate',
|
|
24
|
+
'draggable',
|
|
25
|
+
'slot',
|
|
26
|
+
'accessKey',
|
|
27
|
+
'autoFocus',
|
|
28
|
+
'inert',
|
|
29
|
+
'contentEditable',
|
|
30
|
+
'spellCheck',
|
|
31
|
+
'suppressContentEditableWarning',
|
|
32
|
+
'suppressHydrationWarning',
|
|
33
|
+
]);
|
|
34
|
+
/** Whether a prop is one any HTML element takes: a global attribute, `aria-*`, `data-*` or an event handler. */
|
|
35
|
+
var isHtmlElementProp = function (name) {
|
|
36
|
+
return GLOBAL_ATTRIBUTES.has(name) || /^(aria|data)-/.test(name) || /^on[A-Z]/.test(name);
|
|
37
|
+
};
|
|
38
|
+
exports.isHtmlElementProp = isHtmlElementProp;
|
|
39
|
+
/** The props any HTML element takes, and nothing else; see `isHtmlElementProp`. */
|
|
40
|
+
var htmlElementProps = function (props) {
|
|
41
|
+
return Object.fromEntries(Object.entries(props).filter(function (_a) {
|
|
42
|
+
var name = _a[0];
|
|
43
|
+
return (0, exports.isHtmlElementProp)(name);
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
exports.htmlElementProps = htmlElementProps;
|
|
47
|
+
//# sourceMappingURL=domProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domProps.js","sourceRoot":"","sources":["../../src/helpers/domProps.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAE3C;;;;;;;GAOG;AACH,IAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,IAAI;IACJ,WAAW;IACX,OAAO;IACP,OAAO;IACP,MAAM;IACN,UAAU;IACV,MAAM;IACN,KAAK;IACL,QAAQ;IACR,WAAW;IACX,WAAW;IACX,MAAM;IACN,WAAW;IACX,WAAW;IACX,OAAO;IACP,iBAAiB;IACjB,YAAY;IACZ,gCAAgC;IAChC,0BAA0B;CAC3B,CAAC,CAAC;AAEH,gHAAgH;AACzG,IAAM,iBAAiB,GAAG,UAAC,IAAY;IAC5C,OAAA,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;AAAlF,CAAkF,CAAC;AADxE,QAAA,iBAAiB,qBACuD;AAErF,mFAAmF;AAC5E,IAAM,gBAAgB,GAAG,UAAmB,KAAQ;IACzD,OAAA,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAC,EAAM;YAAL,IAAI,QAAA;QAAM,OAAA,IAAA,yBAAiB,EAAC,IAAI,CAAC;IAAvB,CAAuB,CAAC,CACpD;AAFf,CAEe,CAAC;AAHL,QAAA,gBAAgB,oBAGX"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { IExpression, IExpressionSchema, IExpressionSchemaArg } from '../components/form/expressions/types';
|
|
2
2
|
import { IQorusTypeObject } from '../hooks/useQorusTypes';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The UI type of an argument: a value's own type, or, for an expression, the
|
|
5
|
+
* type the server gave for it (`useExpressionType`) — an expression's type is
|
|
6
|
+
* never worked out here, so it is the same as everywhere else in Qorus
|
|
7
|
+
* (qoretechnologies/qorus#713). `any`, which nothing is judged by, until the
|
|
8
|
+
* server has given it.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getArgumentType: (_expressions: IExpressionSchema[], arg?: IExpression, schema?: IExpressionSchemaArg) => string;
|
|
4
11
|
export declare const argumentMatchesType: (expressions: IExpressionSchema[], arg: IExpression | undefined, schema: IExpressionSchemaArg) => boolean;
|
|
5
12
|
export declare const areQorusTypesCompatible: (mainType: string | string[], checkType: string | string[], fallbackTypes?: IQorusTypeObject[]) => boolean;
|
|
6
13
|
/**
|
|
@@ -10,8 +17,106 @@ export declare const areQorusTypesCompatible: (mainType: string | string[], chec
|
|
|
10
17
|
* instead (`@status == "open"`, `@note != ""`). The Qorus server applies the same rule.
|
|
11
18
|
*/
|
|
12
19
|
export declare const isTextOrDateType: (type: string) => boolean;
|
|
13
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Whether a place takes a condition: its result must be true or false (`bool`, optional or soft, or a list of
|
|
22
|
+
* only that).
|
|
23
|
+
*/
|
|
14
24
|
export declare const isConditionType: (returnType: string | string[] | undefined) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* What an editor says of a condition that gives this type (qorus#646): nothing for true or false or a type it
|
|
27
|
+
* cannot tell (`any`, `auto`); an error for text, a date or a time, which do not say plainly what is meant;
|
|
28
|
+
* and a warning for any other (a number, a list, a hash), which the condition reads as true unless it is
|
|
29
|
+
* zero or empty - accepted, as the Qorus server accepts it, but said, because it is seldom what was meant.
|
|
30
|
+
* qorus-ide says the same of its own condition editors.
|
|
31
|
+
*/
|
|
32
|
+
export declare const conditionVerdict: (type: string | undefined) => 'error' | 'warning' | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Whether a field is a condition: its schema's `metadata.condition`, the mark a host sets on the options that
|
|
35
|
+
* are conditions (a Qog transition's value, a built-in if's value, a while or for block's condition). The
|
|
36
|
+
* schema's own `type` cannot say it: a value of type bool is not a condition.
|
|
37
|
+
*/
|
|
38
|
+
export declare const isConditionOption: (field: {
|
|
39
|
+
metadata?: Record<string, unknown>;
|
|
40
|
+
} | undefined) => boolean;
|
|
41
|
+
/** A type as a condition reads it: without the optional mark, `soft`, or what a list or hash holds. */
|
|
42
|
+
export declare const conditionBaseType: (type: string | undefined) => string;
|
|
43
|
+
/**
|
|
44
|
+
* What is said of a condition that gives text, a date or a time (NOT_A_CONDITION): what it gives, and how to make
|
|
45
|
+
* it one, with an example for its type. `typeInSentence` is the type named inside a sentence - its sentence form
|
|
46
|
+
* ("text"), as `qorusTypeSentenceForm` gives it - and `baseType` the type it is (`string`, `date`, `time`): the
|
|
47
|
+
* example follows it. These are the server's words: a fallback for when it said none, never a second wording of
|
|
48
|
+
* them. With no type to name, the sentence names none: "The condition must evaluate to true or false. …".
|
|
49
|
+
*/
|
|
50
|
+
export declare const conditionErrorText: (typeInSentence: string | undefined, baseType: string | undefined) => string;
|
|
51
|
+
/**
|
|
52
|
+
* What the expression builder says of an expression whose result does not fit its place: what it gives, what the
|
|
53
|
+
* place takes, and what to do. `gives` and `takes` name the types inside the sentence - their sentence forms ("a
|
|
54
|
+
* whole number"), as `qorusTypeSentenceForm` gives them, `takes` joined with "or" where a place takes more than
|
|
55
|
+
* one - and `gives` is undefined for an expression that gives nothing yet, `takes` for a place whose type is not
|
|
56
|
+
* known: the sentence then says what it gives without naming a type it cannot name (qorus#646).
|
|
57
|
+
*/
|
|
58
|
+
export declare const expressionTypeMismatchText: (gives: string | undefined, takes: string | undefined) => string;
|
|
59
|
+
/**
|
|
60
|
+
* What the builder's conversion list says of an argument it converts: from what to what. `from` and `to` name the
|
|
61
|
+
* types inside the sentence - their sentence forms, as `qorusTypeSentenceForm` gives them - and either is undefined
|
|
62
|
+
* where the type is not known; the sentence then names only the other, or neither (qorus#646).
|
|
63
|
+
*/
|
|
64
|
+
export declare const conversionText: (from: string | undefined, to: string | undefined) => string;
|
|
65
|
+
/**
|
|
66
|
+
* What is said of a condition that gives a number, a list, a hash or a type that is not known
|
|
67
|
+
* (CONDITION_BY_TRUTHINESS): how Qorus reads it, and how to say it explicitly, by the type it gives - named by its
|
|
68
|
+
* sentence form ("a whole number", "key-value pairs (a hash)"), as the server names it
|
|
69
|
+
* (`QonsoleDesignI18n::conditionByTruthinessText`, qorus 04e6c502f). These are the server's words: a fallback for
|
|
70
|
+
* when it said none.
|
|
71
|
+
*/
|
|
72
|
+
export declare const conditionByTruthinessText: (type: string | undefined) => string;
|
|
73
|
+
/** The operators whose every part is read as true or false by its value: AND, OR and NOT. */
|
|
74
|
+
export declare const LOGICAL_OPERATORS: readonly ["&&", "||", "!"];
|
|
75
|
+
/** Whether an expression is an AND, an OR or a NOT. */
|
|
76
|
+
export declare const isLogicalOperation: (expression: IExpression | undefined) => boolean;
|
|
77
|
+
/** How the server reads a part of a condition (`dpql/parse` with `condition: true`, qorus#646). */
|
|
78
|
+
export type TConditionReading = 'condition' | 'truthiness' | 'not_a_condition' | 'unknown';
|
|
79
|
+
/** A part of an AND, an OR or a NOT in a condition: the type it gives and how it is read. */
|
|
80
|
+
export interface IConditionPart {
|
|
81
|
+
type: string;
|
|
82
|
+
reading: TConditionReading;
|
|
83
|
+
/** What the server says of it, in its words, when it says anything. */
|
|
84
|
+
message?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* What the server says of a whole condition, in its words: the first condition diagnostic, when the whole
|
|
88
|
+
* expression's type (`inferredType`) makes it one the server says something of and the diagnostic is that kind.
|
|
89
|
+
* Undefined when it says nothing of the whole - true or false, a type it cannot tell, or diagnostics that do not
|
|
90
|
+
* line up.
|
|
91
|
+
*/
|
|
92
|
+
export declare const conditionWholeMessage: (inferredType: string | undefined, diagnostics: Array<{
|
|
93
|
+
code?: string | number;
|
|
94
|
+
message: string;
|
|
95
|
+
}>) => string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* The parts the server judged, each with what it said of it.
|
|
98
|
+
*
|
|
99
|
+
* The server says it in the diagnostics (NOT_A_CONDITION, CONDITION_BY_TRUTHINESS), in the order it judged:
|
|
100
|
+
* the whole expression first, then its parts - one for each that is not true or false, all over the whole
|
|
101
|
+
* text. The whole's own reading is the one its type gives (`inferredType`); the answer's `condition_reading`
|
|
102
|
+
* is the worst of all of them. A part keeps no words when the diagnostics do not line up with the readings.
|
|
103
|
+
*/
|
|
104
|
+
export declare const conditionPartsWithMessages: (parts: IConditionPart[] | undefined, inferredType: string | undefined, diagnostics: Array<{
|
|
105
|
+
code?: string | number;
|
|
106
|
+
message: string;
|
|
107
|
+
}>) => IConditionPart[] | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Where each part the server judged is drawn, by the path of its card in the expression (the builder's
|
|
110
|
+
* `path`; `''` for the expression itself).
|
|
111
|
+
*
|
|
112
|
+
* The server reads each part of `&&`, `||` and `!` as a condition (qorus#646) and answers `parts` in its own
|
|
113
|
+
* walk order: the operands of the expression's logical operator, left to right, a nested `&&`, `||` or `!`
|
|
114
|
+
* standing for its own parts. A part of an AND or an OR has its own card; the part a NOT reads is drawn on
|
|
115
|
+
* the NOT's card. An answer whose parts are not this expression's (a stale one, or none) places nothing.
|
|
116
|
+
*/
|
|
117
|
+
export declare const conditionPartCards: (expression: IExpression | undefined, parts: IConditionPart[] | undefined) => Record<string, IConditionPart>;
|
|
118
|
+
/** What is said of a part of a condition: nothing when it is true or false or cannot be told. */
|
|
119
|
+
export declare const conditionPartVerdict: (part: IConditionPart | undefined) => 'error' | 'warning' | undefined;
|
|
15
120
|
/**
|
|
16
121
|
* Whether an operation is offered where its result must be of `returnType`: a condition (`bool`) is
|
|
17
122
|
* built from the operations whose result decides it, which is any result but text, a date or a time.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expressions.d.ts","sourceRoot":"","sources":["../../src/helpers/expressions.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"expressions.d.ts","sourceRoot":"","sources":["../../src/helpers/expressions.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EAErB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAoC,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG5F;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,iBACZ,iBAAiB,EAAE,QAC3B,WAAW,WACR,oBAAoB,WAO9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBACjB,iBAAiB,EAAE,OAC3B,WAAW,GAAG,SAAS,UACpB,oBAAoB,YAgB7B,CAAC;AAoBF,eAAO,MAAM,uBAAuB,aACxB,MAAM,GAAG,MAAM,EAAE,aAChB,MAAM,GAAG,MAAM,EAAE,kBACZ,gBAAgB,EAAE,KACjC,OAmCF,CAAC;AAEF;;;;;GAKG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,EAAE,iBAAiB,CAAC;IAC3B,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAKD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,iBAClB,MAAM,GAAG,SAAS,eACnB,MAAM;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,KAC9D,MAAM,GAAG,SASX,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,UAC9B,cAAc,EAAE,GAAG,SAAS,gBACrB,MAAM,GAAG,SAAS,eACnB,MAAM;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,KAC9D,cAAc,EAAE,GAAG,SAqBrB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,eACjB,WAAW,GAAG,SAAS,SAC5B,cAAc,EAAE,GAAG,SAAS,KAClC,OAAO,MAAM,EAAE,cAAc,CAmB/B,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,oBAAoB,SACzB,cAAc,GAAG,SAAS,KAC/B,OAAO,GAAG,SAAS,GAAG,SAGZ,CAAC;AAEd;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,eACvB,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,cAC7B;IAAE,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAE,KACvE,OASF,CAAC"}
|
|
@@ -1,17 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.expressionFitsReturnType = exports.isConditionType = exports.isTextOrDateType = exports.areQorusTypesCompatible = exports.argumentMatchesType = exports.getArgumentType = void 0;
|
|
14
|
+
exports.expressionFitsReturnType = exports.conditionPartVerdict = exports.conditionPartCards = exports.conditionPartsWithMessages = exports.conditionWholeMessage = exports.isLogicalOperation = exports.LOGICAL_OPERATORS = exports.conditionByTruthinessText = exports.conversionText = exports.expressionTypeMismatchText = exports.conditionErrorText = exports.conditionBaseType = exports.isConditionOption = exports.conditionVerdict = exports.isConditionType = exports.isTextOrDateType = exports.areQorusTypesCompatible = exports.argumentMatchesType = exports.getArgumentType = void 0;
|
|
4
15
|
// Copyright 2026 Qore Technologies, s.r.o.
|
|
5
|
-
// Expression / type-compatibility helpers — ported
|
|
16
|
+
// Expression / type-compatibility helpers — ported from qorus-ide
|
|
6
17
|
// (`src/helpers/expressions.ts` + `areQorusTypesCompatible` from
|
|
7
18
|
// `src/helpers/functions.tsx`), import paths adapted to reqraft. Used by the
|
|
8
19
|
// ported ExpressionBuilder.
|
|
9
20
|
var lodash_1 = require("lodash");
|
|
21
|
+
var useExpressionType_1 = require("../components/form/expressions/useExpressionType");
|
|
10
22
|
var useQorusTypes_1 = require("../hooks/useQorusTypes");
|
|
11
|
-
var
|
|
12
|
-
|
|
23
|
+
var qorusTypeCatalogue_1 = require("./qorusTypeCatalogue");
|
|
24
|
+
/**
|
|
25
|
+
* The UI type of an argument: a value's own type, or, for an expression, the
|
|
26
|
+
* type the server gave for it (`useExpressionType`) — an expression's type is
|
|
27
|
+
* never worked out here, so it is the same as everywhere else in Qorus
|
|
28
|
+
* (qoretechnologies/qorus#713). `any`, which nothing is judged by, until the
|
|
29
|
+
* server has given it.
|
|
30
|
+
*/
|
|
31
|
+
var getArgumentType = function (_expressions, arg, schema) {
|
|
32
|
+
var _a, _b;
|
|
13
33
|
if (arg === null || arg === void 0 ? void 0 : arg.is_expression) {
|
|
14
|
-
return (
|
|
34
|
+
return (_b = (_a = (0, useExpressionType_1.getCachedExpressionType)(arg.value)) === null || _a === void 0 ? void 0 : _a.ui_type) !== null && _b !== void 0 ? _b : 'any';
|
|
15
35
|
}
|
|
16
36
|
return (arg === null || arg === void 0 ? void 0 : arg.type) || (schema === null || schema === void 0 ? void 0 : schema.ui_type);
|
|
17
37
|
};
|
|
@@ -41,8 +61,13 @@ exports.argumentMatchesType = argumentMatchesType;
|
|
|
41
61
|
* template from it, and the picker offered a group header with nothing under
|
|
42
62
|
* it. The field was not "a field with no templates" — it was a field whose
|
|
43
63
|
* templates had all been filtered away by a name mismatch.
|
|
64
|
+
*
|
|
65
|
+
* Qore's other names for a type (`integer`, `boolean`) are the catalogue's name for it too: the server's catalogue
|
|
66
|
+
* lists and converts each type by one name only (qorus#646).
|
|
44
67
|
*/
|
|
45
|
-
var normalizeAnyLikeTypeName = function (name) {
|
|
68
|
+
var normalizeAnyLikeTypeName = function (name) {
|
|
69
|
+
return name === 'auto' ? 'any' : (0, qorusTypeCatalogue_1.catalogueTypeName)(name);
|
|
70
|
+
};
|
|
46
71
|
var areQorusTypesCompatible = function (mainType, checkType, fallbackTypes) {
|
|
47
72
|
var _a, _b;
|
|
48
73
|
var types = (0, useQorusTypes_1.getQorusTypes)() || fallbackTypes || useQorusTypes_1.defaultQorusTypes;
|
|
@@ -99,12 +124,202 @@ var isTextOrDateType = function (type) {
|
|
|
99
124
|
return /^(string|richtext|date|time)$/.test(type.replace(/^\*/, '').replace(/^soft/, ''));
|
|
100
125
|
};
|
|
101
126
|
exports.isTextOrDateType = isTextOrDateType;
|
|
102
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Whether a place takes a condition: its result must be true or false (`bool`, optional or soft, or a list of
|
|
129
|
+
* only that).
|
|
130
|
+
*/
|
|
103
131
|
var isConditionType = function (returnType) {
|
|
104
132
|
var types = (0, lodash_1.isArray)(returnType) ? returnType : returnType ? [returnType] : [];
|
|
105
|
-
return types.length > 0 && types.every(function (type) { return /^\*?(bool|boolean)$/.test(type); });
|
|
133
|
+
return types.length > 0 && types.every(function (type) { return /^\*?(soft)?(bool|boolean)$/.test(type); });
|
|
106
134
|
};
|
|
107
135
|
exports.isConditionType = isConditionType;
|
|
136
|
+
/**
|
|
137
|
+
* What an editor says of a condition that gives this type (qorus#646): nothing for true or false or a type it
|
|
138
|
+
* cannot tell (`any`, `auto`); an error for text, a date or a time, which do not say plainly what is meant;
|
|
139
|
+
* and a warning for any other (a number, a list, a hash), which the condition reads as true unless it is
|
|
140
|
+
* zero or empty - accepted, as the Qorus server accepts it, but said, because it is seldom what was meant.
|
|
141
|
+
* qorus-ide says the same of its own condition editors.
|
|
142
|
+
*/
|
|
143
|
+
var conditionVerdict = function (type) {
|
|
144
|
+
if (!type) {
|
|
145
|
+
return undefined;
|
|
146
|
+
}
|
|
147
|
+
var base = type.replace(/^\*/, '').replace(/^soft/, '').replace(/<.*$/, '');
|
|
148
|
+
if (!base || /^(bool|boolean|any|auto)$/.test(base)) {
|
|
149
|
+
return undefined;
|
|
150
|
+
}
|
|
151
|
+
return (0, exports.isTextOrDateType)(base) ? 'error' : 'warning';
|
|
152
|
+
};
|
|
153
|
+
exports.conditionVerdict = conditionVerdict;
|
|
154
|
+
/**
|
|
155
|
+
* Whether a field is a condition: its schema's `metadata.condition`, the mark a host sets on the options that
|
|
156
|
+
* are conditions (a Qog transition's value, a built-in if's value, a while or for block's condition). The
|
|
157
|
+
* schema's own `type` cannot say it: a value of type bool is not a condition.
|
|
158
|
+
*/
|
|
159
|
+
var isConditionOption = function (field) { var _a; return ((_a = field === null || field === void 0 ? void 0 : field.metadata) === null || _a === void 0 ? void 0 : _a.condition) === true; };
|
|
160
|
+
exports.isConditionOption = isConditionOption;
|
|
161
|
+
/** A type as a condition reads it: without the optional mark, `soft`, or what a list or hash holds. */
|
|
162
|
+
var conditionBaseType = function (type) {
|
|
163
|
+
return (type !== null && type !== void 0 ? type : '').replace(/^\*/, '').replace(/^soft/, '').replace(/<.*$/, '');
|
|
164
|
+
};
|
|
165
|
+
exports.conditionBaseType = conditionBaseType;
|
|
166
|
+
/** How a condition that gives this base type is made one: compare the value (qorus#646, as the server says). */
|
|
167
|
+
var conditionExample = function (baseType) {
|
|
168
|
+
return baseType === 'date' ? '@shipped_on > @ordered_on'
|
|
169
|
+
: baseType === 'time' ? '@starts_at < @ends_at'
|
|
170
|
+
: '@status == "open"';
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* What is said of a condition that gives text, a date or a time (NOT_A_CONDITION): what it gives, and how to make
|
|
174
|
+
* it one, with an example for its type. `typeInSentence` is the type named inside a sentence - its sentence form
|
|
175
|
+
* ("text"), as `qorusTypeSentenceForm` gives it - and `baseType` the type it is (`string`, `date`, `time`): the
|
|
176
|
+
* example follows it. These are the server's words: a fallback for when it said none, never a second wording of
|
|
177
|
+
* them. With no type to name, the sentence names none: "The condition must evaluate to true or false. …".
|
|
178
|
+
*/
|
|
179
|
+
var conditionErrorText = function (typeInSentence, baseType) {
|
|
180
|
+
return "".concat(typeInSentence ? "The condition evaluates to ".concat(typeInSentence, ", but it") : 'The condition', " must evaluate to true or false. Compare the value instead, for example ").concat(conditionExample((0, exports.conditionBaseType)(baseType)), ".");
|
|
181
|
+
};
|
|
182
|
+
exports.conditionErrorText = conditionErrorText;
|
|
183
|
+
/**
|
|
184
|
+
* What the expression builder says of an expression whose result does not fit its place: what it gives, what the
|
|
185
|
+
* place takes, and what to do. `gives` and `takes` name the types inside the sentence - their sentence forms ("a
|
|
186
|
+
* whole number"), as `qorusTypeSentenceForm` gives them, `takes` joined with "or" where a place takes more than
|
|
187
|
+
* one - and `gives` is undefined for an expression that gives nothing yet, `takes` for a place whose type is not
|
|
188
|
+
* known: the sentence then says what it gives without naming a type it cannot name (qorus#646).
|
|
189
|
+
*/
|
|
190
|
+
var expressionTypeMismatchText = function (gives, takes) {
|
|
191
|
+
return takes ?
|
|
192
|
+
"This expression gives ".concat(gives !== null && gives !== void 0 ? gives : 'nothing', ", but this field takes ").concat(takes, ". Choose an expression that gives ").concat(takes, ", or put this one inside an expression that converts it.")
|
|
193
|
+
: "This expression gives ".concat(gives !== null && gives !== void 0 ? gives : 'nothing', ", which this field does not take. Choose another expression, or put this one inside an expression that converts it.");
|
|
194
|
+
};
|
|
195
|
+
exports.expressionTypeMismatchText = expressionTypeMismatchText;
|
|
196
|
+
/**
|
|
197
|
+
* What the builder's conversion list says of an argument it converts: from what to what. `from` and `to` name the
|
|
198
|
+
* types inside the sentence - their sentence forms, as `qorusTypeSentenceForm` gives them - and either is undefined
|
|
199
|
+
* where the type is not known; the sentence then names only the other, or neither (qorus#646).
|
|
200
|
+
*/
|
|
201
|
+
var conversionText = function (from, to) {
|
|
202
|
+
return "Converted".concat(from ? " from ".concat(from) : '').concat(to ? " to ".concat(to) : '');
|
|
203
|
+
};
|
|
204
|
+
exports.conversionText = conversionText;
|
|
205
|
+
/**
|
|
206
|
+
* What is said of a condition that gives a number, a list, a hash or a type that is not known
|
|
207
|
+
* (CONDITION_BY_TRUTHINESS): how Qorus reads it, and how to say it explicitly, by the type it gives - named by its
|
|
208
|
+
* sentence form ("a whole number", "key-value pairs (a hash)"), as the server names it
|
|
209
|
+
* (`QonsoleDesignI18n::conditionByTruthinessText`, qorus 04e6c502f). These are the server's words: a fallback for
|
|
210
|
+
* when it said none.
|
|
211
|
+
*/
|
|
212
|
+
var conditionByTruthinessText = function (type) {
|
|
213
|
+
var base = (0, exports.conditionBaseType)(type);
|
|
214
|
+
var named = (0, qorusTypeCatalogue_1.qorusTypeSentenceForm)((0, useQorusTypes_1.getQorusTypes)(), base);
|
|
215
|
+
if (/^(int|integer|float|number)$/.test(base)) {
|
|
216
|
+
return "The condition evaluates to ".concat(named, "; Qorus treats it as true unless it is 0. To make that explicit, compare it, for example @count > 0.");
|
|
217
|
+
}
|
|
218
|
+
if (base === 'list') {
|
|
219
|
+
return "The condition evaluates to ".concat(named, "; Qorus treats it as true unless it is empty. To make that explicit, compare its size, for example size(@items) > 0.");
|
|
220
|
+
}
|
|
221
|
+
if (base === 'hash') {
|
|
222
|
+
return "The condition evaluates to ".concat(named, "; Qorus treats it as true unless it holds no pairs. To make that explicit, compare its size, for example size(@details) > 0.");
|
|
223
|
+
}
|
|
224
|
+
return "The condition's value is not true or false; Qorus treats it as true unless it is 0 or empty. To make that explicit, compare it, for example @count > 0.";
|
|
225
|
+
};
|
|
226
|
+
exports.conditionByTruthinessText = conditionByTruthinessText;
|
|
227
|
+
/** The operators whose every part is read as true or false by its value: AND, OR and NOT. */
|
|
228
|
+
exports.LOGICAL_OPERATORS = ['&&', '||', '!'];
|
|
229
|
+
/** Whether an expression is an AND, an OR or a NOT. */
|
|
230
|
+
var isLogicalOperation = function (expression) {
|
|
231
|
+
var _a;
|
|
232
|
+
return !!(expression === null || expression === void 0 ? void 0 : expression.is_expression) &&
|
|
233
|
+
exports.LOGICAL_OPERATORS.includes((_a = expression.value) === null || _a === void 0 ? void 0 : _a.exp);
|
|
234
|
+
};
|
|
235
|
+
exports.isLogicalOperation = isLogicalOperation;
|
|
236
|
+
/** The server's code for what it says of a condition read as this verdict. */
|
|
237
|
+
var CONDITION_CODE_OF_VERDICT = { error: 'NOT_A_CONDITION', warning: 'CONDITION_BY_TRUTHINESS' };
|
|
238
|
+
/**
|
|
239
|
+
* What the server says of a whole condition, in its words: the first condition diagnostic, when the whole
|
|
240
|
+
* expression's type (`inferredType`) makes it one the server says something of and the diagnostic is that kind.
|
|
241
|
+
* Undefined when it says nothing of the whole - true or false, a type it cannot tell, or diagnostics that do not
|
|
242
|
+
* line up.
|
|
243
|
+
*/
|
|
244
|
+
var conditionWholeMessage = function (inferredType, diagnostics) {
|
|
245
|
+
var verdict = (0, exports.conditionVerdict)(inferredType);
|
|
246
|
+
if (!verdict) {
|
|
247
|
+
return undefined;
|
|
248
|
+
}
|
|
249
|
+
var first = diagnostics.find(function (d) { return d.code === 'NOT_A_CONDITION' || d.code === 'CONDITION_BY_TRUTHINESS'; });
|
|
250
|
+
return (first === null || first === void 0 ? void 0 : first.code) === CONDITION_CODE_OF_VERDICT[verdict] ? first.message : undefined;
|
|
251
|
+
};
|
|
252
|
+
exports.conditionWholeMessage = conditionWholeMessage;
|
|
253
|
+
/**
|
|
254
|
+
* The parts the server judged, each with what it said of it.
|
|
255
|
+
*
|
|
256
|
+
* The server says it in the diagnostics (NOT_A_CONDITION, CONDITION_BY_TRUTHINESS), in the order it judged:
|
|
257
|
+
* the whole expression first, then its parts - one for each that is not true or false, all over the whole
|
|
258
|
+
* text. The whole's own reading is the one its type gives (`inferredType`); the answer's `condition_reading`
|
|
259
|
+
* is the worst of all of them. A part keeps no words when the diagnostics do not line up with the readings.
|
|
260
|
+
*/
|
|
261
|
+
var conditionPartsWithMessages = function (parts, inferredType, diagnostics) {
|
|
262
|
+
if (!parts) {
|
|
263
|
+
return undefined;
|
|
264
|
+
}
|
|
265
|
+
var said = diagnostics.filter(function (d) { return d.code === 'NOT_A_CONDITION' || d.code === 'CONDITION_BY_TRUTHINESS'; });
|
|
266
|
+
var codeOf = function (reading) {
|
|
267
|
+
return reading === 'not_a_condition' ? 'NOT_A_CONDITION'
|
|
268
|
+
: reading === 'truthiness' ? 'CONDITION_BY_TRUTHINESS'
|
|
269
|
+
: undefined;
|
|
270
|
+
};
|
|
271
|
+
// the whole's diagnostic comes first, when its type gives it one (`conditionWholeMessage`)
|
|
272
|
+
var rest = (0, exports.conditionVerdict)(inferredType) ? said.slice(1) : said;
|
|
273
|
+
var partCodes = parts.map(function (part) { return codeOf(part.reading); }).filter(Boolean);
|
|
274
|
+
if (rest.length !== partCodes.length || rest.some(function (d, index) { return d.code !== partCodes[index]; })) {
|
|
275
|
+
return parts;
|
|
276
|
+
}
|
|
277
|
+
var next = 0;
|
|
278
|
+
return parts.map(function (part) {
|
|
279
|
+
return codeOf(part.reading) ? __assign(__assign({}, part), { message: rest[next++].message }) : part;
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
exports.conditionPartsWithMessages = conditionPartsWithMessages;
|
|
283
|
+
/**
|
|
284
|
+
* Where each part the server judged is drawn, by the path of its card in the expression (the builder's
|
|
285
|
+
* `path`; `''` for the expression itself).
|
|
286
|
+
*
|
|
287
|
+
* The server reads each part of `&&`, `||` and `!` as a condition (qorus#646) and answers `parts` in its own
|
|
288
|
+
* walk order: the operands of the expression's logical operator, left to right, a nested `&&`, `||` or `!`
|
|
289
|
+
* standing for its own parts. A part of an AND or an OR has its own card; the part a NOT reads is drawn on
|
|
290
|
+
* the NOT's card. An answer whose parts are not this expression's (a stale one, or none) places nothing.
|
|
291
|
+
*/
|
|
292
|
+
var conditionPartCards = function (expression, parts) {
|
|
293
|
+
var cards = [];
|
|
294
|
+
var walk = function (node, path) {
|
|
295
|
+
var _a, _b;
|
|
296
|
+
((_b = (_a = node.value) === null || _a === void 0 ? void 0 : _a.args) !== null && _b !== void 0 ? _b : []).forEach(function (arg, index) {
|
|
297
|
+
var _a;
|
|
298
|
+
var argPath = "".concat(path ? "".concat(path, ".") : '', "value.args.").concat(index);
|
|
299
|
+
if ((0, exports.isLogicalOperation)(arg)) {
|
|
300
|
+
walk(arg, argPath);
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
cards.push(((_a = node.value) === null || _a === void 0 ? void 0 : _a.exp) === '!' ? path : argPath);
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
if (expression && (0, exports.isLogicalOperation)(expression)) {
|
|
308
|
+
walk(expression, '');
|
|
309
|
+
}
|
|
310
|
+
if (!parts || parts.length !== cards.length) {
|
|
311
|
+
return {};
|
|
312
|
+
}
|
|
313
|
+
return Object.fromEntries(cards.map(function (card, index) { return [card, parts[index]]; }));
|
|
314
|
+
};
|
|
315
|
+
exports.conditionPartCards = conditionPartCards;
|
|
316
|
+
/** What is said of a part of a condition: nothing when it is true or false or cannot be told. */
|
|
317
|
+
var conditionPartVerdict = function (part) {
|
|
318
|
+
return (part === null || part === void 0 ? void 0 : part.reading) === 'not_a_condition' ? 'error'
|
|
319
|
+
: (part === null || part === void 0 ? void 0 : part.reading) === 'truthiness' ? 'warning'
|
|
320
|
+
: undefined;
|
|
321
|
+
};
|
|
322
|
+
exports.conditionPartVerdict = conditionPartVerdict;
|
|
108
323
|
/**
|
|
109
324
|
* Whether an operation is offered where its result must be of `returnType`: a condition (`bool`) is
|
|
110
325
|
* built from the operations whose result decides it, which is any result but text, a date or a time.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expressions.js","sourceRoot":"","sources":["../../src/helpers/expressions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expressions.js","sourceRoot":"","sources":["../../src/helpers/expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,kEAAkE;AAClE,iEAAiE;AACjE,6EAA6E;AAC7E,4BAA4B;AAC5B,iCAAiC;AAOjC,sFAA2F;AAC3F,wDAA4F;AAC5F,2DAAgF;AAEhF;;;;;;GAMG;AACI,IAAM,eAAe,GAAG,UAC7B,YAAiC,EACjC,GAAiB,EACjB,MAA6B;;IAE7B,IAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,aAAa,EAAE,CAAC;QACvB,OAAO,MAAA,MAAA,IAAA,2CAAuB,EAAC,GAAG,CAAC,KAAyB,CAAC,0CAAE,OAAO,mCAAI,KAAK,CAAC;IAClF,CAAC;IAED,OAAO,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,MAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAA,CAAC;AACtC,CAAC,CAAC;AAVW,QAAA,eAAe,mBAU1B;AAEK,IAAM,mBAAmB,GAAG,UACjC,WAAgC,EAChC,GAA4B,EAC5B,MAA4B;;IAE5B,IAAM,KAAK,GAAG,IAAA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AACI,IAAM,wBAAwB,GAAG,UACtC,UAAyC,EACzC,UAAwE;IAExE,IAAI,CAAC,IAAA,uBAAe,EAAC,UAAU,CAAC,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAM,MAAM,GAAG,UAAU,CAAC,cAAc,CAAC;IACzC,IAAI,UAAU,CAAC,qBAAqB,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,KAAK,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACzF,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CAAC,IAAA,wBAAgB,EAAC,MAAM,CAAC,CAAC;AACnC,CAAC,CAAC;AAZW,QAAA,wBAAwB,4BAYnC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** What `isHoveringPointer` reads of a pointer event: a DOM `PointerEvent` or React's own. */
|
|
2
|
+
export interface IHoveringPointerEvent {
|
|
3
|
+
pointerType?: string;
|
|
4
|
+
buttons?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The pointer can hover: a mouse, or a pen held above the screen. A finger cannot.
|
|
8
|
+
*
|
|
9
|
+
* A tap is followed by the mouse events a browser emulates for pages written for a mouse - `mousemove`,
|
|
10
|
+
* `mouseenter`, `mousedown`, `mouseup`, `click` - at the tap, with nothing in them to tell them from a mouse's.
|
|
11
|
+
* Something shown on `mouseenter` or `mousemove` was therefore shown by a tap too: the SmartEditor's hover
|
|
12
|
+
* opened where the finger had put the caret, beside its own Details button (qorus#646), and a compact form's
|
|
13
|
+
* group highlight lit at a tap and stayed lit until the next. The pointer event before them says what the
|
|
14
|
+
* pointer was, so a hover starts on a pointer event, and only for a pointer this says can hover.
|
|
15
|
+
*
|
|
16
|
+
* It is asked of each event, not of the device: a touch laptop's mouse hovers, and so does a mouse plugged
|
|
17
|
+
* into a tablet, whose screen is still a finger's. A pen hovers while it is held above the screen
|
|
18
|
+
* (`buttons` 0); pressed to it, it is drawing, not hovering.
|
|
19
|
+
*
|
|
20
|
+
* Only what cannot hover is turned away: a finger, and a pen pressed to the screen. A pointer the event does
|
|
21
|
+
* not name (`pointerType` '' - which the specification allows where the type cannot be told, and which
|
|
22
|
+
* user-event sends under some jsdom setups - or none at all) is taken for one that hovers, as reqore's
|
|
23
|
+
* `isHoveringPointer` takes it: taken for a finger, it hovered nothing in a consumer's test.
|
|
24
|
+
*/
|
|
25
|
+
export declare const isHoveringPointer: ({ pointerType, buttons }: IHoveringPointerEvent) => boolean;
|
|
26
|
+
//# sourceMappingURL=hoveringPointer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hoveringPointer.d.ts","sourceRoot":"","sources":["../../src/helpers/hoveringPointer.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,iBAAiB,6BAA8B,qBAAqB,KAAG,OACd,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2026 Qore Technologies, s.r.o.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.isHoveringPointer = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* The pointer can hover: a mouse, or a pen held above the screen. A finger cannot.
|
|
7
|
+
*
|
|
8
|
+
* A tap is followed by the mouse events a browser emulates for pages written for a mouse - `mousemove`,
|
|
9
|
+
* `mouseenter`, `mousedown`, `mouseup`, `click` - at the tap, with nothing in them to tell them from a mouse's.
|
|
10
|
+
* Something shown on `mouseenter` or `mousemove` was therefore shown by a tap too: the SmartEditor's hover
|
|
11
|
+
* opened where the finger had put the caret, beside its own Details button (qorus#646), and a compact form's
|
|
12
|
+
* group highlight lit at a tap and stayed lit until the next. The pointer event before them says what the
|
|
13
|
+
* pointer was, so a hover starts on a pointer event, and only for a pointer this says can hover.
|
|
14
|
+
*
|
|
15
|
+
* It is asked of each event, not of the device: a touch laptop's mouse hovers, and so does a mouse plugged
|
|
16
|
+
* into a tablet, whose screen is still a finger's. A pen hovers while it is held above the screen
|
|
17
|
+
* (`buttons` 0); pressed to it, it is drawing, not hovering.
|
|
18
|
+
*
|
|
19
|
+
* Only what cannot hover is turned away: a finger, and a pen pressed to the screen. A pointer the event does
|
|
20
|
+
* not name (`pointerType` '' - which the specification allows where the type cannot be told, and which
|
|
21
|
+
* user-event sends under some jsdom setups - or none at all) is taken for one that hovers, as reqore's
|
|
22
|
+
* `isHoveringPointer` takes it: taken for a finger, it hovered nothing in a consumer's test.
|
|
23
|
+
*/
|
|
24
|
+
var isHoveringPointer = function (_a) {
|
|
25
|
+
var pointerType = _a.pointerType, buttons = _a.buttons;
|
|
26
|
+
return pointerType !== 'touch' && !(pointerType === 'pen' && buttons !== 0);
|
|
27
|
+
};
|
|
28
|
+
exports.isHoveringPointer = isHoveringPointer;
|
|
29
|
+
//# sourceMappingURL=hoveringPointer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hoveringPointer.js","sourceRoot":"","sources":["../../src/helpers/hoveringPointer.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAQ3C;;;;;;;;;;;;;;;;;;GAkBG;AACI,IAAM,iBAAiB,GAAG,UAAC,EAA+C;QAA7C,WAAW,iBAAA,EAAE,OAAO,aAAA;IACtD,OAAA,WAAW,KAAK,OAAO,IAAI,CAAC,CAAC,WAAW,KAAK,KAAK,IAAI,OAAO,KAAK,CAAC,CAAC;AAApE,CAAoE,CAAC;AAD1D,QAAA,iBAAiB,qBACyC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Markdown as plain text: its words, with no marks, a blank line between its paragraphs and a line of its own for
|
|
4
|
+
* each list item. A fenced code block keeps its lines. Empty for anything but a string.
|
|
5
|
+
*/
|
|
6
|
+
export declare const markdownToPlainText: (value: unknown) => string;
|
|
7
|
+
/** Markdown as prose on one line: `markdownToPlainText` with its breaks run together. */
|
|
8
|
+
export declare const markdownToProse: (value: unknown) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Markdown as plain text to show: the text alone when it is one line, or a block that keeps its paragraph and
|
|
11
|
+
* line breaks (`white-space: pre-line`) when it has more.
|
|
12
|
+
*/
|
|
13
|
+
export declare const plainTextNode: (value: unknown) => ReactNode;
|
|
14
|
+
//# sourceMappingURL=markdownText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownText.d.ts","sourceRoot":"","sources":["../../src/helpers/markdownText.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AA0GjD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,UAAW,OAAO,KAAG,MAiCpD,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,MACO,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,SAS9C,CAAC"}
|