@flanksource/clicky-ui 0.3.18 → 0.3.20

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 (609) hide show
  1. package/dist/components/ComboboxMenu.cjs +5 -1
  2. package/dist/components/ComboboxMenu.cjs.map +1 -1
  3. package/dist/components/ComboboxMenu.d.ts.map +1 -1
  4. package/dist/components/ComboboxMenu.js +5 -1
  5. package/dist/components/ComboboxMenu.js.map +1 -1
  6. package/dist/components/EndpointSelector.model.cjs +96 -0
  7. package/dist/components/EndpointSelector.model.cjs.map +1 -0
  8. package/dist/components/EndpointSelector.model.d.ts +2 -0
  9. package/dist/components/EndpointSelector.model.d.ts.map +1 -1
  10. package/dist/components/EndpointSelector.model.js +96 -0
  11. package/dist/components/EndpointSelector.model.js.map +1 -0
  12. package/dist/components/ErrorWrapper.cjs +1 -1
  13. package/dist/components/ErrorWrapper.cjs.map +1 -1
  14. package/dist/components/ErrorWrapper.js +1 -1
  15. package/dist/components/ErrorWrapper.js.map +1 -1
  16. package/dist/components/FilterBar.cjs +52 -2
  17. package/dist/components/FilterBar.cjs.map +1 -1
  18. package/dist/components/FilterBar.d.ts +20 -2
  19. package/dist/components/FilterBar.d.ts.map +1 -1
  20. package/dist/components/FilterBar.js +52 -2
  21. package/dist/components/FilterBar.js.map +1 -1
  22. package/dist/components/JSONPathField.cjs +87 -66
  23. package/dist/components/JSONPathField.cjs.map +1 -1
  24. package/dist/components/JSONPathField.d.ts +26 -9
  25. package/dist/components/JSONPathField.d.ts.map +1 -1
  26. package/dist/components/JSONPathField.js +88 -67
  27. package/dist/components/JSONPathField.js.map +1 -1
  28. package/dist/components/JSONPathPlayground.cjs +225 -0
  29. package/dist/components/JSONPathPlayground.cjs.map +1 -0
  30. package/dist/components/JSONPathPlayground.d.ts +59 -0
  31. package/dist/components/JSONPathPlayground.d.ts.map +1 -0
  32. package/dist/components/JSONPathPlayground.js +225 -0
  33. package/dist/components/JSONPathPlayground.js.map +1 -0
  34. package/dist/components/OnePasswordSelector.cjs +178 -0
  35. package/dist/components/OnePasswordSelector.cjs.map +1 -0
  36. package/dist/components/OnePasswordSelector.d.ts +8 -0
  37. package/dist/components/OnePasswordSelector.d.ts.map +1 -0
  38. package/dist/components/OnePasswordSelector.js +178 -0
  39. package/dist/components/OnePasswordSelector.js.map +1 -0
  40. package/dist/components/OnePasswordSelector.model.cjs +31 -0
  41. package/dist/components/OnePasswordSelector.model.cjs.map +1 -0
  42. package/dist/components/OnePasswordSelector.model.d.ts +27 -0
  43. package/dist/components/OnePasswordSelector.model.d.ts.map +1 -0
  44. package/dist/components/OnePasswordSelector.model.js +31 -0
  45. package/dist/components/OnePasswordSelector.model.js.map +1 -0
  46. package/dist/components/SecretFormField.cjs +142 -0
  47. package/dist/components/SecretFormField.cjs.map +1 -0
  48. package/dist/components/SecretFormField.d.ts +9 -0
  49. package/dist/components/SecretFormField.d.ts.map +1 -0
  50. package/dist/components/SecretFormField.js +142 -0
  51. package/dist/components/SecretFormField.js.map +1 -0
  52. package/dist/components/SecretKeySelector.cjs +20 -14
  53. package/dist/components/SecretKeySelector.cjs.map +1 -1
  54. package/dist/components/SecretKeySelector.d.ts +4 -1
  55. package/dist/components/SecretKeySelector.d.ts.map +1 -1
  56. package/dist/components/SecretKeySelector.js +20 -14
  57. package/dist/components/SecretKeySelector.js.map +1 -1
  58. package/dist/components/TreePickerField.cjs +55 -29
  59. package/dist/components/TreePickerField.cjs.map +1 -1
  60. package/dist/components/TreePickerField.d.ts +10 -1
  61. package/dist/components/TreePickerField.d.ts.map +1 -1
  62. package/dist/components/TreePickerField.js +56 -30
  63. package/dist/components/TreePickerField.js.map +1 -1
  64. package/dist/components/UnitStepControls.cjs +55 -0
  65. package/dist/components/UnitStepControls.cjs.map +1 -0
  66. package/dist/components/UnitStepControls.d.ts +10 -0
  67. package/dist/components/UnitStepControls.d.ts.map +1 -0
  68. package/dist/components/UnitStepControls.js +55 -0
  69. package/dist/components/UnitStepControls.js.map +1 -0
  70. package/dist/components/combobox-types.d.ts +9 -0
  71. package/dist/components/combobox-types.d.ts.map +1 -1
  72. package/dist/components/filter-bar-utils.cjs +7 -0
  73. package/dist/components/filter-bar-utils.cjs.map +1 -1
  74. package/dist/components/filter-bar-utils.d.ts.map +1 -1
  75. package/dist/components/filter-bar-utils.js +7 -0
  76. package/dist/components/filter-bar-utils.js.map +1 -1
  77. package/dist/components/jotai-bindings-core.cjs.map +1 -1
  78. package/dist/components/jotai-bindings-core.d.ts +4 -1
  79. package/dist/components/jotai-bindings-core.d.ts.map +1 -1
  80. package/dist/components/jotai-bindings-core.js.map +1 -1
  81. package/dist/components/json-schema-form-accordion-array.cjs +5 -73
  82. package/dist/components/json-schema-form-accordion-array.cjs.map +1 -1
  83. package/dist/components/json-schema-form-accordion-array.d.ts.map +1 -1
  84. package/dist/components/json-schema-form-accordion-array.js +3 -71
  85. package/dist/components/json-schema-form-accordion-array.js.map +1 -1
  86. package/dist/components/json-schema-form-array.cjs +6 -1
  87. package/dist/components/json-schema-form-array.cjs.map +1 -1
  88. package/dist/components/json-schema-form-array.d.ts.map +1 -1
  89. package/dist/components/json-schema-form-array.js +6 -1
  90. package/dist/components/json-schema-form-array.js.map +1 -1
  91. package/dist/components/json-schema-form-cards-array.cjs +96 -0
  92. package/dist/components/json-schema-form-cards-array.cjs.map +1 -0
  93. package/dist/components/json-schema-form-cards-array.d.ts +7 -0
  94. package/dist/components/json-schema-form-cards-array.d.ts.map +1 -0
  95. package/dist/components/json-schema-form-cards-array.js +96 -0
  96. package/dist/components/json-schema-form-cards-array.js.map +1 -0
  97. package/dist/components/json-schema-form-item-row.cjs +81 -0
  98. package/dist/components/json-schema-form-item-row.cjs.map +1 -0
  99. package/dist/components/json-schema-form-item-row.d.ts +19 -0
  100. package/dist/components/json-schema-form-item-row.d.ts.map +1 -0
  101. package/dist/components/json-schema-form-item-row.js +81 -0
  102. package/dist/components/json-schema-form-item-row.js.map +1 -0
  103. package/dist/components/json-schema-form-render.cjs +4 -3
  104. package/dist/components/json-schema-form-render.cjs.map +1 -1
  105. package/dist/components/json-schema-form-render.d.ts.map +1 -1
  106. package/dist/components/json-schema-form-render.js +4 -3
  107. package/dist/components/json-schema-form-render.js.map +1 -1
  108. package/dist/components/json-schema-form-resolve.cjs +1 -1
  109. package/dist/components/json-schema-form-resolve.cjs.map +1 -1
  110. package/dist/components/json-schema-form-resolve.js +1 -1
  111. package/dist/components/json-schema-form-resolve.js.map +1 -1
  112. package/dist/components/json-schema-form-tone.cjs +12 -0
  113. package/dist/components/json-schema-form-tone.cjs.map +1 -1
  114. package/dist/components/json-schema-form-tone.js +12 -0
  115. package/dist/components/json-schema-form-tone.js.map +1 -1
  116. package/dist/components/json-schema-form-types.d.ts +10 -1
  117. package/dist/components/json-schema-form-types.d.ts.map +1 -1
  118. package/dist/components/jsonPathTree.cjs +189 -0
  119. package/dist/components/jsonPathTree.cjs.map +1 -0
  120. package/dist/components/jsonPathTree.d.ts +92 -0
  121. package/dist/components/jsonPathTree.d.ts.map +1 -0
  122. package/dist/components/jsonPathTree.js +189 -0
  123. package/dist/components/jsonPathTree.js.map +1 -0
  124. package/dist/components/secret-form-extension.cjs +30 -0
  125. package/dist/components/secret-form-extension.cjs.map +1 -0
  126. package/dist/components/secret-form-extension.d.ts +23 -0
  127. package/dist/components/secret-form-extension.d.ts.map +1 -0
  128. package/dist/components/secret-form-extension.js +30 -0
  129. package/dist/components/secret-form-extension.js.map +1 -0
  130. package/dist/components/unit-form-extension.cjs +126 -0
  131. package/dist/components/unit-form-extension.cjs.map +1 -0
  132. package/dist/components/unit-form-extension.d.ts +8 -0
  133. package/dist/components/unit-form-extension.d.ts.map +1 -0
  134. package/dist/components/unit-form-extension.js +126 -0
  135. package/dist/components/unit-form-extension.js.map +1 -0
  136. package/dist/components.cjs +20 -0
  137. package/dist/components.cjs.map +1 -1
  138. package/dist/components.d.ts +7 -0
  139. package/dist/components.d.ts.map +1 -1
  140. package/dist/components.js +20 -0
  141. package/dist/components.js.map +1 -1
  142. package/dist/data/TaskExecDetails.cjs +40 -0
  143. package/dist/data/TaskExecDetails.cjs.map +1 -0
  144. package/dist/data/TaskExecDetails.d.ts +5 -0
  145. package/dist/data/TaskExecDetails.d.ts.map +1 -0
  146. package/dist/data/TaskExecDetails.js +40 -0
  147. package/dist/data/TaskExecDetails.js.map +1 -0
  148. package/dist/data/TaskProgress.cjs +9 -3
  149. package/dist/data/TaskProgress.cjs.map +1 -1
  150. package/dist/data/TaskProgress.d.ts.map +1 -1
  151. package/dist/data/TaskProgress.js +9 -3
  152. package/dist/data/TaskProgress.js.map +1 -1
  153. package/dist/data/TaskSnapshot.cjs.map +1 -1
  154. package/dist/data/TaskSnapshot.d.ts +12 -1
  155. package/dist/data/TaskSnapshot.d.ts.map +1 -1
  156. package/dist/data/TaskSnapshot.js.map +1 -1
  157. package/dist/data/TreeNode.cjs +3 -0
  158. package/dist/data/TreeNode.cjs.map +1 -1
  159. package/dist/data/TreeNode.d.ts.map +1 -1
  160. package/dist/data/TreeNode.js +3 -0
  161. package/dist/data/TreeNode.js.map +1 -1
  162. package/dist/data/data-table-filter-values.cjs +20 -0
  163. package/dist/data/data-table-filter-values.cjs.map +1 -1
  164. package/dist/data/data-table-filter-values.d.ts +16 -0
  165. package/dist/data/data-table-filter-values.d.ts.map +1 -1
  166. package/dist/data/data-table-filter-values.js +20 -0
  167. package/dist/data/data-table-filter-values.js.map +1 -1
  168. package/dist/data/data-table-server-filters.cjs +23 -29
  169. package/dist/data/data-table-server-filters.cjs.map +1 -1
  170. package/dist/data/data-table-server-filters.d.ts.map +1 -1
  171. package/dist/data/data-table-server-filters.js +21 -27
  172. package/dist/data/data-table-server-filters.js.map +1 -1
  173. package/dist/data/diagnostics/ErrorDetails.cjs +61 -8
  174. package/dist/data/diagnostics/ErrorDetails.cjs.map +1 -1
  175. package/dist/data/diagnostics/ErrorDetails.d.ts.map +1 -1
  176. package/dist/data/diagnostics/ErrorDetails.js +61 -8
  177. package/dist/data/diagnostics/ErrorDetails.js.map +1 -1
  178. package/dist/data/diagnostics/error-diagnostics.cjs +10 -4
  179. package/dist/data/diagnostics/error-diagnostics.cjs.map +1 -1
  180. package/dist/data/diagnostics/error-diagnostics.d.ts.map +1 -1
  181. package/dist/data/diagnostics/error-diagnostics.js +10 -4
  182. package/dist/data/diagnostics/error-diagnostics.js.map +1 -1
  183. package/dist/data/query-browser/QueryBrowser.cjs +139 -161
  184. package/dist/data/query-browser/QueryBrowser.cjs.map +1 -1
  185. package/dist/data/query-browser/QueryBrowser.d.ts +1 -71
  186. package/dist/data/query-browser/QueryBrowser.d.ts.map +1 -1
  187. package/dist/data/query-browser/QueryBrowser.editor.cjs +88 -0
  188. package/dist/data/query-browser/QueryBrowser.editor.cjs.map +1 -0
  189. package/dist/data/query-browser/QueryBrowser.editor.d.ts +12 -0
  190. package/dist/data/query-browser/QueryBrowser.editor.d.ts.map +1 -0
  191. package/dist/data/query-browser/QueryBrowser.editor.js +88 -0
  192. package/dist/data/query-browser/QueryBrowser.editor.js.map +1 -0
  193. package/dist/data/query-browser/QueryBrowser.js +140 -162
  194. package/dist/data/query-browser/QueryBrowser.js.map +1 -1
  195. package/dist/data/query-browser/QueryBrowser.types.cjs +12 -0
  196. package/dist/data/query-browser/QueryBrowser.types.cjs.map +1 -0
  197. package/dist/data/query-browser/QueryBrowser.types.d.ts +94 -0
  198. package/dist/data/query-browser/QueryBrowser.types.d.ts.map +1 -0
  199. package/dist/data/query-browser/QueryBrowser.types.js +12 -0
  200. package/dist/data/query-browser/QueryBrowser.types.js.map +1 -0
  201. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.cjs +56 -0
  202. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.cjs.map +1 -0
  203. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.d.ts +5 -0
  204. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.d.ts.map +1 -0
  205. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.js +56 -0
  206. package/dist/data/query-browser/QueryBrowserDiagnosticsPanel.js.map +1 -0
  207. package/dist/data/query-browser/QueryBrowserResults.cjs +80 -0
  208. package/dist/data/query-browser/QueryBrowserResults.cjs.map +1 -0
  209. package/dist/data/query-browser/QueryBrowserResults.d.ts +16 -0
  210. package/dist/data/query-browser/QueryBrowserResults.d.ts.map +1 -0
  211. package/dist/data/query-browser/QueryBrowserResults.js +80 -0
  212. package/dist/data/query-browser/QueryBrowserResults.js.map +1 -0
  213. package/dist/data/query-browser/index.d.ts +2 -1
  214. package/dist/data/query-browser/index.d.ts.map +1 -1
  215. package/dist/data/task-exec-details.cjs +9 -0
  216. package/dist/data/task-exec-details.cjs.map +1 -0
  217. package/dist/data/task-exec-details.d.ts +3 -0
  218. package/dist/data/task-exec-details.d.ts.map +1 -0
  219. package/dist/data/task-exec-details.js +9 -0
  220. package/dist/data/task-exec-details.js.map +1 -0
  221. package/dist/data/version-info.cjs +3 -3
  222. package/dist/data/version-info.js +3 -3
  223. package/dist/data.cjs +2 -0
  224. package/dist/data.cjs.map +1 -1
  225. package/dist/data.d.ts +1 -1
  226. package/dist/data.d.ts.map +1 -1
  227. package/dist/data.js +2 -0
  228. package/dist/data.js.map +1 -1
  229. package/dist/index.cjs +22 -0
  230. package/dist/index.cjs.map +1 -1
  231. package/dist/index.js +22 -0
  232. package/dist/index.js.map +1 -1
  233. package/dist/lib/string.cjs +8 -0
  234. package/dist/lib/string.cjs.map +1 -1
  235. package/dist/lib/string.d.ts +1 -0
  236. package/dist/lib/string.d.ts.map +1 -1
  237. package/dist/lib/string.js +8 -0
  238. package/dist/lib/string.js.map +1 -1
  239. package/dist/profiles/catalogTree.cjs +133 -0
  240. package/dist/profiles/catalogTree.cjs.map +1 -0
  241. package/dist/profiles/catalogTree.d.ts +11 -0
  242. package/dist/profiles/catalogTree.d.ts.map +1 -0
  243. package/dist/profiles/catalogTree.js +133 -0
  244. package/dist/profiles/catalogTree.js.map +1 -0
  245. package/dist/profiles/connectionBrowserModel.cjs +185 -0
  246. package/dist/profiles/connectionBrowserModel.cjs.map +1 -0
  247. package/dist/profiles/connectionBrowserModel.d.ts +169 -0
  248. package/dist/profiles/connectionBrowserModel.d.ts.map +1 -0
  249. package/dist/profiles/connectionBrowserModel.js +185 -0
  250. package/dist/profiles/connectionBrowserModel.js.map +1 -0
  251. package/dist/profiles/connectionQueryWorkspace.cjs +185 -0
  252. package/dist/profiles/connectionQueryWorkspace.cjs.map +1 -0
  253. package/dist/profiles/connectionQueryWorkspace.d.ts +63 -0
  254. package/dist/profiles/connectionQueryWorkspace.d.ts.map +1 -0
  255. package/dist/profiles/connectionQueryWorkspace.js +185 -0
  256. package/dist/profiles/connectionQueryWorkspace.js.map +1 -0
  257. package/dist/profiles/connectionQueryWorkspaceModel.cjs +28 -0
  258. package/dist/profiles/connectionQueryWorkspaceModel.cjs.map +1 -0
  259. package/dist/profiles/connectionQueryWorkspaceModel.d.ts +38 -0
  260. package/dist/profiles/connectionQueryWorkspaceModel.d.ts.map +1 -0
  261. package/dist/profiles/connectionQueryWorkspaceModel.js +28 -0
  262. package/dist/profiles/connectionQueryWorkspaceModel.js.map +1 -0
  263. package/dist/profiles/esFieldValues.cjs +64 -0
  264. package/dist/profiles/esFieldValues.cjs.map +1 -0
  265. package/dist/profiles/esFieldValues.d.ts +48 -0
  266. package/dist/profiles/esFieldValues.d.ts.map +1 -0
  267. package/dist/profiles/esFieldValues.js +64 -0
  268. package/dist/profiles/esFieldValues.js.map +1 -0
  269. package/dist/profiles/esParamMappingModel.cjs +301 -0
  270. package/dist/profiles/esParamMappingModel.cjs.map +1 -0
  271. package/dist/profiles/esParamMappingModel.d.ts +37 -0
  272. package/dist/profiles/esParamMappingModel.d.ts.map +1 -0
  273. package/dist/profiles/esParamMappingModel.js +301 -0
  274. package/dist/profiles/esParamMappingModel.js.map +1 -0
  275. package/dist/profiles/esParamMappingPill.cjs +24 -0
  276. package/dist/profiles/esParamMappingPill.cjs.map +1 -0
  277. package/dist/profiles/esParamMappingPill.d.ts +13 -0
  278. package/dist/profiles/esParamMappingPill.d.ts.map +1 -0
  279. package/dist/profiles/esParamMappingPill.js +24 -0
  280. package/dist/profiles/esParamMappingPill.js.map +1 -0
  281. package/dist/profiles/esParamOperandExtension.cjs +75 -0
  282. package/dist/profiles/esParamOperandExtension.cjs.map +1 -0
  283. package/dist/profiles/esParamOperandExtension.d.ts +11 -0
  284. package/dist/profiles/esParamOperandExtension.d.ts.map +1 -0
  285. package/dist/profiles/esParamOperandExtension.js +75 -0
  286. package/dist/profiles/esParamOperandExtension.js.map +1 -0
  287. package/dist/profiles/esQueryBuilder.cjs +205 -0
  288. package/dist/profiles/esQueryBuilder.cjs.map +1 -0
  289. package/dist/profiles/esQueryBuilder.d.ts +35 -0
  290. package/dist/profiles/esQueryBuilder.d.ts.map +1 -0
  291. package/dist/profiles/esQueryBuilder.js +205 -0
  292. package/dist/profiles/esQueryBuilder.js.map +1 -0
  293. package/dist/profiles/esQueryBuilderExtension.cjs +23 -0
  294. package/dist/profiles/esQueryBuilderExtension.cjs.map +1 -0
  295. package/dist/profiles/esQueryBuilderExtension.d.ts +5 -0
  296. package/dist/profiles/esQueryBuilderExtension.d.ts.map +1 -0
  297. package/dist/profiles/esQueryBuilderExtension.js +23 -0
  298. package/dist/profiles/esQueryBuilderExtension.js.map +1 -0
  299. package/dist/profiles/esQueryBuilderForm.cjs +26 -0
  300. package/dist/profiles/esQueryBuilderForm.cjs.map +1 -0
  301. package/dist/profiles/esQueryBuilderForm.d.ts +18 -0
  302. package/dist/profiles/esQueryBuilderForm.d.ts.map +1 -0
  303. package/dist/profiles/esQueryBuilderForm.js +26 -0
  304. package/dist/profiles/esQueryBuilderForm.js.map +1 -0
  305. package/dist/profiles/esQueryBuilderModel.cjs +131 -0
  306. package/dist/profiles/esQueryBuilderModel.cjs.map +1 -0
  307. package/dist/profiles/esQueryBuilderModel.d.ts +108 -0
  308. package/dist/profiles/esQueryBuilderModel.d.ts.map +1 -0
  309. package/dist/profiles/esQueryBuilderModel.js +131 -0
  310. package/dist/profiles/esQueryBuilderModel.js.map +1 -0
  311. package/dist/profiles/esQueryClauseGroup.cjs +144 -0
  312. package/dist/profiles/esQueryClauseGroup.cjs.map +1 -0
  313. package/dist/profiles/esQueryClauseGroup.d.ts +10 -0
  314. package/dist/profiles/esQueryClauseGroup.d.ts.map +1 -0
  315. package/dist/profiles/esQueryClauseGroup.js +144 -0
  316. package/dist/profiles/esQueryClauseGroup.js.map +1 -0
  317. package/dist/profiles/esQueryCompile.cjs +47 -0
  318. package/dist/profiles/esQueryCompile.cjs.map +1 -0
  319. package/dist/profiles/esQueryCompile.d.ts +39 -0
  320. package/dist/profiles/esQueryCompile.d.ts.map +1 -0
  321. package/dist/profiles/esQueryCompile.js +47 -0
  322. package/dist/profiles/esQueryCompile.js.map +1 -0
  323. package/dist/profiles/esQueryConditionRow.cjs +168 -0
  324. package/dist/profiles/esQueryConditionRow.cjs.map +1 -0
  325. package/dist/profiles/esQueryConditionRow.d.ts +37 -0
  326. package/dist/profiles/esQueryConditionRow.d.ts.map +1 -0
  327. package/dist/profiles/esQueryConditionRow.js +168 -0
  328. package/dist/profiles/esQueryConditionRow.js.map +1 -0
  329. package/dist/profiles/esQueryGroupModel.cjs +12 -0
  330. package/dist/profiles/esQueryGroupModel.cjs.map +1 -0
  331. package/dist/profiles/esQueryGroupModel.d.ts +9 -0
  332. package/dist/profiles/esQueryGroupModel.d.ts.map +1 -0
  333. package/dist/profiles/esQueryGroupModel.js +12 -0
  334. package/dist/profiles/esQueryGroupModel.js.map +1 -0
  335. package/dist/profiles/esQueryOccur.cjs +16 -0
  336. package/dist/profiles/esQueryOccur.cjs.map +1 -0
  337. package/dist/profiles/esQueryOccur.d.ts +11 -0
  338. package/dist/profiles/esQueryOccur.d.ts.map +1 -0
  339. package/dist/profiles/esQueryOccur.js +16 -0
  340. package/dist/profiles/esQueryOccur.js.map +1 -0
  341. package/dist/profiles/esQueryOperandEditors.cjs +279 -0
  342. package/dist/profiles/esQueryOperandEditors.cjs.map +1 -0
  343. package/dist/profiles/esQueryOperandEditors.d.ts +24 -0
  344. package/dist/profiles/esQueryOperandEditors.d.ts.map +1 -0
  345. package/dist/profiles/esQueryOperandEditors.js +279 -0
  346. package/dist/profiles/esQueryOperandEditors.js.map +1 -0
  347. package/dist/profiles/esQueryOperandModel.cjs +28 -0
  348. package/dist/profiles/esQueryOperandModel.cjs.map +1 -0
  349. package/dist/profiles/esQueryOperandModel.d.ts +17 -0
  350. package/dist/profiles/esQueryOperandModel.d.ts.map +1 -0
  351. package/dist/profiles/esQueryOperandModel.js +28 -0
  352. package/dist/profiles/esQueryOperandModel.js.map +1 -0
  353. package/dist/profiles/esQueryOperators.cjs +165 -0
  354. package/dist/profiles/esQueryOperators.cjs.map +1 -0
  355. package/dist/profiles/esQueryOperators.d.ts +83 -0
  356. package/dist/profiles/esQueryOperators.d.ts.map +1 -0
  357. package/dist/profiles/esQueryOperators.js +165 -0
  358. package/dist/profiles/esQueryOperators.js.map +1 -0
  359. package/dist/profiles/esQueryOutputEditor.cjs +138 -0
  360. package/dist/profiles/esQueryOutputEditor.cjs.map +1 -0
  361. package/dist/profiles/esQueryOutputEditor.d.ts +7 -0
  362. package/dist/profiles/esQueryOutputEditor.d.ts.map +1 -0
  363. package/dist/profiles/esQueryOutputEditor.js +138 -0
  364. package/dist/profiles/esQueryOutputEditor.js.map +1 -0
  365. package/dist/profiles/esQueryOutputModel.cjs +16 -0
  366. package/dist/profiles/esQueryOutputModel.cjs.map +1 -0
  367. package/dist/profiles/esQueryOutputModel.d.ts +14 -0
  368. package/dist/profiles/esQueryOutputModel.d.ts.map +1 -0
  369. package/dist/profiles/esQueryOutputModel.js +16 -0
  370. package/dist/profiles/esQueryOutputModel.js.map +1 -0
  371. package/dist/profiles/esQueryPreview.cjs +30 -0
  372. package/dist/profiles/esQueryPreview.cjs.map +1 -0
  373. package/dist/profiles/esQueryPreview.d.ts +6 -0
  374. package/dist/profiles/esQueryPreview.d.ts.map +1 -0
  375. package/dist/profiles/esQueryPreview.js +30 -0
  376. package/dist/profiles/esQueryPreview.js.map +1 -0
  377. package/dist/profiles/esQuerySortEditor.cjs +143 -0
  378. package/dist/profiles/esQuerySortEditor.cjs.map +1 -0
  379. package/dist/profiles/esQuerySortEditor.d.ts +9 -0
  380. package/dist/profiles/esQuerySortEditor.d.ts.map +1 -0
  381. package/dist/profiles/esQuerySortEditor.js +143 -0
  382. package/dist/profiles/esQuerySortEditor.js.map +1 -0
  383. package/dist/profiles/esQuerySortModel.cjs +13 -0
  384. package/dist/profiles/esQuerySortModel.cjs.map +1 -0
  385. package/dist/profiles/esQuerySortModel.d.ts +4 -0
  386. package/dist/profiles/esQuerySortModel.d.ts.map +1 -0
  387. package/dist/profiles/esQuerySortModel.js +13 -0
  388. package/dist/profiles/esQuerySortModel.js.map +1 -0
  389. package/dist/profiles/esValueCombobox.cjs +86 -0
  390. package/dist/profiles/esValueCombobox.cjs.map +1 -0
  391. package/dist/profiles/esValueCombobox.d.ts +15 -0
  392. package/dist/profiles/esValueCombobox.d.ts.map +1 -0
  393. package/dist/profiles/esValueCombobox.js +86 -0
  394. package/dist/profiles/esValueCombobox.js.map +1 -0
  395. package/dist/profiles/jsonPathSample.cjs +75 -0
  396. package/dist/profiles/jsonPathSample.cjs.map +1 -0
  397. package/dist/profiles/jsonPathSample.d.ts +27 -0
  398. package/dist/profiles/jsonPathSample.d.ts.map +1 -0
  399. package/dist/profiles/jsonPathSample.js +75 -0
  400. package/dist/profiles/jsonPathSample.js.map +1 -0
  401. package/dist/profiles/jsonPathSampleRow.cjs +14 -0
  402. package/dist/profiles/jsonPathSampleRow.cjs.map +1 -0
  403. package/dist/profiles/jsonPathSampleRow.d.ts +6 -0
  404. package/dist/profiles/jsonPathSampleRow.d.ts.map +1 -0
  405. package/dist/profiles/jsonPathSampleRow.js +14 -0
  406. package/dist/profiles/jsonPathSampleRow.js.map +1 -0
  407. package/dist/profiles/profileApi.cjs +37 -0
  408. package/dist/profiles/profileApi.cjs.map +1 -0
  409. package/dist/profiles/profileApi.d.ts +32 -0
  410. package/dist/profiles/profileApi.d.ts.map +1 -0
  411. package/dist/profiles/profileApi.js +37 -0
  412. package/dist/profiles/profileApi.js.map +1 -0
  413. package/dist/profiles/profileBuilder.cjs +65 -0
  414. package/dist/profiles/profileBuilder.cjs.map +1 -0
  415. package/dist/profiles/profileBuilder.d.ts +11 -0
  416. package/dist/profiles/profileBuilder.d.ts.map +1 -0
  417. package/dist/profiles/profileBuilder.js +65 -0
  418. package/dist/profiles/profileBuilder.js.map +1 -0
  419. package/dist/profiles/profileBuilderExtension.cjs +25 -0
  420. package/dist/profiles/profileBuilderExtension.cjs.map +1 -0
  421. package/dist/profiles/profileBuilderExtension.d.ts +5 -0
  422. package/dist/profiles/profileBuilderExtension.d.ts.map +1 -0
  423. package/dist/profiles/profileBuilderExtension.js +25 -0
  424. package/dist/profiles/profileBuilderExtension.js.map +1 -0
  425. package/dist/profiles/profileBuilderWorkspace.cjs +368 -0
  426. package/dist/profiles/profileBuilderWorkspace.cjs.map +1 -0
  427. package/dist/profiles/profileBuilderWorkspace.d.ts +21 -0
  428. package/dist/profiles/profileBuilderWorkspace.d.ts.map +1 -0
  429. package/dist/profiles/profileBuilderWorkspace.js +368 -0
  430. package/dist/profiles/profileBuilderWorkspace.js.map +1 -0
  431. package/dist/profiles/profileColumnModel.cjs +23 -0
  432. package/dist/profiles/profileColumnModel.cjs.map +1 -0
  433. package/dist/profiles/profileColumnModel.d.ts +8 -0
  434. package/dist/profiles/profileColumnModel.d.ts.map +1 -0
  435. package/dist/profiles/profileColumnModel.js +23 -0
  436. package/dist/profiles/profileColumnModel.js.map +1 -0
  437. package/dist/profiles/profileColumnPicker.cjs +68 -0
  438. package/dist/profiles/profileColumnPicker.cjs.map +1 -0
  439. package/dist/profiles/profileColumnPicker.d.ts +11 -0
  440. package/dist/profiles/profileColumnPicker.d.ts.map +1 -0
  441. package/dist/profiles/profileColumnPicker.js +68 -0
  442. package/dist/profiles/profileColumnPicker.js.map +1 -0
  443. package/dist/profiles/profileEditor.cjs +386 -0
  444. package/dist/profiles/profileEditor.cjs.map +1 -0
  445. package/dist/profiles/profileEditor.d.ts +19 -0
  446. package/dist/profiles/profileEditor.d.ts.map +1 -0
  447. package/dist/profiles/profileEditor.js +386 -0
  448. package/dist/profiles/profileEditor.js.map +1 -0
  449. package/dist/profiles/profileEditorModel.cjs +181 -0
  450. package/dist/profiles/profileEditorModel.cjs.map +1 -0
  451. package/dist/profiles/profileEditorModel.d.ts +74 -0
  452. package/dist/profiles/profileEditorModel.d.ts.map +1 -0
  453. package/dist/profiles/profileEditorModel.js +181 -0
  454. package/dist/profiles/profileEditorModel.js.map +1 -0
  455. package/dist/profiles/profileEditorPreview.cjs +38 -0
  456. package/dist/profiles/profileEditorPreview.cjs.map +1 -0
  457. package/dist/profiles/profileEditorPreview.d.ts +12 -0
  458. package/dist/profiles/profileEditorPreview.d.ts.map +1 -0
  459. package/dist/profiles/profileEditorPreview.js +38 -0
  460. package/dist/profiles/profileEditorPreview.js.map +1 -0
  461. package/dist/profiles/profileEditorRail.cjs +46 -0
  462. package/dist/profiles/profileEditorRail.cjs.map +1 -0
  463. package/dist/profiles/profileEditorRail.d.ts +8 -0
  464. package/dist/profiles/profileEditorRail.d.ts.map +1 -0
  465. package/dist/profiles/profileEditorRail.js +46 -0
  466. package/dist/profiles/profileEditorRail.js.map +1 -0
  467. package/dist/profiles/profileEditorRaw.cjs +118 -0
  468. package/dist/profiles/profileEditorRaw.cjs.map +1 -0
  469. package/dist/profiles/profileEditorRaw.d.ts +7 -0
  470. package/dist/profiles/profileEditorRaw.d.ts.map +1 -0
  471. package/dist/profiles/profileEditorRaw.js +118 -0
  472. package/dist/profiles/profileEditorRaw.js.map +1 -0
  473. package/dist/profiles/profileEditorRoutes.cjs +7 -0
  474. package/dist/profiles/profileEditorRoutes.cjs.map +1 -0
  475. package/dist/profiles/profileEditorRoutes.d.ts +2 -0
  476. package/dist/profiles/profileEditorRoutes.d.ts.map +1 -0
  477. package/dist/profiles/profileEditorRoutes.js +7 -0
  478. package/dist/profiles/profileEditorRoutes.js.map +1 -0
  479. package/dist/profiles/profileEditorSections.cjs +213 -0
  480. package/dist/profiles/profileEditorSections.cjs.map +1 -0
  481. package/dist/profiles/profileEditorSections.d.ts +23 -0
  482. package/dist/profiles/profileEditorSections.d.ts.map +1 -0
  483. package/dist/profiles/profileEditorSections.js +213 -0
  484. package/dist/profiles/profileEditorSections.js.map +1 -0
  485. package/dist/profiles/profileFieldEditor.cjs +200 -0
  486. package/dist/profiles/profileFieldEditor.cjs.map +1 -0
  487. package/dist/profiles/profileFieldEditor.d.ts +34 -0
  488. package/dist/profiles/profileFieldEditor.d.ts.map +1 -0
  489. package/dist/profiles/profileFieldEditor.js +200 -0
  490. package/dist/profiles/profileFieldEditor.js.map +1 -0
  491. package/dist/profiles/profileFieldGrid.cjs +250 -0
  492. package/dist/profiles/profileFieldGrid.cjs.map +1 -0
  493. package/dist/profiles/profileFieldGrid.d.ts +20 -0
  494. package/dist/profiles/profileFieldGrid.d.ts.map +1 -0
  495. package/dist/profiles/profileFieldGrid.js +250 -0
  496. package/dist/profiles/profileFieldGrid.js.map +1 -0
  497. package/dist/profiles/profileFieldManager.cjs +103 -0
  498. package/dist/profiles/profileFieldManager.cjs.map +1 -0
  499. package/dist/profiles/profileFieldManager.d.ts +9 -0
  500. package/dist/profiles/profileFieldManager.d.ts.map +1 -0
  501. package/dist/profiles/profileFieldManager.js +103 -0
  502. package/dist/profiles/profileFieldManager.js.map +1 -0
  503. package/dist/profiles/profileFieldState.cjs +136 -0
  504. package/dist/profiles/profileFieldState.cjs.map +1 -0
  505. package/dist/profiles/profileFieldState.d.ts +41 -0
  506. package/dist/profiles/profileFieldState.d.ts.map +1 -0
  507. package/dist/profiles/profileFieldState.js +136 -0
  508. package/dist/profiles/profileFieldState.js.map +1 -0
  509. package/dist/profiles/profileFieldTypes.cjs +17 -0
  510. package/dist/profiles/profileFieldTypes.cjs.map +1 -0
  511. package/dist/profiles/profileFieldTypes.d.ts +8 -0
  512. package/dist/profiles/profileFieldTypes.d.ts.map +1 -0
  513. package/dist/profiles/profileFieldTypes.js +17 -0
  514. package/dist/profiles/profileFieldTypes.js.map +1 -0
  515. package/dist/profiles/profileParamModel.cjs +78 -0
  516. package/dist/profiles/profileParamModel.cjs.map +1 -0
  517. package/dist/profiles/profileParamModel.d.ts +3 -0
  518. package/dist/profiles/profileParamModel.d.ts.map +1 -0
  519. package/dist/profiles/profileParamModel.js +78 -0
  520. package/dist/profiles/profileParamModel.js.map +1 -0
  521. package/dist/profiles/profileSamplePayload.cjs +15 -0
  522. package/dist/profiles/profileSamplePayload.cjs.map +1 -0
  523. package/dist/profiles/profileSamplePayload.d.ts +13 -0
  524. package/dist/profiles/profileSamplePayload.d.ts.map +1 -0
  525. package/dist/profiles/profileSamplePayload.js +15 -0
  526. package/dist/profiles/profileSamplePayload.js.map +1 -0
  527. package/dist/profiles/profileWizard.cjs +257 -0
  528. package/dist/profiles/profileWizard.cjs.map +1 -0
  529. package/dist/profiles/profileWizard.d.ts +12 -0
  530. package/dist/profiles/profileWizard.d.ts.map +1 -0
  531. package/dist/profiles/profileWizard.js +257 -0
  532. package/dist/profiles/profileWizard.js.map +1 -0
  533. package/dist/profiles/profileWizardHelp.cjs +10 -0
  534. package/dist/profiles/profileWizardHelp.cjs.map +1 -0
  535. package/dist/profiles/profileWizardHelp.d.ts +13 -0
  536. package/dist/profiles/profileWizardHelp.d.ts.map +1 -0
  537. package/dist/profiles/profileWizardHelp.js +10 -0
  538. package/dist/profiles/profileWizardHelp.js.map +1 -0
  539. package/dist/profiles/profileWizardModel.cjs +198 -0
  540. package/dist/profiles/profileWizardModel.cjs.map +1 -0
  541. package/dist/profiles/profileWizardModel.d.ts +255 -0
  542. package/dist/profiles/profileWizardModel.d.ts.map +1 -0
  543. package/dist/profiles/profileWizardModel.js +198 -0
  544. package/dist/profiles/profileWizardModel.js.map +1 -0
  545. package/dist/profiles/profileWizardQueryStep.cjs +215 -0
  546. package/dist/profiles/profileWizardQueryStep.cjs.map +1 -0
  547. package/dist/profiles/profileWizardQueryStep.d.ts +18 -0
  548. package/dist/profiles/profileWizardQueryStep.d.ts.map +1 -0
  549. package/dist/profiles/profileWizardQueryStep.js +215 -0
  550. package/dist/profiles/profileWizardQueryStep.js.map +1 -0
  551. package/dist/profiles/profileWizardSteps.cjs +214 -0
  552. package/dist/profiles/profileWizardSteps.cjs.map +1 -0
  553. package/dist/profiles/profileWizardSteps.d.ts +35 -0
  554. package/dist/profiles/profileWizardSteps.d.ts.map +1 -0
  555. package/dist/profiles/profileWizardSteps.js +214 -0
  556. package/dist/profiles/profileWizardSteps.js.map +1 -0
  557. package/dist/profiles/profileYaml.cjs +19 -0
  558. package/dist/profiles/profileYaml.cjs.map +1 -0
  559. package/dist/profiles/profileYaml.d.ts +4 -0
  560. package/dist/profiles/profileYaml.d.ts.map +1 -0
  561. package/dist/profiles/profileYaml.js +19 -0
  562. package/dist/profiles/profileYaml.js.map +1 -0
  563. package/dist/profiles/prometheusResults.cjs +60 -0
  564. package/dist/profiles/prometheusResults.cjs.map +1 -0
  565. package/dist/profiles/prometheusResults.d.ts +7 -0
  566. package/dist/profiles/prometheusResults.d.ts.map +1 -0
  567. package/dist/profiles/prometheusResults.js +60 -0
  568. package/dist/profiles/prometheusResults.js.map +1 -0
  569. package/dist/profiles/queryRowLimits.cjs +82 -0
  570. package/dist/profiles/queryRowLimits.cjs.map +1 -0
  571. package/dist/profiles/queryRowLimits.d.ts +9 -0
  572. package/dist/profiles/queryRowLimits.d.ts.map +1 -0
  573. package/dist/profiles/queryRowLimits.js +82 -0
  574. package/dist/profiles/queryRowLimits.js.map +1 -0
  575. package/dist/profiles/queryRowLimitsModel.cjs +10 -0
  576. package/dist/profiles/queryRowLimitsModel.cjs.map +1 -0
  577. package/dist/profiles/queryRowLimitsModel.d.ts +9 -0
  578. package/dist/profiles/queryRowLimitsModel.d.ts.map +1 -0
  579. package/dist/profiles/queryRowLimitsModel.js +10 -0
  580. package/dist/profiles/queryRowLimitsModel.js.map +1 -0
  581. package/dist/profiles/queryTargetPicker.cjs +42 -0
  582. package/dist/profiles/queryTargetPicker.cjs.map +1 -0
  583. package/dist/profiles/queryTargetPicker.d.ts +8 -0
  584. package/dist/profiles/queryTargetPicker.d.ts.map +1 -0
  585. package/dist/profiles/queryTargetPicker.js +42 -0
  586. package/dist/profiles/queryTargetPicker.js.map +1 -0
  587. package/dist/profiles/testSchema.d.ts +3 -0
  588. package/dist/profiles/testSchema.d.ts.map +1 -0
  589. package/dist/profiles.cjs +223 -0
  590. package/dist/profiles.cjs.map +1 -0
  591. package/dist/profiles.d.ts +68 -0
  592. package/dist/profiles.d.ts.map +1 -0
  593. package/dist/profiles.js +223 -0
  594. package/dist/profiles.js.map +1 -0
  595. package/dist/rpc/FilterForm.cjs +20 -0
  596. package/dist/rpc/FilterForm.cjs.map +1 -1
  597. package/dist/rpc/FilterForm.js +20 -0
  598. package/dist/rpc/FilterForm.js.map +1 -1
  599. package/dist/rpc/formMetadata.cjs +34 -0
  600. package/dist/rpc/formMetadata.cjs.map +1 -1
  601. package/dist/rpc/formMetadata.d.ts.map +1 -1
  602. package/dist/rpc/formMetadata.js +35 -1
  603. package/dist/rpc/formMetadata.js.map +1 -1
  604. package/dist/rpc/types.cjs.map +1 -1
  605. package/dist/rpc/types.d.ts +9 -1
  606. package/dist/rpc/types.d.ts.map +1 -1
  607. package/dist/rpc/types.js.map +1 -1
  608. package/dist/styles.css +1 -1
  609. package/package.json +6 -1
@@ -0,0 +1,23 @@
1
+ import { PostExtension } from './json-schema-form-types';
2
+ import { OnePasswordLoaders } from './OnePasswordSelector.model';
3
+ import { KeyPreview, SecretKind, SecretResource, SecretValueSource } from './SecretKeySelector';
4
+ import { WorkloadKind, WorkloadResource } from './workload-picker-utils';
5
+ export type SecretFormLoaders = {
6
+ loadResources: (kind: SecretKind, namespace: string) => Promise<SecretResource[]>;
7
+ loadKeyPreview: (kind: SecretKind, name: string, namespace: string) => Promise<KeyPreview[]>;
8
+ loadServiceAccounts: (namespace: string) => Promise<SecretResource[]>;
9
+ loadOnePasswordVaults: OnePasswordLoaders["loadVaults"];
10
+ loadOnePasswordItems: OnePasswordLoaders["loadItems"];
11
+ loadOnePasswordFields: OnePasswordLoaders["loadFields"];
12
+ loadWorkloads: (namespace: string, kinds: WorkloadKind[]) => Promise<Record<WorkloadKind, WorkloadResource[]>>;
13
+ };
14
+ export type SecretFormExtensionOptions = {
15
+ loaders: SecretFormLoaders;
16
+ secretSources?: SecretValueSource[];
17
+ urlSources?: SecretValueSource[];
18
+ getNamespace?: (rootValue: Record<string, unknown> | undefined) => string;
19
+ };
20
+ export declare function createSecretFormExtensions(options: SecretFormExtensionOptions): {
21
+ post: PostExtension[];
22
+ };
23
+ //# sourceMappingURL=secret-form-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-form-extension.d.ts","sourceRoot":"","sources":["../../src/components/secret-form-extension.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,CACb,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IAC/B,cAAc,EAAE,CACd,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3B,mBAAmB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACtE,qBAAqB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IACxD,oBAAoB,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACtD,qBAAqB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IACxD,aAAa,EAAE,CACb,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,YAAY,EAAE,KAClB,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KAAK,MAAM,CAAC;CAC3E,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,0BAA0B,GAClC;IAAE,IAAI,EAAE,aAAa,EAAE,CAAA;CAAE,CAoB3B"}
@@ -0,0 +1,30 @@
1
+ import { createElement } from "react";
2
+ import { SecretFormField } from "./SecretFormField.js";
3
+ function createSecretFormExtensions(options) {
4
+ const post = (field, nodes, context) => {
5
+ const component = field.schema["x-clicky-component"];
6
+ if (component !== "k8s-secret-selector" && component !== "k8s-url-selector") {
7
+ return nodes;
8
+ }
9
+ return {
10
+ label: nodes.label,
11
+ value: createElement(SecretFormField, {
12
+ ...options,
13
+ field,
14
+ namespace: namespaceFor(options, context),
15
+ allowWorkload: component === "k8s-url-selector"
16
+ })
17
+ };
18
+ };
19
+ return { post: [post] };
20
+ }
21
+ function namespaceFor(options, context) {
22
+ var _a;
23
+ if (options.getNamespace) return options.getNamespace(context == null ? void 0 : context.rootValue);
24
+ const namespace = (_a = context == null ? void 0 : context.rootValue) == null ? void 0 : _a.namespace;
25
+ return typeof namespace === "string" ? namespace : "";
26
+ }
27
+ export {
28
+ createSecretFormExtensions
29
+ };
30
+ //# sourceMappingURL=secret-form-extension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-form-extension.js","sources":["../../src/components/secret-form-extension.ts"],"sourcesContent":["import { createElement } from \"react\";\nimport { SecretFormField } from \"./SecretFormField\";\nimport type {\n PostExtension,\n PostExtensionContext,\n} from \"./json-schema-form-types\";\nimport type { OnePasswordLoaders } from \"./OnePasswordSelector.model\";\nimport type {\n KeyPreview,\n SecretKind,\n SecretResource,\n SecretValueSource,\n} from \"./SecretKeySelector\";\nimport type {\n WorkloadKind,\n WorkloadResource,\n} from \"./workload-picker-utils\";\n\nexport type SecretFormLoaders = {\n loadResources: (\n kind: SecretKind,\n namespace: string,\n ) => Promise<SecretResource[]>;\n loadKeyPreview: (\n kind: SecretKind,\n name: string,\n namespace: string,\n ) => Promise<KeyPreview[]>;\n loadServiceAccounts: (namespace: string) => Promise<SecretResource[]>;\n loadOnePasswordVaults: OnePasswordLoaders[\"loadVaults\"];\n loadOnePasswordItems: OnePasswordLoaders[\"loadItems\"];\n loadOnePasswordFields: OnePasswordLoaders[\"loadFields\"];\n loadWorkloads: (\n namespace: string,\n kinds: WorkloadKind[],\n ) => Promise<Record<WorkloadKind, WorkloadResource[]>>;\n};\n\nexport type SecretFormExtensionOptions = {\n loaders: SecretFormLoaders;\n secretSources?: SecretValueSource[];\n urlSources?: SecretValueSource[];\n getNamespace?: (rootValue: Record<string, unknown> | undefined) => string;\n};\n\nexport function createSecretFormExtensions(\n options: SecretFormExtensionOptions,\n): { post: PostExtension[] } {\n const post: PostExtension = (field, nodes, context) => {\n const component = field.schema[\"x-clicky-component\"];\n if (\n component !== \"k8s-secret-selector\" &&\n component !== \"k8s-url-selector\"\n ) {\n return nodes;\n }\n return {\n label: nodes.label,\n value: createElement(SecretFormField, {\n ...options,\n field,\n namespace: namespaceFor(options, context),\n allowWorkload: component === \"k8s-url-selector\",\n }),\n };\n };\n return { post: [post] };\n}\n\nfunction namespaceFor(\n options: SecretFormExtensionOptions,\n context: PostExtensionContext | undefined,\n): string {\n if (options.getNamespace) return options.getNamespace(context?.rootValue);\n const namespace = context?.rootValue?.namespace;\n return typeof namespace === \"string\" ? namespace : \"\";\n}\n"],"names":[],"mappings":";;AA6CO,SAAS,2BACd,SAC2B;AAC3B,QAAM,OAAsB,CAAC,OAAO,OAAO,YAAY;AACrD,UAAM,YAAY,MAAM,OAAO,oBAAoB;AACnD,QACE,cAAc,yBACd,cAAc,oBACd;AACA,aAAO;AAAA,IACT;AACA,WAAO;AAAA,MACL,OAAO,MAAM;AAAA,MACb,OAAO,cAAc,iBAAiB;AAAA,QACpC,GAAG;AAAA,QACH;AAAA,QACA,WAAW,aAAa,SAAS,OAAO;AAAA,QACxC,eAAe,cAAc;AAAA,MAAA,CAC9B;AAAA,IAAA;AAAA,EAEL;AACA,SAAO,EAAE,MAAM,CAAC,IAAI,EAAA;AACtB;AAEA,SAAS,aACP,SACA,SACQ;;AACR,MAAI,QAAQ,aAAc,QAAO,QAAQ,aAAa,mCAAS,SAAS;AACxE,QAAM,aAAY,wCAAS,cAAT,mBAAoB;AACtC,SAAO,OAAO,cAAc,WAAW,YAAY;AACrD;"}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const utils = require("../lib/utils.cjs");
5
+ const UnitStepControls = require("./UnitStepControls.cjs");
6
+ const COUNT_SCALES = [
7
+ { label: "", multiplier: 1n },
8
+ { label: "K", multiplier: 1000n },
9
+ { label: "M", multiplier: 1000000n },
10
+ { label: "B", multiplier: 1000000000n },
11
+ { label: "T", multiplier: 1000000000000n }
12
+ ];
13
+ const BYTE_SCALES = [
14
+ { label: "B", multiplier: 1n },
15
+ { label: "KiB", multiplier: 1024n },
16
+ { label: "MiB", multiplier: 1048576n },
17
+ { label: "GiB", multiplier: 1073741824n },
18
+ { label: "TiB", multiplier: 1099511627776n }
19
+ ];
20
+ const scales = (kind) => kind === "bytes" ? BYTE_SCALES : COUNT_SCALES;
21
+ function canonicalInteger(value) {
22
+ if (typeof value === "number") {
23
+ return Number.isSafeInteger(value) && value > 0 ? String(value) : null;
24
+ }
25
+ if (typeof value !== "string" || !/^[1-9][0-9]*$/.test(value)) return null;
26
+ return value;
27
+ }
28
+ function scaledDecimal(value, multiplier) {
29
+ const integer = value / multiplier;
30
+ let remainder = value % multiplier;
31
+ if (remainder === 0n) return String(integer);
32
+ let fraction = "";
33
+ while (remainder !== 0n && fraction.length < 3) {
34
+ remainder *= 10n;
35
+ fraction += String(remainder / multiplier);
36
+ remainder %= multiplier;
37
+ }
38
+ return remainder === 0n ? `${integer}.${fraction}` : null;
39
+ }
40
+ function formatUnitAwareValue(value, kind) {
41
+ const canonical = canonicalInteger(value);
42
+ if (canonical === null) return value;
43
+ const integer = BigInt(canonical);
44
+ for (const scale of scales(kind).toReversed()) {
45
+ if (integer < scale.multiplier) continue;
46
+ const amount = scaledDecimal(integer, scale.multiplier);
47
+ if (amount !== null) return `${amount}${scale.label}`;
48
+ }
49
+ return canonical;
50
+ }
51
+ function scaleForLabel(kind, label) {
52
+ if (kind === "count") {
53
+ return COUNT_SCALES.find((scale) => scale.label.toLowerCase() === label.toLowerCase());
54
+ }
55
+ const normalized = label.toLowerCase();
56
+ const aliases = {
57
+ "": "B",
58
+ k: "KiB",
59
+ kb: "KiB",
60
+ m: "MiB",
61
+ mb: "MiB",
62
+ g: "GiB",
63
+ gb: "GiB",
64
+ t: "TiB",
65
+ tb: "TiB"
66
+ };
67
+ const canonical = aliases[normalized] ?? label;
68
+ return BYTE_SCALES.find((scale) => scale.label.toLowerCase() === canonical.toLowerCase());
69
+ }
70
+ function parseUnitAwareValue(value, kind) {
71
+ const match = value.trim().replaceAll(",", "").replaceAll("_", "").match(
72
+ /^(\d+(?:\.\d+)?|\.\d+)\s*([a-zA-Z]*)$/
73
+ );
74
+ if (!match) return null;
75
+ const amount = match[1];
76
+ const scale = scaleForLabel(kind, match[2] ?? "");
77
+ if (!amount || !scale) return null;
78
+ const [whole, fraction = ""] = amount.split(".");
79
+ const denominator = 10n ** BigInt(fraction.length);
80
+ const numerator = BigInt(`${whole || "0"}${fraction}`) * scale.multiplier;
81
+ if (numerator % denominator !== 0n) return null;
82
+ const canonical = numerator / denominator;
83
+ return canonical > 0n ? String(canonical) : null;
84
+ }
85
+ function unitKind(field) {
86
+ const unit = field.schema["x-clicky-unit"];
87
+ return unit === "count" || unit === "bytes" ? unit : null;
88
+ }
89
+ function steppedValue(value, direction) {
90
+ const canonical = canonicalInteger(value);
91
+ if (canonical === null) return null;
92
+ const integer = BigInt(canonical);
93
+ const next = direction === "increase" ? integer * 2n : integer / 2n;
94
+ return next > 0n ? String(next) : null;
95
+ }
96
+ function createUnitFormExtensions() {
97
+ const pre = (field) => {
98
+ const kind = unitKind(field);
99
+ if (!kind) return field;
100
+ return {
101
+ ...field,
102
+ value: formatUnitAwareValue(field.value, kind),
103
+ suffix: /* @__PURE__ */ jsxRuntime.jsx(
104
+ UnitStepControls.UnitStepControls,
105
+ {
106
+ label: field.label,
107
+ suffix: field.suffix,
108
+ decrease: steppedValue(field.value, "decrease"),
109
+ increase: steppedValue(field.value, "increase"),
110
+ schemaReadOnly: field.readOnly === true,
111
+ onChange: field.onChange
112
+ }
113
+ ),
114
+ inputClassName: utils.cn(field.inputClassName, field.suffix ? "pr-28" : "pr-20"),
115
+ onChange: (next) => {
116
+ const text = typeof next === "string" ? next : String(next ?? "");
117
+ field.onChange(parseUnitAwareValue(text, kind) ?? text);
118
+ }
119
+ };
120
+ };
121
+ return { pre: [pre] };
122
+ }
123
+ exports.createUnitFormExtensions = createUnitFormExtensions;
124
+ exports.formatUnitAwareValue = formatUnitAwareValue;
125
+ exports.parseUnitAwareValue = parseUnitAwareValue;
126
+ //# sourceMappingURL=unit-form-extension.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-form-extension.cjs","sources":["../../src/components/unit-form-extension.tsx"],"sourcesContent":["import { cn } from \"../lib/utils\";\nimport { UnitStepControls } from \"./UnitStepControls\";\nimport type { FieldControl, PreExtension } from \"./json-schema-form-types\";\n\nexport type UnitInputKind = \"count\" | \"bytes\";\n\ntype UnitScale = {\n label: string;\n multiplier: bigint;\n};\n\nconst COUNT_SCALES: UnitScale[] = [\n { label: \"\", multiplier: 1n },\n { label: \"K\", multiplier: 1_000n },\n { label: \"M\", multiplier: 1_000_000n },\n { label: \"B\", multiplier: 1_000_000_000n },\n { label: \"T\", multiplier: 1_000_000_000_000n },\n];\n\nconst BYTE_SCALES: UnitScale[] = [\n { label: \"B\", multiplier: 1n },\n { label: \"KiB\", multiplier: 1_024n },\n { label: \"MiB\", multiplier: 1_048_576n },\n { label: \"GiB\", multiplier: 1_073_741_824n },\n { label: \"TiB\", multiplier: 1_099_511_627_776n },\n];\n\nconst scales = (kind: UnitInputKind) => kind === \"bytes\" ? BYTE_SCALES : COUNT_SCALES;\n\nfunction canonicalInteger(value: unknown): string | null {\n if (typeof value === \"number\") {\n return Number.isSafeInteger(value) && value > 0 ? String(value) : null;\n }\n if (typeof value !== \"string\" || !/^[1-9][0-9]*$/.test(value)) return null;\n return value;\n}\n\nfunction scaledDecimal(value: bigint, multiplier: bigint): string | null {\n const integer = value / multiplier;\n let remainder = value % multiplier;\n if (remainder === 0n) return String(integer);\n\n let fraction = \"\";\n while (remainder !== 0n && fraction.length < 3) {\n remainder *= 10n;\n fraction += String(remainder / multiplier);\n remainder %= multiplier;\n }\n return remainder === 0n ? `${integer}.${fraction}` : null;\n}\n\nexport function formatUnitAwareValue(value: unknown, kind: UnitInputKind): unknown {\n const canonical = canonicalInteger(value);\n if (canonical === null) return value;\n\n const integer = BigInt(canonical);\n for (const scale of scales(kind).toReversed()) {\n if (integer < scale.multiplier) continue;\n const amount = scaledDecimal(integer, scale.multiplier);\n if (amount !== null) return `${amount}${scale.label}`;\n }\n return canonical;\n}\n\nfunction scaleForLabel(kind: UnitInputKind, label: string): UnitScale | undefined {\n if (kind === \"count\") {\n return COUNT_SCALES.find((scale) => scale.label.toLowerCase() === label.toLowerCase());\n }\n const normalized = label.toLowerCase();\n const aliases: Record<string, string> = {\n \"\": \"B\",\n k: \"KiB\",\n kb: \"KiB\",\n m: \"MiB\",\n mb: \"MiB\",\n g: \"GiB\",\n gb: \"GiB\",\n t: \"TiB\",\n tb: \"TiB\",\n };\n const canonical = aliases[normalized] ?? label;\n return BYTE_SCALES.find((scale) => scale.label.toLowerCase() === canonical.toLowerCase());\n}\n\nexport function parseUnitAwareValue(value: string, kind: UnitInputKind): string | null {\n const match = value.trim().replaceAll(\",\", \"\").replaceAll(\"_\", \"\").match(\n /^(\\d+(?:\\.\\d+)?|\\.\\d+)\\s*([a-zA-Z]*)$/,\n );\n if (!match) return null;\n\n const amount = match[1];\n const scale = scaleForLabel(kind, match[2] ?? \"\");\n if (!amount || !scale) return null;\n const [whole, fraction = \"\"] = amount.split(\".\");\n const denominator = 10n ** BigInt(fraction.length);\n const numerator = BigInt(`${whole || \"0\"}${fraction}`) * scale.multiplier;\n if (numerator % denominator !== 0n) return null;\n\n const canonical = numerator / denominator;\n return canonical > 0n ? String(canonical) : null;\n}\n\nfunction unitKind(field: FieldControl): UnitInputKind | null {\n const unit = field.schema[\"x-clicky-unit\"];\n return unit === \"count\" || unit === \"bytes\" ? unit : null;\n}\n\nfunction steppedValue(value: unknown, direction: \"decrease\" | \"increase\"): string | null {\n const canonical = canonicalInteger(value);\n if (canonical === null) return null;\n const integer = BigInt(canonical);\n const next = direction === \"increase\" ? integer * 2n : integer / 2n;\n return next > 0n ? String(next) : null;\n}\n\nexport function createUnitFormExtensions(): { pre: PreExtension[] } {\n const pre: PreExtension = (field) => {\n const kind = unitKind(field);\n if (!kind) return field;\n return {\n ...field,\n value: formatUnitAwareValue(field.value, kind),\n suffix: (\n <UnitStepControls\n label={field.label}\n suffix={field.suffix}\n decrease={steppedValue(field.value, \"decrease\")}\n increase={steppedValue(field.value, \"increase\")}\n schemaReadOnly={field.readOnly === true}\n onChange={field.onChange}\n />\n ),\n inputClassName: cn(field.inputClassName, field.suffix ? \"pr-28\" : \"pr-20\"),\n onChange: (next) => {\n const text = typeof next === \"string\" ? next : String(next ?? \"\");\n field.onChange(parseUnitAwareValue(text, kind) ?? text);\n },\n };\n };\n return { pre: [pre] };\n}\n"],"names":["jsx","UnitStepControls","cn"],"mappings":";;;;;AAWA,MAAM,eAA4B;AAAA,EAChC,EAAE,OAAO,IAAI,YAAY,GAAA;AAAA,EACzB,EAAE,OAAO,KAAK,YAAY,MAAA;AAAA,EAC1B,EAAE,OAAO,KAAK,YAAY,SAAA;AAAA,EAC1B,EAAE,OAAO,KAAK,YAAY,YAAA;AAAA,EAC1B,EAAE,OAAO,KAAK,YAAY,eAAA;AAC5B;AAEA,MAAM,cAA2B;AAAA,EAC/B,EAAE,OAAO,KAAK,YAAY,GAAA;AAAA,EAC1B,EAAE,OAAO,OAAO,YAAY,MAAA;AAAA,EAC5B,EAAE,OAAO,OAAO,YAAY,SAAA;AAAA,EAC5B,EAAE,OAAO,OAAO,YAAY,YAAA;AAAA,EAC5B,EAAE,OAAO,OAAO,YAAY,eAAA;AAC9B;AAEA,MAAM,SAAS,CAAC,SAAwB,SAAS,UAAU,cAAc;AAEzE,SAAS,iBAAiB,OAA+B;AACvD,MAAI,OAAO,UAAU,UAAU;AAC7B,WAAO,OAAO,cAAc,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI;AAAA,EACpE;AACA,MAAI,OAAO,UAAU,YAAY,CAAC,gBAAgB,KAAK,KAAK,EAAG,QAAO;AACtE,SAAO;AACT;AAEA,SAAS,cAAc,OAAe,YAAmC;AACvE,QAAM,UAAU,QAAQ;AACxB,MAAI,YAAY,QAAQ;AACxB,MAAI,cAAc,GAAI,QAAO,OAAO,OAAO;AAE3C,MAAI,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AU,CAAC,SAAS;AAClB,cAAM,OAAO,OAAO,SAAS,WAAW,OAAO,OAAO,QAAQ,EAAE;AAChE,cAAM,SAAS,oBAAoB,MAAM,IAAI,KAAK,IAAI;AAAA,MACxD;AAAA,IAAA;AAAA,EAEJ;AACA,SAAO,EAAE,KAAK,CAAC,GAAG,EAAA;AACpB;;;;"}
@@ -0,0 +1,8 @@
1
+ import { PreExtension } from './json-schema-form-types';
2
+ export type UnitInputKind = "count" | "bytes";
3
+ export declare function formatUnitAwareValue(value: unknown, kind: UnitInputKind): unknown;
4
+ export declare function parseUnitAwareValue(value: string, kind: UnitInputKind): string | null;
5
+ export declare function createUnitFormExtensions(): {
6
+ pre: PreExtension[];
7
+ };
8
+ //# sourceMappingURL=unit-form-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-form-extension.d.ts","sourceRoot":"","sources":["../../src/components/unit-form-extension.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC;AA+C9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAWjF;AAsBD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAgBrF;AAeD,wBAAgB,wBAAwB,IAAI;IAAE,GAAG,EAAE,YAAY,EAAE,CAAA;CAAE,CAyBlE"}
@@ -0,0 +1,126 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils.js";
3
+ import { UnitStepControls } from "./UnitStepControls.js";
4
+ const COUNT_SCALES = [
5
+ { label: "", multiplier: 1n },
6
+ { label: "K", multiplier: 1000n },
7
+ { label: "M", multiplier: 1000000n },
8
+ { label: "B", multiplier: 1000000000n },
9
+ { label: "T", multiplier: 1000000000000n }
10
+ ];
11
+ const BYTE_SCALES = [
12
+ { label: "B", multiplier: 1n },
13
+ { label: "KiB", multiplier: 1024n },
14
+ { label: "MiB", multiplier: 1048576n },
15
+ { label: "GiB", multiplier: 1073741824n },
16
+ { label: "TiB", multiplier: 1099511627776n }
17
+ ];
18
+ const scales = (kind) => kind === "bytes" ? BYTE_SCALES : COUNT_SCALES;
19
+ function canonicalInteger(value) {
20
+ if (typeof value === "number") {
21
+ return Number.isSafeInteger(value) && value > 0 ? String(value) : null;
22
+ }
23
+ if (typeof value !== "string" || !/^[1-9][0-9]*$/.test(value)) return null;
24
+ return value;
25
+ }
26
+ function scaledDecimal(value, multiplier) {
27
+ const integer = value / multiplier;
28
+ let remainder = value % multiplier;
29
+ if (remainder === 0n) return String(integer);
30
+ let fraction = "";
31
+ while (remainder !== 0n && fraction.length < 3) {
32
+ remainder *= 10n;
33
+ fraction += String(remainder / multiplier);
34
+ remainder %= multiplier;
35
+ }
36
+ return remainder === 0n ? `${integer}.${fraction}` : null;
37
+ }
38
+ function formatUnitAwareValue(value, kind) {
39
+ const canonical = canonicalInteger(value);
40
+ if (canonical === null) return value;
41
+ const integer = BigInt(canonical);
42
+ for (const scale of scales(kind).toReversed()) {
43
+ if (integer < scale.multiplier) continue;
44
+ const amount = scaledDecimal(integer, scale.multiplier);
45
+ if (amount !== null) return `${amount}${scale.label}`;
46
+ }
47
+ return canonical;
48
+ }
49
+ function scaleForLabel(kind, label) {
50
+ if (kind === "count") {
51
+ return COUNT_SCALES.find((scale) => scale.label.toLowerCase() === label.toLowerCase());
52
+ }
53
+ const normalized = label.toLowerCase();
54
+ const aliases = {
55
+ "": "B",
56
+ k: "KiB",
57
+ kb: "KiB",
58
+ m: "MiB",
59
+ mb: "MiB",
60
+ g: "GiB",
61
+ gb: "GiB",
62
+ t: "TiB",
63
+ tb: "TiB"
64
+ };
65
+ const canonical = aliases[normalized] ?? label;
66
+ return BYTE_SCALES.find((scale) => scale.label.toLowerCase() === canonical.toLowerCase());
67
+ }
68
+ function parseUnitAwareValue(value, kind) {
69
+ const match = value.trim().replaceAll(",", "").replaceAll("_", "").match(
70
+ /^(\d+(?:\.\d+)?|\.\d+)\s*([a-zA-Z]*)$/
71
+ );
72
+ if (!match) return null;
73
+ const amount = match[1];
74
+ const scale = scaleForLabel(kind, match[2] ?? "");
75
+ if (!amount || !scale) return null;
76
+ const [whole, fraction = ""] = amount.split(".");
77
+ const denominator = 10n ** BigInt(fraction.length);
78
+ const numerator = BigInt(`${whole || "0"}${fraction}`) * scale.multiplier;
79
+ if (numerator % denominator !== 0n) return null;
80
+ const canonical = numerator / denominator;
81
+ return canonical > 0n ? String(canonical) : null;
82
+ }
83
+ function unitKind(field) {
84
+ const unit = field.schema["x-clicky-unit"];
85
+ return unit === "count" || unit === "bytes" ? unit : null;
86
+ }
87
+ function steppedValue(value, direction) {
88
+ const canonical = canonicalInteger(value);
89
+ if (canonical === null) return null;
90
+ const integer = BigInt(canonical);
91
+ const next = direction === "increase" ? integer * 2n : integer / 2n;
92
+ return next > 0n ? String(next) : null;
93
+ }
94
+ function createUnitFormExtensions() {
95
+ const pre = (field) => {
96
+ const kind = unitKind(field);
97
+ if (!kind) return field;
98
+ return {
99
+ ...field,
100
+ value: formatUnitAwareValue(field.value, kind),
101
+ suffix: /* @__PURE__ */ jsx(
102
+ UnitStepControls,
103
+ {
104
+ label: field.label,
105
+ suffix: field.suffix,
106
+ decrease: steppedValue(field.value, "decrease"),
107
+ increase: steppedValue(field.value, "increase"),
108
+ schemaReadOnly: field.readOnly === true,
109
+ onChange: field.onChange
110
+ }
111
+ ),
112
+ inputClassName: cn(field.inputClassName, field.suffix ? "pr-28" : "pr-20"),
113
+ onChange: (next) => {
114
+ const text = typeof next === "string" ? next : String(next ?? "");
115
+ field.onChange(parseUnitAwareValue(text, kind) ?? text);
116
+ }
117
+ };
118
+ };
119
+ return { pre: [pre] };
120
+ }
121
+ export {
122
+ createUnitFormExtensions,
123
+ formatUnitAwareValue,
124
+ parseUnitAwareValue
125
+ };
126
+ //# sourceMappingURL=unit-form-extension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-form-extension.js","sources":["../../src/components/unit-form-extension.tsx"],"sourcesContent":["import { cn } from \"../lib/utils\";\nimport { UnitStepControls } from \"./UnitStepControls\";\nimport type { FieldControl, PreExtension } from \"./json-schema-form-types\";\n\nexport type UnitInputKind = \"count\" | \"bytes\";\n\ntype UnitScale = {\n label: string;\n multiplier: bigint;\n};\n\nconst COUNT_SCALES: UnitScale[] = [\n { label: \"\", multiplier: 1n },\n { label: \"K\", multiplier: 1_000n },\n { label: \"M\", multiplier: 1_000_000n },\n { label: \"B\", multiplier: 1_000_000_000n },\n { label: \"T\", multiplier: 1_000_000_000_000n },\n];\n\nconst BYTE_SCALES: UnitScale[] = [\n { label: \"B\", multiplier: 1n },\n { label: \"KiB\", multiplier: 1_024n },\n { label: \"MiB\", multiplier: 1_048_576n },\n { label: \"GiB\", multiplier: 1_073_741_824n },\n { label: \"TiB\", multiplier: 1_099_511_627_776n },\n];\n\nconst scales = (kind: UnitInputKind) => kind === \"bytes\" ? BYTE_SCALES : COUNT_SCALES;\n\nfunction canonicalInteger(value: unknown): string | null {\n if (typeof value === \"number\") {\n return Number.isSafeInteger(value) && value > 0 ? String(value) : null;\n }\n if (typeof value !== \"string\" || !/^[1-9][0-9]*$/.test(value)) return null;\n return value;\n}\n\nfunction scaledDecimal(value: bigint, multiplier: bigint): string | null {\n const integer = value / multiplier;\n let remainder = value % multiplier;\n if (remainder === 0n) return String(integer);\n\n let fraction = \"\";\n while (remainder !== 0n && fraction.length < 3) {\n remainder *= 10n;\n fraction += String(remainder / multiplier);\n remainder %= multiplier;\n }\n return remainder === 0n ? `${integer}.${fraction}` : null;\n}\n\nexport function formatUnitAwareValue(value: unknown, kind: UnitInputKind): unknown {\n const canonical = canonicalInteger(value);\n if (canonical === null) return value;\n\n const integer = BigInt(canonical);\n for (const scale of scales(kind).toReversed()) {\n if (integer < scale.multiplier) continue;\n const amount = scaledDecimal(integer, scale.multiplier);\n if (amount !== null) return `${amount}${scale.label}`;\n }\n return canonical;\n}\n\nfunction scaleForLabel(kind: UnitInputKind, label: string): UnitScale | undefined {\n if (kind === \"count\") {\n return COUNT_SCALES.find((scale) => scale.label.toLowerCase() === label.toLowerCase());\n }\n const normalized = label.toLowerCase();\n const aliases: Record<string, string> = {\n \"\": \"B\",\n k: \"KiB\",\n kb: \"KiB\",\n m: \"MiB\",\n mb: \"MiB\",\n g: \"GiB\",\n gb: \"GiB\",\n t: \"TiB\",\n tb: \"TiB\",\n };\n const canonical = aliases[normalized] ?? label;\n return BYTE_SCALES.find((scale) => scale.label.toLowerCase() === canonical.toLowerCase());\n}\n\nexport function parseUnitAwareValue(value: string, kind: UnitInputKind): string | null {\n const match = value.trim().replaceAll(\",\", \"\").replaceAll(\"_\", \"\").match(\n /^(\\d+(?:\\.\\d+)?|\\.\\d+)\\s*([a-zA-Z]*)$/,\n );\n if (!match) return null;\n\n const amount = match[1];\n const scale = scaleForLabel(kind, match[2] ?? \"\");\n if (!amount || !scale) return null;\n const [whole, fraction = \"\"] = amount.split(\".\");\n const denominator = 10n ** BigInt(fraction.length);\n const numerator = BigInt(`${whole || \"0\"}${fraction}`) * scale.multiplier;\n if (numerator % denominator !== 0n) return null;\n\n const canonical = numerator / denominator;\n return canonical > 0n ? String(canonical) : null;\n}\n\nfunction unitKind(field: FieldControl): UnitInputKind | null {\n const unit = field.schema[\"x-clicky-unit\"];\n return unit === \"count\" || unit === \"bytes\" ? unit : null;\n}\n\nfunction steppedValue(value: unknown, direction: \"decrease\" | \"increase\"): string | null {\n const canonical = canonicalInteger(value);\n if (canonical === null) return null;\n const integer = BigInt(canonical);\n const next = direction === \"increase\" ? integer * 2n : integer / 2n;\n return next > 0n ? String(next) : null;\n}\n\nexport function createUnitFormExtensions(): { pre: PreExtension[] } {\n const pre: PreExtension = (field) => {\n const kind = unitKind(field);\n if (!kind) return field;\n return {\n ...field,\n value: formatUnitAwareValue(field.value, kind),\n suffix: (\n <UnitStepControls\n label={field.label}\n suffix={field.suffix}\n decrease={steppedValue(field.value, \"decrease\")}\n increase={steppedValue(field.value, \"increase\")}\n schemaReadOnly={field.readOnly === true}\n onChange={field.onChange}\n />\n ),\n inputClassName: cn(field.inputClassName, field.suffix ? \"pr-28\" : \"pr-20\"),\n onChange: (next) => {\n const text = typeof next === \"string\" ? next : String(next ?? \"\");\n field.onChange(parseUnitAwareValue(text, kind) ?? text);\n },\n };\n };\n return { pre: [pre] };\n}\n"],"names":[],"mappings":";;;AAWA,MAAM,eAA4B;AAAA,EAChC,EAAE,OAAO,IAAI,YAAY,GAAA;AAAA,EACzB,EAAE,OAAO,KAAK,YAAY,MAAA;AAAA,EAC1B,EAAE,OAAO,KAAK,YAAY,SAAA;AAAA,EAC1B,EAAE,OAAO,KAAK,YAAY,YAAA;AAAA,EAC1B,EAAE,OAAO,KAAK,YAAY,eAAA;AAC5B;AAEA,MAAM,cAA2B;AAAA,EAC/B,EAAE,OAAO,KAAK,YAAY,GAAA;AAAA,EAC1B,EAAE,OAAO,OAAO,YAAY,MAAA;AAAA,EAC5B,EAAE,OAAO,OAAO,YAAY,SAAA;AAAA,EAC5B,EAAE,OAAO,OAAO,YAAY,YAAA;AAAA,EAC5B,EAAE,OAAO,OAAO,YAAY,eAAA;AAC9B;AAEA,MAAM,SAAS,CAAC,SAAwB,SAAS,UAAU,cAAc;AAEzE,SAAS,iBAAiB,OAA+B;AACvD,MAAI,OAAO,UAAU,UAAU;AAC7B,WAAO,OAAO,cAAc,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI;AAAA,EACpE;AACA,MAAI,OAAO,UAAU,YAAY,CAAC,gBAAgB,KAAK,KAAK,EAAG,QAAO;AACtE,SAAO;AACT;AAEA,SAAS,cAAc,OAAe,YAAmC;AACvE,QAAM,UAAU,QAAQ;AACxB,MAAI,YAAY,QAAQ;AACxB,MAAI,cAAc,GAAI,QAAO,OAAO,OAAO;AAE3C,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AAM,OAAO,OAAO,SAAS,WAAW,OAAO,OAAO,QAAQ,EAAE;AAChE,cAAM,SAAS,oBAAoB,MAAM,IAAI,KAAK,IAAI;AAAA,MACxD;AAAA,IAAA;AAAA,EAEJ;AACA,SAAO,EAAE,KAAK,CAAC,GAAG,EAAA;AACpB;"}
@@ -8,6 +8,8 @@ const IconButton = require("./components/IconButton.cjs");
8
8
  const SplitButton = require("./components/SplitButton.cjs");
9
9
  const InputField = require("./components/InputField.cjs");
10
10
  const JSONPathField = require("./components/JSONPathField.cjs");
11
+ const JSONPathPlayground = require("./components/JSONPathPlayground.cjs");
12
+ const jsonPathTree = require("./components/jsonPathTree.cjs");
11
13
  const SegmentedControl = require("./components/SegmentedControl.cjs");
12
14
  const TriStateToggle = require("./components/TriStateToggle.cjs");
13
15
  const triState = require("./components/tri-state.cjs");
@@ -30,17 +32,22 @@ const useForm = require("./components/use-form.cjs");
30
32
  const TreePickerField = require("./components/TreePickerField.cjs");
31
33
  const WorkloadPicker = require("./components/WorkloadPicker.cjs");
32
34
  const EndpointSelector = require("./components/EndpointSelector.cjs");
35
+ const EndpointSelector_model = require("./components/EndpointSelector.model.cjs");
33
36
  const endpointPort = require("./components/endpoint-port.cjs");
34
37
  const NamespacePicker = require("./components/NamespacePicker.cjs");
35
38
  const workloadPickerUtils = require("./components/workload-picker-utils.cjs");
36
39
  const SecretKeySelector = require("./components/SecretKeySelector.cjs");
37
40
  const SecretKeySelector_model = require("./components/SecretKeySelector.model.cjs");
41
+ const OnePasswordSelector = require("./components/OnePasswordSelector.cjs");
42
+ const OnePasswordSelector_model = require("./components/OnePasswordSelector.model.cjs");
43
+ const secretFormExtension = require("./components/secret-form-extension.cjs");
38
44
  const themeSwitcher = require("./components/theme-switcher.cjs");
39
45
  const densitySwitcher = require("./components/density-switcher.cjs");
40
46
  const iconMenuPicker = require("./components/icon-menu-picker.cjs");
41
47
  const ListMenu = require("./components/ListMenu.cjs");
42
48
  const useListMenuSelection = require("./components/use-list-menu-selection.cjs");
43
49
  const JsonSchemaForm = require("./components/JsonSchemaForm.cjs");
50
+ const unitFormExtension = require("./components/unit-form-extension.cjs");
44
51
  const FormLookupProvider = require("./components/FormLookupProvider.cjs");
45
52
  const formLookupContext = require("./components/form-lookup-context.cjs");
46
53
  const jsonSchemaFormSize = require("./components/json-schema-form-size.cjs");
@@ -81,6 +88,10 @@ exports.IconButton = IconButton.IconButton;
81
88
  exports.SplitButton = SplitButton.SplitButton;
82
89
  exports.InputField = InputField.InputField;
83
90
  exports.JSONPathField = JSONPathField.JSONPathField;
91
+ exports.JSONPathPlayground = JSONPathPlayground.JSONPathPlayground;
92
+ exports.buildJSONPathNode = jsonPathTree.buildJSONPathNode;
93
+ exports.createLazyJSONPathTree = jsonPathTree.createLazyJSONPathTree;
94
+ exports.literalSegments = jsonPathTree.literalSegments;
84
95
  exports.SegmentedControl = SegmentedControl.SegmentedControl;
85
96
  exports.TriStateToggle = TriStateToggle.TriStateToggle;
86
97
  exports.nextTriState = triState.nextTriState;
@@ -103,6 +114,8 @@ exports.useForm = useForm.useForm;
103
114
  exports.TreePickerField = TreePickerField.TreePickerField;
104
115
  exports.WorkloadPicker = WorkloadPicker.WorkloadPicker;
105
116
  exports.EndpointSelector = EndpointSelector.EndpointSelector;
117
+ exports.parseEndpointValue = EndpointSelector_model.parseEndpointValue;
118
+ exports.serializeEndpointValue = EndpointSelector_model.serializeEndpointValue;
106
119
  exports.DEFAULT_PREFERRED_ENDPOINT_PORTS = endpointPort.DEFAULT_PREFERRED_ENDPOINT_PORTS;
107
120
  exports.preferredEndpointPort = endpointPort.preferredEndpointPort;
108
121
  exports.NamespacePicker = NamespacePicker.NamespacePicker;
@@ -113,6 +126,10 @@ exports.workloadKey = workloadPickerUtils.workloadKey;
113
126
  exports.SecretKeySelector = SecretKeySelector.SecretKeySelector;
114
127
  exports.parseSecretRef = SecretKeySelector_model.parseSecretRef;
115
128
  exports.serializeSecretRef = SecretKeySelector_model.serializeSecretRef;
129
+ exports.OnePasswordSelector = OnePasswordSelector.OnePasswordSelector;
130
+ exports.buildOnePasswordReference = OnePasswordSelector_model.buildOnePasswordReference;
131
+ exports.parseOnePasswordReference = OnePasswordSelector_model.parseOnePasswordReference;
132
+ exports.createSecretFormExtensions = secretFormExtension.createSecretFormExtensions;
116
133
  exports.ThemeSwitcher = themeSwitcher.ThemeSwitcher;
117
134
  exports.DensitySwitcher = densitySwitcher.DensitySwitcher;
118
135
  exports.IconMenuPicker = iconMenuPicker.IconMenuPicker;
@@ -123,6 +140,9 @@ exports.ListMenuItem = ListMenu.ListMenuItem;
123
140
  exports.ListMenuSection = ListMenu.ListMenuSection;
124
141
  exports.useListMenuSelection = useListMenuSelection.useListMenuSelection;
125
142
  exports.JsonSchemaForm = JsonSchemaForm.JsonSchemaForm;
143
+ exports.createUnitFormExtensions = unitFormExtension.createUnitFormExtensions;
144
+ exports.formatUnitAwareValue = unitFormExtension.formatUnitAwareValue;
145
+ exports.parseUnitAwareValue = unitFormExtension.parseUnitAwareValue;
126
146
  exports.FormLookupProvider = FormLookupProvider.FormLookupProvider;
127
147
  exports.resolveLookupScope = formLookupContext.resolveLookupScope;
128
148
  exports.useLookupFetcher = formLookupContext.useLookupFetcher;
@@ -1 +1 @@
1
- {"version":3,"file":"components.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"components.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,6 +6,8 @@ export { IconButton, type IconButtonProps } from './components/IconButton';
6
6
  export { SplitButton, type SplitButtonProps } from './components/SplitButton';
7
7
  export { InputField, type InputFieldProps } from './components/InputField';
8
8
  export { JSONPathField, type JSONPathFieldProps, type JSONPathNode, } from './components/JSONPathField';
9
+ export { JSONPathPlayground, type JSONPathPlaygroundProps, type JSONPathEvalRequest, type JSONPathEvalResult, } from './components/JSONPathPlayground';
10
+ export { buildJSONPathNode, createLazyJSONPathTree, literalSegments, type LazyJSONPathTree, type LazyJSONPathTreeOptions, } from './components/jsonPathTree';
9
11
  export { SegmentedControl, type SegmentedControlProps, type SegmentedOption, type SegmentedSize, } from './components/SegmentedControl';
10
12
  export { TriStateToggle, type TriStateLabels, type TriStateToggleProps, } from './components/TriStateToggle';
11
13
  export { nextTriState, type TriState } from './components/tri-state';
@@ -28,18 +30,23 @@ export { useForm, type UseFormOptions, type UseFormResult, type FieldErrors, } f
28
30
  export { TreePickerField, type TreePickerFieldProps, type TreePickerTriggerProps, } from './components/TreePickerField';
29
31
  export { WorkloadPicker, type WorkloadPickerProps, } from './components/WorkloadPicker';
30
32
  export { EndpointSelector } from './components/EndpointSelector';
33
+ export { parseEndpointValue, serializeEndpointValue, } from './components/EndpointSelector.model';
31
34
  export { DEFAULT_PREFERRED_ENDPOINT_PORTS, preferredEndpointPort, } from './components/endpoint-port';
32
35
  export type { EndpointMode, EndpointResources, EndpointSelectorDefaults, EndpointSelectorProps, EndpointSelectorValue, EndpointTarget, EndpointUrlSelectorProps, EndpointWorkloadValue, EndpointWorkloadMode, } from './components/EndpointSelector.model';
33
36
  export { NamespacePicker, type NamespacePickerProps, } from './components/NamespacePicker';
34
37
  export { workloadKey, parseWorkloadKey, kindForValue, loadedWorkloads, type WorkloadKind, type WorkloadResource, type WorkloadPort, type ParsedWorkloadKey, } from './components/workload-picker-utils';
35
38
  export { SecretKeySelector, type SecretKeySelectorProps, type SecretKind, type SecretValueSource, type SecretKeyValue, type SecretResource, type KeyPreview, } from './components/SecretKeySelector';
36
39
  export { serializeSecretRef, parseSecretRef, } from './components/SecretKeySelector.model';
40
+ export { OnePasswordSelector, type OnePasswordSelectorProps, } from './components/OnePasswordSelector';
41
+ export { buildOnePasswordReference, parseOnePasswordReference, type OnePasswordField, type OnePasswordItem, type OnePasswordLoaders, type OnePasswordSelection, type OnePasswordVault, } from './components/OnePasswordSelector.model';
42
+ export { createSecretFormExtensions, type SecretFormExtensionOptions, type SecretFormLoaders, } from './components/secret-form-extension';
37
43
  export { ThemeSwitcher, type ThemeSwitcherProps, } from './components/theme-switcher';
38
44
  export { DensitySwitcher, type DensitySwitcherProps, } from './components/density-switcher';
39
45
  export { IconMenuPicker, type IconMenuPickerProps, type IconMenuOption, } from './components/icon-menu-picker';
40
46
  export { ListMenu, ListMenuActionBar, ListMenuHeader, ListMenuItem, ListMenuSection, type ListMenuAction, type ListMenuActionBarProps, type ListMenuHeaderProps, type ListMenuItemProps, type ListMenuProps, type ListMenuSectionProps, } from './components/ListMenu';
41
47
  export { useListMenuSelection, type ListMenuSelection, type UseListMenuSelectionOptions, } from './components/use-list-menu-selection';
42
48
  export { JsonSchemaForm } from './components/JsonSchemaForm';
49
+ export { createUnitFormExtensions, formatUnitAwareValue, parseUnitAwareValue, type UnitInputKind, } from './components/unit-form-extension';
43
50
  export { FormLookupProvider } from './components/FormLookupProvider';
44
51
  export { useLookupFetcher, resolveLookupScope, } from './components/form-lookup-context';
45
52
  export { DEFAULT_FORM_SIZE } from './components/json-schema-form-size';
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,2BAA2B,CAA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AS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EACL,OAAO,EACP,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,UAAU,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,QAAQ,EACR,cAAc,EACd,UAAU,EACV,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,oBAAoB,GAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,yBAAyB,CAAC"}
@@ -6,6 +6,8 @@ import { IconButton } from "./components/IconButton.js";
6
6
  import { SplitButton } from "./components/SplitButton.js";
7
7
  import { InputField } from "./components/InputField.js";
8
8
  import { JSONPathField } from "./components/JSONPathField.js";
9
+ import { JSONPathPlayground } from "./components/JSONPathPlayground.js";
10
+ import { buildJSONPathNode, createLazyJSONPathTree, literalSegments } from "./components/jsonPathTree.js";
9
11
  import { SegmentedControl } from "./components/SegmentedControl.js";
10
12
  import { TriStateToggle } from "./components/TriStateToggle.js";
11
13
  import { nextTriState } from "./components/tri-state.js";
@@ -28,17 +30,22 @@ import { useForm } from "./components/use-form.js";
28
30
  import { TreePickerField } from "./components/TreePickerField.js";
29
31
  import { WorkloadPicker } from "./components/WorkloadPicker.js";
30
32
  import { EndpointSelector } from "./components/EndpointSelector.js";
33
+ import { parseEndpointValue, serializeEndpointValue } from "./components/EndpointSelector.model.js";
31
34
  import { DEFAULT_PREFERRED_ENDPOINT_PORTS, preferredEndpointPort } from "./components/endpoint-port.js";
32
35
  import { NamespacePicker } from "./components/NamespacePicker.js";
33
36
  import { kindForValue, loadedWorkloads, parseWorkloadKey, workloadKey } from "./components/workload-picker-utils.js";
34
37
  import { SecretKeySelector } from "./components/SecretKeySelector.js";
35
38
  import { parseSecretRef, serializeSecretRef } from "./components/SecretKeySelector.model.js";
39
+ import { OnePasswordSelector } from "./components/OnePasswordSelector.js";
40
+ import { buildOnePasswordReference, parseOnePasswordReference } from "./components/OnePasswordSelector.model.js";
41
+ import { createSecretFormExtensions } from "./components/secret-form-extension.js";
36
42
  import { ThemeSwitcher } from "./components/theme-switcher.js";
37
43
  import { DensitySwitcher } from "./components/density-switcher.js";
38
44
  import { IconMenuPicker } from "./components/icon-menu-picker.js";
39
45
  import { ListMenu, ListMenuActionBar, ListMenuHeader, ListMenuItem, ListMenuSection } from "./components/ListMenu.js";
40
46
  import { useListMenuSelection } from "./components/use-list-menu-selection.js";
41
47
  import { JsonSchemaForm } from "./components/JsonSchemaForm.js";
48
+ import { createUnitFormExtensions, formatUnitAwareValue, parseUnitAwareValue } from "./components/unit-form-extension.js";
42
49
  import { FormLookupProvider } from "./components/FormLookupProvider.js";
43
50
  import { resolveLookupScope, useLookupFetcher } from "./components/form-lookup-context.js";
44
51
  import { DEFAULT_FORM_SIZE } from "./components/json-schema-form-size.js";
@@ -100,6 +107,7 @@ export {
100
107
  IconMenuPicker,
101
108
  InputField,
102
109
  JSONPathField,
110
+ JSONPathPlayground,
103
111
  JsonSchemaForm,
104
112
  ListMenu,
105
113
  ListMenuActionBar,
@@ -112,6 +120,7 @@ export {
112
120
  Modal,
113
121
  MultiSelect,
114
122
  NamespacePicker,
123
+ OnePasswordSelector,
115
124
  Panel,
116
125
  RangeSlider,
117
126
  SearchInput,
@@ -135,23 +144,34 @@ export {
135
144
  Workspace,
136
145
  applyFilterExtensions,
137
146
  applyPostExtensions,
147
+ buildJSONPathNode,
148
+ buildOnePasswordReference,
138
149
  buttonVariants,
150
+ createLazyJSONPathTree,
151
+ createSecretFormExtensions,
152
+ createUnitFormExtensions,
139
153
  effectiveProperties,
154
+ formatUnitAwareValue,
140
155
  isOpenStringMap,
141
156
  isTourFinished,
142
157
  kindForValue,
158
+ literalSegments,
143
159
  loadedWorkloads,
144
160
  localStorageTourStorage,
145
161
  matchesIf,
146
162
  memoryTourStorage,
147
163
  nextTriState,
164
+ parseEndpointValue,
165
+ parseOnePasswordReference,
148
166
  parseSecretRef,
167
+ parseUnitAwareValue,
149
168
  parseWorkloadKey,
150
169
  preferredEndpointPort,
151
170
  readPreferences,
152
171
  rehydrateRefs,
153
172
  resolveControl,
154
173
  resolveLookupScope,
174
+ serializeEndpointValue,
155
175
  serializeSecretRef,
156
176
  templateValuePre,
157
177
  useEscapeLayer,
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}