@qoretechnologies/reqraft 0.10.62 → 0.10.63-pr.142.g0b675cd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (736) hide show
  1. package/README.md +21 -1
  2. package/dist/components/Description/describedControl.d.ts +48 -0
  3. package/dist/components/Description/describedControl.d.ts.map +1 -0
  4. package/dist/components/Description/describedControl.js +81 -0
  5. package/dist/components/Description/describedControl.js.map +1 -0
  6. package/dist/components/Description/index.d.ts.map +1 -1
  7. package/dist/components/Description/index.js +3 -2
  8. package/dist/components/Description/index.js.map +1 -1
  9. package/dist/components/colorValue/colorValue.d.ts +59 -0
  10. package/dist/components/colorValue/colorValue.d.ts.map +1 -0
  11. package/dist/components/colorValue/colorValue.js +245 -0
  12. package/dist/components/colorValue/colorValue.js.map +1 -0
  13. package/dist/components/colorValue/index.d.ts +34 -0
  14. package/dist/components/colorValue/index.d.ts.map +1 -0
  15. package/dist/components/colorValue/index.js +136 -0
  16. package/dist/components/colorValue/index.js.map +1 -0
  17. package/dist/components/colorValue/labels.d.ts +12 -0
  18. package/dist/components/colorValue/labels.d.ts.map +1 -0
  19. package/dist/components/colorValue/labels.js +11 -0
  20. package/dist/components/colorValue/labels.js.map +1 -0
  21. package/dist/components/composer/Composer.d.ts +1 -1
  22. package/dist/components/composer/Composer.d.ts.map +1 -1
  23. package/dist/components/composer/Composer.js +2 -2
  24. package/dist/components/composer/Composer.js.map +1 -1
  25. package/dist/components/dpqlEditor/DpqlEditor.d.ts.map +1 -1
  26. package/dist/components/dpqlEditor/DpqlEditor.js +25 -5
  27. package/dist/components/dpqlEditor/DpqlEditor.js.map +1 -1
  28. package/dist/components/dpqlEditor/dpqlHelpers.d.ts +10 -1
  29. package/dist/components/dpqlEditor/dpqlHelpers.d.ts.map +1 -1
  30. package/dist/components/dpqlEditor/dpqlHelpers.js +30 -13
  31. package/dist/components/dpqlEditor/dpqlHelpers.js.map +1 -1
  32. package/dist/components/dpqlEditor/dpqlTags.d.ts +11 -7
  33. package/dist/components/dpqlEditor/dpqlTags.d.ts.map +1 -1
  34. package/dist/components/dpqlEditor/dpqlTags.js +11 -6
  35. package/dist/components/dpqlEditor/dpqlTags.js.map +1 -1
  36. package/dist/components/dpqlEditor/types.d.ts +47 -8
  37. package/dist/components/dpqlEditor/types.d.ts.map +1 -1
  38. package/dist/components/dpqlEditor/useDpqlSession.d.ts +2 -2
  39. package/dist/components/dpqlEditor/useDpqlSession.d.ts.map +1 -1
  40. package/dist/components/dpqlEditor/useDpqlSession.js +16 -7
  41. package/dist/components/dpqlEditor/useDpqlSession.js.map +1 -1
  42. package/dist/components/form/engine/CompactRow.d.ts.map +1 -1
  43. package/dist/components/form/engine/CompactRow.js +151 -83
  44. package/dist/components/form/engine/CompactRow.js.map +1 -1
  45. package/dist/components/form/engine/CompactToolbar.d.ts.map +1 -1
  46. package/dist/components/form/engine/CompactToolbar.js +29 -3
  47. package/dist/components/form/engine/CompactToolbar.js.map +1 -1
  48. package/dist/components/form/engine/FormEngine.d.ts +34 -1
  49. package/dist/components/form/engine/FormEngine.d.ts.map +1 -1
  50. package/dist/components/form/engine/FormEngine.js +487 -87
  51. package/dist/components/form/engine/FormEngine.js.map +1 -1
  52. package/dist/components/form/engine/HiddenFieldsNote.d.ts +28 -0
  53. package/dist/components/form/engine/HiddenFieldsNote.d.ts.map +1 -0
  54. package/dist/components/form/engine/HiddenFieldsNote.js +32 -0
  55. package/dist/components/form/engine/HiddenFieldsNote.js.map +1 -0
  56. package/dist/components/form/engine/OptionFieldMessages.d.ts.map +1 -1
  57. package/dist/components/form/engine/OptionFieldMessages.js +24 -3
  58. package/dist/components/form/engine/OptionFieldMessages.js.map +1 -1
  59. package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts +2 -2
  60. package/dist/components/form/engine/_structuredData/SchemaDataView.d.ts.map +1 -1
  61. package/dist/components/form/engine/_structuredData/SchemaDataView.js +12 -6
  62. package/dist/components/form/engine/_structuredData/SchemaDataView.js.map +1 -1
  63. package/dist/components/form/engine/compactRowContext.d.ts +19 -0
  64. package/dist/components/form/engine/compactRowContext.d.ts.map +1 -1
  65. package/dist/components/form/engine/compactRowContext.js.map +1 -1
  66. package/dist/components/form/engine/compactRowStyles.d.ts +0 -1
  67. package/dist/components/form/engine/compactRowStyles.d.ts.map +1 -1
  68. package/dist/components/form/engine/compactRowStyles.js +12 -20
  69. package/dist/components/form/engine/compactRowStyles.js.map +1 -1
  70. package/dist/components/form/engine/compactToolbarColors.d.ts +16 -0
  71. package/dist/components/form/engine/compactToolbarColors.d.ts.map +1 -0
  72. package/dist/components/form/engine/compactToolbarColors.js +21 -0
  73. package/dist/components/form/engine/compactToolbarColors.js.map +1 -0
  74. package/dist/components/form/engine/readFirst.d.ts +24 -8
  75. package/dist/components/form/engine/readFirst.d.ts.map +1 -1
  76. package/dist/components/form/engine/readFirst.js +77 -109
  77. package/dist/components/form/engine/readFirst.js.map +1 -1
  78. package/dist/components/form/engine/readFirstColors.d.ts +30 -0
  79. package/dist/components/form/engine/readFirstColors.d.ts.map +1 -0
  80. package/dist/components/form/engine/readFirstColors.js +51 -0
  81. package/dist/components/form/engine/readFirstColors.js.map +1 -0
  82. package/dist/components/form/engine/rowFocus.d.ts +2 -0
  83. package/dist/components/form/engine/rowFocus.d.ts.map +1 -1
  84. package/dist/components/form/engine/rowFocus.js +26 -3
  85. package/dist/components/form/engine/rowFocus.js.map +1 -1
  86. package/dist/components/form/engine/typeChoices.d.ts +1 -1
  87. package/dist/components/form/engine/variants/VariantCalmTable.d.ts.map +1 -1
  88. package/dist/components/form/engine/variants/VariantCalmTable.js +2 -1
  89. package/dist/components/form/engine/variants/VariantCalmTable.js.map +1 -1
  90. package/dist/components/form/engine/variants/VariantCards.d.ts.map +1 -1
  91. package/dist/components/form/engine/variants/VariantCards.js +2 -1
  92. package/dist/components/form/engine/variants/VariantCards.js.map +1 -1
  93. package/dist/components/form/engine/variants/VariantFocus.js +1 -1
  94. package/dist/components/form/engine/variants/VariantFocus.js.map +1 -1
  95. package/dist/components/form/engine/variants/VariantMinimal.d.ts.map +1 -1
  96. package/dist/components/form/engine/variants/VariantMinimal.js +2 -1
  97. package/dist/components/form/engine/variants/VariantMinimal.js.map +1 -1
  98. package/dist/components/form/engine/variants/variantParts.d.ts +1 -1
  99. package/dist/components/form/engine/variants/variantParts.d.ts.map +1 -1
  100. package/dist/components/form/engine/variants/variantParts.js +25 -17
  101. package/dist/components/form/engine/variants/variantParts.js.map +1 -1
  102. package/dist/components/form/expressions/DpqlRendering.d.ts +1 -1
  103. package/dist/components/form/expressions/DpqlRendering.d.ts.map +1 -1
  104. package/dist/components/form/expressions/DpqlRendering.js +3 -3
  105. package/dist/components/form/expressions/DpqlRendering.js.map +1 -1
  106. package/dist/components/form/expressions/ExpressionField.d.ts +41 -3
  107. package/dist/components/form/expressions/ExpressionField.d.ts.map +1 -1
  108. package/dist/components/form/expressions/ExpressionField.js +396 -99
  109. package/dist/components/form/expressions/ExpressionField.js.map +1 -1
  110. package/dist/components/form/expressions/builder/argumentDetail.d.ts.map +1 -1
  111. package/dist/components/form/expressions/builder/argumentDetail.js +4 -1
  112. package/dist/components/form/expressions/builder/argumentDetail.js.map +1 -1
  113. package/dist/components/form/expressions/builder/argumentLabel.d.ts.map +1 -1
  114. package/dist/components/form/expressions/builder/argumentLabel.js +27 -9
  115. package/dist/components/form/expressions/builder/argumentLabel.js.map +1 -1
  116. package/dist/components/form/expressions/builder/argumentWrapper.d.ts.map +1 -1
  117. package/dist/components/form/expressions/builder/argumentWrapper.js +4 -2
  118. package/dist/components/form/expressions/builder/argumentWrapper.js.map +1 -1
  119. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.d.ts.map +1 -1
  120. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js +5 -4
  121. package/dist/components/form/expressions/builder/confirmMismatchedTypesModal.js.map +1 -1
  122. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts +1 -1
  123. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.d.ts.map +1 -1
  124. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js +6 -3
  125. package/dist/components/form/expressions/builder/confirmUnsupportedTypeModal.js.map +1 -1
  126. package/dist/components/form/expressions/builder/index.d.ts +24 -2
  127. package/dist/components/form/expressions/builder/index.d.ts.map +1 -1
  128. package/dist/components/form/expressions/builder/index.js +121 -77
  129. package/dist/components/form/expressions/builder/index.js.map +1 -1
  130. package/dist/components/form/expressions/builder/item.d.ts +6 -2
  131. package/dist/components/form/expressions/builder/item.d.ts.map +1 -1
  132. package/dist/components/form/expressions/builder/item.js +19 -5
  133. package/dist/components/form/expressions/builder/item.js.map +1 -1
  134. package/dist/components/form/expressions/builder/renderTemplate.js +1 -1
  135. package/dist/components/form/expressions/builder/renderTemplate.js.map +1 -1
  136. package/dist/components/form/expressions/expressionOperands.d.ts +16 -0
  137. package/dist/components/form/expressions/expressionOperands.d.ts.map +1 -0
  138. package/dist/components/form/expressions/expressionOperands.js +97 -0
  139. package/dist/components/form/expressions/expressionOperands.js.map +1 -0
  140. package/dist/components/form/expressions/mockExpressions.d.ts.map +1 -1
  141. package/dist/components/form/expressions/mockExpressions.js +22 -5
  142. package/dist/components/form/expressions/mockExpressions.js.map +1 -1
  143. package/dist/components/form/expressions/renderExpressionToText.d.ts +2 -0
  144. package/dist/components/form/expressions/renderExpressionToText.d.ts.map +1 -1
  145. package/dist/components/form/expressions/renderExpressionToText.js +35 -9
  146. package/dist/components/form/expressions/renderExpressionToText.js.map +1 -1
  147. package/dist/components/form/expressions/textOfExpression.d.ts +18 -0
  148. package/dist/components/form/expressions/textOfExpression.d.ts.map +1 -0
  149. package/dist/components/form/expressions/textOfExpression.js +37 -0
  150. package/dist/components/form/expressions/textOfExpression.js.map +1 -0
  151. package/dist/components/form/expressions/useExpressionType.d.ts +26 -0
  152. package/dist/components/form/expressions/useExpressionType.d.ts.map +1 -0
  153. package/dist/components/form/expressions/useExpressionType.js +181 -0
  154. package/dist/components/form/expressions/useExpressionType.js.map +1 -0
  155. package/dist/components/form/expressions/useRenderExpression.d.ts.map +1 -1
  156. package/dist/components/form/expressions/useRenderExpression.js +7 -7
  157. package/dist/components/form/expressions/useRenderExpression.js.map +1 -1
  158. package/dist/components/form/fields/Field.d.ts.map +1 -1
  159. package/dist/components/form/fields/Field.js +20 -7
  160. package/dist/components/form/fields/Field.js.map +1 -1
  161. package/dist/components/form/fields/allowed-values/AllowedValues.d.ts.map +1 -1
  162. package/dist/components/form/fields/allowed-values/AllowedValues.js +17 -4
  163. package/dist/components/form/fields/allowed-values/AllowedValues.js.map +1 -1
  164. package/dist/components/form/fields/array/ArrayAuto.d.ts.map +1 -1
  165. package/dist/components/form/fields/array/ArrayAuto.js +24 -0
  166. package/dist/components/form/fields/array/ArrayAuto.js.map +1 -1
  167. package/dist/components/form/fields/array/ArrayAutoField.d.ts.map +1 -1
  168. package/dist/components/form/fields/array/ArrayAutoField.js +36 -13
  169. package/dist/components/form/fields/array/ArrayAutoField.js.map +1 -1
  170. package/dist/components/form/fields/auto/AutoFormField.d.ts +20 -1
  171. package/dist/components/form/fields/auto/AutoFormField.d.ts.map +1 -1
  172. package/dist/components/form/fields/auto/AutoFormField.js +81 -36
  173. package/dist/components/form/fields/auto/AutoFormField.js.map +1 -1
  174. package/dist/components/form/fields/auto/hostEditorValue.d.ts +30 -0
  175. package/dist/components/form/fields/auto/hostEditorValue.d.ts.map +1 -0
  176. package/dist/components/form/fields/auto/hostEditorValue.js +53 -0
  177. package/dist/components/form/fields/auto/hostEditorValue.js.map +1 -0
  178. package/dist/components/form/fields/binary/Binary.d.ts.map +1 -1
  179. package/dist/components/form/fields/binary/Binary.js +23 -3
  180. package/dist/components/form/fields/binary/Binary.js.map +1 -1
  181. package/dist/components/form/fields/boolean/Boolean.d.ts +5 -0
  182. package/dist/components/form/fields/boolean/Boolean.d.ts.map +1 -1
  183. package/dist/components/form/fields/boolean/Boolean.js +9 -1
  184. package/dist/components/form/fields/boolean/Boolean.js.map +1 -1
  185. package/dist/components/form/fields/color/Color.d.ts +103 -16
  186. package/dist/components/form/fields/color/Color.d.ts.map +1 -1
  187. package/dist/components/form/fields/color/Color.js +611 -16
  188. package/dist/components/form/fields/color/Color.js.map +1 -1
  189. package/dist/components/form/fields/emittedValues.d.ts +34 -3
  190. package/dist/components/form/fields/emittedValues.d.ts.map +1 -1
  191. package/dist/components/form/fields/emittedValues.js +24 -1
  192. package/dist/components/form/fields/emittedValues.js.map +1 -1
  193. package/dist/components/form/fields/file/File.d.ts +1 -1
  194. package/dist/components/form/fields/file/File.d.ts.map +1 -1
  195. package/dist/components/form/fields/file/File.js +4 -2
  196. package/dist/components/form/fields/file/File.js.map +1 -1
  197. package/dist/components/form/fields/long-string/LongString.d.ts.map +1 -1
  198. package/dist/components/form/fields/long-string/LongString.js +17 -3
  199. package/dist/components/form/fields/long-string/LongString.js.map +1 -1
  200. package/dist/components/form/fields/markdown/MarkdownView.js +1 -1
  201. package/dist/components/form/fields/multi-select/MultiSelectFormField.d.ts.map +1 -1
  202. package/dist/components/form/fields/multi-select/MultiSelectFormField.js +4 -1
  203. package/dist/components/form/fields/multi-select/MultiSelectFormField.js.map +1 -1
  204. package/dist/components/form/fields/number/Number.d.ts +6 -0
  205. package/dist/components/form/fields/number/Number.d.ts.map +1 -1
  206. package/dist/components/form/fields/number/Number.js +41 -6
  207. package/dist/components/form/fields/number/Number.js.map +1 -1
  208. package/dist/components/form/fields/object/Object.d.ts +1 -1
  209. package/dist/components/form/fields/object/Object.d.ts.map +1 -1
  210. package/dist/components/form/fields/object/Object.js +4 -2
  211. package/dist/components/form/fields/object/Object.js.map +1 -1
  212. package/dist/components/form/fields/pendingEdit.d.ts +52 -0
  213. package/dist/components/form/fields/pendingEdit.d.ts.map +1 -0
  214. package/dist/components/form/fields/pendingEdit.js +79 -0
  215. package/dist/components/form/fields/pendingEdit.js.map +1 -0
  216. package/dist/components/form/fields/rich-text/RichText.d.ts +8 -1
  217. package/dist/components/form/fields/rich-text/RichText.d.ts.map +1 -1
  218. package/dist/components/form/fields/rich-text/RichText.js +190 -81
  219. package/dist/components/form/fields/rich-text/RichText.js.map +1 -1
  220. package/dist/components/form/fields/rich-text/useTemplateTags.d.ts +18 -0
  221. package/dist/components/form/fields/rich-text/useTemplateTags.d.ts.map +1 -0
  222. package/dist/components/form/fields/rich-text/useTemplateTags.js +49 -0
  223. package/dist/components/form/fields/rich-text/useTemplateTags.js.map +1 -0
  224. package/dist/components/form/fields/schema-definition/CatalogLeafForm.d.ts.map +1 -1
  225. package/dist/components/form/fields/schema-definition/CatalogLeafForm.js +4 -1
  226. package/dist/components/form/fields/schema-definition/CatalogLeafForm.js.map +1 -1
  227. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.d.ts.map +1 -1
  228. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js +20 -5
  229. package/dist/components/form/fields/schema-definition/CatalogNodeEditor.js.map +1 -1
  230. package/dist/components/form/fields/schema-definition/TableEditor.d.ts.map +1 -1
  231. package/dist/components/form/fields/schema-definition/TableEditor.js +10 -2
  232. package/dist/components/form/fields/schema-definition/TableEditor.js.map +1 -1
  233. package/dist/components/form/fields/schema-definition/index.d.ts.map +1 -1
  234. package/dist/components/form/fields/schema-definition/index.js +8 -4
  235. package/dist/components/form/fields/schema-definition/index.js.map +1 -1
  236. package/dist/components/form/fields/select/Select.d.ts +2 -0
  237. package/dist/components/form/fields/select/Select.d.ts.map +1 -1
  238. package/dist/components/form/fields/select/Select.js +19 -10
  239. package/dist/components/form/fields/select/Select.js.map +1 -1
  240. package/dist/components/form/fields/select/SelectCollection.d.ts.map +1 -1
  241. package/dist/components/form/fields/select/SelectCollection.js +8 -2
  242. package/dist/components/form/fields/select/SelectCollection.js.map +1 -1
  243. package/dist/components/form/fields/select/unavailableRow.d.ts +23 -0
  244. package/dist/components/form/fields/select/unavailableRow.d.ts.map +1 -0
  245. package/dist/components/form/fields/select/unavailableRow.js +55 -0
  246. package/dist/components/form/fields/select/unavailableRow.js.map +1 -0
  247. package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts +5 -5
  248. package/dist/components/form/fields/template/ReadOnlyTemplateTag.d.ts.map +1 -1
  249. package/dist/components/form/fields/template/ReadOnlyTemplateTag.js +11 -4
  250. package/dist/components/form/fields/template/ReadOnlyTemplateTag.js.map +1 -1
  251. package/dist/components/form/fields/template/TemplateBrowser.d.ts +22 -0
  252. package/dist/components/form/fields/template/TemplateBrowser.d.ts.map +1 -0
  253. package/dist/components/form/fields/template/TemplateBrowser.js +54 -0
  254. package/dist/components/form/fields/template/TemplateBrowser.js.map +1 -0
  255. package/dist/components/form/fields/template/TemplateField.d.ts +83 -1
  256. package/dist/components/form/fields/template/TemplateField.d.ts.map +1 -1
  257. package/dist/components/form/fields/template/TemplateField.js +535 -85
  258. package/dist/components/form/fields/template/TemplateField.js.map +1 -1
  259. package/dist/components/form/fields/template/TemplateText.d.ts +0 -17
  260. package/dist/components/form/fields/template/TemplateText.d.ts.map +1 -1
  261. package/dist/components/form/fields/template/TemplateText.js +8 -4
  262. package/dist/components/form/fields/template/TemplateText.js.map +1 -1
  263. package/dist/components/form/fields/template/writtenAsText.d.ts +55 -0
  264. package/dist/components/form/fields/template/writtenAsText.d.ts.map +1 -0
  265. package/dist/components/form/fields/template/writtenAsText.js +188 -0
  266. package/dist/components/form/fields/template/writtenAsText.js.map +1 -0
  267. package/dist/components/form/index.d.ts +10 -0
  268. package/dist/components/form/index.d.ts.map +1 -1
  269. package/dist/components/form/index.js +23 -1
  270. package/dist/components/form/index.js.map +1 -1
  271. package/dist/components/imageLightbox/ImageLightbox.d.ts.map +1 -1
  272. package/dist/components/imageLightbox/ImageLightbox.js +19 -7
  273. package/dist/components/imageLightbox/ImageLightbox.js.map +1 -1
  274. package/dist/components/log/Log.d.ts.map +1 -1
  275. package/dist/components/log/Log.js +15 -7
  276. package/dist/components/log/Log.js.map +1 -1
  277. package/dist/components/menu/Menu.d.ts.map +1 -1
  278. package/dist/components/menu/Menu.js +19 -10
  279. package/dist/components/menu/Menu.js.map +1 -1
  280. package/dist/components/smartEditor/CompletionMenu.d.ts +43 -0
  281. package/dist/components/smartEditor/CompletionMenu.d.ts.map +1 -0
  282. package/dist/components/smartEditor/CompletionMenu.js +196 -0
  283. package/dist/components/smartEditor/CompletionMenu.js.map +1 -0
  284. package/dist/components/smartEditor/MarkdownDoc.d.ts +1 -1
  285. package/dist/components/smartEditor/MarkdownDoc.js +1 -1
  286. package/dist/components/smartEditor/MarkdownDoc.js.map +1 -1
  287. package/dist/components/smartEditor/SmartEditor.d.ts.map +1 -1
  288. package/dist/components/smartEditor/SmartEditor.js +51 -136
  289. package/dist/components/smartEditor/SmartEditor.js.map +1 -1
  290. package/dist/components/smartEditor/completionStyle.d.ts +27 -0
  291. package/dist/components/smartEditor/completionStyle.d.ts.map +1 -0
  292. package/dist/components/smartEditor/completionStyle.js +66 -0
  293. package/dist/components/smartEditor/completionStyle.js.map +1 -0
  294. package/dist/components/smartEditor/index.d.ts +5 -1
  295. package/dist/components/smartEditor/index.d.ts.map +1 -1
  296. package/dist/components/smartEditor/index.js +19 -1
  297. package/dist/components/smartEditor/index.js.map +1 -1
  298. package/dist/components/smartEditor/templateCompletions.d.ts +18 -0
  299. package/dist/components/smartEditor/templateCompletions.d.ts.map +1 -0
  300. package/dist/components/smartEditor/templateCompletions.js +94 -0
  301. package/dist/components/smartEditor/templateCompletions.js.map +1 -0
  302. package/dist/components/smartEditor/types.d.ts +12 -1
  303. package/dist/components/smartEditor/types.d.ts.map +1 -1
  304. package/dist/components/smartEditor/useLspAutocomplete.d.ts +32 -0
  305. package/dist/components/smartEditor/useLspAutocomplete.d.ts.map +1 -1
  306. package/dist/components/smartEditor/useLspAutocomplete.js +228 -118
  307. package/dist/components/smartEditor/useLspAutocomplete.js.map +1 -1
  308. package/dist/components/smartEditor/useLspHover.d.ts +22 -7
  309. package/dist/components/smartEditor/useLspHover.d.ts.map +1 -1
  310. package/dist/components/smartEditor/useLspHover.js +86 -17
  311. package/dist/components/smartEditor/useLspHover.js.map +1 -1
  312. package/dist/components/smartEditor/useLspSemanticTokens.js +1 -1
  313. package/dist/components/smartEditor/useLspSemanticTokens.js.map +1 -1
  314. package/dist/components/smartEditor/useLspSession.d.ts +6 -0
  315. package/dist/components/smartEditor/useLspSession.d.ts.map +1 -1
  316. package/dist/components/smartEditor/useLspSession.js +7 -6
  317. package/dist/components/smartEditor/useLspSession.js.map +1 -1
  318. package/dist/components/supportTicket/AttachmentChips.d.ts.map +1 -1
  319. package/dist/components/supportTicket/AttachmentChips.js +15 -5
  320. package/dist/components/supportTicket/AttachmentChips.js.map +1 -1
  321. package/dist/components/supportTicket/ReferencePicker.d.ts +9 -2
  322. package/dist/components/supportTicket/ReferencePicker.d.ts.map +1 -1
  323. package/dist/components/supportTicket/ReferencePicker.js +27 -6
  324. package/dist/components/supportTicket/ReferencePicker.js.map +1 -1
  325. package/dist/components/supportTicket/TicketHeader.d.ts +3 -4
  326. package/dist/components/supportTicket/TicketHeader.d.ts.map +1 -1
  327. package/dist/components/supportTicket/TicketHeader.js +20 -2
  328. package/dist/components/supportTicket/TicketHeader.js.map +1 -1
  329. package/dist/components/supportTicket/TicketMetaTags.d.ts +1 -1
  330. package/dist/components/ticketReferences/TicketReferences.d.ts.map +1 -1
  331. package/dist/components/ticketReferences/TicketReferences.js +9 -4
  332. package/dist/components/ticketReferences/TicketReferences.js.map +1 -1
  333. package/dist/components/ticketThread/TicketThread.d.ts.map +1 -1
  334. package/dist/components/ticketThread/TicketThread.js +36 -11
  335. package/dist/components/ticketThread/TicketThread.js.map +1 -1
  336. package/dist/helpers/descriptionTooltip.d.ts +43 -0
  337. package/dist/helpers/descriptionTooltip.d.ts.map +1 -0
  338. package/dist/helpers/descriptionTooltip.js +70 -0
  339. package/dist/helpers/descriptionTooltip.js.map +1 -0
  340. package/dist/helpers/domProps.d.ts +5 -0
  341. package/dist/helpers/domProps.d.ts.map +1 -0
  342. package/dist/helpers/domProps.js +47 -0
  343. package/dist/helpers/domProps.js.map +1 -0
  344. package/dist/helpers/expressions.d.ts +107 -2
  345. package/dist/helpers/expressions.d.ts.map +1 -1
  346. package/dist/helpers/expressions.js +223 -8
  347. package/dist/helpers/expressions.js.map +1 -1
  348. package/dist/helpers/hoveringPointer.d.ts +26 -0
  349. package/dist/helpers/hoveringPointer.d.ts.map +1 -0
  350. package/dist/helpers/hoveringPointer.js +29 -0
  351. package/dist/helpers/hoveringPointer.js.map +1 -0
  352. package/dist/helpers/markdownText.d.ts +14 -0
  353. package/dist/helpers/markdownText.d.ts.map +1 -0
  354. package/dist/helpers/markdownText.js +160 -0
  355. package/dist/helpers/markdownText.js.map +1 -0
  356. package/dist/helpers/qorusTypeCatalogue.d.ts +53 -0
  357. package/dist/helpers/qorusTypeCatalogue.d.ts.map +1 -0
  358. package/dist/helpers/qorusTypeCatalogue.js +262 -0
  359. package/dist/helpers/qorusTypeCatalogue.js.map +1 -0
  360. package/dist/helpers/readableColors.d.ts +36 -0
  361. package/dist/helpers/readableColors.d.ts.map +1 -0
  362. package/dist/helpers/readableColors.js +116 -0
  363. package/dist/helpers/readableColors.js.map +1 -0
  364. package/dist/helpers/templateItems.d.ts +2 -2
  365. package/dist/helpers/templateItems.d.ts.map +1 -1
  366. package/dist/helpers/templateItems.js +6 -4
  367. package/dist/helpers/templateItems.js.map +1 -1
  368. package/dist/helpers/templates.d.ts +26 -1
  369. package/dist/helpers/templates.d.ts.map +1 -1
  370. package/dist/helpers/templates.js +41 -6
  371. package/dist/helpers/templates.js.map +1 -1
  372. package/dist/helpers/validations.d.ts +9 -0
  373. package/dist/helpers/validations.d.ts.map +1 -1
  374. package/dist/helpers/validations.js +139 -33
  375. package/dist/helpers/validations.js.map +1 -1
  376. package/dist/hooks/useQorusTypes.d.ts +7 -15
  377. package/dist/hooks/useQorusTypes.d.ts.map +1 -1
  378. package/dist/hooks/useQorusTypes.js +25 -166
  379. package/dist/hooks/useQorusTypes.js.map +1 -1
  380. package/dist/hooks/useReadableIntentShade.d.ts +9 -0
  381. package/dist/hooks/useReadableIntentShade.d.ts.map +1 -0
  382. package/dist/hooks/useReadableIntentShade.js +23 -0
  383. package/dist/hooks/useReadableIntentShade.js.map +1 -0
  384. package/dist/hooks/useReadableOpacity.d.ts +6 -0
  385. package/dist/hooks/useReadableOpacity.d.ts.map +1 -0
  386. package/dist/hooks/useReadableOpacity.js +17 -0
  387. package/dist/hooks/useReadableOpacity.js.map +1 -0
  388. package/dist/index.d.ts +1 -0
  389. package/dist/index.d.ts.map +1 -1
  390. package/dist/index.js +1 -0
  391. package/dist/index.js.map +1 -1
  392. package/dist/tracking/ui/ExperimentCard.d.ts +1 -1
  393. package/dist/tracking/ui/ExperimentCard.d.ts.map +1 -1
  394. package/dist/tracking/ui/ExperimentCard.js +26 -10
  395. package/dist/tracking/ui/ExperimentCard.js.map +1 -1
  396. package/dist/tracking/ui/card.d.ts +2 -2
  397. package/dist/tracking/ui/card.d.ts.map +1 -1
  398. package/dist/tracking/ui/card.js +2 -2
  399. package/dist/tracking/ui/card.js.map +1 -1
  400. package/dist/tracking/ui/readable.d.ts +14 -0
  401. package/dist/tracking/ui/readable.d.ts.map +1 -0
  402. package/dist/tracking/ui/readable.js +60 -0
  403. package/dist/tracking/ui/readable.js.map +1 -0
  404. package/package.json +14 -5
  405. package/.claude/CLAUDE.md +0 -317
  406. package/.tasks/EXPORT_EXPRESSION_BUILDER.md +0 -38
  407. package/.tasks/EXPRESSION_BUILDER_REPORT.md +0 -149
  408. package/.tasks/EXPRESSION_FIELD_SEAMS.md +0 -66
  409. package/.tasks/FIELD_STACK_REPORT.md +0 -234
  410. package/.tasks/FORM_ENGINE_COMPACT_READ_FIRST.md +0 -558
  411. package/.tasks/FORM_ENGINE_EXPRESSIONS.md +0 -197
  412. package/.tasks/FORM_ENGINE_OPTIONS_SYNC.md +0 -95
  413. package/.tasks/FORM_FIELD_EXTRAS.md +0 -72
  414. package/.tasks/INDEX.md +0 -111
  415. package/.tasks/LSP_SHARED_CONNECTION.md +0 -75
  416. package/.tasks/QONSOLE_ASSIST_FEATURES.md +0 -306
  417. package/.tasks/RENDER_EXPRESSION_LSP.md +0 -159
  418. package/.tasks/REQRAFT_AUTO_FIELD.md +0 -176
  419. package/.tasks/SCHEMA_DEFINITION_FIELD.md +0 -250
  420. package/.tasks/SMART_EDITOR_CONTEXT_AND_POLISH.md +0 -340
  421. package/.tasks/SMART_EDITOR_LSP_FEATURES.md +0 -299
  422. package/.tasks/SMART_EDITOR_REVIEW_FOLLOWUPS.md +0 -280
  423. package/.tasks/SMART_EDITOR_UX_POLISH.md +0 -383
  424. package/.tasks/SMART_EDITOR_VISUAL_POLISH.md +0 -246
  425. package/.tasks/STORY_NETWORK_ISOLATION.md +0 -98
  426. package/.tasks/TEMPLATE_TOKEN_GRAMMAR.md +0 -72
  427. package/CODE_OF_CONDUCT.md +0 -105
  428. package/CONTRIBUTING.MD +0 -78
  429. package/SECURITY.md +0 -3
  430. package/chromatic.config.json +0 -5
  431. package/design/COMPACT_ENGINE_REDESIGN.md +0 -156
  432. package/design/COMPACT_INFO_DISPLAY.md +0 -87
  433. package/design/COMPACT_PARITY.md +0 -85
  434. package/design/EXPRESSION_BUILDER_REPORT_STRATEGY.md +0 -92
  435. package/design/FORM_ENGINE_COMPACT.md +0 -300
  436. package/design/FORM_ENGINE_COMPACT_UX_PLAN.md +0 -353
  437. package/design/FORM_ENGINE_EXPRESSIONS.md +0 -257
  438. package/design/FORM_ENGINE_FIELD_MIGRATION.md +0 -419
  439. package/design/IDE_INTEGRATION.md +0 -64
  440. package/design/RENDER_EXPRESSION_TRANSPORT.md +0 -156
  441. package/design/SELECT_DIALOG_FLOOR.md +0 -86
  442. package/design/SMART_EDITOR_UX.md +0 -438
  443. package/design/TRACKING.md +0 -290
  444. package/design/UNAVAILABLE_ALLOWED_VALUES.md +0 -226
  445. package/src/components/Description/index.tsx +0 -254
  446. package/src/components/Description/markdownRendererContext.tsx +0 -29
  447. package/src/components/FocusedEditing/index.tsx +0 -50
  448. package/src/components/codeSize/index.tsx +0 -79
  449. package/src/components/composer/Composer.stories.tsx +0 -238
  450. package/src/components/composer/Composer.tsx +0 -554
  451. package/src/components/composer/helpers.ts +0 -74
  452. package/src/components/composer/index.ts +0 -2
  453. package/src/components/dpqlEditor/DpqlEditor.stories.tsx +0 -1183
  454. package/src/components/dpqlEditor/DpqlEditor.tsx +0 -219
  455. package/src/components/dpqlEditor/dpqlHelpers.ts +0 -287
  456. package/src/components/dpqlEditor/dpqlInserter.ts +0 -121
  457. package/src/components/dpqlEditor/dpqlProbe.ts +0 -165
  458. package/src/components/dpqlEditor/dpqlTags.ts +0 -114
  459. package/src/components/dpqlEditor/index.ts +0 -41
  460. package/src/components/dpqlEditor/types.ts +0 -203
  461. package/src/components/dpqlEditor/useDpqlProbe.ts +0 -33
  462. package/src/components/dpqlEditor/useDpqlSession.ts +0 -411
  463. package/src/components/form/engine/CompactRow.tsx +0 -2620
  464. package/src/components/form/engine/CompactToolbar.tsx +0 -330
  465. package/src/components/form/engine/FormEngine.stories.tsx +0 -9920
  466. package/src/components/form/engine/FormEngine.tsx +0 -4569
  467. package/src/components/form/engine/FormEngineRemote.stories.tsx +0 -679
  468. package/src/components/form/engine/FormEngineStickyHeaders.stories.tsx +0 -331
  469. package/src/components/form/engine/FormFieldsSkeleton.tsx +0 -82
  470. package/src/components/form/engine/OptionFieldMessages.tsx +0 -477
  471. package/src/components/form/engine/OptionsHelpDialog.tsx +0 -29
  472. package/src/components/form/engine/__fixtures__/basicFormOptions.ts +0 -309
  473. package/src/components/form/engine/__fixtures__/fieldChromeOptions.ts +0 -45
  474. package/src/components/form/engine/_structuredData/SchemaDataView.stories.tsx +0 -233
  475. package/src/components/form/engine/_structuredData/SchemaDataView.tsx +0 -742
  476. package/src/components/form/engine/_structuredData/StructuredDataView.stories.tsx +0 -85
  477. package/src/components/form/engine/_structuredData/StructuredDataView.tsx +0 -75
  478. package/src/components/form/engine/_structuredData/structuredData.ts +0 -145
  479. package/src/components/form/engine/compactRowContext.ts +0 -148
  480. package/src/components/form/engine/compactRowStyles.ts +0 -898
  481. package/src/components/form/engine/compactToolbarContext.ts +0 -69
  482. package/src/components/form/engine/optionActions.ts +0 -128
  483. package/src/components/form/engine/optionsContext.ts +0 -24
  484. package/src/components/form/engine/readFirst.ts +0 -1077
  485. package/src/components/form/engine/rendererTypes.ts +0 -107
  486. package/src/components/form/engine/revealRow.ts +0 -123
  487. package/src/components/form/engine/rowFocus.ts +0 -101
  488. package/src/components/form/engine/rowMenuContext.ts +0 -159
  489. package/src/components/form/engine/rowOpenPicker.ts +0 -27
  490. package/src/components/form/engine/typeChoices.ts +0 -63
  491. package/src/components/form/engine/variants/FormEngineVariants.stories.tsx +0 -159
  492. package/src/components/form/engine/variants/VariantCalmTable.tsx +0 -244
  493. package/src/components/form/engine/variants/VariantCards.tsx +0 -212
  494. package/src/components/form/engine/variants/VariantFocus.tsx +0 -382
  495. package/src/components/form/engine/variants/VariantMinimal.tsx +0 -170
  496. package/src/components/form/engine/variants/focusDemo.ts +0 -145
  497. package/src/components/form/engine/variants/variantModel.ts +0 -223
  498. package/src/components/form/engine/variants/variantParts.tsx +0 -313
  499. package/src/components/form/expressions/DpqlRendering.tsx +0 -85
  500. package/src/components/form/expressions/ExpressionField.stories.tsx +0 -1395
  501. package/src/components/form/expressions/ExpressionField.tsx +0 -503
  502. package/src/components/form/expressions/argumentPresence.ts +0 -213
  503. package/src/components/form/expressions/builder/ExpressionBuilder.stories.tsx +0 -1683
  504. package/src/components/form/expressions/builder/argumentDetail.tsx +0 -17
  505. package/src/components/form/expressions/builder/argumentLabel.tsx +0 -146
  506. package/src/components/form/expressions/builder/argumentSlot.tsx +0 -101
  507. package/src/components/form/expressions/builder/argumentWrapper.tsx +0 -243
  508. package/src/components/form/expressions/builder/confirmMismatchedTypesModal.tsx +0 -120
  509. package/src/components/form/expressions/builder/confirmUnsupportedTypeModal.tsx +0 -69
  510. package/src/components/form/expressions/builder/index.tsx +0 -1545
  511. package/src/components/form/expressions/builder/item.tsx +0 -89
  512. package/src/components/form/expressions/builder/moveToPositionStrip.tsx +0 -156
  513. package/src/components/form/expressions/builder/renderTemplate.tsx +0 -42
  514. package/src/components/form/expressions/dpqlMockLanguage.ts +0 -566
  515. package/src/components/form/expressions/dpqlMockLsp.ts +0 -126
  516. package/src/components/form/expressions/mockExpressions.ts +0 -317
  517. package/src/components/form/expressions/renderExpressionToText.ts +0 -137
  518. package/src/components/form/expressions/types.ts +0 -110
  519. package/src/components/form/expressions/useExpressions.ts +0 -101
  520. package/src/components/form/expressions/useRenderExpression.ts +0 -165
  521. package/src/components/form/fields/Field.stories.tsx +0 -143
  522. package/src/components/form/fields/Field.tsx +0 -732
  523. package/src/components/form/fields/allowed-values/AllowedValues.tsx +0 -297
  524. package/src/components/form/fields/array/ArrayAuto.tsx +0 -237
  525. package/src/components/form/fields/array/ArrayAutoField.stories.tsx +0 -475
  526. package/src/components/form/fields/array/ArrayAutoField.tsx +0 -367
  527. package/src/components/form/fields/auto/AutoFormField.stories.tsx +0 -825
  528. package/src/components/form/fields/auto/AutoFormField.tsx +0 -1164
  529. package/src/components/form/fields/binary/Binary.stories.tsx +0 -122
  530. package/src/components/form/fields/binary/Binary.tsx +0 -91
  531. package/src/components/form/fields/boolean/Boolean.stories.tsx +0 -125
  532. package/src/components/form/fields/boolean/Boolean.tsx +0 -34
  533. package/src/components/form/fields/byte-size/ByteSize.stories.tsx +0 -87
  534. package/src/components/form/fields/byte-size/ByteSize.tsx +0 -58
  535. package/src/components/form/fields/color/Color.stories.tsx +0 -99
  536. package/src/components/form/fields/color/Color.tsx +0 -46
  537. package/src/components/form/fields/cron/Cron.stories.tsx +0 -68
  538. package/src/components/form/fields/cron/Cron.tsx +0 -80
  539. package/src/components/form/fields/date/Date.stories.tsx +0 -77
  540. package/src/components/form/fields/date/Date.tsx +0 -55
  541. package/src/components/form/fields/emittedValues.ts +0 -70
  542. package/src/components/form/fields/file/File.stories.tsx +0 -161
  543. package/src/components/form/fields/file/File.tsx +0 -227
  544. package/src/components/form/fields/long-string/LongString.stories.tsx +0 -120
  545. package/src/components/form/fields/long-string/LongString.tsx +0 -130
  546. package/src/components/form/fields/markdown/Markdown.stories.tsx +0 -76
  547. package/src/components/form/fields/markdown/Markdown.tsx +0 -81
  548. package/src/components/form/fields/markdown/MarkdownView.tsx +0 -222
  549. package/src/components/form/fields/multi-select/MultiSelectFormField.tsx +0 -139
  550. package/src/components/form/fields/number/Number.stories.tsx +0 -159
  551. package/src/components/form/fields/number/Number.tsx +0 -160
  552. package/src/components/form/fields/object/Object.stories.tsx +0 -398
  553. package/src/components/form/fields/object/Object.tsx +0 -255
  554. package/src/components/form/fields/radio-group/RadioGroup.stories.tsx +0 -95
  555. package/src/components/form/fields/radio-group/RadioGroup.tsx +0 -46
  556. package/src/components/form/fields/radio-group/images/java-96x128.png +0 -0
  557. package/src/components/form/fields/radio-group/images/python-129x128.png +0 -0
  558. package/src/components/form/fields/radio-group/images/qore-106x128.png +0 -0
  559. package/src/components/form/fields/rich-text/RichText.stories.tsx +0 -260
  560. package/src/components/form/fields/rich-text/RichText.tsx +0 -537
  561. package/src/components/form/fields/schema-definition/CatalogLeafForm.tsx +0 -242
  562. package/src/components/form/fields/schema-definition/CatalogNodeEditor.tsx +0 -758
  563. package/src/components/form/fields/schema-definition/Hint.tsx +0 -22
  564. package/src/components/form/fields/schema-definition/InlineValidationBanner.tsx +0 -138
  565. package/src/components/form/fields/schema-definition/Loader.tsx +0 -20
  566. package/src/components/form/fields/schema-definition/MigrationsTab.tsx +0 -187
  567. package/src/components/form/fields/schema-definition/SchemaDefinitionField.stories.tsx +0 -286
  568. package/src/components/form/fields/schema-definition/TableEditor.tsx +0 -155
  569. package/src/components/form/fields/schema-definition/TablesTab.tsx +0 -138
  570. package/src/components/form/fields/schema-definition/catalog.ts +0 -237
  571. package/src/components/form/fields/schema-definition/helpers.ts +0 -90
  572. package/src/components/form/fields/schema-definition/index.tsx +0 -418
  573. package/src/components/form/fields/schema-definition/mockCatalog.ts +0 -325
  574. package/src/components/form/fields/schema-definition/mockDefinition.ts +0 -111
  575. package/src/components/form/fields/schema-definition/referenceSuggestions.tsx +0 -152
  576. package/src/components/form/fields/schema-definition/starterTemplate.ts +0 -68
  577. package/src/components/form/fields/schema-definition/types.ts +0 -185
  578. package/src/components/form/fields/schema-definition/useSchemaOptionCatalog.ts +0 -49
  579. package/src/components/form/fields/select/Select.stories.tsx +0 -872
  580. package/src/components/form/fields/select/Select.tsx +0 -624
  581. package/src/components/form/fields/select/SelectCollection.tsx +0 -594
  582. package/src/components/form/fields/string/String.stories.tsx +0 -86
  583. package/src/components/form/fields/string/String.tsx +0 -43
  584. package/src/components/form/fields/template/ExampleValueModal.stories.tsx +0 -114
  585. package/src/components/form/fields/template/ExampleValueModal.tsx +0 -99
  586. package/src/components/form/fields/template/ReadOnlyTemplateTag.tsx +0 -47
  587. package/src/components/form/fields/template/TemplateField.stories.tsx +0 -1121
  588. package/src/components/form/fields/template/TemplateField.tsx +0 -1717
  589. package/src/components/form/fields/template/TemplateText.tsx +0 -115
  590. package/src/components/form/fields/template/__fixtures__/longExampleValue.ts +0 -7
  591. package/src/components/form/fields/template/__fixtures__/multiLevelTemplates.json +0 -147
  592. package/src/components/form/fields/template/__fixtures__/templates.json +0 -83
  593. package/src/components/form/fields/timeout/Timeout.stories.tsx +0 -228
  594. package/src/components/form/fields/timeout/Timeout.tsx +0 -87
  595. package/src/components/form/fields/url/Url.stories.tsx +0 -94
  596. package/src/components/form/fields/url/Url.tsx +0 -85
  597. package/src/components/form/index.tsx +0 -47
  598. package/src/components/imageLightbox/ImageLightbox.stories.tsx +0 -238
  599. package/src/components/imageLightbox/ImageLightbox.tsx +0 -236
  600. package/src/components/imageLightbox/index.ts +0 -1
  601. package/src/components/log/Log.stories.tsx +0 -333
  602. package/src/components/log/Log.tsx +0 -285
  603. package/src/components/menu/Menu.stories.tsx +0 -155
  604. package/src/components/menu/Menu.tsx +0 -312
  605. package/src/components/qonsoleSmartInput/QonsoleSmartInput.stories.tsx +0 -797
  606. package/src/components/qonsoleSmartInput/QonsoleSmartInput.tsx +0 -105
  607. package/src/components/qonsoleSmartInput/index.ts +0 -16
  608. package/src/components/qonsoleSmartInput/qonsoleInserter.ts +0 -77
  609. package/src/components/qonsoleSmartInput/types.ts +0 -133
  610. package/src/components/qonsoleSmartInput/useQonsoleSession.ts +0 -124
  611. package/src/components/searchFilterBar/SearchFilterBar.stories.tsx +0 -62
  612. package/src/components/searchFilterBar/SearchFilterBar.tsx +0 -144
  613. package/src/components/searchFilterBar/index.ts +0 -1
  614. package/src/components/smartEditor/MarkdownDoc.tsx +0 -190
  615. package/src/components/smartEditor/SmartEditor.stories.tsx +0 -475
  616. package/src/components/smartEditor/SmartEditor.tsx +0 -808
  617. package/src/components/smartEditor/__fixtures__/mockLspServer.ts +0 -205
  618. package/src/components/smartEditor/helpers.ts +0 -217
  619. package/src/components/smartEditor/index.ts +0 -35
  620. package/src/components/smartEditor/styling.ts +0 -45
  621. package/src/components/smartEditor/types.ts +0 -211
  622. package/src/components/smartEditor/useLspAutocomplete.ts +0 -758
  623. package/src/components/smartEditor/useLspDiagnosticDecorations.ts +0 -125
  624. package/src/components/smartEditor/useLspHover.ts +0 -230
  625. package/src/components/smartEditor/useLspSemanticTokens.ts +0 -298
  626. package/src/components/smartEditor/useLspSession.ts +0 -231
  627. package/src/components/smartEditor/useLspSignatureHelp.ts +0 -198
  628. package/src/components/supportTicket/AttachmentChips.stories.tsx +0 -171
  629. package/src/components/supportTicket/AttachmentChips.tsx +0 -147
  630. package/src/components/supportTicket/InterfaceReferenceTags.stories.tsx +0 -257
  631. package/src/components/supportTicket/InterfaceReferenceTags.tsx +0 -129
  632. package/src/components/supportTicket/ReferencePicker.stories.tsx +0 -584
  633. package/src/components/supportTicket/ReferencePicker.tsx +0 -563
  634. package/src/components/supportTicket/TicketConversation.stories.tsx +0 -121
  635. package/src/components/supportTicket/TicketHeader.stories.tsx +0 -183
  636. package/src/components/supportTicket/TicketHeader.tsx +0 -247
  637. package/src/components/supportTicket/TicketMetaTags.stories.tsx +0 -103
  638. package/src/components/supportTicket/TicketMetaTags.tsx +0 -85
  639. package/src/components/supportTicket/TicketReplyBox.stories.tsx +0 -354
  640. package/src/components/supportTicket/TicketReplyBox.tsx +0 -150
  641. package/src/components/supportTicket/__fixtures__/kindMarks.ts +0 -28
  642. package/src/components/supportTicket/attachmentAccess.ts +0 -97
  643. package/src/components/supportTicket/fileToAttachment.ts +0 -24
  644. package/src/components/supportTicket/index.ts +0 -10
  645. package/src/components/supportTicket/meta.ts +0 -206
  646. package/src/components/supportTicket/ticketModel.ts +0 -131
  647. package/src/components/supportTicket/useLoadedImages.ts +0 -73
  648. package/src/components/ticketReferences/TicketReferences.stories.tsx +0 -315
  649. package/src/components/ticketReferences/TicketReferences.tsx +0 -906
  650. package/src/components/ticketReferences/index.ts +0 -2
  651. package/src/components/ticketThread/TicketThread.stories.tsx +0 -829
  652. package/src/components/ticketThread/TicketThread.tsx +0 -719
  653. package/src/components/ticketThread/index.ts +0 -6
  654. package/src/contexts/FetchContext.tsx +0 -25
  655. package/src/contexts/ReqraftContext.tsx +0 -9
  656. package/src/contexts/StorageContext.tsx +0 -33
  657. package/src/global.d.ts +0 -4
  658. package/src/helpers/allowedValues.ts +0 -249
  659. package/src/helpers/choiceChip.ts +0 -227
  660. package/src/helpers/common.ts +0 -326
  661. package/src/helpers/dpqlDetection.ts +0 -209
  662. package/src/helpers/expressions.ts +0 -140
  663. package/src/helpers/optionUiTypes.ts +0 -199
  664. package/src/helpers/options.ts +0 -150
  665. package/src/helpers/providerValue.ts +0 -125
  666. package/src/helpers/scrollbar.ts +0 -32
  667. package/src/helpers/singleLineString.ts +0 -61
  668. package/src/helpers/templateItems.ts +0 -81
  669. package/src/helpers/templateText.ts +0 -350
  670. package/src/helpers/templates.ts +0 -602
  671. package/src/helpers/validations.ts +0 -2085
  672. package/src/hooks/useArgSchema.ts +0 -37
  673. package/src/hooks/useCoarsePointer.ts +0 -30
  674. package/src/hooks/useFetch/useFetch.stories.tsx +0 -379
  675. package/src/hooks/useFetch/useFetch.tsx +0 -154
  676. package/src/hooks/usePhoneViewport.ts +0 -34
  677. package/src/hooks/useQorusTypes.ts +0 -233
  678. package/src/hooks/useReqraftProperty.ts +0 -16
  679. package/src/hooks/useStorage/useStorage.stories.tsx +0 -168
  680. package/src/hooks/useStorage/useStorage.ts +0 -35
  681. package/src/hooks/useTemplates.ts +0 -123
  682. package/src/hooks/useValidation.ts +0 -9
  683. package/src/hooks/useWebSocket/useWebSocket.ts +0 -224
  684. package/src/hooks/useWebSocket/useWebsocket.stories.tsx +0 -640
  685. package/src/hooks/useWhyDidYouUpdate.ts +0 -38
  686. package/src/index.tsx +0 -86
  687. package/src/providers/FetchProvider.tsx +0 -40
  688. package/src/providers/ReqraftProvider.tsx +0 -52
  689. package/src/providers/StorageProvider.tsx +0 -131
  690. package/src/stores/currentUser/currentUser.stories.tsx +0 -100
  691. package/src/stores/currentUser/currentUser.tsx +0 -94
  692. package/src/stories/Data/fileFieldArgSchema.json +0 -86
  693. package/src/stories/Tests/utils.ts +0 -320
  694. package/src/stories/storyNetwork.ts +0 -92
  695. package/src/stories/tracking.tsx +0 -206
  696. package/src/tracking/browser/attach.ts +0 -186
  697. package/src/tracking/browser/env.ts +0 -78
  698. package/src/tracking/core/consent.ts +0 -37
  699. package/src/tracking/core/engagement.ts +0 -47
  700. package/src/tracking/core/experiments.ts +0 -258
  701. package/src/tracking/core/hash.ts +0 -26
  702. package/src/tracking/core/ids.ts +0 -25
  703. package/src/tracking/core/observable.ts +0 -23
  704. package/src/tracking/core/queue.ts +0 -131
  705. package/src/tracking/core/sections.ts +0 -166
  706. package/src/tracking/core/storage.ts +0 -69
  707. package/src/tracking/core/tracker.ts +0 -417
  708. package/src/tracking/core/types.ts +0 -162
  709. package/src/tracking/core/utm.ts +0 -23
  710. package/src/tracking/index.ts +0 -72
  711. package/src/tracking/markup.ts +0 -17
  712. package/src/tracking/react/Experiment.tsx +0 -44
  713. package/src/tracking/react/TrackingProvider.tsx +0 -56
  714. package/src/tracking/react/hooks.ts +0 -106
  715. package/src/tracking/react/index.ts +0 -13
  716. package/src/tracking/testing.ts +0 -108
  717. package/src/tracking/ui/ExperimentCard.stories.tsx +0 -296
  718. package/src/tracking/ui/ExperimentCard.tsx +0 -667
  719. package/src/tracking/ui/ExperimentsOverlay.stories.tsx +0 -155
  720. package/src/tracking/ui/ExperimentsOverlay.tsx +0 -437
  721. package/src/tracking/ui/anchor.ts +0 -180
  722. package/src/tracking/ui/card.ts +0 -464
  723. package/src/tracking/ui/client.ts +0 -117
  724. package/src/tracking/ui/index.ts +0 -77
  725. package/src/tracking/ui/types.ts +0 -110
  726. package/src/tracking/ui/useExperimentsAdmin.ts +0 -103
  727. package/src/types/Form.ts +0 -29
  728. package/src/types.ts +0 -14
  729. package/src/utils/datetime.ts +0 -10
  730. package/src/utils/fetch.ts +0 -457
  731. package/src/utils/lspClient.ts +0 -711
  732. package/src/utils/lspClient.types.ts +0 -211
  733. package/src/utils/queryUnlessCancelled.ts +0 -28
  734. package/src/utils/websocket.ts +0 -293
  735. package/vite.config.ts +0 -58
  736. package/vitest.config.ts +0 -69
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domProps.d.ts","sourceRoot":"","sources":["../../src/helpers/domProps.ts"],"names":[],"mappings":"AAgCA,gHAAgH;AAChH,eAAO,MAAM,iBAAiB,SAAU,MAAM,KAAG,OACmC,CAAC;AAErF,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,4BAA6B,CAAC,KAAG,QAAQ,CAAC,CAGtD,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // Copyright 2026 Qore Technologies, s.r.o.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.htmlElementProps = exports.isHtmlElementProp = void 0;
5
+ /**
6
+ * The attributes any HTML element takes, beside `aria-*`, `data-*` and event handlers (qorus#646).
7
+ *
8
+ * A component that renders a plain element and takes the rest of its props for it passes that element only these.
9
+ * What else it is handed is not an attribute: a Reqore control group hands each component in it its layout props
10
+ * (`fluid`, `spaceBetween`, `size`, `intent`, `customTheme`, ...), and spread onto an element React warns of each
11
+ * ("Received `true` for a non-boolean attribute `fluid`") and writes the rest into the DOM.
12
+ */
13
+ var GLOBAL_ATTRIBUTES = new Set([
14
+ 'id',
15
+ 'className',
16
+ 'style',
17
+ 'title',
18
+ 'role',
19
+ 'tabIndex',
20
+ 'lang',
21
+ 'dir',
22
+ 'hidden',
23
+ 'translate',
24
+ 'draggable',
25
+ 'slot',
26
+ 'accessKey',
27
+ 'autoFocus',
28
+ 'inert',
29
+ 'contentEditable',
30
+ 'spellCheck',
31
+ 'suppressContentEditableWarning',
32
+ 'suppressHydrationWarning',
33
+ ]);
34
+ /** Whether a prop is one any HTML element takes: a global attribute, `aria-*`, `data-*` or an event handler. */
35
+ var isHtmlElementProp = function (name) {
36
+ return GLOBAL_ATTRIBUTES.has(name) || /^(aria|data)-/.test(name) || /^on[A-Z]/.test(name);
37
+ };
38
+ exports.isHtmlElementProp = isHtmlElementProp;
39
+ /** The props any HTML element takes, and nothing else; see `isHtmlElementProp`. */
40
+ var htmlElementProps = function (props) {
41
+ return Object.fromEntries(Object.entries(props).filter(function (_a) {
42
+ var name = _a[0];
43
+ return (0, exports.isHtmlElementProp)(name);
44
+ }));
45
+ };
46
+ exports.htmlElementProps = htmlElementProps;
47
+ //# sourceMappingURL=domProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domProps.js","sourceRoot":"","sources":["../../src/helpers/domProps.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAE3C;;;;;;;GAOG;AACH,IAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,IAAI;IACJ,WAAW;IACX,OAAO;IACP,OAAO;IACP,MAAM;IACN,UAAU;IACV,MAAM;IACN,KAAK;IACL,QAAQ;IACR,WAAW;IACX,WAAW;IACX,MAAM;IACN,WAAW;IACX,WAAW;IACX,OAAO;IACP,iBAAiB;IACjB,YAAY;IACZ,gCAAgC;IAChC,0BAA0B;CAC3B,CAAC,CAAC;AAEH,gHAAgH;AACzG,IAAM,iBAAiB,GAAG,UAAC,IAAY;IAC5C,OAAA,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;AAAlF,CAAkF,CAAC;AADxE,QAAA,iBAAiB,qBACuD;AAErF,mFAAmF;AAC5E,IAAM,gBAAgB,GAAG,UAAmB,KAAQ;IACzD,OAAA,MAAM,CAAC,WAAW,CAChB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAC,EAAM;YAAL,IAAI,QAAA;QAAM,OAAA,IAAA,yBAAiB,EAAC,IAAI,CAAC;IAAvB,CAAuB,CAAC,CACpD;AAFf,CAEe,CAAC;AAHL,QAAA,gBAAgB,oBAGX"}
@@ -1,6 +1,13 @@
1
1
  import { IExpression, IExpressionSchema, IExpressionSchemaArg } from '../components/form/expressions/types';
2
2
  import { IQorusTypeObject } from '../hooks/useQorusTypes';
3
- export declare const getArgumentType: (expressions: IExpressionSchema[], arg?: IExpression, schema?: IExpressionSchemaArg) => string;
3
+ /**
4
+ * The UI type of an argument: a value's own type, or, for an expression, the
5
+ * type the server gave for it (`useExpressionType`) — an expression's type is
6
+ * never worked out here, so it is the same as everywhere else in Qorus
7
+ * (qoretechnologies/qorus#713). `any`, which nothing is judged by, until the
8
+ * server has given it.
9
+ */
10
+ export declare const getArgumentType: (_expressions: IExpressionSchema[], arg?: IExpression, schema?: IExpressionSchemaArg) => string;
4
11
  export declare const argumentMatchesType: (expressions: IExpressionSchema[], arg: IExpression | undefined, schema: IExpressionSchemaArg) => boolean;
5
12
  export declare const areQorusTypesCompatible: (mainType: string | string[], checkType: string | string[], fallbackTypes?: IQorusTypeObject[]) => boolean;
6
13
  /**
@@ -10,8 +17,106 @@ export declare const areQorusTypesCompatible: (mainType: string | string[], chec
10
17
  * instead (`@status == "open"`, `@note != ""`). The Qorus server applies the same rule.
11
18
  */
12
19
  export declare const isTextOrDateType: (type: string) => boolean;
13
- /** Whether a place takes a condition: its result must be true or false (`bool`, or a list of only that). */
20
+ /**
21
+ * Whether a place takes a condition: its result must be true or false (`bool`, optional or soft, or a list of
22
+ * only that).
23
+ */
14
24
  export declare const isConditionType: (returnType: string | string[] | undefined) => boolean;
25
+ /**
26
+ * What an editor says of a condition that gives this type (qorus#646): nothing for true or false or a type it
27
+ * cannot tell (`any`, `auto`); an error for text, a date or a time, which do not say plainly what is meant;
28
+ * and a warning for any other (a number, a list, a hash), which the condition reads as true unless it is
29
+ * zero or empty - accepted, as the Qorus server accepts it, but said, because it is seldom what was meant.
30
+ * qorus-ide says the same of its own condition editors.
31
+ */
32
+ export declare const conditionVerdict: (type: string | undefined) => 'error' | 'warning' | undefined;
33
+ /**
34
+ * Whether a field is a condition: its schema's `metadata.condition`, the mark a host sets on the options that
35
+ * are conditions (a Qog transition's value, a built-in if's value, a while or for block's condition). The
36
+ * schema's own `type` cannot say it: a value of type bool is not a condition.
37
+ */
38
+ export declare const isConditionOption: (field: {
39
+ metadata?: Record<string, unknown>;
40
+ } | undefined) => boolean;
41
+ /** A type as a condition reads it: without the optional mark, `soft`, or what a list or hash holds. */
42
+ export declare const conditionBaseType: (type: string | undefined) => string;
43
+ /**
44
+ * What is said of a condition that gives text, a date or a time (NOT_A_CONDITION): what it gives, and how to make
45
+ * it one, with an example for its type. `typeInSentence` is the type named inside a sentence - its sentence form
46
+ * ("text"), as `qorusTypeSentenceForm` gives it - and `baseType` the type it is (`string`, `date`, `time`): the
47
+ * example follows it. These are the server's words: a fallback for when it said none, never a second wording of
48
+ * them. With no type to name, the sentence names none: "The condition must evaluate to true or false. …".
49
+ */
50
+ export declare const conditionErrorText: (typeInSentence: string | undefined, baseType: string | undefined) => string;
51
+ /**
52
+ * What the expression builder says of an expression whose result does not fit its place: what it gives, what the
53
+ * place takes, and what to do. `gives` and `takes` name the types inside the sentence - their sentence forms ("a
54
+ * whole number"), as `qorusTypeSentenceForm` gives them, `takes` joined with "or" where a place takes more than
55
+ * one - and `gives` is undefined for an expression that gives nothing yet, `takes` for a place whose type is not
56
+ * known: the sentence then says what it gives without naming a type it cannot name (qorus#646).
57
+ */
58
+ export declare const expressionTypeMismatchText: (gives: string | undefined, takes: string | undefined) => string;
59
+ /**
60
+ * What the builder's conversion list says of an argument it converts: from what to what. `from` and `to` name the
61
+ * types inside the sentence - their sentence forms, as `qorusTypeSentenceForm` gives them - and either is undefined
62
+ * where the type is not known; the sentence then names only the other, or neither (qorus#646).
63
+ */
64
+ export declare const conversionText: (from: string | undefined, to: string | undefined) => string;
65
+ /**
66
+ * What is said of a condition that gives a number, a list, a hash or a type that is not known
67
+ * (CONDITION_BY_TRUTHINESS): how Qorus reads it, and how to say it explicitly, by the type it gives - named by its
68
+ * sentence form ("a whole number", "key-value pairs (a hash)"), as the server names it
69
+ * (`QonsoleDesignI18n::conditionByTruthinessText`, qorus 04e6c502f). These are the server's words: a fallback for
70
+ * when it said none.
71
+ */
72
+ export declare const conditionByTruthinessText: (type: string | undefined) => string;
73
+ /** The operators whose every part is read as true or false by its value: AND, OR and NOT. */
74
+ export declare const LOGICAL_OPERATORS: readonly ["&&", "||", "!"];
75
+ /** Whether an expression is an AND, an OR or a NOT. */
76
+ export declare const isLogicalOperation: (expression: IExpression | undefined) => boolean;
77
+ /** How the server reads a part of a condition (`dpql/parse` with `condition: true`, qorus#646). */
78
+ export type TConditionReading = 'condition' | 'truthiness' | 'not_a_condition' | 'unknown';
79
+ /** A part of an AND, an OR or a NOT in a condition: the type it gives and how it is read. */
80
+ export interface IConditionPart {
81
+ type: string;
82
+ reading: TConditionReading;
83
+ /** What the server says of it, in its words, when it says anything. */
84
+ message?: string;
85
+ }
86
+ /**
87
+ * What the server says of a whole condition, in its words: the first condition diagnostic, when the whole
88
+ * expression's type (`inferredType`) makes it one the server says something of and the diagnostic is that kind.
89
+ * Undefined when it says nothing of the whole - true or false, a type it cannot tell, or diagnostics that do not
90
+ * line up.
91
+ */
92
+ export declare const conditionWholeMessage: (inferredType: string | undefined, diagnostics: Array<{
93
+ code?: string | number;
94
+ message: string;
95
+ }>) => string | undefined;
96
+ /**
97
+ * The parts the server judged, each with what it said of it.
98
+ *
99
+ * The server says it in the diagnostics (NOT_A_CONDITION, CONDITION_BY_TRUTHINESS), in the order it judged:
100
+ * the whole expression first, then its parts - one for each that is not true or false, all over the whole
101
+ * text. The whole's own reading is the one its type gives (`inferredType`); the answer's `condition_reading`
102
+ * is the worst of all of them. A part keeps no words when the diagnostics do not line up with the readings.
103
+ */
104
+ export declare const conditionPartsWithMessages: (parts: IConditionPart[] | undefined, inferredType: string | undefined, diagnostics: Array<{
105
+ code?: string | number;
106
+ message: string;
107
+ }>) => IConditionPart[] | undefined;
108
+ /**
109
+ * Where each part the server judged is drawn, by the path of its card in the expression (the builder's
110
+ * `path`; `''` for the expression itself).
111
+ *
112
+ * The server reads each part of `&&`, `||` and `!` as a condition (qorus#646) and answers `parts` in its own
113
+ * walk order: the operands of the expression's logical operator, left to right, a nested `&&`, `||` or `!`
114
+ * standing for its own parts. A part of an AND or an OR has its own card; the part a NOT reads is drawn on
115
+ * the NOT's card. An answer whose parts are not this expression's (a stale one, or none) places nothing.
116
+ */
117
+ export declare const conditionPartCards: (expression: IExpression | undefined, parts: IConditionPart[] | undefined) => Record<string, IConditionPart>;
118
+ /** What is said of a part of a condition: nothing when it is true or false or cannot be told. */
119
+ export declare const conditionPartVerdict: (part: IConditionPart | undefined) => 'error' | 'warning' | undefined;
15
120
  /**
16
121
  * Whether an operation is offered where its result must be of `returnType`: a condition (`bool`) is
17
122
  * built from the operations whose result decides it, which is any result but text, a date or a time.
@@ -1 +1 @@
1
- {"version":3,"file":"expressions.d.ts","sourceRoot":"","sources":["../../src/helpers/expressions.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAoC,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE5F,eAAO,MAAM,eAAe,gBACb,iBAAiB,EAAE,QAC1B,WAAW,WACR,oBAAoB,WAS9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBACjB,iBAAiB,EAAE,OAC3B,WAAW,GAAG,SAAS,UACpB,oBAAoB,YAgB7B,CAAC;AAgBF,eAAO,MAAM,uBAAuB,aACxB,MAAM,GAAG,MAAM,EAAE,aAChB,MAAM,GAAG,MAAM,EAAE,kBACZ,gBAAgB,EAAE,KACjC,OAmCF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,SAAU,MAAM,KAAG,OACoC,CAAC;AAErF,4GAA4G;AAC5G,eAAO,MAAM,eAAe,eAAgB,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,KAAG,OAG3E,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,eACvB,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,cAC7B;IAAE,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAE,KACvE,OASF,CAAC"}
1
+ {"version":3,"file":"expressions.d.ts","sourceRoot":"","sources":["../../src/helpers/expressions.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EAErB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAoC,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG5F;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,iBACZ,iBAAiB,EAAE,QAC3B,WAAW,WACR,oBAAoB,WAO9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBACjB,iBAAiB,EAAE,OAC3B,WAAW,GAAG,SAAS,UACpB,oBAAoB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, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.expressionFitsReturnType = exports.isConditionType = exports.isTextOrDateType = exports.areQorusTypesCompatible = exports.argumentMatchesType = exports.getArgumentType = void 0;
14
+ exports.expressionFitsReturnType = exports.conditionPartVerdict = exports.conditionPartCards = exports.conditionPartsWithMessages = exports.conditionWholeMessage = exports.isLogicalOperation = exports.LOGICAL_OPERATORS = exports.conditionByTruthinessText = exports.conversionText = exports.expressionTypeMismatchText = exports.conditionErrorText = exports.conditionBaseType = exports.isConditionOption = exports.conditionVerdict = exports.isConditionType = exports.isTextOrDateType = exports.areQorusTypesCompatible = exports.argumentMatchesType = exports.getArgumentType = void 0;
4
15
  // Copyright 2026 Qore Technologies, s.r.o.
5
- // Expression / type-compatibility helpers — ported verbatim from qorus-ide
16
+ // Expression / type-compatibility helpers — ported from qorus-ide
6
17
  // (`src/helpers/expressions.ts` + `areQorusTypesCompatible` from
7
18
  // `src/helpers/functions.tsx`), import paths adapted to reqraft. Used by the
8
19
  // ported ExpressionBuilder.
9
20
  var lodash_1 = require("lodash");
21
+ var useExpressionType_1 = require("../components/form/expressions/useExpressionType");
10
22
  var useQorusTypes_1 = require("../hooks/useQorusTypes");
11
- var getArgumentType = function (expressions, arg, schema) {
12
- var _a;
23
+ var qorusTypeCatalogue_1 = require("./qorusTypeCatalogue");
24
+ /**
25
+ * The UI type of an argument: a value's own type, or, for an expression, the
26
+ * type the server gave for it (`useExpressionType`) — an expression's type is
27
+ * never worked out here, so it is the same as everywhere else in Qorus
28
+ * (qoretechnologies/qorus#713). `any`, which nothing is judged by, until the
29
+ * server has given it.
30
+ */
31
+ var getArgumentType = function (_expressions, arg, schema) {
32
+ var _a, _b;
13
33
  if (arg === null || arg === void 0 ? void 0 : arg.is_expression) {
14
- return (_a = expressions === null || expressions === void 0 ? void 0 : expressions.find(function (exp) { var _a; return exp.name === ((_a = arg.value) === null || _a === void 0 ? void 0 : _a.exp); })) === null || _a === void 0 ? void 0 : _a.ui_return_type;
34
+ return (_b = (_a = (0, useExpressionType_1.getCachedExpressionType)(arg.value)) === null || _a === void 0 ? void 0 : _a.ui_type) !== null && _b !== void 0 ? _b : 'any';
15
35
  }
16
36
  return (arg === null || arg === void 0 ? void 0 : arg.type) || (schema === null || schema === void 0 ? void 0 : schema.ui_type);
17
37
  };
@@ -41,8 +61,13 @@ exports.argumentMatchesType = argumentMatchesType;
41
61
  * template from it, and the picker offered a group header with nothing under
42
62
  * it. The field was not "a field with no templates" — it was a field whose
43
63
  * templates had all been filtered away by a name mismatch.
64
+ *
65
+ * Qore's other names for a type (`integer`, `boolean`) are the catalogue's name for it too: the server's catalogue
66
+ * lists and converts each type by one name only (qorus#646).
44
67
  */
45
- var normalizeAnyLikeTypeName = function (name) { return (name === 'auto' ? 'any' : name); };
68
+ var normalizeAnyLikeTypeName = function (name) {
69
+ return name === 'auto' ? 'any' : (0, qorusTypeCatalogue_1.catalogueTypeName)(name);
70
+ };
46
71
  var areQorusTypesCompatible = function (mainType, checkType, fallbackTypes) {
47
72
  var _a, _b;
48
73
  var types = (0, useQorusTypes_1.getQorusTypes)() || fallbackTypes || useQorusTypes_1.defaultQorusTypes;
@@ -99,12 +124,202 @@ var isTextOrDateType = function (type) {
99
124
  return /^(string|richtext|date|time)$/.test(type.replace(/^\*/, '').replace(/^soft/, ''));
100
125
  };
101
126
  exports.isTextOrDateType = isTextOrDateType;
102
- /** Whether a place takes a condition: its result must be true or false (`bool`, or a list of only that). */
127
+ /**
128
+ * Whether a place takes a condition: its result must be true or false (`bool`, optional or soft, or a list of
129
+ * only that).
130
+ */
103
131
  var isConditionType = function (returnType) {
104
132
  var types = (0, lodash_1.isArray)(returnType) ? returnType : returnType ? [returnType] : [];
105
- return types.length > 0 && types.every(function (type) { return /^\*?(bool|boolean)$/.test(type); });
133
+ return types.length > 0 && types.every(function (type) { return /^\*?(soft)?(bool|boolean)$/.test(type); });
106
134
  };
107
135
  exports.isConditionType = isConditionType;
136
+ /**
137
+ * What an editor says of a condition that gives this type (qorus#646): nothing for true or false or a type it
138
+ * cannot tell (`any`, `auto`); an error for text, a date or a time, which do not say plainly what is meant;
139
+ * and a warning for any other (a number, a list, a hash), which the condition reads as true unless it is
140
+ * zero or empty - accepted, as the Qorus server accepts it, but said, because it is seldom what was meant.
141
+ * qorus-ide says the same of its own condition editors.
142
+ */
143
+ var conditionVerdict = function (type) {
144
+ if (!type) {
145
+ return undefined;
146
+ }
147
+ var base = type.replace(/^\*/, '').replace(/^soft/, '').replace(/<.*$/, '');
148
+ if (!base || /^(bool|boolean|any|auto)$/.test(base)) {
149
+ return undefined;
150
+ }
151
+ return (0, exports.isTextOrDateType)(base) ? 'error' : 'warning';
152
+ };
153
+ exports.conditionVerdict = conditionVerdict;
154
+ /**
155
+ * Whether a field is a condition: its schema's `metadata.condition`, the mark a host sets on the options that
156
+ * are conditions (a Qog transition's value, a built-in if's value, a while or for block's condition). The
157
+ * schema's own `type` cannot say it: a value of type bool is not a condition.
158
+ */
159
+ var isConditionOption = function (field) { var _a; return ((_a = field === null || field === void 0 ? void 0 : field.metadata) === null || _a === void 0 ? void 0 : _a.condition) === true; };
160
+ exports.isConditionOption = isConditionOption;
161
+ /** A type as a condition reads it: without the optional mark, `soft`, or what a list or hash holds. */
162
+ var conditionBaseType = function (type) {
163
+ return (type !== null && type !== void 0 ? type : '').replace(/^\*/, '').replace(/^soft/, '').replace(/<.*$/, '');
164
+ };
165
+ exports.conditionBaseType = conditionBaseType;
166
+ /** How a condition that gives this base type is made one: compare the value (qorus#646, as the server says). */
167
+ var conditionExample = function (baseType) {
168
+ return baseType === 'date' ? '@shipped_on > @ordered_on'
169
+ : baseType === 'time' ? '@starts_at < @ends_at'
170
+ : '@status == "open"';
171
+ };
172
+ /**
173
+ * What is said of a condition that gives text, a date or a time (NOT_A_CONDITION): what it gives, and how to make
174
+ * it one, with an example for its type. `typeInSentence` is the type named inside a sentence - its sentence form
175
+ * ("text"), as `qorusTypeSentenceForm` gives it - and `baseType` the type it is (`string`, `date`, `time`): the
176
+ * example follows it. These are the server's words: a fallback for when it said none, never a second wording of
177
+ * them. With no type to name, the sentence names none: "The condition must evaluate to true or false. …".
178
+ */
179
+ var conditionErrorText = function (typeInSentence, baseType) {
180
+ return "".concat(typeInSentence ? "The condition evaluates to ".concat(typeInSentence, ", but it") : 'The condition', " must evaluate to true or false. Compare the value instead, for example ").concat(conditionExample((0, exports.conditionBaseType)(baseType)), ".");
181
+ };
182
+ exports.conditionErrorText = conditionErrorText;
183
+ /**
184
+ * What the expression builder says of an expression whose result does not fit its place: what it gives, what the
185
+ * place takes, and what to do. `gives` and `takes` name the types inside the sentence - their sentence forms ("a
186
+ * whole number"), as `qorusTypeSentenceForm` gives them, `takes` joined with "or" where a place takes more than
187
+ * one - and `gives` is undefined for an expression that gives nothing yet, `takes` for a place whose type is not
188
+ * known: the sentence then says what it gives without naming a type it cannot name (qorus#646).
189
+ */
190
+ var expressionTypeMismatchText = function (gives, takes) {
191
+ return takes ?
192
+ "This expression gives ".concat(gives !== null && gives !== void 0 ? gives : 'nothing', ", but this field takes ").concat(takes, ". Choose an expression that gives ").concat(takes, ", or put this one inside an expression that converts it.")
193
+ : "This expression gives ".concat(gives !== null && gives !== void 0 ? gives : 'nothing', ", which this field does not take. Choose another expression, or put this one inside an expression that converts it.");
194
+ };
195
+ exports.expressionTypeMismatchText = expressionTypeMismatchText;
196
+ /**
197
+ * What the builder's conversion list says of an argument it converts: from what to what. `from` and `to` name the
198
+ * types inside the sentence - their sentence forms, as `qorusTypeSentenceForm` gives them - and either is undefined
199
+ * where the type is not known; the sentence then names only the other, or neither (qorus#646).
200
+ */
201
+ var conversionText = function (from, to) {
202
+ return "Converted".concat(from ? " from ".concat(from) : '').concat(to ? " to ".concat(to) : '');
203
+ };
204
+ exports.conversionText = conversionText;
205
+ /**
206
+ * What is said of a condition that gives a number, a list, a hash or a type that is not known
207
+ * (CONDITION_BY_TRUTHINESS): how Qorus reads it, and how to say it explicitly, by the type it gives - named by its
208
+ * sentence form ("a whole number", "key-value pairs (a hash)"), as the server names it
209
+ * (`QonsoleDesignI18n::conditionByTruthinessText`, qorus 04e6c502f). These are the server's words: a fallback for
210
+ * when it said none.
211
+ */
212
+ var conditionByTruthinessText = function (type) {
213
+ var base = (0, exports.conditionBaseType)(type);
214
+ var named = (0, qorusTypeCatalogue_1.qorusTypeSentenceForm)((0, useQorusTypes_1.getQorusTypes)(), base);
215
+ if (/^(int|integer|float|number)$/.test(base)) {
216
+ return "The condition evaluates to ".concat(named, "; Qorus treats it as true unless it is 0. To make that explicit, compare it, for example @count > 0.");
217
+ }
218
+ if (base === 'list') {
219
+ return "The condition evaluates to ".concat(named, "; Qorus treats it as true unless it is empty. To make that explicit, compare its size, for example size(@items) > 0.");
220
+ }
221
+ if (base === 'hash') {
222
+ return "The condition evaluates to ".concat(named, "; Qorus treats it as true unless it holds no pairs. To make that explicit, compare its size, for example size(@details) > 0.");
223
+ }
224
+ return "The condition's value is not true or false; Qorus treats it as true unless it is 0 or empty. To make that explicit, compare it, for example @count > 0.";
225
+ };
226
+ exports.conditionByTruthinessText = conditionByTruthinessText;
227
+ /** The operators whose every part is read as true or false by its value: AND, OR and NOT. */
228
+ exports.LOGICAL_OPERATORS = ['&&', '||', '!'];
229
+ /** Whether an expression is an AND, an OR or a NOT. */
230
+ var isLogicalOperation = function (expression) {
231
+ var _a;
232
+ return !!(expression === null || expression === void 0 ? void 0 : expression.is_expression) &&
233
+ exports.LOGICAL_OPERATORS.includes((_a = expression.value) === null || _a === void 0 ? void 0 : _a.exp);
234
+ };
235
+ exports.isLogicalOperation = isLogicalOperation;
236
+ /** The server's code for what it says of a condition read as this verdict. */
237
+ var CONDITION_CODE_OF_VERDICT = { error: 'NOT_A_CONDITION', warning: 'CONDITION_BY_TRUTHINESS' };
238
+ /**
239
+ * What the server says of a whole condition, in its words: the first condition diagnostic, when the whole
240
+ * expression's type (`inferredType`) makes it one the server says something of and the diagnostic is that kind.
241
+ * Undefined when it says nothing of the whole - true or false, a type it cannot tell, or diagnostics that do not
242
+ * line up.
243
+ */
244
+ var conditionWholeMessage = function (inferredType, diagnostics) {
245
+ var verdict = (0, exports.conditionVerdict)(inferredType);
246
+ if (!verdict) {
247
+ return undefined;
248
+ }
249
+ var first = diagnostics.find(function (d) { return d.code === 'NOT_A_CONDITION' || d.code === 'CONDITION_BY_TRUTHINESS'; });
250
+ return (first === null || first === void 0 ? void 0 : first.code) === CONDITION_CODE_OF_VERDICT[verdict] ? first.message : undefined;
251
+ };
252
+ exports.conditionWholeMessage = conditionWholeMessage;
253
+ /**
254
+ * The parts the server judged, each with what it said of it.
255
+ *
256
+ * The server says it in the diagnostics (NOT_A_CONDITION, CONDITION_BY_TRUTHINESS), in the order it judged:
257
+ * the whole expression first, then its parts - one for each that is not true or false, all over the whole
258
+ * text. The whole's own reading is the one its type gives (`inferredType`); the answer's `condition_reading`
259
+ * is the worst of all of them. A part keeps no words when the diagnostics do not line up with the readings.
260
+ */
261
+ var conditionPartsWithMessages = function (parts, inferredType, diagnostics) {
262
+ if (!parts) {
263
+ return undefined;
264
+ }
265
+ var said = diagnostics.filter(function (d) { return d.code === 'NOT_A_CONDITION' || d.code === 'CONDITION_BY_TRUTHINESS'; });
266
+ var codeOf = function (reading) {
267
+ return reading === 'not_a_condition' ? 'NOT_A_CONDITION'
268
+ : reading === 'truthiness' ? 'CONDITION_BY_TRUTHINESS'
269
+ : undefined;
270
+ };
271
+ // the whole's diagnostic comes first, when its type gives it one (`conditionWholeMessage`)
272
+ var rest = (0, exports.conditionVerdict)(inferredType) ? said.slice(1) : said;
273
+ var partCodes = parts.map(function (part) { return codeOf(part.reading); }).filter(Boolean);
274
+ if (rest.length !== partCodes.length || rest.some(function (d, index) { return d.code !== partCodes[index]; })) {
275
+ return parts;
276
+ }
277
+ var next = 0;
278
+ return parts.map(function (part) {
279
+ return codeOf(part.reading) ? __assign(__assign({}, part), { message: rest[next++].message }) : part;
280
+ });
281
+ };
282
+ exports.conditionPartsWithMessages = conditionPartsWithMessages;
283
+ /**
284
+ * Where each part the server judged is drawn, by the path of its card in the expression (the builder's
285
+ * `path`; `''` for the expression itself).
286
+ *
287
+ * The server reads each part of `&&`, `||` and `!` as a condition (qorus#646) and answers `parts` in its own
288
+ * walk order: the operands of the expression's logical operator, left to right, a nested `&&`, `||` or `!`
289
+ * standing for its own parts. A part of an AND or an OR has its own card; the part a NOT reads is drawn on
290
+ * the NOT's card. An answer whose parts are not this expression's (a stale one, or none) places nothing.
291
+ */
292
+ var conditionPartCards = function (expression, parts) {
293
+ var cards = [];
294
+ var walk = function (node, path) {
295
+ var _a, _b;
296
+ ((_b = (_a = node.value) === null || _a === void 0 ? void 0 : _a.args) !== null && _b !== void 0 ? _b : []).forEach(function (arg, index) {
297
+ var _a;
298
+ var argPath = "".concat(path ? "".concat(path, ".") : '', "value.args.").concat(index);
299
+ if ((0, exports.isLogicalOperation)(arg)) {
300
+ walk(arg, argPath);
301
+ }
302
+ else {
303
+ cards.push(((_a = node.value) === null || _a === void 0 ? void 0 : _a.exp) === '!' ? path : argPath);
304
+ }
305
+ });
306
+ };
307
+ if (expression && (0, exports.isLogicalOperation)(expression)) {
308
+ walk(expression, '');
309
+ }
310
+ if (!parts || parts.length !== cards.length) {
311
+ return {};
312
+ }
313
+ return Object.fromEntries(cards.map(function (card, index) { return [card, parts[index]]; }));
314
+ };
315
+ exports.conditionPartCards = conditionPartCards;
316
+ /** What is said of a part of a condition: nothing when it is true or false or cannot be told. */
317
+ var conditionPartVerdict = function (part) {
318
+ return (part === null || part === void 0 ? void 0 : part.reading) === 'not_a_condition' ? 'error'
319
+ : (part === null || part === void 0 ? void 0 : part.reading) === 'truthiness' ? 'warning'
320
+ : undefined;
321
+ };
322
+ exports.conditionPartVerdict = conditionPartVerdict;
108
323
  /**
109
324
  * Whether an operation is offered where its result must be of `returnType`: a condition (`bool`) is
110
325
  * built from the operations whose result decides it, which is any result but text, a date or a time.
@@ -1 +1 @@
1
- {"version":3,"file":"expressions.js","sourceRoot":"","sources":["../../src/helpers/expressions.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,2EAA2E;AAC3E,iEAAiE;AACjE,6EAA6E;AAC7E,4BAA4B;AAC5B,iCAAiC;AAMjC,wDAA4F;AAErF,IAAM,eAAe,GAAG,UAC7B,WAAgC,EAChC,GAAiB,EACjB,MAA6B;;IAE7B,IAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,aAAa,EAAE,CAAC;QACvB,OAAO,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CACtB,UAAC,GAAG,YAAK,OAAA,GAAG,CAAC,IAAI,MAAK,MAAC,GAAG,CAAC,KAA0B,0CAAE,GAAG,CAAA,CAAA,EAAA,CAC3D,0CAAE,cAAc,CAAC;IACpB,CAAC;IAED,OAAO,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,MAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAA,CAAC;AACtC,CAAC,CAAC;AAZW,QAAA,eAAe,mBAY1B;AAEK,IAAM,mBAAmB,GAAG,UACjC,WAAgC,EAChC,GAA4B,EAC5B,MAA4B;;IAE5B,IAAM,KAAK,GAAG,IAAA,6BAAa,GAAE,CAAC;IAC9B,IAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,UAAC,IAAI,IAAK,OAAA,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,OAAO,EAA5B,CAA4B,CAAC,CAAC;IACzE,IAAM,OAAO,GAAG,IAAA,uBAAe,EAAC,WAAW,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;IAE1D,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;I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AEhC,OAAA,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,MAAK,iBAAiB,CAAC,CAAC,CAAC,OAAO;QAC7C,CAAC,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,MAAK,YAAY,CAAC,CAAC,CAAC,SAAS;YAC5C,CAAC,CAAC,SAAS;AAFX,CAEW,CAAC;AALD,QAAA,oBAAoB,wBAKnB;AAEd;;;;;;;;GAQG;AACI,IAAM,wBAAwB,GAAG,UACtC,UAAyC,EACzC,UAAwE;IAExE,IAAI,CAAC,IAAA,uBAAe,EAAC,UAAU,CAAC,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAM,MAAM,GAAG,UAAU,CAAC,cAAc,CAAC;IACzC,IAAI,UAAU,CAAC,qBAAqB,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,KAAK,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACzF,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CAAC,IAAA,wBAAgB,EAAC,MAAM,CAAC,CAAC;AACnC,CAAC,CAAC;AAZW,QAAA,wBAAwB,4BAYnC"}
@@ -0,0 +1,26 @@
1
+ /** What `isHoveringPointer` reads of a pointer event: a DOM `PointerEvent` or React's own. */
2
+ export interface IHoveringPointerEvent {
3
+ pointerType?: string;
4
+ buttons?: number;
5
+ }
6
+ /**
7
+ * The pointer can hover: a mouse, or a pen held above the screen. A finger cannot.
8
+ *
9
+ * A tap is followed by the mouse events a browser emulates for pages written for a mouse - `mousemove`,
10
+ * `mouseenter`, `mousedown`, `mouseup`, `click` - at the tap, with nothing in them to tell them from a mouse's.
11
+ * Something shown on `mouseenter` or `mousemove` was therefore shown by a tap too: the SmartEditor's hover
12
+ * opened where the finger had put the caret, beside its own Details button (qorus#646), and a compact form's
13
+ * group highlight lit at a tap and stayed lit until the next. The pointer event before them says what the
14
+ * pointer was, so a hover starts on a pointer event, and only for a pointer this says can hover.
15
+ *
16
+ * It is asked of each event, not of the device: a touch laptop's mouse hovers, and so does a mouse plugged
17
+ * into a tablet, whose screen is still a finger's. A pen hovers while it is held above the screen
18
+ * (`buttons` 0); pressed to it, it is drawing, not hovering.
19
+ *
20
+ * Only what cannot hover is turned away: a finger, and a pen pressed to the screen. A pointer the event does
21
+ * not name (`pointerType` '' - which the specification allows where the type cannot be told, and which
22
+ * user-event sends under some jsdom setups - or none at all) is taken for one that hovers, as reqore's
23
+ * `isHoveringPointer` takes it: taken for a finger, it hovered nothing in a consumer's test.
24
+ */
25
+ export declare const isHoveringPointer: ({ pointerType, buttons }: IHoveringPointerEvent) => boolean;
26
+ //# sourceMappingURL=hoveringPointer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hoveringPointer.d.ts","sourceRoot":"","sources":["../../src/helpers/hoveringPointer.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,iBAAiB,6BAA8B,qBAAqB,KAAG,OACd,CAAC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // Copyright 2026 Qore Technologies, s.r.o.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.isHoveringPointer = void 0;
5
+ /**
6
+ * The pointer can hover: a mouse, or a pen held above the screen. A finger cannot.
7
+ *
8
+ * A tap is followed by the mouse events a browser emulates for pages written for a mouse - `mousemove`,
9
+ * `mouseenter`, `mousedown`, `mouseup`, `click` - at the tap, with nothing in them to tell them from a mouse's.
10
+ * Something shown on `mouseenter` or `mousemove` was therefore shown by a tap too: the SmartEditor's hover
11
+ * opened where the finger had put the caret, beside its own Details button (qorus#646), and a compact form's
12
+ * group highlight lit at a tap and stayed lit until the next. The pointer event before them says what the
13
+ * pointer was, so a hover starts on a pointer event, and only for a pointer this says can hover.
14
+ *
15
+ * It is asked of each event, not of the device: a touch laptop's mouse hovers, and so does a mouse plugged
16
+ * into a tablet, whose screen is still a finger's. A pen hovers while it is held above the screen
17
+ * (`buttons` 0); pressed to it, it is drawing, not hovering.
18
+ *
19
+ * Only what cannot hover is turned away: a finger, and a pen pressed to the screen. A pointer the event does
20
+ * not name (`pointerType` '' - which the specification allows where the type cannot be told, and which
21
+ * user-event sends under some jsdom setups - or none at all) is taken for one that hovers, as reqore's
22
+ * `isHoveringPointer` takes it: taken for a finger, it hovered nothing in a consumer's test.
23
+ */
24
+ var isHoveringPointer = function (_a) {
25
+ var pointerType = _a.pointerType, buttons = _a.buttons;
26
+ return pointerType !== 'touch' && !(pointerType === 'pen' && buttons !== 0);
27
+ };
28
+ exports.isHoveringPointer = isHoveringPointer;
29
+ //# sourceMappingURL=hoveringPointer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hoveringPointer.js","sourceRoot":"","sources":["../../src/helpers/hoveringPointer.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAQ3C;;;;;;;;;;;;;;;;;;GAkBG;AACI,IAAM,iBAAiB,GAAG,UAAC,EAA+C;QAA7C,WAAW,iBAAA,EAAE,OAAO,aAAA;IACtD,OAAA,WAAW,KAAK,OAAO,IAAI,CAAC,CAAC,WAAW,KAAK,KAAK,IAAI,OAAO,KAAK,CAAC,CAAC;AAApE,CAAoE,CAAC;AAD1D,QAAA,iBAAiB,qBACyC"}
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Markdown as plain text: its words, with no marks, a blank line between its paragraphs and a line of its own for
4
+ * each list item. A fenced code block keeps its lines. Empty for anything but a string.
5
+ */
6
+ export declare const markdownToPlainText: (value: unknown) => string;
7
+ /** Markdown as prose on one line: `markdownToPlainText` with its breaks run together. */
8
+ export declare const markdownToProse: (value: unknown) => string;
9
+ /**
10
+ * Markdown as plain text to show: the text alone when it is one line, or a block that keeps its paragraph and
11
+ * line breaks (`white-space: pre-line`) when it has more.
12
+ */
13
+ export declare const plainTextNode: (value: unknown) => ReactNode;
14
+ //# sourceMappingURL=markdownText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdownText.d.ts","sourceRoot":"","sources":["../../src/helpers/markdownText.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AA0GjD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,UAAW,OAAO,KAAG,MAiCpD,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,MACO,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,SAS9C,CAAC"}