@jini-ai/ui 0.4.6 → 0.4.8

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 (151) hide show
  1. package/README.md +33 -0
  2. package/dist/features/admin-widgets/components/InfoTip.d.ts +23 -2
  3. package/dist/features/admin-widgets/components/InfoTip.hooks.d.ts +22 -2
  4. package/dist/features/admin-widgets/components/InfoTip.hooks.js +75 -28
  5. package/dist/features/admin-widgets/components/InfoTip.js +12 -4
  6. package/dist/features/admin-widgets/components/InfoTip.rules.d.ts +72 -0
  7. package/dist/features/admin-widgets/components/InfoTip.rules.js +68 -0
  8. package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.d.ts +36 -0
  9. package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.hooks.d.ts +58 -0
  10. package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.hooks.js +66 -0
  11. package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.js +24 -0
  12. package/dist/features/admin-widgets/components/useDebouncedHtmlPreview.hooks.d.ts +23 -0
  13. package/dist/features/admin-widgets/components/useDebouncedHtmlPreview.hooks.js +28 -0
  14. package/dist/features/admin-widgets/index.d.ts +9 -0
  15. package/dist/features/admin-widgets/index.js +5 -0
  16. package/dist/features/execution/constants.js +11 -10
  17. package/dist/features/execution/http-adapter.d.ts +3 -1
  18. package/dist/features/execution/http-adapter.js +9 -4
  19. package/dist/features/execution/index.d.ts +1 -1
  20. package/dist/features/execution/index.js +1 -1
  21. package/dist/features/execution/react/components/ByokProviderForm.d.ts +18 -1
  22. package/dist/features/execution/react/components/ByokProviderForm.js +14 -16
  23. package/dist/features/execution/react/components/LocalCliAgentCard.d.ts +5 -1
  24. package/dist/features/execution/react/components/LocalCliAgentCard.js +12 -87
  25. package/dist/features/execution/react/components/LocalCliAgentList.d.ts +4 -1
  26. package/dist/features/execution/react/components/LocalCliAgentList.js +13 -4
  27. package/dist/features/execution/react/components/LocalCliAgentSettings.d.ts +20 -0
  28. package/dist/features/execution/react/components/LocalCliAgentSettings.js +20 -0
  29. package/dist/features/execution/react/hooks/use-byok-field-validation.hooks.d.ts +24 -0
  30. package/dist/features/execution/react/hooks/use-byok-field-validation.hooks.js +27 -0
  31. package/dist/features/execution/react/hooks/useExecutionTab.js +10 -1
  32. package/dist/features/execution/react/hooks/useLocalCliAgentCard.d.ts +48 -0
  33. package/dist/features/execution/react/hooks/useLocalCliAgentCard.js +110 -0
  34. package/dist/features/execution/react/hooks/useLocalCliAgentList.d.ts +19 -0
  35. package/dist/features/execution/react/hooks/useLocalCliAgentList.js +13 -0
  36. package/dist/features/execution/rules.d.ts +13 -0
  37. package/dist/features/execution/rules.js +14 -0
  38. package/dist/features/execution/types.d.ts +2 -0
  39. package/dist/features/html-editor/canvas-embed-placeholders.d.ts +13 -1
  40. package/dist/features/html-editor/canvas-embed-placeholders.js +61 -12
  41. package/dist/features/html-editor/dom.d.ts +5 -0
  42. package/dist/features/html-editor/dom.js +10 -0
  43. package/dist/features/html-editor/editor-blocks.d.ts +71 -0
  44. package/dist/features/html-editor/editor-blocks.js +185 -0
  45. package/dist/features/html-editor/editor-serialization.d.ts +24 -0
  46. package/dist/features/html-editor/editor-serialization.js +110 -0
  47. package/dist/features/html-editor/index.d.ts +5 -0
  48. package/dist/features/html-editor/index.js +3 -0
  49. package/dist/features/html-editor/protected-elements.d.ts +64 -0
  50. package/dist/features/html-editor/protected-elements.js +189 -0
  51. package/dist/features/html-editor/react/components/InteractiveHtmlEditor.d.ts +6 -4
  52. package/dist/features/html-editor/react/components/InteractiveHtmlEditor.js +3 -3
  53. package/dist/features/html-editor/react/hooks/useInteractiveHtmlEditor.d.ts +9 -1
  54. package/dist/features/html-editor/react/hooks/useInteractiveHtmlEditor.js +107 -196
  55. package/dist/features/html-editor/source-splice.d.ts +23 -0
  56. package/dist/features/html-editor/source-splice.js +45 -0
  57. package/dist/features/i18n/dictionaries/settings-dialog.ar.js +4 -0
  58. package/dist/features/i18n/dictionaries/settings-dialog.bn.js +4 -0
  59. package/dist/features/i18n/dictionaries/settings-dialog.de.js +4 -0
  60. package/dist/features/i18n/dictionaries/settings-dialog.en.js +4 -0
  61. package/dist/features/i18n/dictionaries/settings-dialog.es.js +4 -0
  62. package/dist/features/i18n/dictionaries/settings-dialog.fa.js +4 -0
  63. package/dist/features/i18n/dictionaries/settings-dialog.fr.js +4 -0
  64. package/dist/features/i18n/dictionaries/settings-dialog.hi.js +4 -0
  65. package/dist/features/i18n/dictionaries/settings-dialog.hu.js +4 -0
  66. package/dist/features/i18n/dictionaries/settings-dialog.id.js +4 -0
  67. package/dist/features/i18n/dictionaries/settings-dialog.it.js +4 -0
  68. package/dist/features/i18n/dictionaries/settings-dialog.ja.js +4 -0
  69. package/dist/features/i18n/dictionaries/settings-dialog.ko.js +4 -0
  70. package/dist/features/i18n/dictionaries/settings-dialog.pl.js +4 -0
  71. package/dist/features/i18n/dictionaries/settings-dialog.pt-BR.js +4 -0
  72. package/dist/features/i18n/dictionaries/settings-dialog.ru.js +4 -0
  73. package/dist/features/i18n/dictionaries/settings-dialog.th.js +4 -0
  74. package/dist/features/i18n/dictionaries/settings-dialog.tr.js +4 -0
  75. package/dist/features/i18n/dictionaries/settings-dialog.uk.js +4 -0
  76. package/dist/features/i18n/dictionaries/settings-dialog.ur.js +4 -0
  77. package/dist/features/i18n/dictionaries/settings-dialog.zh-CN.js +4 -0
  78. package/dist/features/i18n/dictionaries/settings-dialog.zh-TW.js +4 -0
  79. package/dist/features/interactive-ui/interactive-ui.css +1 -1
  80. package/dist/features/interactive-ui/providers/native/data-table.js +8 -1
  81. package/dist/features/interactive-ui/providers/native/data-table.manifest.d.ts +3 -5
  82. package/dist/features/interactive-ui/providers/native/data-table.manifest.js +5 -7
  83. package/dist/features/interactive-ui/providers/recharts/bar-chart.js +8 -3
  84. package/dist/features/interactive-ui/providers/recharts/chart-config.d.ts +40 -0
  85. package/dist/features/interactive-ui/providers/recharts/chart-config.js +32 -0
  86. package/dist/features/interactive-ui/providers/recharts/chart-tokens.d.ts +18 -12
  87. package/dist/features/interactive-ui/providers/recharts/chart-tokens.js +6 -11
  88. package/dist/features/interactive-ui/providers/recharts/chart.d.ts +31 -0
  89. package/dist/features/interactive-ui/providers/recharts/chart.js +34 -0
  90. package/dist/features/interactive-ui/providers/recharts/line-chart.js +10 -3
  91. package/dist/features/interactive-ui/providers/recharts/pie-chart.js +8 -3
  92. package/dist/features/interactive-ui/providers/shadcn/button.d.ts +1 -1
  93. package/dist/features/interactive-ui/providers/shadcn/data-table.d.ts +5 -1
  94. package/dist/features/interactive-ui/providers/shadcn/data-table.js +26 -2
  95. package/dist/features/interactive-ui/providers/shadcn/data-table.manifest.d.ts +8 -1
  96. package/dist/features/interactive-ui/providers/shadcn/data-table.manifest.js +6 -3
  97. package/dist/features/interactive-ui/table-data.d.ts +25 -0
  98. package/dist/features/interactive-ui/table-data.js +36 -0
  99. package/dist/features/mcp-ui/escape.js +2 -6
  100. package/dist/features/mcp-ui/sandbox-proxy-link-forwarder.d.ts +26 -0
  101. package/dist/features/mcp-ui/sandbox-proxy-link-forwarder.js +40 -0
  102. package/dist/features/mcp-ui/sandbox-proxy.d.ts +5 -1
  103. package/dist/features/mcp-ui/sandbox-proxy.js +11 -0
  104. package/dist/features/mcp-ui/surfaces/bridge.js +9 -3
  105. package/dist/features/mcp-ui/surfaces/document.d.ts +11 -4
  106. package/dist/features/mcp-ui/surfaces/document.js +25 -3
  107. package/dist/features/mcp-ui/surfaces/outcome.js +1 -1
  108. package/dist/features/media-providers/constants.d.ts +0 -7
  109. package/dist/features/media-providers/constants.js +7 -15
  110. package/dist/features/media-providers/react/components/MediaProvidersTab.js +3 -2
  111. package/dist/features/media-providers/react/hooks/useMediaProvidersTab.js +6 -3
  112. package/dist/features/memory/dependencies.d.ts +2 -0
  113. package/dist/features/memory/dependencies.js +9 -25
  114. package/dist/features/memory/index.d.ts +1 -0
  115. package/dist/features/memory/index.js +1 -0
  116. package/dist/features/memory/react/MemoryPorts.d.ts +17 -0
  117. package/dist/features/memory/react/MemoryPorts.js +15 -0
  118. package/dist/features/memory/react/hooks/useMemoryConfig.hooks.d.ts +2 -2
  119. package/dist/features/memory/react/hooks/useMemoryConfig.hooks.js +7 -7
  120. package/dist/features/memory/react/hooks/useMemoryConnectors.hooks.d.ts +2 -3
  121. package/dist/features/memory/react/hooks/useMemoryConnectors.hooks.js +4 -5
  122. package/dist/features/memory/react/hooks/useMemoryEntries.hooks.d.ts +2 -3
  123. package/dist/features/memory/react/hooks/useMemoryEntries.hooks.js +4 -5
  124. package/dist/features/memory/react/hooks/useMemoryExtractions.hooks.js +2 -2
  125. package/dist/features/panel-kit/fetch-query/adapter.react.d.ts +2 -2
  126. package/dist/features/panel-kit/fetch-query/adapter.react.js +5 -3
  127. package/dist/features/panel-kit/fetch-query/adapter.tanstack.d.ts +11 -0
  128. package/dist/features/panel-kit/fetch-query/adapter.tanstack.js +212 -0
  129. package/dist/features/panel-kit/fetch-query/binding.react.d.ts +17 -0
  130. package/dist/features/panel-kit/fetch-query/binding.react.js +24 -0
  131. package/dist/features/panel-kit/fetch-query/environment.browser.d.ts +1 -1
  132. package/dist/features/panel-kit/fetch-query/index.d.ts +6 -3
  133. package/dist/features/panel-kit/fetch-query/index.js +2 -1
  134. package/dist/features/panel-kit/fetch-query/tanstack.d.ts +8 -0
  135. package/dist/features/panel-kit/fetch-query/tanstack.js +4 -0
  136. package/dist/features/panel-kit/helpers/standing-draft-recovery-message.d.ts +3 -1
  137. package/dist/features/panel-kit/helpers/standing-draft-recovery-message.js +9 -2
  138. package/dist/features/settings/dialog/styles/settings-dialog.css +169 -21
  139. package/dist/features/tabbed-dialog/styles/tabbed-dialog.css +91 -0
  140. package/dist/react/components/RemixIcon.d.ts +1 -41
  141. package/dist/react/components/RemixIcon.js +3 -176
  142. package/dist/react/components/RemixIcon.stylesheet.d.ts +84 -0
  143. package/dist/react/components/RemixIcon.stylesheet.js +208 -0
  144. package/dist/react/components/remixicon-font-recovery.d.ts +55 -0
  145. package/dist/react/components/remixicon-font-recovery.js +110 -0
  146. package/dist/styles/admin.css +8 -2
  147. package/package.json +25 -8
  148. package/dist/features/panel-kit/fetch-query/cache.d.ts +0 -123
  149. package/dist/features/panel-kit/fetch-query/cache.js +0 -231
  150. package/dist/features/panel-kit/fetch-query/types.d.ts +0 -91
  151. package/dist/features/panel-kit/fetch-query/types.js +0 -2
@@ -1,91 +0,0 @@
1
- /**
2
- * Keep the contract independent of any query library so an adapter swap does not require
3
- * rewriting callers. Add narrow required capabilities here rather than exporting library
4
- * result/client types that would bypass this boundary.
5
- */
6
- /**
7
- * Keys contain primitive array parts so parameterised resources compose without fragile
8
- * string formatting or object-identity mismatches. Invalidation matches by PREFIX: a list
9
- * key also refreshes its derived child keys. Exact-key equality would compile while quietly
10
- * breaking that guarantee; avoid a shared prefix for resources that merely sound related,
11
- * or writes will fan out unnecessary refetches.
12
- */
13
- export type QueryKey = readonly (string | number)[];
14
- export type QueryStatus = "loading" | "success" | "error";
15
- export interface QueryResult<T> {
16
- data: T | undefined;
17
- error: Error | null;
18
- status: QueryStatus;
19
- isFetching: boolean;
20
- refetch: () => void;
21
- }
22
- export interface FetchQueryOptions<T> {
23
- key: QueryKey;
24
- fetch: () => Promise<T>;
25
- /**
26
- * Gate on user intent or prerequisites to avoid fetching an undefined id. Disabling does
27
- * not erase cached failures: without any successful data, report loading/error:null so
28
- * a gesture-gated read cannot show an old failure before the user asks for it. With
29
- * earlier data, report success but retain a later background error so known-stale data
30
- * need not be presented as an unqualified success.
31
- */
32
- enabled?: boolean;
33
- staleTime?: number;
34
- refetchOnWindowFocus?: boolean;
35
- }
36
- export type MutationStatus = "idle" | "pending" | "success" | "error";
37
- export interface MutationResult<TInput, TOutput> {
38
- /**
39
- * Awaiting the write receives its result or rejection; discarding the same promise and
40
- * reading state is safe because it already has a rejection handler. Returning a bare
41
- * rejecting promise would make only the awaiting form safe. Node unhandledRejection
42
- * can verify this contract even where a DOM unhandledrejection event does not fire.
43
- */
44
- mutate: (required: {
45
- input: TInput;
46
- }) => Promise<TOutput>;
47
- status: MutationStatus;
48
- error: Error | null;
49
- reset: () => void;
50
- }
51
- export interface FetchMutationOptions<TInput, TOutput> {
52
- run: (required: {
53
- input: TInput;
54
- }) => Promise<TOutput>;
55
- invalidates?: readonly QueryKey[];
56
- }
57
- /**
58
- * Keep key and fetch references stable: they are memo dependencies of the loader handle.
59
- * Failed fetches reject and are not cached, so the next load retries instead of replaying
60
- * a failure as data. Retain an idle value at least as long as its declared freshness: an
61
- * imperative loader has no persistent observer to keep it alive.
62
- */
63
- export interface CachedLoaderOptions<T> {
64
- key: QueryKey;
65
- fetch: () => Promise<T>;
66
- staleTime?: number;
67
- }
68
- /**
69
- * A plain promise loader serves components that own their loading UI rather than consuming
70
- * a hook result. It shares the provider cache, including one in-flight request per key.
71
- */
72
- export interface CachedLoader<T> {
73
- peek: () => T | undefined;
74
- load: () => Promise<T>;
75
- replace: (required: {
76
- value: T;
77
- }) => void;
78
- }
79
- /**
80
- * Keep the provider-facing hooks, loader and invalidator behind one binding so replacing
81
- * the cache implementation does not leave different consumers on different adapters.
82
- */
83
- export interface FetchQueryAdapter {
84
- useFetchQuery: <T>(required: Pick<FetchQueryOptions<T>, "key" | "fetch">, optional?: Omit<FetchQueryOptions<T>, "key" | "fetch">) => QueryResult<T>;
85
- useFetchMutation: <TInput, TOutput>(required: Pick<FetchMutationOptions<TInput, TOutput>, "run">, optional?: Omit<FetchMutationOptions<TInput, TOutput>, "run">) => MutationResult<TInput, TOutput>;
86
- useInvalidate: () => (required: {
87
- key: QueryKey;
88
- }) => void;
89
- useCachedLoader: <T>(required: Pick<CachedLoaderOptions<T>, "key" | "fetch">, optional?: Omit<CachedLoaderOptions<T>, "key" | "fetch">) => CachedLoader<T>;
90
- }
91
- //# sourceMappingURL=types.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map