@marimo-team/islands 0.22.1-dev37 → 0.22.1-dev39

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 (172) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DTOsfq2x.js → ConnectedDataExplorerComponent-DuD8BVl6.js} +2 -2
  2. package/dist/{Plot-WhbJAbBh.js → Plot-BxlSHo0G.js} +47 -38
  3. package/dist/{chat-ui-CJCTr1kq.js → chat-ui-Cel1kBfc.js} +1 -1
  4. package/dist/{glide-data-editor-BQPLhydy.js → glide-data-editor-BqnvTmDo.js} +1712 -1681
  5. package/dist/main.js +360 -354
  6. package/dist/{process-output-D0SEeV3t.js → process-output-DC1TOnIl.js} +1 -1
  7. package/dist/{spec-CiHus5Bb.js → spec-CD7QaCV-.js} +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/useLifecycle-4fA1pHoh.js +177 -0
  10. package/package.json +1 -1
  11. package/src/__mocks__/common.ts +4 -4
  12. package/src/components/chat/acp/agent-panel.tsx +2 -2
  13. package/src/components/data-table/__tests__/columns.test.tsx +7 -7
  14. package/src/components/data-table/cell-hover-template/types.ts +1 -1
  15. package/src/components/data-table/cell-hover-text/types.ts +1 -1
  16. package/src/components/data-table/cell-selection/__tests__/feature.test.ts +1 -1
  17. package/src/components/data-table/cell-selection/types.ts +1 -1
  18. package/src/components/data-table/cell-styling/types.ts +1 -1
  19. package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -2
  20. package/src/components/data-table/column-formatting/types.ts +2 -2
  21. package/src/components/data-table/column-summary/legacy-chart-spec.ts +1 -1
  22. package/src/components/data-table/column-wrapping/types.ts +1 -1
  23. package/src/components/data-table/copy-column/types.ts +1 -1
  24. package/src/components/data-table/focus-row/types.ts +1 -1
  25. package/src/components/data-table/loading-table.tsx +1 -1
  26. package/src/components/data-table/range-focus/__tests__/atoms.test.ts +2 -2
  27. package/src/components/data-table/range-focus/atoms.ts +2 -2
  28. package/src/components/dependency-graph/dependency-graph-tree.tsx +1 -1
  29. package/src/components/editor/__tests__/dynamic-favicon.test.tsx +1 -1
  30. package/src/components/editor/actions/pair-with-agent-modal.tsx +142 -0
  31. package/src/components/editor/actions/useNotebookActions.tsx +10 -0
  32. package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
  33. package/src/components/editor/app-container.tsx +1 -1
  34. package/src/components/editor/chrome/panels/empty-state.tsx +1 -0
  35. package/src/components/editor/controls/keyboard-shortcuts.tsx +1 -1
  36. package/src/components/editor/navigation/__tests__/navigation.test.ts +1 -1
  37. package/src/components/editor/navigation/navigation.ts +1 -1
  38. package/src/components/editor/notebook-cell.tsx +1 -1
  39. package/src/components/editor/output/JsonOutput.tsx +4 -4
  40. package/src/components/editor/output/ansi-reduce.ts +2 -2
  41. package/src/components/editor/output/console/ConsoleOutput.tsx +1 -1
  42. package/src/components/editor/renderers/cells-renderer.tsx +1 -1
  43. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +1 -1
  44. package/src/components/editor/renderers/plugins.ts +1 -1
  45. package/src/components/editor/renderers/slides-layout/types.ts +2 -2
  46. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +2 -2
  47. package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +1 -1
  48. package/src/components/find-replace/find-replace.tsx +3 -1
  49. package/src/components/forms/form.tsx +1 -1
  50. package/src/components/forms/options.ts +1 -1
  51. package/src/components/static-html/static-banner.tsx +2 -2
  52. package/src/components/terminal/terminal.tsx +4 -4
  53. package/src/components/ui/button.tsx +1 -1
  54. package/src/components/ui/command.tsx +1 -1
  55. package/src/core/ai/context/providers/__tests__/datasource.test.ts +1 -1
  56. package/src/core/ai/context/providers/__tests__/error.test.ts +1 -1
  57. package/src/core/ai/context/providers/__tests__/variable.test.ts +1 -1
  58. package/src/core/ai/context/registry.ts +2 -2
  59. package/src/core/ai/tools/registry.ts +1 -1
  60. package/src/core/cells/__tests__/cells.test.ts +2 -2
  61. package/src/core/cells/__tests__/scrollCellIntoView.test.ts +1 -1
  62. package/src/core/cells/__tests__/session.test.ts +1 -1
  63. package/src/core/cells/__tests__/utils.test.ts +1 -1
  64. package/src/core/cells/cells.ts +1 -1
  65. package/src/core/cells/ids.ts +1 -1
  66. package/src/core/codemirror/ai/request.ts +1 -1
  67. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +1 -1
  68. package/src/core/codemirror/copilot/__tests__/transport.test.ts +1 -1
  69. package/src/core/codemirror/copilot/language-server.ts +1 -1
  70. package/src/core/codemirror/copilot/types.ts +1 -1
  71. package/src/core/codemirror/facet.ts +1 -1
  72. package/src/core/codemirror/language/__tests__/sql.test.ts +4 -4
  73. package/src/core/codemirror/language/languages/sql/completion-builder.ts +1 -1
  74. package/src/core/codemirror/language/metadata.ts +1 -1
  75. package/src/core/codemirror/language/types.ts +1 -1
  76. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -1
  77. package/src/core/codemirror/lsp/notebook-lsp.ts +1 -1
  78. package/src/core/codemirror/misc/__tests__/dnd.test.ts +1 -1
  79. package/src/core/codemirror/rtc/loro/awareness.ts +1 -1
  80. package/src/core/config/feature-flag.tsx +1 -1
  81. package/src/core/dom/outline.ts +1 -1
  82. package/src/core/export/__tests__/hooks.test.ts +1 -1
  83. package/src/core/hotkeys/__tests__/hotkeys.test.ts +1 -1
  84. package/src/core/hotkeys/shortcuts.ts +1 -1
  85. package/src/core/islands/__tests__/bridge.test.ts +2 -2
  86. package/src/core/islands/bridge.ts +2 -2
  87. package/src/core/islands/components/output-wrapper.tsx +1 -1
  88. package/src/core/islands/parse.ts +1 -1
  89. package/src/core/lsp/__tests__/transport.test.ts +1 -1
  90. package/src/core/network/DeferredRequestRegistry.ts +1 -1
  91. package/src/core/network/__tests__/requests-network.test.ts +1 -1
  92. package/src/core/network/api.ts +2 -2
  93. package/src/core/network/requests-lazy.ts +1 -1
  94. package/src/core/network/requests-toasting.tsx +1 -1
  95. package/src/core/static/files.ts +1 -1
  96. package/src/core/vscode/vscode-bindings.ts +1 -1
  97. package/src/core/wasm/bridge.ts +3 -3
  98. package/src/core/wasm/worker/tracer.ts +1 -1
  99. package/src/core/websocket/useWebSocket.tsx +2 -2
  100. package/src/css/globals.css +37 -61
  101. package/src/custom.d.ts +1 -1
  102. package/src/hooks/__tests__/useDuplicateShortcuts.test.ts +2 -2
  103. package/src/hooks/debug.ts +3 -3
  104. package/src/hooks/useDebounce.ts +1 -1
  105. package/src/hooks/useEventListener.ts +1 -1
  106. package/src/hooks/useHotkey.ts +1 -1
  107. package/src/hooks/useLifecycle.ts +2 -2
  108. package/src/hooks/useNonce.ts +1 -1
  109. package/src/hooks/useResizeObserver.ts +2 -2
  110. package/src/main.tsx +1 -1
  111. package/src/plugins/core/RenderHTML.tsx +3 -3
  112. package/src/plugins/core/__test__/registerReactComponent.test.ts +1 -1
  113. package/src/plugins/core/registerReactComponent.tsx +4 -4
  114. package/src/plugins/core/rpc.ts +1 -1
  115. package/src/plugins/impl/DataTablePlugin.tsx +1 -1
  116. package/src/plugins/impl/FileBrowserPlugin.tsx +1 -1
  117. package/src/plugins/impl/FormPlugin.tsx +1 -1
  118. package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +1 -1
  119. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +1 -1
  120. package/src/plugins/impl/anywidget/model.ts +1 -1
  121. package/src/plugins/impl/anywidget/types.ts +2 -2
  122. package/src/plugins/impl/anywidget/widget-binding.ts +1 -1
  123. package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
  124. package/src/plugins/impl/chat/chat-ui.tsx +1 -1
  125. package/src/plugins/impl/data-editor/glide-data-editor.tsx +1 -1
  126. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +2 -2
  127. package/src/plugins/impl/data-explorer/components/query-form.tsx +1 -1
  128. package/src/plugins/impl/data-explorer/functions/function.ts +1 -1
  129. package/src/plugins/impl/data-explorer/queries/types.ts +1 -1
  130. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
  131. package/src/plugins/impl/data-frames/forms/renderers.tsx +1 -1
  132. package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
  133. package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +1 -1
  134. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +1 -1
  135. package/src/plugins/impl/panel/PanelPlugin.tsx +2 -2
  136. package/src/plugins/impl/plotly/Plot.tsx +3 -3
  137. package/src/plugins/impl/vega/batched.ts +1 -1
  138. package/src/plugins/impl/vega/make-selectable.ts +1 -1
  139. package/src/plugins/impl/vega/types.ts +1 -1
  140. package/src/plugins/layout/DownloadPlugin.tsx +1 -1
  141. package/src/plugins/layout/LazyPlugin.tsx +1 -1
  142. package/src/plugins/layout/RoutesPlugin.tsx +1 -1
  143. package/src/plugins/layout/mermaid/mermaid.tsx +1 -1
  144. package/src/plugins/plugins.ts +1 -1
  145. package/src/stories/data-explorer.stories.tsx +1 -1
  146. package/src/stories/dataframe.stories.tsx +1 -1
  147. package/src/stories/editor.stories.tsx +1 -1
  148. package/src/stories/select.stories.tsx +1 -1
  149. package/src/stories/switchable-multi-select.stories.tsx +1 -1
  150. package/src/utils/Logger.ts +1 -1
  151. package/src/utils/__tests__/arrays.test.ts +1 -1
  152. package/src/utils/__tests__/blob.test.ts +1 -1
  153. package/src/utils/__tests__/dates.test.ts +1 -1
  154. package/src/utils/__tests__/errors.test.ts +1 -1
  155. package/src/utils/__tests__/objects.test.ts +3 -3
  156. package/src/utils/__tests__/waitForWs.test.ts +1 -1
  157. package/src/utils/arrays.ts +1 -1
  158. package/src/utils/assertNever.ts +1 -1
  159. package/src/utils/batch-requests.ts +2 -2
  160. package/src/utils/createReducer.ts +2 -2
  161. package/src/utils/id-tree.tsx +2 -2
  162. package/src/utils/idle.ts +1 -1
  163. package/src/utils/invariant.ts +1 -2
  164. package/src/utils/maps.ts +1 -1
  165. package/src/utils/math.ts +0 -1
  166. package/src/utils/multi-map.ts +1 -1
  167. package/src/utils/objects.ts +1 -1
  168. package/src/utils/once.ts +2 -2
  169. package/src/utils/staticImplements.ts +1 -1
  170. package/src/utils/storage/jotai.ts +1 -1
  171. package/src/utils/tracer.ts +2 -2
  172. package/dist/useLifecycle-DgDTfOLZ.js +0 -173
@@ -1,173 +0,0 @@
1
- import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
3
- import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { l as createLucideIcon } from "./dist-D_UjpfOY.js";
5
- import { g as Logger, r as cva, y as cn } from "./button-DNlNlZY_.js";
6
- import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
7
- import { _ as useSetAtom, y as atom } from "./useTheme-MWfxn4oz.js";
8
- var Calendar = createLucideIcon("calendar", [
9
- ["path", {
10
- d: "M8 2v4",
11
- key: "1cmpym"
12
- }],
13
- ["path", {
14
- d: "M16 2v4",
15
- key: "4m81vk"
16
- }],
17
- ["rect", {
18
- width: "18",
19
- height: "18",
20
- x: "3",
21
- y: "4",
22
- rx: "2",
23
- key: "1hopcy"
24
- }],
25
- ["path", {
26
- d: "M3 10h18",
27
- key: "8toen8"
28
- }]
29
- ]), Hash = createLucideIcon("hash", [
30
- ["line", {
31
- x1: "4",
32
- x2: "20",
33
- y1: "9",
34
- y2: "9",
35
- key: "4lhtct"
36
- }],
37
- ["line", {
38
- x1: "4",
39
- x2: "20",
40
- y1: "15",
41
- y2: "15",
42
- key: "vyu0kd"
43
- }],
44
- ["line", {
45
- x1: "10",
46
- x2: "8",
47
- y1: "3",
48
- y2: "21",
49
- key: "1ggp8o"
50
- }],
51
- ["line", {
52
- x1: "16",
53
- x2: "14",
54
- y1: "3",
55
- y2: "21",
56
- key: "weycgp"
57
- }]
58
- ]), ToggleLeft = createLucideIcon("toggle-left", [["circle", {
59
- cx: "9",
60
- cy: "12",
61
- r: "3",
62
- key: "u3jwor"
63
- }], ["rect", {
64
- width: "20",
65
- height: "14",
66
- x: "2",
67
- y: "5",
68
- rx: "7",
69
- key: "g7kal2"
70
- }]]), Type = createLucideIcon("type", [
71
- ["path", {
72
- d: "M12 4v16",
73
- key: "1654pz"
74
- }],
75
- ["path", {
76
- d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",
77
- key: "e0r10z"
78
- }],
79
- ["path", {
80
- d: "M9 20h6",
81
- key: "s66wpe"
82
- }]
83
- ]), import_compiler_runtime$1 = require_compiler_runtime();
84
- function createReducer(e, p) {
85
- return {
86
- reducer: (m, h) => (m || (m = e()), h.type in p ? p[h.type](m, h.payload) : (Logger.error(`Action type ${h.type} is not defined in reducers.`), m)),
87
- createActions: (e2) => {
88
- let m = {};
89
- for (let h in p) m[h] = (p2) => {
90
- e2({
91
- type: h,
92
- payload: p2
93
- });
94
- };
95
- return m;
96
- }
97
- };
98
- }
99
- function createReducerAndAtoms(e, p, m) {
100
- let h = [...m ?? []], _ = (e2) => {
101
- h.push(e2);
102
- }, { reducer: v, createActions: y } = createReducer(e, p), b = (e2, p2) => {
103
- try {
104
- let m2 = v(e2, p2);
105
- for (let _2 of h) try {
106
- _2(e2, m2, p2);
107
- } catch (e3) {
108
- Logger.error(`Error in middleware for action ${p2.type}:`, e3);
109
- }
110
- return m2;
111
- } catch (m2) {
112
- return Logger.error(`Error in reducer for action ${p2.type}:`, m2), e2;
113
- }
114
- }, x = atom(e()), S = /* @__PURE__ */ new WeakMap();
115
- function C(e2) {
116
- let p2 = (0, import_compiler_runtime$1.c)(4), m2 = e2 === void 0 ? {} : e2, h2 = useSetAtom(x);
117
- if (m2.skipMiddleware === true) {
118
- let e3;
119
- return p2[0] === h2 ? e3 = p2[1] : (e3 = y((e4) => {
120
- h2((p3) => v(p3, e4));
121
- }), p2[0] = h2, p2[1] = e3), e3;
122
- }
123
- S.has(h2) || S.set(h2, y((e3) => {
124
- h2((p3) => b(p3, e3));
125
- }));
126
- let g;
127
- return p2[2] === h2 ? g = p2[3] : (g = S.get(h2), p2[2] = h2, p2[3] = g), g;
128
- }
129
- return {
130
- reducer: b,
131
- addMiddleware: _,
132
- createActions: y,
133
- valueAtom: x,
134
- useActions: C
135
- };
136
- }
137
- var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), badgeVariants = cva("inline-flex items-center border rounded-full px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2", {
138
- variants: { variant: {
139
- default: "bg-primary hover:bg-primary/60 border-transparent text-primary-foreground",
140
- defaultOutline: "bg-(--blue-2) border-(--blue-8) text-(--blue-11)",
141
- secondary: "bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",
142
- destructive: "bg-(--red-2) border-(--red-6) text-(--red-9) hover:bg-(--red-3)",
143
- success: "bg-(--grass-2) border-(--grass-5) text-(--grass-9) hover:bg-(--grass-3)",
144
- outline: "text-foreground"
145
- } },
146
- defaultVariants: { variant: "default" }
147
- }), Badge = (e) => {
148
- let p = (0, import_compiler_runtime.c)(10), m, h, g;
149
- p[0] === e ? (m = p[1], h = p[2], g = p[3]) : ({ className: m, variant: g, ...h } = e, p[0] = e, p[1] = m, p[2] = h, p[3] = g);
150
- let _;
151
- p[4] !== m || p[5] !== g ? (_ = cn(badgeVariants({ variant: g }), m), p[4] = m, p[5] = g, p[6] = _) : _ = p[6];
152
- let y;
153
- return p[7] !== h || p[8] !== _ ? (y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
154
- className: _,
155
- ...h
156
- }), p[7] = h, p[8] = _, p[9] = y) : y = p[9], y;
157
- };
158
- function useOnMount(e) {
159
- (0, import_react.useEffect)(e, []);
160
- }
161
- function useOnUnmount(e) {
162
- (0, import_react.useEffect)(() => e(), []);
163
- }
164
- export {
165
- Type as a,
166
- Calendar as c,
167
- createReducerAndAtoms as i,
168
- useOnUnmount as n,
169
- ToggleLeft as o,
170
- Badge as r,
171
- Hash as s,
172
- useOnMount as t
173
- };