@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
@@ -1 +1 @@
1
- {"version":3,"file":"Object.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/object/Object.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAMkC;AAElC,sEAA6F;AAC7F,oDAA6B;AAC7B,+BAA6D;AAC7D,yEAA2F;AAiBpF,IAAM,8BAA8B,GAAG,UAAC,EAOuC;IANpF,IAAA,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,cAAc,oBAAA,EACX,IAAI,cALsC,mDAM9C,CADQ;IAGD,IAAA,KAAyB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAvC,UAAU,QAAA,EAAE,QAAQ,QAAmB,CAAC;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,CAChB,IACiB,EACpB,uBAAC,0BAAiB,IAAC,KAAK,EAAC,MAAM,YAC7B,uBAAC,sCAA8B,aAC7B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,CAAC,IAAI,IACX,aAAa,IACjB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAiC,IACjD,GACgB,KACT,CACd,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,52 @@
1
+ /// <reference types="react" />
2
+ /** One field's edit that waits for the field's pause before it is reported (see `usePendingEdit`). */
3
+ interface IPendingEditMember {
4
+ flush: () => void;
5
+ discard: () => void;
6
+ }
7
+ /**
8
+ * The edits the fields of one editor still hold back, for whoever closes the editor: a read-first row's Done
9
+ * sends them before the row closes, its Cancel and Escape drop them.
10
+ */
11
+ export interface IPendingEdits {
12
+ /** Sends every edit the fields in this scope still hold back, now. */
13
+ flush: () => void;
14
+ /** Drops every edit the fields in this scope still hold back: the edit is being thrown away. */
15
+ discard: () => void;
16
+ /** A field takes part for as long as it is mounted; what this returns ends that. */
17
+ join: (member: IPendingEditMember) => () => void;
18
+ }
19
+ export declare const createPendingEdits: () => IPendingEdits;
20
+ /** The scope the fields below report their held-back edits to: a read-first row's own editor. */
21
+ export declare const PendingEditsContext: import("react").Context<IPendingEdits>;
22
+ /** One `IPendingEdits` scope for the life of the component that closes the editor. */
23
+ export declare const usePendingEdits: () => IPendingEdits;
24
+ /** What a debounced field says about the edit it has not reported yet. */
25
+ export interface IPendingEdit<T> {
26
+ /** `value` is typed and waits for the pause: it is what a flush sends. */
27
+ hold: (value: T) => void;
28
+ /** Nothing waits any more: the pause reported it, it was reported at once, or a value came from outside. */
29
+ release: () => void;
30
+ }
31
+ /**
32
+ * The edit a debounced field holds back until its pause, which is never lost.
33
+ *
34
+ * A field that keeps a local copy of what is typed reports it after a short pause (react-use `useDebounce`).
35
+ * The pause's timer dies with the field, and a field goes away the moment its editor closes: a read-first
36
+ * row's Done closes the row, so a value typed and Done pressed inside the pause never reached the form - the
37
+ * row read as it had before, a required field still said "This field is required", and the host never heard
38
+ * of the edit (qorus#646).
39
+ *
40
+ * So the field says what it holds (`hold`) and when nothing is held any more (`release`), and the edit is
41
+ * sent with `send` (the latest one given):
42
+ * - when the editor's Done asks for it, before the row closes (`IPendingEdits.flush`);
43
+ * - when the field goes away any other way - another row opened in its place, a value tab switched - since
44
+ * every way out of an editor but Cancel keeps what was typed.
45
+ * Cancel and Escape drop it (`IPendingEdits.discard`): sent on the way out, the edit they are there to throw
46
+ * away would be committed by them.
47
+ *
48
+ * `send` is called only for a value held; it decides itself whether that is still a change.
49
+ */
50
+ export declare const usePendingEdit: <T>(send: (value: T) => void) => IPendingEdit<T>;
51
+ export {};
52
+ //# sourceMappingURL=pendingEdit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pendingEdit.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/pendingEdit.ts"],"names":[],"mappings":";AAGA,sGAAsG;AACtG,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,gGAAgG;IAChG,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oFAAoF;IACpF,IAAI,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,MAAM,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,kBAAkB,QAAO,aAYrC,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,mBAAmB,wCAAsD,CAAC;AAEvF,sFAAsF;AACtF,eAAO,MAAM,eAAe,QAAO,aAMlC,CAAC;AAEF,0EAA0E;AAC1E,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,0EAA0E;IAC1E,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,4GAA4G;IAC5G,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,cAAc,YAAa,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,KAAG,aAAa,CAAC,CAiC1E,CAAC"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.usePendingEdit = exports.usePendingEdits = exports.PendingEditsContext = exports.createPendingEdits = void 0;
4
+ // Copyright 2026 Qore Technologies, s.r.o.
5
+ var react_1 = require("react");
6
+ var createPendingEdits = function () {
7
+ var members = new Set();
8
+ return {
9
+ flush: function () { return members.forEach(function (member) { return member.flush(); }); },
10
+ discard: function () { return members.forEach(function (member) { return member.discard(); }); },
11
+ join: function (member) {
12
+ members.add(member);
13
+ return function () {
14
+ members.delete(member);
15
+ };
16
+ },
17
+ };
18
+ };
19
+ exports.createPendingEdits = createPendingEdits;
20
+ /** The scope the fields below report their held-back edits to: a read-first row's own editor. */
21
+ exports.PendingEditsContext = (0, react_1.createContext)(undefined);
22
+ /** One `IPendingEdits` scope for the life of the component that closes the editor. */
23
+ var usePendingEdits = function () {
24
+ var ref = (0, react_1.useRef)();
25
+ if (!ref.current) {
26
+ ref.current = (0, exports.createPendingEdits)();
27
+ }
28
+ return ref.current;
29
+ };
30
+ exports.usePendingEdits = usePendingEdits;
31
+ /**
32
+ * The edit a debounced field holds back until its pause, which is never lost.
33
+ *
34
+ * A field that keeps a local copy of what is typed reports it after a short pause (react-use `useDebounce`).
35
+ * The pause's timer dies with the field, and a field goes away the moment its editor closes: a read-first
36
+ * row's Done closes the row, so a value typed and Done pressed inside the pause never reached the form - the
37
+ * row read as it had before, a required field still said "This field is required", and the host never heard
38
+ * of the edit (qorus#646).
39
+ *
40
+ * So the field says what it holds (`hold`) and when nothing is held any more (`release`), and the edit is
41
+ * sent with `send` (the latest one given):
42
+ * - when the editor's Done asks for it, before the row closes (`IPendingEdits.flush`);
43
+ * - when the field goes away any other way - another row opened in its place, a value tab switched - since
44
+ * every way out of an editor but Cancel keeps what was typed.
45
+ * Cancel and Escape drop it (`IPendingEdits.discard`): sent on the way out, the edit they are there to throw
46
+ * away would be committed by them.
47
+ *
48
+ * `send` is called only for a value held; it decides itself whether that is still a change.
49
+ */
50
+ var usePendingEdit = function (send) {
51
+ var scope = (0, react_1.useContext)(exports.PendingEditsContext);
52
+ var sendRef = (0, react_1.useRef)(send);
53
+ sendRef.current = send;
54
+ var held = (0, react_1.useRef)(undefined);
55
+ var edit = (0, react_1.useMemo)(function () { return ({
56
+ hold: function (value) {
57
+ held.current = { value: value };
58
+ },
59
+ release: function () {
60
+ held.current = undefined;
61
+ },
62
+ flush: function () {
63
+ var pending = held.current;
64
+ if (pending) {
65
+ held.current = undefined;
66
+ sendRef.current(pending.value);
67
+ }
68
+ },
69
+ discard: function () {
70
+ held.current = undefined;
71
+ },
72
+ }); }, []);
73
+ (0, react_1.useEffect)(function () { return scope === null || scope === void 0 ? void 0 : scope.join(edit); }, [scope, edit]);
74
+ // Any other way out keeps what was typed.
75
+ (0, react_1.useEffect)(function () { return function () { return edit.flush(); }; }, [edit]);
76
+ return (0, react_1.useMemo)(function () { return ({ hold: edit.hold, release: edit.release }); }, [edit]);
77
+ };
78
+ exports.usePendingEdit = usePendingEdit;
79
+ //# sourceMappingURL=pendingEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pendingEdit.js","sourceRoot":"","sources":["../../../../src/components/form/fields/pendingEdit.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC3C,+BAA8E;AAqBvE,IAAM,kBAAkB,GAAG;IAChC,IAAM,OAAO,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC9C,OAAO;QACL,KAAK,EAAE,cAAM,OAAA,OAAO,CAAC,OAAO,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,KAAK,EA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,OAAO,EAAE;YACP,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;QAC3B,CAAC;QACD,KAAK,EAAE;YACL,IAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC7B,IAAI,OAAO,EAAE,CAAC;gBACZ,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;gBACzB,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACjC,CAAC;QACH,CAAC;QACD,OAAO,EAAE;YACP,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;QAC3B,CAAC;KACF,CAAC,EAjBI,CAiBJ,EACF,EAAE,CACH,CAAC;IAEF,IAAA,iBAAS,EAAC,cAAM,OAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,IAAI,CAAC,EAAjB,CAAiB,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IAClD,0CAA0C;IAC1C,IAAA,iBAAS,EAAC,cAAM,OAAA,cAAM,OAAA,IAAI,CAAC,KAAK,EAAE,EAAZ,CAAY,EAAlB,CAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAE5C,OAAO,IAAA,eAAO,EAAC,cAAM,OAAA,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,EAA5C,CAA4C,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7E,CAAC,CAAC;AAjCW,QAAA,cAAc,kBAiCzB"}
@@ -21,6 +21,13 @@ export interface IRichTextFormFieldProps extends Omit<IReqoreRichTextEditorProps
21
21
  onChange?: (value: string | IReqoreRichTextEditorProps['value']) => void;
22
22
  allowTemplates?: boolean;
23
23
  templates?: IReqoreFormTemplates;
24
+ /**
25
+ * The catalogue a chip is NAMED from, when it is wider than the `templates` offered: a typed field offers
26
+ * only the fields of its type, but a chip of any field in its value is named as the catalogue names it.
27
+ * Named from the offered list, a field not on it read as its reference's path ("record: pos").
28
+ * Defaults to `templates`.
29
+ */
30
+ namingTemplates?: IReqoreFormTemplates;
24
31
  /**
25
32
  * What the value is. `richtext` (the default) stores the editor's document.
26
33
  * `text` stores a plain string: each template reference in it is drawn as a
@@ -73,5 +80,5 @@ export interface IRichTextFormFieldProps extends Omit<IReqoreRichTextEditorProps
73
80
  * Exported so the mapping is assertable without rendering a Slate editor.
74
81
  */
75
82
  export declare const getChipTooltipDescriptions: (templates?: IReqoreFormTemplates) => Record<string, string>;
76
- export declare const RichTextFormField: import("react").MemoExoticComponent<({ value, onChange, allowTemplates, templates, valueFormat, singleLine, templateToken, allowed_values, choiceChip, ...rest }: IRichTextFormFieldProps) => import("react/jsx-runtime").JSX.Element>;
83
+ export declare const RichTextFormField: import("react").MemoExoticComponent<({ value, onChange, allowTemplates, templates, namingTemplates, valueFormat, singleLine, templateToken, allowed_values, choiceChip, ...rest }: IRichTextFormFieldProps) => import("react/jsx-runtime").JSX.Element>;
77
84
  //# sourceMappingURL=RichText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/rich-text/RichText.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,0BAA0B,EAG3B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAGzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAOlE,OAAO,EAOL,mBAAmB,EAGpB,MAAM,gCAAgC,CAAC;AAmBxC,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CACnD,0BAA0B,EAC1B,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAC1C;IACC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,0BAA0B,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAClC,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACtC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,eACzB,oBAAoB,KAC/B,OAAO,MAAM,EAAE,MAAM,CA0BvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,oKAW3B,uBAAuB,6CA0XxB,CAAC"}
1
+ {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/fields/rich-text/RichText.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,0BAA0B,EAG3B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AASlE,OAAO,EAOL,mBAAmB,EAGpB,MAAM,gCAAgC,CAAC;AAwBxC,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CACnD,0BAA0B,EAC1B,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAC1C;IACC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,0BAA0B,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAClC,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACtC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,eACzB,oBAAoB,KAC/B,OAAO,MAAM,EAAE,MAAM,CA0BvB,CAAC;AAcF,eAAO,MAAM,iBAAiB,qLAY3B,uBAAuB,6CA8bxB,CAAC"}
@@ -10,6 +10,42 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
13
49
  var __rest = (this && this.__rest) || function (s, e) {
14
50
  var t = {};
15
51
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -30,12 +66,21 @@ var react_1 = require("react");
30
66
  var react_use_1 = require("react-use");
31
67
  var slate_react_1 = require("slate-react");
32
68
  var emittedValues_1 = require("../emittedValues");
69
+ var pendingEdit_1 = require("../pendingEdit");
70
+ var descriptionTooltip_1 = require("../../../../helpers/descriptionTooltip");
33
71
  var choiceChip_1 = require("../../../../helpers/choiceChip");
34
72
  var singleLineString_1 = require("../../../../helpers/singleLineString");
35
- var templateItems_1 = require("../../../../helpers/templateItems");
36
73
  var templateText_1 = require("../../../../helpers/templateText");
37
74
  var templates_1 = require("../../../../helpers/templates");
38
- var markdownRendererContext_1 = require("../../../Description/markdownRendererContext");
75
+ var useTemplateTags_1 = require("./useTemplateTags");
76
+ var CompletionMenu_1 = require("../../../smartEditor/CompletionMenu");
77
+ var helpers_1 = require("../../../smartEditor/helpers");
78
+ var templateCompletions_1 = require("../../../smartEditor/templateCompletions");
79
+ var useLspAutocomplete_1 = require("../../../smartEditor/useLspAutocomplete");
80
+ /** What opens the field's template list as it is typed: a template begins with `$`. */
81
+ var TEMPLATE_TRIGGERS = new Set(['$']);
82
+ /** Distinguishes the completion lists of the fields on a page, for each field's `aria-controls`. */
83
+ var textCompletionMenuCounter = 0;
39
84
  /**
40
85
  * What each offered template value is FOR, keyed by the value itself.
41
86
  *
@@ -72,24 +117,53 @@ var getChipTooltipDescriptions = function (templates) {
72
117
  return out;
73
118
  };
74
119
  exports.getChipTooltipDescriptions = getChipTooltipDescriptions;
120
+ /* The chip references a document holds, in order, as one comparable string. Two documents that stand for
121
+ the same text but chip different references differ here; two that chip the same references do not — so a
122
+ re-parse that recognises nothing new is not taken for a change (which would move the cursor). */
123
+ var chipValuesOf = function (nodes) {
124
+ return JSON.stringify((nodes !== null && nodes !== void 0 ? nodes : []).flatMap(function (paragraph) {
125
+ var _a;
126
+ return ((_a = paragraph === null || paragraph === void 0 ? void 0 : paragraph.children) !== null && _a !== void 0 ? _a : [])
127
+ .filter(function (node) { return (node === null || node === void 0 ? void 0 : node.type) === 'tag'; })
128
+ .map(function (node) { var _a; return String((_a = node === null || node === void 0 ? void 0 : node.value) !== null && _a !== void 0 ? _a : ''); });
129
+ }));
130
+ };
75
131
  exports.RichTextFormField = (0, react_1.memo)(function (_a) {
76
132
  var _b, _c;
77
- var value = _a.value, onChange = _a.onChange, allowTemplates = _a.allowTemplates, templates = _a.templates, _d = _a.valueFormat, valueFormat = _d === void 0 ? 'richtext' : _d, singleLine = _a.singleLine, templateToken = _a.templateToken, allowed_values = _a.allowed_values, choiceChip = _a.choiceChip, rest = __rest(_a, ["value", "onChange", "allowTemplates", "templates", "valueFormat", "singleLine", "templateToken", "allowed_values", "choiceChip"]);
133
+ var value = _a.value, onChange = _a.onChange, allowTemplates = _a.allowTemplates, templates = _a.templates, namingTemplates = _a.namingTemplates, _d = _a.valueFormat, valueFormat = _d === void 0 ? 'richtext' : _d, singleLine = _a.singleLine, templateToken = _a.templateToken, allowed_values = _a.allowed_values, choiceChip = _a.choiceChip, rest = __rest(_a, ["value", "onChange", "allowTemplates", "templates", "namingTemplates", "valueFormat", "singleLine", "templateToken", "allowed_values", "choiceChip"]);
78
134
  var isText = valueFormat === 'text';
79
- /* The Slate editor behind Reqore's, for the two chip actions below: both
80
- rewrite the document in place, which the editor's props cannot. */
135
+ /** What chips are named from: the whole catalogue, not only what is offered (see the prop). */
136
+ var naming = namingTemplates !== null && namingTemplates !== void 0 ? namingTemplates : templates;
137
+ /* The Slate editor behind Reqore's: the two choice-chip actions below rewrite the document in place,
138
+ which the editor's props cannot, and the completion list reads and edits the text through it. */
81
139
  var editorRef = (0, react_1.useRef)(null);
82
140
  var chipBehavior = __assign(__assign({}, choiceChip_1.DEFAULT_CHOICE_CHIP_BEHAVIOR), choiceChip);
141
+ /* The document a rich-text value stands for. Rich text the server holds is its string type, so a value
142
+ arrives as a string as often as a document - a saved `$local:name`, or text - and a string handed to
143
+ the editor as its document was drawn as raw text, each reference spelled out rather than its chip. It
144
+ is read as text with references, as the `text` format reads it; until it is edited, nothing is sent
145
+ back, so a string held stays a string. (A field mounted through an untyped first render was handed
146
+ the string in the `text` format, and kept the chips it drew then, by accident: that first render is
147
+ gone - see `resolveAutoFieldTypes`.) */
148
+ var documentOf = function (held) {
149
+ return typeof held === 'string' ? (0, templateText_1.templateTextToNodes)(held, naming, templateToken) : held;
150
+ };
151
+ /** The same document: a chip read from a string carries `metadata: undefined`, which the editor's own
152
+ * copy of it may leave out. */
153
+ var sameDocument = function (a, b) {
154
+ return (0, lodash_1.isEqual)(a, b) || JSON.stringify(a) === JSON.stringify(b);
155
+ };
83
156
  /* The document the editor shows for a value: a choice by its chip, a text
84
- with its references as chips, a document as it is. */
157
+ with its references as chips (a string held in rich text read the same way,
158
+ see `documentOf`), a document as it is. */
85
159
  var toLocal = function (next) {
86
160
  if (isText) {
87
161
  var text = String(next !== null && next !== void 0 ? next : '');
88
162
  var choice_1 = (0, choiceChip_1.choiceForValue)(text, allowed_values);
89
- return choice_1 ? (0, choiceChip_1.choiceToNodes)(choice_1) : (0, templateText_1.templateTextToNodes)(text, templates, templateToken);
163
+ return choice_1 ? (0, choiceChip_1.choiceToNodes)(choice_1) : (0, templateText_1.templateTextToNodes)(text, naming, templateToken);
90
164
  }
91
165
  var choice = (0, choiceChip_1.choiceForValue)(next, allowed_values);
92
- return choice ? (0, choiceChip_1.choiceToNodes)(choice) : next;
166
+ return choice ? (0, choiceChip_1.choiceToNodes)(choice) : documentOf(next);
93
167
  };
94
168
  var _e = (0, react_1.useState)(function () { return toLocal(value); }), localValue = _e[0], setLocalValue = _e[1];
95
169
  /* What a value stands for: the choice's value when the value is that choice
@@ -113,10 +187,19 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
113
187
  while the next keys are typed, and rebuilding the document from it threw
114
188
  them away. See `EmittedValues`. */
115
189
  var emitted = (0, emittedValues_1.useEmittedValues)(lodash_1.isEqual);
190
+ var pendingEdit = (0, pendingEdit_1.usePendingEdit)(function (edit) {
191
+ emitted.record(edit);
192
+ onChange === null || onChange === void 0 ? void 0 : onChange(edit);
193
+ });
194
+ var setPending = function (next) {
195
+ return next ? pendingEdit.hold(next.edit) : pendingEdit.release();
196
+ };
116
197
  (0, react_1.useEffect)(function () {
117
198
  if (emitted.isEcho(isText ? String(value !== null && value !== void 0 ? value : '') : value)) {
118
199
  return;
119
200
  }
201
+ // the parent has a value of its own: what was typed before it is no edit to send any more
202
+ pendingEdit.release();
120
203
  if (isText) {
121
204
  var text = String(value !== null && value !== void 0 ? value : '');
122
205
  if (text !== lastTextRef.current) {
@@ -125,9 +208,9 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
125
208
  }
126
209
  return;
127
210
  }
128
- // Compared as what each stands for: a lone choice chip IS the value it
129
- // draws, so the value coming back is not a change to it.
130
- if (!(0, lodash_1.isEqual)(standsFor(value), standsFor(localValue))) {
211
+ // Compared as what each stands for: a lone choice chip IS the value it draws, and the document a string
212
+ // held stands for is that string - so the value coming back is not a change to either.
213
+ if (!(0, lodash_1.isEqual)(standsFor(value), standsFor(localValue)) && !sameDocument(documentOf(value), localValue)) {
131
214
  setLocalValue(toLocal(value));
132
215
  }
133
216
  }, [JSON.stringify(value)]);
@@ -143,23 +226,54 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
143
226
  }
144
227
  var shown = isText ? (0, templateText_1.templateNodesToText)(localValue) : ((_a = (0, choiceChip_1.choiceValueOfNodes)(localValue)) !== null && _a !== void 0 ? _a : localValue);
145
228
  var stored = isText ? String(value !== null && value !== void 0 ? value : '') : value;
146
- if ((0, lodash_1.isEqual)(shown, stored) && (0, choiceChip_1.choiceForValue)(stored, allowed_values)) {
229
+ // as it is: the same value, or the document a string held in rich text stands for (`documentOf`)
230
+ var showsStored = (0, lodash_1.isEqual)(shown, stored) || (!isText && sameDocument(localValue, documentOf(stored)));
231
+ if (showsStored && (0, choiceChip_1.choiceForValue)(stored, allowed_values)) {
147
232
  setLocalValue(toLocal(stored));
148
233
  }
149
234
  }, [choiceKey]);
235
+ /* A reference in a string is drawn as a chip only once something can name it: the field's own grammar
236
+ (`templateToken`), or — for a reference neither grammar matches, a DPQL `@create` say — the catalogue
237
+ that NAMES it. Both can arrive AFTER the first render: the catalogue is fetched, and the effect above
238
+ rebuilds the document only when the stored string changes. So a preset reference the catalogue had not
239
+ yet named stayed raw text until the author re-picked it (qorus#646). Re-chip the string in hand when
240
+ what recognises its references changes — text mode only, and only when a chip is actually gained or
241
+ lost, so a document being edited is left exactly as it is while nothing new is recognised. A choice
242
+ chip is the choices' to draw (see above), so a document that is one is left alone. */
243
+ (0, react_1.useEffect)(function () {
244
+ if (!isText) {
245
+ return;
246
+ }
247
+ var rebuilt = (0, templateText_1.templateTextToNodes)(lastTextRef.current, naming, templateToken);
248
+ setLocalValue(function (current) {
249
+ return (0, choiceChip_1.choiceValueOfNodes)(current) !== undefined || chipValuesOf(current) === chipValuesOf(rebuilt) ?
250
+ current
251
+ : rebuilt;
252
+ });
253
+ }, [JSON.stringify(naming), String(templateToken)]);
254
+ /** What the host will hold once the emits in flight come back: what an edit is a change from. */
255
+ var settled = function () { return emitted.settled(isText ? String(value !== null && value !== void 0 ? value : '') : value); };
256
+ /** A rich-text document as it is sent: one that is nothing but a choice chip, as the choice's value. */
257
+ var emittedFormOf = function (document) { var _a; return ((_a = (0, choiceChip_1.choiceValueOfNodes)(document)) !== null && _a !== void 0 ? _a : document); };
258
+ /** Whether a rich-text document is what the host will hold already: the same choice, or the document the
259
+ * string it holds stands for. */
260
+ var isUnchanged = function (document) {
261
+ return (0, lodash_1.isEqual)(standsFor(emittedFormOf(document)), standsFor(settled())) ||
262
+ sameDocument(document, documentOf(settled()));
263
+ };
150
264
  (0, react_use_1.useDebounce)(function () {
151
- var _a;
265
+ pendingEdit.release();
152
266
  if (isText) {
153
- if (lastTextRef.current !== String(value !== null && value !== void 0 ? value : '')) {
267
+ if (lastTextRef.current !== emitted.settled(String(value !== null && value !== void 0 ? value : ''))) {
154
268
  emitted.record(lastTextRef.current);
155
269
  onChange === null || onChange === void 0 ? void 0 : onChange(lastTextRef.current);
156
270
  }
157
271
  return;
158
272
  }
159
- // A document that is nothing but one choice chip is emitted as the
160
- // choice's value — what was stored and what the server resolves.
161
- var next = (_a = (0, choiceChip_1.choiceValueOfNodes)(localValue)) !== null && _a !== void 0 ? _a : localValue;
162
- if (!(0, lodash_1.isEqual)(standsFor(next), standsFor(value))) {
273
+ // A document that is nothing but one choice chip is sent as the choice's value — what was stored and
274
+ // what the server resolves — and the document a string held stands for is that string, not an edit of it.
275
+ if (!isUnchanged(localValue)) {
276
+ var next = emittedFormOf(localValue);
163
277
  emitted.record(next);
164
278
  onChange === null || onChange === void 0 ? void 0 : onChange(next);
165
279
  }
@@ -170,6 +284,8 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
170
284
  // the typed value never reaches the form. react-use runs the latest
171
285
  // closure from a ref, so the fresh `onChange` is used either way.
172
286
  [localValue]);
287
+ /** The text as an edit to send, or nothing where it is what the host will hold. */
288
+ var changedFrom = function (text) { return (text === settled() ? undefined : { edit: text }); };
173
289
  var handleChange = function (val) {
174
290
  if (isText) {
175
291
  var text = (0, templateText_1.templateNodesToText)(val);
@@ -177,25 +293,33 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
177
293
  // stopped below. Flattened text is shown as the one line it now is.
178
294
  if (singleLine && (0, singleLineString_1.hasLineBreak)(text)) {
179
295
  lastTextRef.current = (0, singleLineString_1.flattenToSingleLine)(text);
296
+ setPending(changedFrom(lastTextRef.current));
180
297
  setLocalValue(toLocal(lastTextRef.current));
181
298
  return;
182
299
  }
183
300
  lastTextRef.current = text;
301
+ setPending(changedFrom(text));
184
302
  setLocalValue(val);
185
303
  return;
186
304
  }
187
305
  if (JSON.stringify(val) === '[{"type":"paragraph","children":[{"text":""}]}]') {
306
+ // the empty text a held '' stands for is no edit of it (a click into the field reports it)
307
+ if (sameDocument(val, documentOf(settled()))) {
308
+ setPending(undefined);
309
+ setLocalValue(val);
310
+ return;
311
+ }
312
+ setPending((0, lodash_1.isEqual)(undefined, settled()) ? undefined : { edit: undefined });
188
313
  setLocalValue(undefined);
189
314
  return;
190
315
  }
316
+ setPending(isUnchanged(val) ? undefined : { edit: emittedFormOf(val) });
191
317
  setLocalValue(val);
192
318
  };
193
- // One renderer for both surfaces below — the chip's hover and the picker rows
194
- // show the same strings, so they must be drawn the same way.
195
- var renderMarkdown = (0, markdownRendererContext_1.useMarkdownRenderer)();
196
- var descriptionByValue = (0, react_1.useMemo)(function () { return (0, exports.getChipTooltipDescriptions)(templates); }, [
197
- JSON.stringify(templates),
198
- ]);
319
+ // A chip's hover draws its description as the picker rows draw the same
320
+ // string, and opens on a tap where there is no hover.
321
+ var descriptions = (0, descriptionTooltip_1.useDescriptionTooltips)();
322
+ var descriptionByValue = (0, react_1.useMemo)(function () { return (0, exports.getChipTooltipDescriptions)(naming); }, [JSON.stringify(naming)]);
199
323
  /* Opens a choice chip into its value as text and puts the cursor there.
200
324
  A click on the chip — a non-editable node — need not have given the
201
325
  editor focus, so focus is asked of Slate, which places the DOM caret where
@@ -247,9 +371,12 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
247
371
  description on hover. Read at render, so a catalogue that arrives
248
372
  after the value still names it. */
249
373
  if (isText && tagValue.startsWith('$')) {
250
- var item = (0, templates_1.describeTemplateReference)(templates, tagValue).item;
374
+ var item = (0, templates_1.describeTemplateReference)(naming, tagValue).item;
251
375
  var metadata = item === null || item === void 0 ? void 0 : item.metadata;
252
- return __assign({ icon: 'ExchangeDollarLine', leftIconProps: { image: metadata === null || metadata === void 0 ? void 0 : metadata.image }, label: (0, templateText_1.templateChipLabel)(templates, tagValue), tooltip: (0, templates_1.templateTooltip)(templates, tagValue) }, (0, templates_1.getTemplateTagStyle)(metadata));
376
+ return __assign({ icon: 'ExchangeDollarLine', leftIconProps: { image: metadata === null || metadata === void 0 ? void 0 : metadata.image }, label: (0, templateText_1.templateChipLabel)(naming, tagValue), tooltip: (0, templates_1.templateTooltip)(naming, tagValue, descriptions),
377
+ // The same chip the read summary (`TemplateText`) and the read-only tag draw: a `tiny` box whose
378
+ // label takes the font of the text it sits in, so a reference is the same size in every view.
379
+ size: 'tiny', style: { fontSize: 'inherit' } }, (0, templates_1.getTemplateTagStyle)(metadata));
253
380
  }
254
381
  if (tagValue.startsWith('$')) {
255
382
  return __assign({ icon: 'ExchangeDollarLine', leftIconProps: {
@@ -261,30 +388,14 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
261
388
  author already chose, restating the label in engine syntax instead
262
389
  of telling them anything. The path stays discoverable in the
263
390
  field's help and in the picker row for an unlabelled value. */
264
- /* Drawn, for the same reason the picker row is: this description is
265
- the SAME string the row shows, so leaving it raw here would print
266
- the punctuation the row no longer prints. A tooltip's `content`
267
- takes a node, and without a host renderer it stays the plain
268
- string it always was. */
269
- /* Drawn, for the same reason the picker row is: this is the SAME
270
- string the row shows, so leaving it raw here would print the
271
- punctuation the row no longer prints. A drawn description travels
272
- as the tooltip's `content` — the prop itself is `string |
273
- IReqoreTooltip`, and only the object form takes a node. Without a
274
- host renderer it stays the plain string it always was. */
275
- tooltip: descriptionByValue[tagValue] ?
276
- renderMarkdown ?
277
- {
278
- content: renderMarkdown({
279
- value: descriptionByValue[tagValue],
280
- compact: true,
281
- }),
282
- }
283
- : descriptionByValue[tagValue]
284
- : undefined }, (0, templates_1.getTemplateTagStyle)(tag.metadata));
391
+ /* Drawn, as the picker row draws the same string (`descriptionTooltip`):
392
+ left raw, it printed the punctuation the row does not. */
393
+ tooltip: (0, descriptionTooltip_1.descriptionTooltip)(descriptionByValue[tagValue], descriptions),
394
+ // The same chip the read summary and the read-only tag draw — see the `isText` branch above.
395
+ size: 'tiny', style: { fontSize: 'inherit' } }, (0, templates_1.getTemplateTagStyle)(tag.metadata));
285
396
  }
286
397
  return {};
287
- }, [descriptionByValue, renderMarkdown, isText, templates, chipBehavior.click, openChoiceChip]);
398
+ }, [descriptionByValue, descriptions, isText, naming, chipBehavior.click, openChoiceChip]);
288
399
  /* Leaving the field: text that is exactly one of the choices becomes its
289
400
  chip again, as the picker would have drawn it. Only here, never while
290
401
  typing — a choice can be the start of a longer value, and a chip drawn
@@ -320,30 +431,6 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
320
431
  openChoiceChip,
321
432
  rest.onKeyDown,
322
433
  ]);
323
- var tags = (0, react_1.useMemo)(function () {
324
- var _tags = {};
325
- if ((0, lodash_1.size)(templates === null || templates === void 0 ? void 0 : templates.items) && allowTemplates) {
326
- _tags.templates = {
327
- icon: 'MoneyDollarBoxLine',
328
- label: 'Templates',
329
- flat: false,
330
- description: 'Universal values that can be used in multiple places',
331
- /* The in-editor list already nests everything under "Templates", so a
332
- lone category makes the author drill through TWO headers to reach
333
- the only values on offer. Hoist it. */
334
- /* Drawn here, at the hand-off to Reqore. A description is prose written
335
- in the same markdown as every other description this package shows,
336
- and printing its punctuation at the reader was the last surface still
337
- doing that. Never made further up: the list is a `JSON.stringify`
338
- memo key in `TemplateField`. */
339
- items: (0, templateItems_1.renderTemplateItemDescriptions)((0, templateItems_1.templateItemsToShow)(templates === null || templates === void 0 ? void 0 : templates.items), renderMarkdown),
340
- };
341
- }
342
- return _tags;
343
- }, [allowTemplates, templates, renderMarkdown]);
344
- var formattedValue = typeof localValue !== 'object' ? [{ type: 'paragraph', children: [{ text: String(localValue !== null && localValue !== void 0 ? localValue : '') }] }]
345
- : localValue === null ? undefined
346
- : localValue;
347
434
  // Read-only: ReqoreRichTextEditor makes the Slate surface non-editable (and
348
435
  // disables tag click/remove) when `readOnly` is set. Honour the field-level
349
436
  // flags — the IDE Options model passes `readonly`, the compact form passes
@@ -352,19 +439,41 @@ exports.RichTextFormField = (0, react_1.memo)(function (_a) {
352
439
  var readOnly = !!(rest.readOnly ||
353
440
  rest.readonly ||
354
441
  rest.disabled);
442
+ /* The field's templates, two ways (qorus#646): browsed, in the hierarchical list a click, a tap or the
443
+ keyboard coming in opens (`tags`, the editor's own - see `useTemplateTags`); and found by what is typed
444
+ after a `$`, in the completion list typing opens everywhere (`CompletionMenu`), as an expression's Text
445
+ view does. */
446
+ var tags = (0, useTemplateTags_1.useTemplateTags)(templates, allowTemplates);
447
+ var completionMenuId = (0, react_1.useMemo)(function () { return "completion-menu-text-".concat(++textCompletionMenuCounter); }, []);
448
+ var templateItems = (0, react_1.useMemo)(function () { return (allowTemplates ? (0, templateCompletions_1.templateCompletionItems)(templates) : []); }, [allowTemplates, templates]);
449
+ var offerTemplates = (0, react_1.useCallback)(function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
450
+ return [2 /*return*/, templateItems];
451
+ }); }); }, [templateItems]);
452
+ var autocomplete = (0, useLspAutocomplete_1.useLspAutocomplete)({
453
+ getCompletions: offerTemplates,
454
+ isReady: !readOnly && templateItems.length > 0,
455
+ triggerCharacters: TEMPLATE_TRIGGERS,
456
+ converter: helpers_1.defaultSlateConverter,
457
+ inserter: templateCompletions_1.templateChipInserter,
458
+ });
459
+ var formattedValue = typeof localValue !== 'object' ? [{ type: 'paragraph', children: [{ text: String(localValue !== null && localValue !== void 0 ? localValue : '') }] }]
460
+ : localValue === null ? undefined
461
+ : localValue;
355
462
  /* Everything the caller passed, minus its own `tags` — see the prop's doc
356
463
  above: on a form field that name means the chips to show, while the
357
464
  editor's `tags` is the template catalogue this component computes. */
358
465
  var editorProps = __assign({}, rest);
359
466
  delete editorProps.tags;
360
- return ((0, jsx_runtime_1.jsx)(RichTextEditor_1.ReqoreRichTextEditor, __assign({ ref: editorRef, value: formattedValue, onChange: handleChange }, editorProps, { tagsListProps: __assign({ useTargetWidth: true, minWidth: '300px', maxWidth: '600px', listCustomTheme: {
361
- main: '#1b151f',
362
- } }, (rest.tagsListProps || {})), getTagProps: handleGetTagProps, tags: tags, panelProps: { fluid: true, style: __assign({ minWidth: '150px' }, (_c = rest.panelProps) === null || _c === void 0 ? void 0 : _c.style) }, readOnly: readOnly, onKeyDown: handleKeyDown, onBlur: handleBlur,
363
- /* A form field carries no document toolbar. Styling was already off, so
364
- the bar held only undo and redo — drawn by Reqore as a panel as wide as
365
- the tag list, which under a field reads as an empty 600px menu with two
366
- greyed icons in it (they are disabled until there is history to walk).
367
- Both still work from the keyboard, where every other text field's do. */
368
- actions: { undo: false, redo: false, styling: false } })));
467
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(RichTextEditor_1.ReqoreRichTextEditor, __assign({ ref: editorRef, value: formattedValue, onChange: function (val) {
468
+ handleChange(val);
469
+ if (editorRef.current)
470
+ autocomplete.onSlateChange(editorRef.current, val);
471
+ } }, editorProps, { tagsListProps: __assign(__assign({ useTargetWidth: true }, useTemplateTags_1.TEMPLATE_BROWSE_LIST_PROPS), (rest.tagsListProps || {})), getTagProps: handleGetTagProps, tags: tags, "aria-autocomplete": 'list', "aria-expanded": autocomplete.isOpen, "aria-controls": completionMenuId, panelProps: { fluid: true, style: __assign({ minWidth: '150px' }, (_c = rest.panelProps) === null || _c === void 0 ? void 0 : _c.style) }, readOnly: readOnly, onKeyDown: handleKeyDown, onBlur: handleBlur,
472
+ /* A form field carries no document toolbar. Styling was already off, so
473
+ the bar held only undo and redo — drawn by Reqore as a panel as wide as
474
+ the tag list, which under a field reads as an empty 600px menu with two
475
+ greyed icons in it (they are disabled until there is history to walk).
476
+ Both still work from the keyboard, where every other text field's do. */
477
+ actions: { undo: false, redo: false, styling: false } })), (0, jsx_runtime_1.jsx)(CompletionMenu_1.CompletionMenu, { autocomplete: autocomplete, id: completionMenuId, onSelect: function (item) { return editorRef.current && autocomplete.onItemSelect(item, editorRef.current); } })] }));
369
478
  });
370
479
  //# sourceMappingURL=RichText.js.map