@atlaskit/jql-editor 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1048 -0
- package/LICENSE.md +13 -0
- package/README.md +3 -0
- package/dist/cjs/accessibility/index.js +12 -0
- package/dist/cjs/accessibility/styled.js +12 -0
- package/dist/cjs/analytics/constants.js +27 -0
- package/dist/cjs/analytics/index.js +57 -0
- package/dist/cjs/analytics/listener/analytics-web-client-wrapper.js +77 -0
- package/dist/cjs/analytics/listener/handle-event.js +21 -0
- package/dist/cjs/analytics/listener/helpers/logger.js +89 -0
- package/dist/cjs/analytics/listener/index.js +13 -0
- package/dist/cjs/analytics/listener/jql-editor-analytics-listener.js +52 -0
- package/dist/cjs/analytics/listener/process-event-payload.js +44 -0
- package/dist/cjs/analytics/listener/types.js +5 -0
- package/dist/cjs/analytics/types.js +5 -0
- package/dist/cjs/analytics/util.js +10 -0
- package/dist/cjs/async.js +34 -0
- package/dist/cjs/commands/select-error-command/index.js +30 -0
- package/dist/cjs/common/constants.js +11 -0
- package/dist/cjs/common/messages.js +14 -0
- package/dist/cjs/common/styled.js +15 -0
- package/dist/cjs/hooks/use-editor-theme/index.js +53 -0
- package/dist/cjs/hooks/use-editor-view-has-infos/index.js +16 -0
- package/dist/cjs/hooks/use-editor-view-has-warnings/index.js +19 -0
- package/dist/cjs/hooks/use-editor-view-is-invalid/index.js +52 -0
- package/dist/cjs/i18n/cs.js +68 -0
- package/dist/cjs/i18n/da.js +68 -0
- package/dist/cjs/i18n/de.js +68 -0
- package/dist/cjs/i18n/en.js +68 -0
- package/dist/cjs/i18n/en_GB.js +68 -0
- package/dist/cjs/i18n/en_ZZ.js +68 -0
- package/dist/cjs/i18n/es.js +68 -0
- package/dist/cjs/i18n/et.js +14 -0
- package/dist/cjs/i18n/fi.js +68 -0
- package/dist/cjs/i18n/fr.js +68 -0
- package/dist/cjs/i18n/hu.js +68 -0
- package/dist/cjs/i18n/index.js +132 -0
- package/dist/cjs/i18n/it.js +68 -0
- package/dist/cjs/i18n/ja.js +68 -0
- package/dist/cjs/i18n/ko.js +68 -0
- package/dist/cjs/i18n/nb.js +68 -0
- package/dist/cjs/i18n/nl.js +68 -0
- package/dist/cjs/i18n/pl.js +68 -0
- package/dist/cjs/i18n/pt_BR.js +68 -0
- package/dist/cjs/i18n/pt_PT.js +14 -0
- package/dist/cjs/i18n/ru.js +68 -0
- package/dist/cjs/i18n/sk.js +14 -0
- package/dist/cjs/i18n/sv.js +68 -0
- package/dist/cjs/i18n/th.js +68 -0
- package/dist/cjs/i18n/tr.js +68 -0
- package/dist/cjs/i18n/uk.js +68 -0
- package/dist/cjs/i18n/vi.js +68 -0
- package/dist/cjs/i18n/zh.js +68 -0
- package/dist/cjs/i18n/zh_TW.js +68 -0
- package/dist/cjs/index.js +52 -0
- package/dist/cjs/plugins/autocomplete/components/autocomplete/index.js +48 -0
- package/dist/cjs/plugins/autocomplete/components/autocomplete-dropdown/index.js +278 -0
- package/dist/cjs/plugins/autocomplete/components/autocomplete-dropdown/styled.js +22 -0
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/glyphs.js +104 -0
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/index.js +175 -0
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/messages.js +19 -0
- package/dist/cjs/plugins/autocomplete/components/autocomplete-option/styled.js +26 -0
- package/dist/cjs/plugins/autocomplete/components/types.js +5 -0
- package/dist/cjs/plugins/autocomplete/constants.js +35 -0
- package/dist/cjs/plugins/autocomplete/index.js +37 -0
- package/dist/cjs/plugins/autocomplete/messages.js +14 -0
- package/dist/cjs/plugins/autocomplete/types.js +5 -0
- package/dist/cjs/plugins/autocomplete/view.js +125 -0
- package/dist/cjs/plugins/common/get-document-position/index.js +99 -0
- package/dist/cjs/plugins/common/plugin-keymap.js +50 -0
- package/dist/cjs/plugins/common/react-plugin-view.js +93 -0
- package/dist/cjs/plugins/index.js +41 -0
- package/dist/cjs/plugins/jql-ast/JQLEditorErrorStrategy.js +218 -0
- package/dist/cjs/plugins/jql-ast/constants.js +15 -0
- package/dist/cjs/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.js +13 -0
- package/dist/cjs/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.js +62 -0
- package/dist/cjs/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.js +17 -0
- package/dist/cjs/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.js +20 -0
- package/dist/cjs/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.js +17 -0
- package/dist/cjs/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.js +66 -0
- package/dist/cjs/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.js +18 -0
- package/dist/cjs/plugins/jql-ast/index.js +46 -0
- package/dist/cjs/plugins/jql-ast/messages.js +179 -0
- package/dist/cjs/plugins/jql-ast/utils.js +23 -0
- package/dist/cjs/plugins/jql-syntax-highlighting/index.js +69 -0
- package/dist/cjs/plugins/jql-syntax-highlighting/types.js +5 -0
- package/dist/cjs/plugins/jql-syntax-highlighting/visitor.js +89 -0
- package/dist/cjs/plugins/rich-inline-nodes/constants.js +9 -0
- package/dist/cjs/plugins/rich-inline-nodes/index.js +63 -0
- package/dist/cjs/plugins/rich-inline-nodes/nodes/index.js +10 -0
- package/dist/cjs/plugins/rich-inline-nodes/nodes/types.js +5 -0
- package/dist/cjs/plugins/rich-inline-nodes/nodes/user/index.js +41 -0
- package/dist/cjs/plugins/rich-inline-nodes/nodes/user/styled.js +35 -0
- package/dist/cjs/plugins/rich-inline-nodes/types.js +5 -0
- package/dist/cjs/plugins/rich-inline-nodes/util/create-node-spec.js +37 -0
- package/dist/cjs/plugins/rich-inline-nodes/util/react-node-view.js +129 -0
- package/dist/cjs/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +138 -0
- package/dist/cjs/plugins/types.js +5 -0
- package/dist/cjs/plugins/validation-tooltip/constants.js +11 -0
- package/dist/cjs/plugins/validation-tooltip/index.js +58 -0
- package/dist/cjs/plugins/validation-tooltip/view.js +74 -0
- package/dist/cjs/schema/index.js +137 -0
- package/dist/cjs/state/analytics/index.js +56 -0
- package/dist/cjs/state/autocomplete/index.js +23 -0
- package/dist/cjs/state/hydration/index.js +92 -0
- package/dist/cjs/state/hydration/util.js +89 -0
- package/dist/cjs/state/index.js +997 -0
- package/dist/cjs/state/types.js +5 -0
- package/dist/cjs/state/util.js +176 -0
- package/dist/cjs/types.js +5 -0
- package/dist/cjs/ui/error-boundary/index.js +81 -0
- package/dist/cjs/ui/index.js +11 -0
- package/dist/cjs/ui/intl-provider/index.js +23 -0
- package/dist/cjs/ui/jql-editor/index.js +75 -0
- package/dist/cjs/ui/jql-editor/types.js +5 -0
- package/dist/cjs/ui/jql-editor-controls-content/base-expand-toggle/index.js +55 -0
- package/dist/cjs/ui/jql-editor-controls-content/base-expand-toggle/styled.js +12 -0
- package/dist/cjs/ui/jql-editor-controls-content/base-search/index.js +44 -0
- package/dist/cjs/ui/jql-editor-controls-content/base-syntax-help/index.js +33 -0
- package/dist/cjs/ui/jql-editor-controls-content/base-syntax-help/styled.js +12 -0
- package/dist/cjs/ui/jql-editor-controls-content/expand-toggle/index.js +67 -0
- package/dist/cjs/ui/jql-editor-controls-content/expand-toggle/messages.js +24 -0
- package/dist/cjs/ui/jql-editor-controls-content/index.js +17 -0
- package/dist/cjs/ui/jql-editor-controls-content/read-only-controls-content/index.js +38 -0
- package/dist/cjs/ui/jql-editor-controls-content/search/index.js +40 -0
- package/dist/cjs/ui/jql-editor-controls-content/search/messages.js +14 -0
- package/dist/cjs/ui/jql-editor-controls-content/syntax-help/index.js +62 -0
- package/dist/cjs/ui/jql-editor-controls-content/syntax-help/messages.js +19 -0
- package/dist/cjs/ui/jql-editor-footer-content/index.js +34 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-editor-help/index.js +42 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-editor-help/messages.js +24 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-editor-help/styled.js +15 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/errors/index.js +70 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/errors/messages.js +14 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/format/index.js +34 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/format/styled.js +14 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/index.js +26 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/infos/index.js +41 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/warnings/index.js +110 -0
- package/dist/cjs/ui/jql-editor-footer-content/jql-messages/warnings/messages.js +24 -0
- package/dist/cjs/ui/jql-editor-layout/index.js +104 -0
- package/dist/cjs/ui/jql-editor-layout/styled.js +61 -0
- package/dist/cjs/ui/jql-editor-portal-provider/context.js +17 -0
- package/dist/cjs/ui/jql-editor-portal-provider/index.js +116 -0
- package/dist/cjs/ui/jql-editor-portal-provider/types.js +5 -0
- package/dist/cjs/ui/jql-editor-view/index.js +198 -0
- package/dist/cjs/ui/messages.js +14 -0
- package/dist/cjs/ui/tooltip-tag/index.js +19 -0
- package/dist/cjs/ui/tooltip-tag/styled.js +11 -0
- package/dist/cjs/ui/types.js +5 -0
- package/dist/cjs/utils/document-text/index.js +43 -0
- package/dist/cjs/utils/split-text-by-new-line/index.js +12 -0
- package/dist/es2019/accessibility/index.js +1 -0
- package/dist/es2019/accessibility/styled.js +5 -0
- package/dist/es2019/analytics/constants.js +21 -0
- package/dist/es2019/analytics/index.js +5 -0
- package/dist/es2019/analytics/listener/analytics-web-client-wrapper.js +57 -0
- package/dist/es2019/analytics/listener/handle-event.js +15 -0
- package/dist/es2019/analytics/listener/helpers/logger.js +49 -0
- package/dist/es2019/analytics/listener/index.js +7 -0
- package/dist/es2019/analytics/listener/jql-editor-analytics-listener.js +30 -0
- package/dist/es2019/analytics/listener/process-event-payload.js +29 -0
- package/dist/es2019/analytics/listener/types.js +1 -0
- package/dist/es2019/analytics/types.js +1 -0
- package/dist/es2019/analytics/util.js +4 -0
- package/dist/es2019/async.js +19 -0
- package/dist/es2019/commands/select-error-command/index.js +23 -0
- package/dist/es2019/common/constants.js +5 -0
- package/dist/es2019/common/messages.js +8 -0
- package/dist/es2019/common/styled.js +19 -0
- package/dist/es2019/hooks/use-editor-theme/index.js +33 -0
- package/dist/es2019/hooks/use-editor-view-has-infos/index.js +8 -0
- package/dist/es2019/hooks/use-editor-view-has-warnings/index.js +9 -0
- package/dist/es2019/hooks/use-editor-view-is-invalid/index.js +38 -0
- package/dist/es2019/i18n/cs.js +62 -0
- package/dist/es2019/i18n/da.js +62 -0
- package/dist/es2019/i18n/de.js +62 -0
- package/dist/es2019/i18n/en.js +62 -0
- package/dist/es2019/i18n/en_GB.js +62 -0
- package/dist/es2019/i18n/en_ZZ.js +62 -0
- package/dist/es2019/i18n/es.js +62 -0
- package/dist/es2019/i18n/et.js +8 -0
- package/dist/es2019/i18n/fi.js +62 -0
- package/dist/es2019/i18n/fr.js +62 -0
- package/dist/es2019/i18n/hu.js +62 -0
- package/dist/es2019/i18n/index.js +24 -0
- package/dist/es2019/i18n/it.js +62 -0
- package/dist/es2019/i18n/ja.js +62 -0
- package/dist/es2019/i18n/ko.js +62 -0
- package/dist/es2019/i18n/nb.js +62 -0
- package/dist/es2019/i18n/nl.js +62 -0
- package/dist/es2019/i18n/pl.js +62 -0
- package/dist/es2019/i18n/pt_BR.js +62 -0
- package/dist/es2019/i18n/pt_PT.js +8 -0
- package/dist/es2019/i18n/ru.js +62 -0
- package/dist/es2019/i18n/sk.js +8 -0
- package/dist/es2019/i18n/sv.js +62 -0
- package/dist/es2019/i18n/th.js +62 -0
- package/dist/es2019/i18n/tr.js +62 -0
- package/dist/es2019/i18n/uk.js +62 -0
- package/dist/es2019/i18n/vi.js +62 -0
- package/dist/es2019/i18n/zh.js +62 -0
- package/dist/es2019/i18n/zh_TW.js +62 -0
- package/dist/es2019/index.js +4 -0
- package/dist/es2019/plugins/autocomplete/components/autocomplete/index.js +33 -0
- package/dist/es2019/plugins/autocomplete/components/autocomplete-dropdown/index.js +245 -0
- package/dist/es2019/plugins/autocomplete/components/autocomplete-dropdown/styled.js +46 -0
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/glyphs.js +80 -0
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/index.js +159 -0
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/messages.js +13 -0
- package/dist/es2019/plugins/autocomplete/components/autocomplete-option/styled.js +51 -0
- package/dist/es2019/plugins/autocomplete/components/types.js +1 -0
- package/dist/es2019/plugins/autocomplete/constants.js +21 -0
- package/dist/es2019/plugins/autocomplete/index.js +36 -0
- package/dist/es2019/plugins/autocomplete/messages.js +8 -0
- package/dist/es2019/plugins/autocomplete/types.js +1 -0
- package/dist/es2019/plugins/autocomplete/view.js +102 -0
- package/dist/es2019/plugins/common/get-document-position/index.js +92 -0
- package/dist/es2019/plugins/common/plugin-keymap.js +30 -0
- package/dist/es2019/plugins/common/react-plugin-view.js +67 -0
- package/dist/es2019/plugins/index.js +5 -0
- package/dist/es2019/plugins/jql-ast/JQLEditorErrorStrategy.js +183 -0
- package/dist/es2019/plugins/jql-ast/constants.js +9 -0
- package/dist/es2019/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.js +8 -0
- package/dist/es2019/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.js +53 -0
- package/dist/es2019/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.js +12 -0
- package/dist/es2019/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.js +15 -0
- package/dist/es2019/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.js +12 -0
- package/dist/es2019/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.js +61 -0
- package/dist/es2019/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.js +13 -0
- package/dist/es2019/plugins/jql-ast/index.js +40 -0
- package/dist/es2019/plugins/jql-ast/messages.js +173 -0
- package/dist/es2019/plugins/jql-ast/utils.js +13 -0
- package/dist/es2019/plugins/jql-syntax-highlighting/index.js +59 -0
- package/dist/es2019/plugins/jql-syntax-highlighting/types.js +1 -0
- package/dist/es2019/plugins/jql-syntax-highlighting/visitor.js +55 -0
- package/dist/es2019/plugins/rich-inline-nodes/constants.js +3 -0
- package/dist/es2019/plugins/rich-inline-nodes/index.js +48 -0
- package/dist/es2019/plugins/rich-inline-nodes/nodes/index.js +4 -0
- package/dist/es2019/plugins/rich-inline-nodes/nodes/types.js +1 -0
- package/dist/es2019/plugins/rich-inline-nodes/nodes/user/index.js +32 -0
- package/dist/es2019/plugins/rich-inline-nodes/nodes/user/styled.js +77 -0
- package/dist/es2019/plugins/rich-inline-nodes/types.js +1 -0
- package/dist/es2019/plugins/rich-inline-nodes/util/create-node-spec.js +26 -0
- package/dist/es2019/plugins/rich-inline-nodes/util/react-node-view.js +101 -0
- package/dist/es2019/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +104 -0
- package/dist/es2019/plugins/types.js +1 -0
- package/dist/es2019/plugins/validation-tooltip/constants.js +5 -0
- package/dist/es2019/plugins/validation-tooltip/index.js +52 -0
- package/dist/es2019/plugins/validation-tooltip/view.js +55 -0
- package/dist/es2019/schema/index.js +117 -0
- package/dist/es2019/state/analytics/index.js +49 -0
- package/dist/es2019/state/autocomplete/index.js +15 -0
- package/dist/es2019/state/hydration/index.js +63 -0
- package/dist/es2019/state/hydration/util.js +57 -0
- package/dist/es2019/state/index.js +968 -0
- package/dist/es2019/state/types.js +1 -0
- package/dist/es2019/state/util.js +144 -0
- package/dist/es2019/types.js +1 -0
- package/dist/es2019/ui/error-boundary/index.js +55 -0
- package/dist/es2019/ui/index.js +4 -0
- package/dist/es2019/ui/intl-provider/index.js +16 -0
- package/dist/es2019/ui/jql-editor/index.js +63 -0
- package/dist/es2019/ui/jql-editor/types.js +1 -0
- package/dist/es2019/ui/jql-editor-controls-content/base-expand-toggle/index.js +48 -0
- package/dist/es2019/ui/jql-editor-controls-content/base-expand-toggle/styled.js +20 -0
- package/dist/es2019/ui/jql-editor-controls-content/base-search/index.js +35 -0
- package/dist/es2019/ui/jql-editor-controls-content/base-syntax-help/index.js +27 -0
- package/dist/es2019/ui/jql-editor-controls-content/base-syntax-help/styled.js +29 -0
- package/dist/es2019/ui/jql-editor-controls-content/expand-toggle/index.js +51 -0
- package/dist/es2019/ui/jql-editor-controls-content/expand-toggle/messages.js +18 -0
- package/dist/es2019/ui/jql-editor-controls-content/index.js +11 -0
- package/dist/es2019/ui/jql-editor-controls-content/read-only-controls-content/index.js +29 -0
- package/dist/es2019/ui/jql-editor-controls-content/search/index.js +26 -0
- package/dist/es2019/ui/jql-editor-controls-content/search/messages.js +8 -0
- package/dist/es2019/ui/jql-editor-controls-content/syntax-help/index.js +44 -0
- package/dist/es2019/ui/jql-editor-controls-content/syntax-help/messages.js +13 -0
- package/dist/es2019/ui/jql-editor-footer-content/index.js +28 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-editor-help/index.js +27 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-editor-help/messages.js +18 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-editor-help/styled.js +23 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/errors/index.js +55 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/errors/messages.js +8 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/format/index.js +29 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/format/styled.js +8 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/index.js +3 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/infos/index.js +30 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/warnings/index.js +84 -0
- package/dist/es2019/ui/jql-editor-footer-content/jql-messages/warnings/messages.js +18 -0
- package/dist/es2019/ui/jql-editor-layout/index.js +100 -0
- package/dist/es2019/ui/jql-editor-layout/styled.js +223 -0
- package/dist/es2019/ui/jql-editor-portal-provider/context.js +8 -0
- package/dist/es2019/ui/jql-editor-portal-provider/index.js +99 -0
- package/dist/es2019/ui/jql-editor-portal-provider/types.js +1 -0
- package/dist/es2019/ui/jql-editor-view/index.js +167 -0
- package/dist/es2019/ui/messages.js +8 -0
- package/dist/es2019/ui/tooltip-tag/index.js +8 -0
- package/dist/es2019/ui/tooltip-tag/styled.js +4 -0
- package/dist/es2019/ui/types.js +1 -0
- package/dist/es2019/utils/document-text/index.js +37 -0
- package/dist/es2019/utils/split-text-by-new-line/index.js +4 -0
- package/dist/esm/accessibility/index.js +1 -0
- package/dist/esm/accessibility/styled.js +5 -0
- package/dist/esm/analytics/constants.js +21 -0
- package/dist/esm/analytics/index.js +5 -0
- package/dist/esm/analytics/listener/analytics-web-client-wrapper.js +70 -0
- package/dist/esm/analytics/listener/handle-event.js +15 -0
- package/dist/esm/analytics/listener/helpers/logger.js +83 -0
- package/dist/esm/analytics/listener/index.js +7 -0
- package/dist/esm/analytics/listener/jql-editor-analytics-listener.js +48 -0
- package/dist/esm/analytics/listener/process-event-payload.js +39 -0
- package/dist/esm/analytics/listener/types.js +1 -0
- package/dist/esm/analytics/types.js +1 -0
- package/dist/esm/analytics/util.js +4 -0
- package/dist/esm/async.js +22 -0
- package/dist/esm/commands/select-error-command/index.js +23 -0
- package/dist/esm/common/constants.js +5 -0
- package/dist/esm/common/messages.js +8 -0
- package/dist/esm/common/styled.js +9 -0
- package/dist/esm/hooks/use-editor-theme/index.js +46 -0
- package/dist/esm/hooks/use-editor-view-has-infos/index.js +9 -0
- package/dist/esm/hooks/use-editor-view-has-warnings/index.js +12 -0
- package/dist/esm/hooks/use-editor-view-is-invalid/index.js +46 -0
- package/dist/esm/i18n/cs.js +62 -0
- package/dist/esm/i18n/da.js +62 -0
- package/dist/esm/i18n/de.js +62 -0
- package/dist/esm/i18n/en.js +62 -0
- package/dist/esm/i18n/en_GB.js +62 -0
- package/dist/esm/i18n/en_ZZ.js +62 -0
- package/dist/esm/i18n/es.js +62 -0
- package/dist/esm/i18n/et.js +8 -0
- package/dist/esm/i18n/fi.js +62 -0
- package/dist/esm/i18n/fr.js +62 -0
- package/dist/esm/i18n/hu.js +62 -0
- package/dist/esm/i18n/index.js +24 -0
- package/dist/esm/i18n/it.js +62 -0
- package/dist/esm/i18n/ja.js +62 -0
- package/dist/esm/i18n/ko.js +62 -0
- package/dist/esm/i18n/nb.js +62 -0
- package/dist/esm/i18n/nl.js +62 -0
- package/dist/esm/i18n/pl.js +62 -0
- package/dist/esm/i18n/pt_BR.js +62 -0
- package/dist/esm/i18n/pt_PT.js +8 -0
- package/dist/esm/i18n/ru.js +62 -0
- package/dist/esm/i18n/sk.js +8 -0
- package/dist/esm/i18n/sv.js +62 -0
- package/dist/esm/i18n/th.js +62 -0
- package/dist/esm/i18n/tr.js +62 -0
- package/dist/esm/i18n/uk.js +62 -0
- package/dist/esm/i18n/vi.js +62 -0
- package/dist/esm/i18n/zh.js +62 -0
- package/dist/esm/i18n/zh_TW.js +62 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/plugins/autocomplete/components/autocomplete/index.js +38 -0
- package/dist/esm/plugins/autocomplete/components/autocomplete-dropdown/index.js +268 -0
- package/dist/esm/plugins/autocomplete/components/autocomplete-dropdown/styled.js +16 -0
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/glyphs.js +98 -0
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/index.js +165 -0
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/messages.js +13 -0
- package/dist/esm/plugins/autocomplete/components/autocomplete-option/styled.js +21 -0
- package/dist/esm/plugins/autocomplete/components/types.js +1 -0
- package/dist/esm/plugins/autocomplete/constants.js +29 -0
- package/dist/esm/plugins/autocomplete/index.js +30 -0
- package/dist/esm/plugins/autocomplete/messages.js +8 -0
- package/dist/esm/plugins/autocomplete/types.js +1 -0
- package/dist/esm/plugins/autocomplete/view.js +120 -0
- package/dist/esm/plugins/common/get-document-position/index.js +93 -0
- package/dist/esm/plugins/common/plugin-keymap.js +43 -0
- package/dist/esm/plugins/common/react-plugin-view.js +84 -0
- package/dist/esm/plugins/index.js +5 -0
- package/dist/esm/plugins/jql-ast/JQLEditorErrorStrategy.js +212 -0
- package/dist/esm/plugins/jql-ast/constants.js +9 -0
- package/dist/esm/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.js +8 -0
- package/dist/esm/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.js +57 -0
- package/dist/esm/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.js +12 -0
- package/dist/esm/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.js +15 -0
- package/dist/esm/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.js +12 -0
- package/dist/esm/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.js +61 -0
- package/dist/esm/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.js +13 -0
- package/dist/esm/plugins/jql-ast/index.js +39 -0
- package/dist/esm/plugins/jql-ast/messages.js +173 -0
- package/dist/esm/plugins/jql-ast/utils.js +17 -0
- package/dist/esm/plugins/jql-syntax-highlighting/index.js +62 -0
- package/dist/esm/plugins/jql-syntax-highlighting/types.js +1 -0
- package/dist/esm/plugins/jql-syntax-highlighting/visitor.js +82 -0
- package/dist/esm/plugins/rich-inline-nodes/constants.js +3 -0
- package/dist/esm/plugins/rich-inline-nodes/index.js +56 -0
- package/dist/esm/plugins/rich-inline-nodes/nodes/index.js +4 -0
- package/dist/esm/plugins/rich-inline-nodes/nodes/types.js +1 -0
- package/dist/esm/plugins/rich-inline-nodes/nodes/user/index.js +34 -0
- package/dist/esm/plugins/rich-inline-nodes/nodes/user/styled.js +28 -0
- package/dist/esm/plugins/rich-inline-nodes/types.js +1 -0
- package/dist/esm/plugins/rich-inline-nodes/util/create-node-spec.js +30 -0
- package/dist/esm/plugins/rich-inline-nodes/util/react-node-view.js +119 -0
- package/dist/esm/plugins/rich-inline-nodes/util/replace-nodes-transaction.js +131 -0
- package/dist/esm/plugins/types.js +1 -0
- package/dist/esm/plugins/validation-tooltip/constants.js +5 -0
- package/dist/esm/plugins/validation-tooltip/index.js +52 -0
- package/dist/esm/plugins/validation-tooltip/view.js +67 -0
- package/dist/esm/schema/index.js +129 -0
- package/dist/esm/state/analytics/index.js +50 -0
- package/dist/esm/state/autocomplete/index.js +17 -0
- package/dist/esm/state/hydration/index.js +85 -0
- package/dist/esm/state/hydration/util.js +83 -0
- package/dist/esm/state/index.js +991 -0
- package/dist/esm/state/types.js +1 -0
- package/dist/esm/state/util.js +169 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/ui/error-boundary/index.js +73 -0
- package/dist/esm/ui/index.js +4 -0
- package/dist/esm/ui/intl-provider/index.js +16 -0
- package/dist/esm/ui/jql-editor/index.js +63 -0
- package/dist/esm/ui/jql-editor/types.js +1 -0
- package/dist/esm/ui/jql-editor-controls-content/base-expand-toggle/index.js +49 -0
- package/dist/esm/ui/jql-editor-controls-content/base-expand-toggle/styled.js +5 -0
- package/dist/esm/ui/jql-editor-controls-content/base-search/index.js +34 -0
- package/dist/esm/ui/jql-editor-controls-content/base-syntax-help/index.js +26 -0
- package/dist/esm/ui/jql-editor-controls-content/base-syntax-help/styled.js +5 -0
- package/dist/esm/ui/jql-editor-controls-content/expand-toggle/index.js +55 -0
- package/dist/esm/ui/jql-editor-controls-content/expand-toggle/messages.js +18 -0
- package/dist/esm/ui/jql-editor-controls-content/index.js +10 -0
- package/dist/esm/ui/jql-editor-controls-content/read-only-controls-content/index.js +28 -0
- package/dist/esm/ui/jql-editor-controls-content/search/index.js +31 -0
- package/dist/esm/ui/jql-editor-controls-content/search/messages.js +8 -0
- package/dist/esm/ui/jql-editor-controls-content/syntax-help/index.js +50 -0
- package/dist/esm/ui/jql-editor-controls-content/syntax-help/messages.js +13 -0
- package/dist/esm/ui/jql-editor-footer-content/index.js +28 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-editor-help/index.js +35 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-editor-help/messages.js +18 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-editor-help/styled.js +8 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/errors/index.js +60 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/errors/messages.js +8 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/format/index.js +28 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/format/styled.js +7 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/index.js +3 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/infos/index.js +31 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/warnings/index.js +100 -0
- package/dist/esm/ui/jql-editor-footer-content/jql-messages/warnings/messages.js +18 -0
- package/dist/esm/ui/jql-editor-layout/index.js +98 -0
- package/dist/esm/ui/jql-editor-layout/styled.js +56 -0
- package/dist/esm/ui/jql-editor-portal-provider/context.js +10 -0
- package/dist/esm/ui/jql-editor-portal-provider/index.js +107 -0
- package/dist/esm/ui/jql-editor-portal-provider/types.js +1 -0
- package/dist/esm/ui/jql-editor-view/index.js +190 -0
- package/dist/esm/ui/messages.js +8 -0
- package/dist/esm/ui/tooltip-tag/index.js +10 -0
- package/dist/esm/ui/tooltip-tag/styled.js +4 -0
- package/dist/esm/ui/types.js +1 -0
- package/dist/esm/utils/document-text/index.js +37 -0
- package/dist/esm/utils/split-text-by-new-line/index.js +6 -0
- package/dist/types/accessibility/index.d.ts +1 -0
- package/dist/types/accessibility/styled.d.ts +2 -0
- package/dist/types/analytics/constants.d.ts +18 -0
- package/dist/types/analytics/index.d.ts +7 -0
- package/dist/types/analytics/listener/analytics-web-client-wrapper.d.ts +9 -0
- package/dist/types/analytics/listener/handle-event.d.ts +9 -0
- package/dist/types/analytics/listener/helpers/logger.d.ts +24 -0
- package/dist/types/analytics/listener/index.d.ts +7 -0
- package/dist/types/analytics/listener/jql-editor-analytics-listener.d.ts +20 -0
- package/dist/types/analytics/listener/process-event-payload.d.ts +8 -0
- package/dist/types/analytics/listener/types.d.ts +7 -0
- package/dist/types/analytics/types.d.ts +3 -0
- package/dist/types/analytics/util.d.ts +4 -0
- package/dist/types/async.d.ts +3 -0
- package/dist/types/commands/select-error-command/index.d.ts +5 -0
- package/dist/types/common/constants.d.ts +5 -0
- package/dist/types/common/messages.d.ts +7 -0
- package/dist/types/common/styled.d.ts +3 -0
- package/dist/types/hooks/use-editor-theme/index.d.ts +38 -0
- package/dist/types/hooks/use-editor-view-has-infos/index.d.ts +1 -0
- package/dist/types/hooks/use-editor-view-has-warnings/index.d.ts +1 -0
- package/dist/types/hooks/use-editor-view-is-invalid/index.d.ts +11 -0
- package/dist/types/i18n/cs.d.ts +61 -0
- package/dist/types/i18n/da.d.ts +61 -0
- package/dist/types/i18n/de.d.ts +61 -0
- package/dist/types/i18n/en.d.ts +61 -0
- package/dist/types/i18n/en_GB.d.ts +61 -0
- package/dist/types/i18n/en_ZZ.d.ts +61 -0
- package/dist/types/i18n/es.d.ts +61 -0
- package/dist/types/i18n/et.d.ts +8 -0
- package/dist/types/i18n/fi.d.ts +61 -0
- package/dist/types/i18n/fr.d.ts +61 -0
- package/dist/types/i18n/hu.d.ts +61 -0
- package/dist/types/i18n/index.d.ts +24 -0
- package/dist/types/i18n/it.d.ts +61 -0
- package/dist/types/i18n/ja.d.ts +61 -0
- package/dist/types/i18n/ko.d.ts +61 -0
- package/dist/types/i18n/nb.d.ts +61 -0
- package/dist/types/i18n/nl.d.ts +61 -0
- package/dist/types/i18n/pl.d.ts +61 -0
- package/dist/types/i18n/pt_BR.d.ts +61 -0
- package/dist/types/i18n/pt_PT.d.ts +8 -0
- package/dist/types/i18n/ru.d.ts +61 -0
- package/dist/types/i18n/sk.d.ts +8 -0
- package/dist/types/i18n/sv.d.ts +61 -0
- package/dist/types/i18n/th.d.ts +61 -0
- package/dist/types/i18n/tr.d.ts +61 -0
- package/dist/types/i18n/uk.d.ts +61 -0
- package/dist/types/i18n/vi.d.ts +61 -0
- package/dist/types/i18n/zh.d.ts +61 -0
- package/dist/types/i18n/zh_TW.d.ts +61 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/plugins/autocomplete/components/autocomplete/index.d.ts +4 -0
- package/dist/types/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +11 -0
- package/dist/types/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +9 -0
- package/dist/types/plugins/autocomplete/components/autocomplete-option/glyphs.d.ts +10 -0
- package/dist/types/plugins/autocomplete/components/autocomplete-option/index.d.ts +10 -0
- package/dist/types/plugins/autocomplete/components/autocomplete-option/messages.d.ts +12 -0
- package/dist/types/plugins/autocomplete/components/autocomplete-option/styled.d.ts +11 -0
- package/dist/types/plugins/autocomplete/components/types.d.ts +38 -0
- package/dist/types/plugins/autocomplete/constants.d.ts +14 -0
- package/dist/types/plugins/autocomplete/index.d.ts +4 -0
- package/dist/types/plugins/autocomplete/messages.d.ts +7 -0
- package/dist/types/plugins/autocomplete/types.d.ts +1 -0
- package/dist/types/plugins/autocomplete/view.d.ts +19 -0
- package/dist/types/plugins/common/get-document-position/index.d.ts +9 -0
- package/dist/types/plugins/common/plugin-keymap.d.ts +7 -0
- package/dist/types/plugins/common/react-plugin-view.d.ts +48 -0
- package/dist/types/plugins/index.d.ts +5 -0
- package/dist/types/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +17 -0
- package/dist/types/plugins/jql-ast/constants.d.ts +3 -0
- package/dist/types/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +5 -0
- package/dist/types/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +11 -0
- package/dist/types/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +6 -0
- package/dist/types/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +6 -0
- package/dist/types/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +6 -0
- package/dist/types/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +9 -0
- package/dist/types/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +6 -0
- package/dist/types/plugins/jql-ast/index.d.ts +7 -0
- package/dist/types/plugins/jql-ast/messages.d.ts +172 -0
- package/dist/types/plugins/jql-ast/utils.d.ts +4 -0
- package/dist/types/plugins/jql-syntax-highlighting/index.d.ts +4 -0
- package/dist/types/plugins/jql-syntax-highlighting/types.d.ts +5 -0
- package/dist/types/plugins/jql-syntax-highlighting/visitor.d.ts +19 -0
- package/dist/types/plugins/rich-inline-nodes/constants.d.ts +3 -0
- package/dist/types/plugins/rich-inline-nodes/index.d.ts +4 -0
- package/dist/types/plugins/rich-inline-nodes/nodes/index.d.ts +3 -0
- package/dist/types/plugins/rich-inline-nodes/nodes/types.d.ts +9 -0
- package/dist/types/plugins/rich-inline-nodes/nodes/user/index.d.ts +7 -0
- package/dist/types/plugins/rich-inline-nodes/nodes/user/styled.d.ts +7 -0
- package/dist/types/plugins/rich-inline-nodes/types.d.ts +2 -0
- package/dist/types/plugins/rich-inline-nodes/util/create-node-spec.d.ts +4 -0
- package/dist/types/plugins/rich-inline-nodes/util/react-node-view.d.ts +24 -0
- package/dist/types/plugins/rich-inline-nodes/util/replace-nodes-transaction.d.ts +3 -0
- package/dist/types/plugins/types.d.ts +16 -0
- package/dist/types/plugins/validation-tooltip/constants.d.ts +5 -0
- package/dist/types/plugins/validation-tooltip/index.d.ts +3 -0
- package/dist/types/plugins/validation-tooltip/view.d.ts +18 -0
- package/dist/types/schema/index.d.ts +28 -0
- package/dist/types/state/analytics/index.d.ts +9 -0
- package/dist/types/state/autocomplete/index.d.ts +4 -0
- package/dist/types/state/hydration/index.d.ts +3 -0
- package/dist/types/state/hydration/util.d.ts +23 -0
- package/dist/types/state/index.d.ts +796 -0
- package/dist/types/state/types.d.ts +242 -0
- package/dist/types/state/util.d.ts +16 -0
- package/dist/types/types.d.ts +5 -0
- package/dist/types/ui/error-boundary/index.d.ts +25 -0
- package/dist/types/ui/index.d.ts +4 -0
- package/dist/types/ui/intl-provider/index.d.ts +10 -0
- package/dist/types/ui/jql-editor/index.d.ts +13 -0
- package/dist/types/ui/jql-editor/types.d.ts +101 -0
- package/dist/types/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +10 -0
- package/dist/types/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +2 -0
- package/dist/types/ui/jql-editor-controls-content/base-search/index.d.ts +9 -0
- package/dist/types/ui/jql-editor-controls-content/base-syntax-help/index.d.ts +9 -0
- package/dist/types/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +2 -0
- package/dist/types/ui/jql-editor-controls-content/expand-toggle/index.d.ts +2 -0
- package/dist/types/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +17 -0
- package/dist/types/ui/jql-editor-controls-content/index.d.ts +2 -0
- package/dist/types/ui/jql-editor-controls-content/read-only-controls-content/index.d.ts +2 -0
- package/dist/types/ui/jql-editor-controls-content/search/index.d.ts +2 -0
- package/dist/types/ui/jql-editor-controls-content/search/messages.d.ts +7 -0
- package/dist/types/ui/jql-editor-controls-content/syntax-help/index.d.ts +2 -0
- package/dist/types/ui/jql-editor-controls-content/syntax-help/messages.d.ts +12 -0
- package/dist/types/ui/jql-editor-footer-content/index.d.ts +6 -0
- package/dist/types/ui/jql-editor-footer-content/jql-editor-help/index.d.ts +2 -0
- package/dist/types/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +17 -0
- package/dist/types/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +6 -0
- package/dist/types/ui/jql-editor-footer-content/jql-messages/errors/index.d.ts +2 -0
- package/dist/types/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +7 -0
- package/dist/types/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +8 -0
- package/dist/types/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +5 -0
- package/dist/types/ui/jql-editor-footer-content/jql-messages/index.d.ts +3 -0
- package/dist/types/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +3 -0
- package/dist/types/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +3 -0
- package/dist/types/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +17 -0
- package/dist/types/ui/jql-editor-layout/index.d.ts +64 -0
- package/dist/types/ui/jql-editor-layout/styled.d.ts +65 -0
- package/dist/types/ui/jql-editor-portal-provider/context.d.ts +4 -0
- package/dist/types/ui/jql-editor-portal-provider/index.d.ts +7 -0
- package/dist/types/ui/jql-editor-portal-provider/types.d.ts +38 -0
- package/dist/types/ui/jql-editor-view/index.d.ts +10 -0
- package/dist/types/ui/messages.d.ts +7 -0
- package/dist/types/ui/tooltip-tag/index.d.ts +2 -0
- package/dist/types/ui/tooltip-tag/styled.d.ts +2 -0
- package/dist/types/ui/types.d.ts +9 -0
- package/dist/types/utils/document-text/index.d.ts +9 -0
- package/dist/types/utils/split-text-by-new-line/index.d.ts +4 -0
- package/dist/types-ts4.5/accessibility/index.d.ts +1 -0
- package/dist/types-ts4.5/accessibility/styled.d.ts +2 -0
- package/dist/types-ts4.5/analytics/constants.d.ts +18 -0
- package/dist/types-ts4.5/analytics/index.d.ts +7 -0
- package/dist/types-ts4.5/analytics/listener/analytics-web-client-wrapper.d.ts +9 -0
- package/dist/types-ts4.5/analytics/listener/handle-event.d.ts +9 -0
- package/dist/types-ts4.5/analytics/listener/helpers/logger.d.ts +24 -0
- package/dist/types-ts4.5/analytics/listener/index.d.ts +7 -0
- package/dist/types-ts4.5/analytics/listener/jql-editor-analytics-listener.d.ts +20 -0
- package/dist/types-ts4.5/analytics/listener/process-event-payload.d.ts +8 -0
- package/dist/types-ts4.5/analytics/listener/types.d.ts +7 -0
- package/dist/types-ts4.5/analytics/types.d.ts +3 -0
- package/dist/types-ts4.5/analytics/util.d.ts +4 -0
- package/dist/types-ts4.5/async.d.ts +3 -0
- package/dist/types-ts4.5/commands/select-error-command/index.d.ts +5 -0
- package/dist/types-ts4.5/common/constants.d.ts +5 -0
- package/dist/types-ts4.5/common/messages.d.ts +7 -0
- package/dist/types-ts4.5/common/styled.d.ts +3 -0
- package/dist/types-ts4.5/hooks/use-editor-theme/index.d.ts +38 -0
- package/dist/types-ts4.5/hooks/use-editor-view-has-infos/index.d.ts +1 -0
- package/dist/types-ts4.5/hooks/use-editor-view-has-warnings/index.d.ts +1 -0
- package/dist/types-ts4.5/hooks/use-editor-view-is-invalid/index.d.ts +11 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +61 -0
- package/dist/types-ts4.5/i18n/da.d.ts +61 -0
- package/dist/types-ts4.5/i18n/de.d.ts +61 -0
- package/dist/types-ts4.5/i18n/en.d.ts +61 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +61 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +61 -0
- package/dist/types-ts4.5/i18n/es.d.ts +61 -0
- package/dist/types-ts4.5/i18n/et.d.ts +8 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +61 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +61 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +61 -0
- package/dist/types-ts4.5/i18n/index.d.ts +24 -0
- package/dist/types-ts4.5/i18n/it.d.ts +61 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +61 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +61 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +61 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +61 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +61 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +61 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +8 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +61 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +8 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +61 -0
- package/dist/types-ts4.5/i18n/th.d.ts +61 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +61 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +61 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +61 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +61 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +61 -0
- package/dist/types-ts4.5/index.d.ts +5 -0
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete/index.d.ts +4 -0
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/index.d.ts +11 -0
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-dropdown/styled.d.ts +9 -0
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/glyphs.d.ts +10 -0
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/index.d.ts +10 -0
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/messages.d.ts +12 -0
- package/dist/types-ts4.5/plugins/autocomplete/components/autocomplete-option/styled.d.ts +11 -0
- package/dist/types-ts4.5/plugins/autocomplete/components/types.d.ts +38 -0
- package/dist/types-ts4.5/plugins/autocomplete/constants.d.ts +14 -0
- package/dist/types-ts4.5/plugins/autocomplete/index.d.ts +4 -0
- package/dist/types-ts4.5/plugins/autocomplete/messages.d.ts +7 -0
- package/dist/types-ts4.5/plugins/autocomplete/types.d.ts +1 -0
- package/dist/types-ts4.5/plugins/autocomplete/view.d.ts +19 -0
- package/dist/types-ts4.5/plugins/common/get-document-position/index.d.ts +9 -0
- package/dist/types-ts4.5/plugins/common/plugin-keymap.d.ts +7 -0
- package/dist/types-ts4.5/plugins/common/react-plugin-view.d.ts +48 -0
- package/dist/types-ts4.5/plugins/index.d.ts +5 -0
- package/dist/types-ts4.5/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +17 -0
- package/dist/types-ts4.5/plugins/jql-ast/constants.d.ts +3 -0
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +5 -0
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +11 -0
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +6 -0
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +6 -0
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +6 -0
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +9 -0
- package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +6 -0
- package/dist/types-ts4.5/plugins/jql-ast/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/jql-ast/messages.d.ts +172 -0
- package/dist/types-ts4.5/plugins/jql-ast/utils.d.ts +4 -0
- package/dist/types-ts4.5/plugins/jql-syntax-highlighting/index.d.ts +4 -0
- package/dist/types-ts4.5/plugins/jql-syntax-highlighting/types.d.ts +5 -0
- package/dist/types-ts4.5/plugins/jql-syntax-highlighting/visitor.d.ts +19 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/constants.d.ts +3 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/index.d.ts +4 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/types.d.ts +9 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/index.d.ts +7 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/nodes/user/styled.d.ts +7 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/types.d.ts +2 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/create-node-spec.d.ts +4 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/react-node-view.d.ts +24 -0
- package/dist/types-ts4.5/plugins/rich-inline-nodes/util/replace-nodes-transaction.d.ts +3 -0
- package/dist/types-ts4.5/plugins/types.d.ts +16 -0
- package/dist/types-ts4.5/plugins/validation-tooltip/constants.d.ts +5 -0
- package/dist/types-ts4.5/plugins/validation-tooltip/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/validation-tooltip/view.d.ts +18 -0
- package/dist/types-ts4.5/schema/index.d.ts +28 -0
- package/dist/types-ts4.5/state/analytics/index.d.ts +9 -0
- package/dist/types-ts4.5/state/autocomplete/index.d.ts +4 -0
- package/dist/types-ts4.5/state/hydration/index.d.ts +3 -0
- package/dist/types-ts4.5/state/hydration/util.d.ts +23 -0
- package/dist/types-ts4.5/state/index.d.ts +796 -0
- package/dist/types-ts4.5/state/types.d.ts +242 -0
- package/dist/types-ts4.5/state/util.d.ts +16 -0
- package/dist/types-ts4.5/types.d.ts +5 -0
- package/dist/types-ts4.5/ui/error-boundary/index.d.ts +25 -0
- package/dist/types-ts4.5/ui/index.d.ts +4 -0
- package/dist/types-ts4.5/ui/intl-provider/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/jql-editor/index.d.ts +13 -0
- package/dist/types-ts4.5/ui/jql-editor/types.d.ts +101 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-expand-toggle/styled.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-search/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/base-syntax-help/styled.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/expand-toggle/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/read-only-controls-content/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/search/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/search/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-controls-content/syntax-help/messages.d.ts +12 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/index.d.ts +6 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-editor-help/styled.d.ts +6 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/errors/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/format/styled.d.ts +5 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/infos/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/jql-editor-footer-content/jql-messages/warnings/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/jql-editor-layout/index.d.ts +64 -0
- package/dist/types-ts4.5/ui/jql-editor-layout/styled.d.ts +65 -0
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/context.d.ts +4 -0
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/index.d.ts +7 -0
- package/dist/types-ts4.5/ui/jql-editor-portal-provider/types.d.ts +38 -0
- package/dist/types-ts4.5/ui/jql-editor-view/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/messages.d.ts +7 -0
- package/dist/types-ts4.5/ui/tooltip-tag/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/tooltip-tag/styled.d.ts +2 -0
- package/dist/types-ts4.5/ui/types.d.ts +9 -0
- package/dist/types-ts4.5/utils/document-text/index.d.ts +9 -0
- package/dist/types-ts4.5/utils/split-text-by-new-line/index.d.ts +4 -0
- package/i18n/package.json +15 -0
- package/package.json +127 -0
|
@@ -0,0 +1,796 @@
|
|
|
1
|
+
import { FocusEvent, MouseEvent } from 'react';
|
|
2
|
+
import { IntlShape } from 'react-intl-next';
|
|
3
|
+
import { Action } from 'react-sweet-state';
|
|
4
|
+
import { Observable } from 'rxjs/Observable';
|
|
5
|
+
import { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import { JQLParseError } from '@atlaskit/jql-ast';
|
|
8
|
+
import { JQLRuleSuggestion } from '@atlaskit/jql-autocomplete';
|
|
9
|
+
import { JqlEditorAnalyticsEvent } from '../analytics';
|
|
10
|
+
import { AutocompleteOptionGroup, AutocompleteOptions, AutocompleteOptionType, SelectableAutocompleteOption } from '../plugins/autocomplete/components/types';
|
|
11
|
+
import { AutocompleteProvider } from '../plugins/types';
|
|
12
|
+
import { PortalActions } from '../ui/jql-editor-portal-provider/types';
|
|
13
|
+
import { HydratedDeprecatedField, HydratedUser, HydratedValue } from '../ui/jql-editor/types';
|
|
14
|
+
import { AutocompletePosition, AutocompleteState, ContextAwareJQLSuggestions, ExternalMessagesNormalized, OptionsKey, Props, State } from './types';
|
|
15
|
+
export declare const initialState: State;
|
|
16
|
+
export declare const actions: {
|
|
17
|
+
onEditorViewBlur: () => Action<State>;
|
|
18
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
19
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
20
|
+
closeAutocomplete: () => Action<State>;
|
|
21
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
22
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
23
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
24
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
25
|
+
cancelSubscription: () => Action<State>;
|
|
26
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
27
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
28
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
29
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
30
|
+
updateValidationState: () => Action<State>;
|
|
31
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
32
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
33
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
34
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
35
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
38
|
+
updateEditorView: (attributes: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
}) => Action<State, Props>;
|
|
41
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
42
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
43
|
+
onSearch: () => Action<State>;
|
|
44
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
45
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
46
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
47
|
+
};
|
|
48
|
+
export declare const useStoreActions: import("react-sweet-state").HookFunction<null, import("react-sweet-state").BoundActions<State, {
|
|
49
|
+
onEditorViewBlur: () => Action<State>;
|
|
50
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
51
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
52
|
+
closeAutocomplete: () => Action<State>;
|
|
53
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
54
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
55
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
56
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
57
|
+
cancelSubscription: () => Action<State>;
|
|
58
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
59
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
60
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
61
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
62
|
+
updateValidationState: () => Action<State>;
|
|
63
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
64
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
65
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
66
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
67
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
68
|
+
[key: string]: string;
|
|
69
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
70
|
+
updateEditorView: (attributes: {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
}) => Action<State, Props>;
|
|
73
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
74
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
75
|
+
onSearch: () => Action<State>;
|
|
76
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
77
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
78
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
79
|
+
}>, void>;
|
|
80
|
+
export declare const useEditorState: import("react-sweet-state").HookFunction<EditorState, import("react-sweet-state").BoundActions<State, {
|
|
81
|
+
onEditorViewBlur: () => Action<State>;
|
|
82
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
83
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
84
|
+
closeAutocomplete: () => Action<State>;
|
|
85
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
86
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
87
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
88
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
89
|
+
cancelSubscription: () => Action<State>;
|
|
90
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
91
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
92
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
93
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
94
|
+
updateValidationState: () => Action<State>;
|
|
95
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
96
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
97
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
98
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
99
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
100
|
+
[key: string]: string;
|
|
101
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
102
|
+
updateEditorView: (attributes: {
|
|
103
|
+
[key: string]: string;
|
|
104
|
+
}) => Action<State, Props>;
|
|
105
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
106
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
107
|
+
onSearch: () => Action<State>;
|
|
108
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
109
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
110
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
111
|
+
}>, void>;
|
|
112
|
+
export declare const useEditorView: import("react-sweet-state").HookFunction<EditorView | undefined, import("react-sweet-state").BoundActions<State, {
|
|
113
|
+
onEditorViewBlur: () => Action<State>;
|
|
114
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
115
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
116
|
+
closeAutocomplete: () => Action<State>;
|
|
117
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
118
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
119
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
120
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
121
|
+
cancelSubscription: () => Action<State>;
|
|
122
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
123
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
124
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
125
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
126
|
+
updateValidationState: () => Action<State>;
|
|
127
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
128
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
129
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
130
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
131
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
132
|
+
[key: string]: string;
|
|
133
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
134
|
+
updateEditorView: (attributes: {
|
|
135
|
+
[key: string]: string;
|
|
136
|
+
}) => Action<State, Props>;
|
|
137
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
138
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
139
|
+
onSearch: () => Action<State>;
|
|
140
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
141
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
142
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
143
|
+
}>, void>;
|
|
144
|
+
export declare const useIsSearching: import("react-sweet-state").HookFunction<boolean | undefined, import("react-sweet-state").BoundActions<State, {
|
|
145
|
+
onEditorViewBlur: () => Action<State>;
|
|
146
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
147
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
148
|
+
closeAutocomplete: () => Action<State>;
|
|
149
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
150
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
151
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
152
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
153
|
+
cancelSubscription: () => Action<State>;
|
|
154
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
155
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
156
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
157
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
158
|
+
updateValidationState: () => Action<State>;
|
|
159
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
160
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
161
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
162
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
163
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
164
|
+
[key: string]: string;
|
|
165
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
166
|
+
updateEditorView: (attributes: {
|
|
167
|
+
[key: string]: string;
|
|
168
|
+
}) => Action<State, Props>;
|
|
169
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
170
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
171
|
+
onSearch: () => Action<State>;
|
|
172
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
173
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
174
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
175
|
+
}>, void>;
|
|
176
|
+
export declare const useIntl: import("react-sweet-state").HookFunction<IntlShape, import("react-sweet-state").BoundActions<State, {
|
|
177
|
+
onEditorViewBlur: () => Action<State>;
|
|
178
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
179
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
180
|
+
closeAutocomplete: () => Action<State>;
|
|
181
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
182
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
183
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
184
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
185
|
+
cancelSubscription: () => Action<State>;
|
|
186
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
187
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
188
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
189
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
190
|
+
updateValidationState: () => Action<State>;
|
|
191
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
192
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
193
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
194
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
195
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
196
|
+
[key: string]: string;
|
|
197
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
198
|
+
updateEditorView: (attributes: {
|
|
199
|
+
[key: string]: string;
|
|
200
|
+
}) => Action<State, Props>;
|
|
201
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
202
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
203
|
+
onSearch: () => Action<State>;
|
|
204
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
205
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
206
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
207
|
+
}>, void>;
|
|
208
|
+
export declare const useAutocompleteProvider: import("react-sweet-state").HookFunction<AutocompleteProvider, import("react-sweet-state").BoundActions<State, {
|
|
209
|
+
onEditorViewBlur: () => Action<State>;
|
|
210
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
211
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
212
|
+
closeAutocomplete: () => Action<State>;
|
|
213
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
214
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
215
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
216
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
217
|
+
cancelSubscription: () => Action<State>;
|
|
218
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
219
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
220
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
221
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
222
|
+
updateValidationState: () => Action<State>;
|
|
223
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
224
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
225
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
226
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
227
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
228
|
+
[key: string]: string;
|
|
229
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
230
|
+
updateEditorView: (attributes: {
|
|
231
|
+
[key: string]: string;
|
|
232
|
+
}) => Action<State, Props>;
|
|
233
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
234
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
235
|
+
onSearch: () => Action<State>;
|
|
236
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
237
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
238
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
239
|
+
}>, void>;
|
|
240
|
+
export declare const useScopedId: import("react-sweet-state").HookFunction<string, import("react-sweet-state").BoundActions<State, {
|
|
241
|
+
onEditorViewBlur: () => Action<State>;
|
|
242
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
243
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
244
|
+
closeAutocomplete: () => Action<State>;
|
|
245
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
246
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
247
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
248
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
249
|
+
cancelSubscription: () => Action<State>;
|
|
250
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
251
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
252
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
253
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
254
|
+
updateValidationState: () => Action<State>;
|
|
255
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
256
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
257
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
258
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
259
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
260
|
+
[key: string]: string;
|
|
261
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
262
|
+
updateEditorView: (attributes: {
|
|
263
|
+
[key: string]: string;
|
|
264
|
+
}) => Action<State, Props>;
|
|
265
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
266
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
267
|
+
onSearch: () => Action<State>;
|
|
268
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
269
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
270
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
271
|
+
}>, string>;
|
|
272
|
+
export declare const useIdPrefix: import("react-sweet-state").HookFunction<string, import("react-sweet-state").BoundActions<State, {
|
|
273
|
+
onEditorViewBlur: () => Action<State>;
|
|
274
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
275
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
276
|
+
closeAutocomplete: () => Action<State>;
|
|
277
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
278
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
279
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
280
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
281
|
+
cancelSubscription: () => Action<State>;
|
|
282
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
283
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
284
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
285
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
286
|
+
updateValidationState: () => Action<State>;
|
|
287
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
288
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
289
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
290
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
291
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
292
|
+
[key: string]: string;
|
|
293
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
294
|
+
updateEditorView: (attributes: {
|
|
295
|
+
[key: string]: string;
|
|
296
|
+
}) => Action<State, Props>;
|
|
297
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
298
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
299
|
+
onSearch: () => Action<State>;
|
|
300
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
301
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
302
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
303
|
+
}>, void>;
|
|
304
|
+
export declare const useEditorViewHasFocus: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
|
|
305
|
+
onEditorViewBlur: () => Action<State>;
|
|
306
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
307
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
308
|
+
closeAutocomplete: () => Action<State>;
|
|
309
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
310
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
311
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
312
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
313
|
+
cancelSubscription: () => Action<State>;
|
|
314
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
315
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
316
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
317
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
318
|
+
updateValidationState: () => Action<State>;
|
|
319
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
320
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
321
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
322
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
323
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
324
|
+
[key: string]: string;
|
|
325
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
326
|
+
updateEditorView: (attributes: {
|
|
327
|
+
[key: string]: string;
|
|
328
|
+
}) => Action<State, Props>;
|
|
329
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
330
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
331
|
+
onSearch: () => Action<State>;
|
|
332
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
333
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
334
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
335
|
+
}>, void>;
|
|
336
|
+
export declare const useLineNumbersVisible: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
|
|
337
|
+
onEditorViewBlur: () => Action<State>;
|
|
338
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
339
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
340
|
+
closeAutocomplete: () => Action<State>;
|
|
341
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
342
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
343
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
344
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
345
|
+
cancelSubscription: () => Action<State>;
|
|
346
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
347
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
348
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
349
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
350
|
+
updateValidationState: () => Action<State>;
|
|
351
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
352
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
353
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
354
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
355
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
356
|
+
[key: string]: string;
|
|
357
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
358
|
+
updateEditorView: (attributes: {
|
|
359
|
+
[key: string]: string;
|
|
360
|
+
}) => Action<State, Props>;
|
|
361
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
362
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
363
|
+
onSearch: () => Action<State>;
|
|
364
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
365
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
366
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
367
|
+
}>, void>;
|
|
368
|
+
export declare const useAutocomplete: import("react-sweet-state").HookFunction<AutocompleteState, import("react-sweet-state").BoundActions<State, {
|
|
369
|
+
onEditorViewBlur: () => Action<State>;
|
|
370
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
371
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
372
|
+
closeAutocomplete: () => Action<State>;
|
|
373
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
374
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
375
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
376
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
377
|
+
cancelSubscription: () => Action<State>;
|
|
378
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
379
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
380
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
381
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
382
|
+
updateValidationState: () => Action<State>;
|
|
383
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
384
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
385
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
386
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
387
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
388
|
+
[key: string]: string;
|
|
389
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
390
|
+
updateEditorView: (attributes: {
|
|
391
|
+
[key: string]: string;
|
|
392
|
+
}) => Action<State, Props>;
|
|
393
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
394
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
395
|
+
onSearch: () => Action<State>;
|
|
396
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
397
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
398
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
399
|
+
}>, void>;
|
|
400
|
+
/**
|
|
401
|
+
* Returns the JQL error from the last query that was searched, or {@code null} if there were none.
|
|
402
|
+
*/
|
|
403
|
+
export declare const useJqlError: import("react-sweet-state").HookFunction<JQLParseError | null, import("react-sweet-state").BoundActions<State, {
|
|
404
|
+
onEditorViewBlur: () => Action<State>;
|
|
405
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
406
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
407
|
+
closeAutocomplete: () => Action<State>;
|
|
408
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
409
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
410
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
411
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
412
|
+
cancelSubscription: () => Action<State>;
|
|
413
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
414
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
415
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
416
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
417
|
+
updateValidationState: () => Action<State>;
|
|
418
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
419
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
420
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
421
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
422
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
423
|
+
[key: string]: string;
|
|
424
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
425
|
+
updateEditorView: (attributes: {
|
|
426
|
+
[key: string]: string;
|
|
427
|
+
}) => Action<State, Props>;
|
|
428
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
429
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
430
|
+
onSearch: () => Action<State>;
|
|
431
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
432
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
433
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
434
|
+
}>, void>;
|
|
435
|
+
/**
|
|
436
|
+
* Returns whether there are any JQL errors in the current Prosemirror editor state.
|
|
437
|
+
*/
|
|
438
|
+
export declare const useEditorStateHasJqlError: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
|
|
439
|
+
onEditorViewBlur: () => Action<State>;
|
|
440
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
441
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
442
|
+
closeAutocomplete: () => Action<State>;
|
|
443
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
444
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
445
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
446
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
447
|
+
cancelSubscription: () => Action<State>;
|
|
448
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
449
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
450
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
451
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
452
|
+
updateValidationState: () => Action<State>;
|
|
453
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
454
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
455
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
456
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
457
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
458
|
+
[key: string]: string;
|
|
459
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
460
|
+
updateEditorView: (attributes: {
|
|
461
|
+
[key: string]: string;
|
|
462
|
+
}) => Action<State, Props>;
|
|
463
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
464
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
465
|
+
onSearch: () => Action<State>;
|
|
466
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
467
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
468
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
469
|
+
}>, void>;
|
|
470
|
+
export declare const useExternalMessages: import("react-sweet-state").HookFunction<ExternalMessagesNormalized, import("react-sweet-state").BoundActions<State, {
|
|
471
|
+
onEditorViewBlur: () => Action<State>;
|
|
472
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
473
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
474
|
+
closeAutocomplete: () => Action<State>;
|
|
475
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
476
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
477
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
478
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
479
|
+
cancelSubscription: () => Action<State>;
|
|
480
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
481
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
482
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
483
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
484
|
+
updateValidationState: () => Action<State>;
|
|
485
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
486
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
487
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
488
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
489
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
490
|
+
[key: string]: string;
|
|
491
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
492
|
+
updateEditorView: (attributes: {
|
|
493
|
+
[key: string]: string;
|
|
494
|
+
}) => Action<State, Props>;
|
|
495
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
496
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
497
|
+
onSearch: () => Action<State>;
|
|
498
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
499
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
500
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
501
|
+
}>, void>;
|
|
502
|
+
export declare const useAutocompleteOptions: import("react-sweet-state").HookFunction<SelectableAutocompleteOption[], import("react-sweet-state").BoundActions<State, {
|
|
503
|
+
onEditorViewBlur: () => Action<State>;
|
|
504
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
505
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
506
|
+
closeAutocomplete: () => Action<State>;
|
|
507
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
508
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
509
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
510
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
511
|
+
cancelSubscription: () => Action<State>;
|
|
512
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
513
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
514
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
515
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
516
|
+
updateValidationState: () => Action<State>;
|
|
517
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
518
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
519
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
520
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
521
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
522
|
+
[key: string]: string;
|
|
523
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
524
|
+
updateEditorView: (attributes: {
|
|
525
|
+
[key: string]: string;
|
|
526
|
+
}) => Action<State, Props>;
|
|
527
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
528
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
529
|
+
onSearch: () => Action<State>;
|
|
530
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
531
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
532
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
533
|
+
}>, void>;
|
|
534
|
+
export declare const useAutocompleteLoading: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
|
|
535
|
+
onEditorViewBlur: () => Action<State>;
|
|
536
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
537
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
538
|
+
closeAutocomplete: () => Action<State>;
|
|
539
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
540
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
541
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
542
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
543
|
+
cancelSubscription: () => Action<State>;
|
|
544
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
545
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
546
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
547
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
548
|
+
updateValidationState: () => Action<State>;
|
|
549
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
550
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
551
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
552
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
553
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
554
|
+
[key: string]: string;
|
|
555
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
556
|
+
updateEditorView: (attributes: {
|
|
557
|
+
[key: string]: string;
|
|
558
|
+
}) => Action<State, Props>;
|
|
559
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
560
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
561
|
+
onSearch: () => Action<State>;
|
|
562
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
563
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
564
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
565
|
+
}>, void>;
|
|
566
|
+
export declare const useAutocompleteIsOpen: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
|
|
567
|
+
onEditorViewBlur: () => Action<State>;
|
|
568
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
569
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
570
|
+
closeAutocomplete: () => Action<State>;
|
|
571
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
572
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
573
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
574
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
575
|
+
cancelSubscription: () => Action<State>;
|
|
576
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
577
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
578
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
579
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
580
|
+
updateValidationState: () => Action<State>;
|
|
581
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
582
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
583
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
584
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
585
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
586
|
+
[key: string]: string;
|
|
587
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
588
|
+
updateEditorView: (attributes: {
|
|
589
|
+
[key: string]: string;
|
|
590
|
+
}) => Action<State, Props>;
|
|
591
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
592
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
593
|
+
onSearch: () => Action<State>;
|
|
594
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
595
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
596
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
597
|
+
}>, void>;
|
|
598
|
+
export declare const useAutocompletePosition: import("react-sweet-state").HookFunction<AutocompletePosition, import("react-sweet-state").BoundActions<State, {
|
|
599
|
+
onEditorViewBlur: () => Action<State>;
|
|
600
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
601
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
602
|
+
closeAutocomplete: () => Action<State>;
|
|
603
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
604
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
605
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
606
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
607
|
+
cancelSubscription: () => Action<State>;
|
|
608
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
609
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
610
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
611
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
612
|
+
updateValidationState: () => Action<State>;
|
|
613
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
614
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
615
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
616
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
617
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
618
|
+
[key: string]: string;
|
|
619
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
620
|
+
updateEditorView: (attributes: {
|
|
621
|
+
[key: string]: string;
|
|
622
|
+
}) => Action<State, Props>;
|
|
623
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
624
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
625
|
+
onSearch: () => Action<State>;
|
|
626
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
627
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
628
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
629
|
+
}>, void>;
|
|
630
|
+
export declare const useHydratedValue: import("react-sweet-state").HookFunction<HydratedValue | undefined, import("react-sweet-state").BoundActions<State, {
|
|
631
|
+
onEditorViewBlur: () => Action<State>;
|
|
632
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
633
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
634
|
+
closeAutocomplete: () => Action<State>;
|
|
635
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
636
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
637
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
638
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
639
|
+
cancelSubscription: () => Action<State>;
|
|
640
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
641
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
642
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
643
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
644
|
+
updateValidationState: () => Action<State>;
|
|
645
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
646
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
647
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
648
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
649
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
650
|
+
[key: string]: string;
|
|
651
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
652
|
+
updateEditorView: (attributes: {
|
|
653
|
+
[key: string]: string;
|
|
654
|
+
}) => Action<State, Props>;
|
|
655
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
656
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
657
|
+
onSearch: () => Action<State>;
|
|
658
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
659
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
660
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
661
|
+
}>, {
|
|
662
|
+
fieldName: string;
|
|
663
|
+
id: string;
|
|
664
|
+
}>;
|
|
665
|
+
export declare const useHydratedUser: import("react-sweet-state").HookFunction<HydratedUser | undefined, import("react-sweet-state").BoundActions<State, {
|
|
666
|
+
onEditorViewBlur: () => Action<State>;
|
|
667
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
668
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
669
|
+
closeAutocomplete: () => Action<State>;
|
|
670
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
671
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
672
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
673
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
674
|
+
cancelSubscription: () => Action<State>;
|
|
675
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
676
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
677
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
678
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
679
|
+
updateValidationState: () => Action<State>;
|
|
680
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
681
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
682
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
683
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
684
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
685
|
+
[key: string]: string;
|
|
686
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
687
|
+
updateEditorView: (attributes: {
|
|
688
|
+
[key: string]: string;
|
|
689
|
+
}) => Action<State, Props>;
|
|
690
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
691
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
692
|
+
onSearch: () => Action<State>;
|
|
693
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
694
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
695
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
696
|
+
}>, {
|
|
697
|
+
fieldName: string;
|
|
698
|
+
id: string;
|
|
699
|
+
}>;
|
|
700
|
+
export declare const useHydratedDeprecations: import("react-sweet-state").HookFunction<HydratedDeprecatedField[], import("react-sweet-state").BoundActions<State, {
|
|
701
|
+
onEditorViewBlur: () => Action<State>;
|
|
702
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
703
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
704
|
+
closeAutocomplete: () => Action<State>;
|
|
705
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
706
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
707
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
708
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
709
|
+
cancelSubscription: () => Action<State>;
|
|
710
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
711
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
712
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
713
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
714
|
+
updateValidationState: () => Action<State>;
|
|
715
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
716
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
717
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
718
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
719
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
720
|
+
[key: string]: string;
|
|
721
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
722
|
+
updateEditorView: (attributes: {
|
|
723
|
+
[key: string]: string;
|
|
724
|
+
}) => Action<State, Props>;
|
|
725
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
726
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
727
|
+
onSearch: () => Action<State>;
|
|
728
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
729
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
730
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
731
|
+
}>, void>;
|
|
732
|
+
export declare const useRichInlineNodesEnabled: import("react-sweet-state").HookFunction<boolean, import("react-sweet-state").BoundActions<State, {
|
|
733
|
+
onEditorViewBlur: () => Action<State>;
|
|
734
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
735
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
736
|
+
closeAutocomplete: () => Action<State>;
|
|
737
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
738
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
739
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
740
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
741
|
+
cancelSubscription: () => Action<State>;
|
|
742
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
743
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
744
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
745
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
746
|
+
updateValidationState: () => Action<State>;
|
|
747
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
748
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
749
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
750
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
751
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
752
|
+
[key: string]: string;
|
|
753
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
754
|
+
updateEditorView: (attributes: {
|
|
755
|
+
[key: string]: string;
|
|
756
|
+
}) => Action<State, Props>;
|
|
757
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
758
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
759
|
+
onSearch: () => Action<State>;
|
|
760
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
761
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
762
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
763
|
+
}>, void>;
|
|
764
|
+
export declare const useOnSyntaxHelp: import("react-sweet-state").HookFunction<void | ((e: MouseEvent<HTMLElement>) => boolean), import("react-sweet-state").BoundActions<State, {
|
|
765
|
+
onEditorViewBlur: () => Action<State>;
|
|
766
|
+
onEditorViewFocus: (event: FocusEvent<HTMLElement>) => Action<State, Props>;
|
|
767
|
+
openAutocompleteOnNextUpdate: () => Action<State>;
|
|
768
|
+
closeAutocomplete: () => Action<State>;
|
|
769
|
+
setSelectedAutocompleteOptionId: (selectedOptionId: string | undefined) => Action<State>;
|
|
770
|
+
getAutocompleteSuggestions: (editorState: EditorState) => Action<State>;
|
|
771
|
+
getAutocompleteOptions: (suggestions: ContextAwareJQLSuggestions) => Action<State>;
|
|
772
|
+
appendOptionsForObservable: (key: OptionsKey, observable: Observable<AutocompleteOptions>, rule: JQLRuleSuggestion, type: AutocompleteOptionType) => Action<State, void, Observable<AutocompleteOptions>>;
|
|
773
|
+
cancelSubscription: () => Action<State>;
|
|
774
|
+
setLoading: (loading: boolean) => Action<State>;
|
|
775
|
+
setAutocompleteOptions: (options: AutocompleteOptionGroup) => Action<State>;
|
|
776
|
+
setAutocompleteContainer: (container: HTMLElement | null) => Action<State>;
|
|
777
|
+
callAutocompleteProviders: ({ rules, tokens }: ContextAwareJQLSuggestions) => Action<State>;
|
|
778
|
+
updateValidationState: () => Action<State>;
|
|
779
|
+
initialiseEditorState: () => Action<State, Props>;
|
|
780
|
+
configurePlugins: (portalActions: PortalActions | void) => Action<State, Props>;
|
|
781
|
+
onApplyEditorTransaction: (transaction: Transaction) => Action<State, Props>;
|
|
782
|
+
resetEditorState: (query: string, addToHistory?: boolean) => Action<State>;
|
|
783
|
+
initialiseEditorView: (editorViewNode: HTMLElement, attributes: {
|
|
784
|
+
[key: string]: string;
|
|
785
|
+
}, portalActions: PortalActions) => Action<State, Props>;
|
|
786
|
+
updateEditorView: (attributes: {
|
|
787
|
+
[key: string]: string;
|
|
788
|
+
}) => Action<State, Props>;
|
|
789
|
+
setEditorViewContainer: (editorViewContainer: HTMLElement) => Action<State>;
|
|
790
|
+
setEditorViewContainerScroll: (scroll: number) => Action<State>;
|
|
791
|
+
onSearch: () => Action<State>;
|
|
792
|
+
onSearchCommand: (pmState: EditorState, pmDispatch: ((tr: Transaction) => void) | undefined, pmView: EditorView | undefined, keyboardShortcut: boolean) => Action<State, Props, boolean>;
|
|
793
|
+
externalErrorMessageViewed: () => Action<State, Props>;
|
|
794
|
+
createAndFireAnalyticsEvent: (payload: JqlEditorAnalyticsEvent) => Action<State, Props>;
|
|
795
|
+
}>, void>;
|
|
796
|
+
export declare const EditorStateContainer: import("react-sweet-state").ContainerComponent<Props>;
|