@marimo-team/islands 0.18.2 → 0.18.4

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 (43) hide show
  1. package/dist/{constants-DWBOe162.js → constants-D_G8vnDk.js} +5 -4
  2. package/dist/{formats-7RSCCoSI.js → formats-Bi_tbdwB.js} +21 -22
  3. package/dist/{glide-data-editor-D-Ia_Jsv.js → glide-data-editor-DXF8E-QD.js} +2 -2
  4. package/dist/main.js +280 -148
  5. package/dist/style.css +1 -1
  6. package/dist/{types-Dunk85GC.js → types-DclGb0Yh.js} +1 -1
  7. package/dist/{vega-component-kU4hFYYJ.js → vega-component-BFcH2SqR.js} +8 -8
  8. package/package.json +1 -1
  9. package/src/components/app-config/user-config-form.tsx +14 -1
  10. package/src/components/data-table/context-menu.tsx +7 -3
  11. package/src/components/data-table/filter-pills.tsx +2 -1
  12. package/src/components/data-table/filters.ts +11 -2
  13. package/src/components/editor/cell/CreateCellButton.tsx +5 -3
  14. package/src/components/editor/cell/collapse.tsx +2 -2
  15. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +22 -103
  16. package/src/components/editor/controls/duplicate-shortcut-banner.tsx +50 -0
  17. package/src/components/editor/controls/keyboard-shortcuts.tsx +25 -2
  18. package/src/components/editor/notebook-banner.tsx +1 -1
  19. package/src/components/editor/notebook-cell.tsx +4 -3
  20. package/src/components/editor/output/__tests__/ansi-reduce.test.ts +6 -6
  21. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +3 -3
  22. package/src/components/pages/home-page.tsx +6 -0
  23. package/src/components/scratchpad/scratchpad.tsx +2 -1
  24. package/src/core/constants.ts +10 -0
  25. package/src/core/layout/useTogglePresenting.ts +69 -25
  26. package/src/core/state/__mocks__/mocks.ts +1 -0
  27. package/src/hooks/__tests__/useDuplicateShortcuts.test.ts +449 -0
  28. package/src/hooks/useDuplicateShortcuts.ts +145 -0
  29. package/src/plugins/impl/NumberPlugin.tsx +1 -1
  30. package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +1 -1
  31. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +67 -47
  32. package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +2 -57
  33. package/src/plugins/impl/anywidget/__tests__/model.test.ts +23 -19
  34. package/src/plugins/impl/anywidget/model.ts +68 -41
  35. package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +2 -0
  36. package/src/plugins/impl/data-frames/utils/operators.ts +1 -0
  37. package/src/plugins/impl/vega/vega.css +5 -0
  38. package/src/plugins/layout/NavigationMenuPlugin.tsx +24 -22
  39. package/src/plugins/layout/StatPlugin.tsx +43 -23
  40. package/src/utils/__tests__/data-views.test.ts +495 -13
  41. package/src/utils/__tests__/json-parser.test.ts +1 -1
  42. package/src/utils/data-views.ts +134 -16
  43. package/src/utils/json/base64.ts +8 -0
@@ -64,9 +64,10 @@ const Constants = {
64
64
  accessToken: "access_token",
65
65
  viewAs: "view-as",
66
66
  showChrome: "show-chrome"
67
- };
67
+ }, CSSClasses = { outputArea: "output-area" };
68
68
  export {
69
- KnownQueryParams as n,
70
- debounce_default as r,
71
- Constants as t
69
+ debounce_default as i,
70
+ Constants as n,
71
+ KnownQueryParams as r,
72
+ CSSClasses as t
72
73
  };
@@ -9,7 +9,7 @@ import { a as cva, u as cn } from "./button-XnD6ylpt.js";
9
9
  import { s as Logger } from "./hotkeys-CwkyZ6ZF.js";
10
10
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
11
11
  import { b as atom, f as isIslands, l as store } from "./useTheme-ByTGDerd.js";
12
- import { n as KnownQueryParams } from "./constants-DWBOe162.js";
12
+ import { r as KnownQueryParams } from "./constants-D_G8vnDk.js";
13
13
  import { i as tableFromIPC } from "./loader-ZngagiXO.js";
14
14
  var CircleQuestionMark = createLucideIcon("circle-question-mark", [
15
15
  ["circle", {
@@ -701,27 +701,26 @@ function decodeIPC(e, x) {
701
701
  return tableFromIPC(e, x ?? { useProxy: true });
702
702
  }
703
703
  export {
704
- CircleQuestionMark as C,
705
- isWasm as S,
706
- appendQueryParams as _,
707
- AlertDescription as a,
708
- isStaticNotebook as b,
709
- toDate as c,
710
- millisecondsInHour as d,
711
- millisecondsInMinute as f,
712
- getRuntimeManager as g,
713
- asRemoteURL as h,
714
- Alert as i,
715
- constructFrom as l,
716
- millisecondsInWeek as m,
704
+ CircleQuestionMark as S,
705
+ isUrl as _,
706
+ AlertTitle as a,
707
+ Deferred as b,
708
+ constructFrom as c,
709
+ millisecondsInMinute as d,
710
+ millisecondsInSecond as f,
711
+ appendQueryParams as g,
712
+ getRuntimeManager as h,
713
+ AlertDescription as i,
714
+ millisecondsInDay as l,
715
+ asRemoteURL as m,
717
716
  useDeepCompareMemoize as n,
718
- AlertTitle as o,
719
- millisecondsInSecond as p,
720
- dequal as r,
721
- isValid as s,
717
+ isValid as o,
718
+ millisecondsInWeek as p,
719
+ Alert as r,
720
+ toDate as s,
722
721
  arrow as t,
723
- millisecondsInDay as u,
724
- isUrl as v,
725
- Deferred as x,
726
- require_cuid2 as y
722
+ millisecondsInHour as u,
723
+ require_cuid2 as v,
724
+ isWasm as x,
725
+ isStaticNotebook as y
727
726
  };
@@ -8,7 +8,7 @@ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-CzEthfGv.js"
8
8
  import "./Combination-DnWHe36P.js";
9
9
  import "./check-IicTB7sO.js";
10
10
  import { A as logNever, E as useOnMount, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, t as Label, u as SelectValue } from "./label-BtLFsS7L.js";
11
- import { C as DropdownMenuSubTrigger, S as DropdownMenuSubContent, _ as DropdownMenuItem, a as Input, b as DropdownMenuSeparator, fn as Trash, h as DropdownMenuContent, hn as Pencil, ht as capitalize_default, m as DropdownMenu, mn as Plus, mt as marked, n as ErrorBoundary, pt as useNonce, t as BulkEdit, x as DropdownMenuSub, y as DropdownMenuPortal } from "./types-Dunk85GC.js";
11
+ import { C as DropdownMenuSubTrigger, S as DropdownMenuSubContent, _ as DropdownMenuItem, a as Input, b as DropdownMenuSeparator, fn as Trash, h as DropdownMenuContent, hn as Pencil, ht as capitalize_default, m as DropdownMenu, mn as Plus, mt as marked, n as ErrorBoundary, pt as useNonce, t as BulkEdit, x as DropdownMenuSub, y as DropdownMenuPortal } from "./types-DclGb0Yh.js";
12
12
  import "./clsx-D2KVTYnW.js";
13
13
  import { l as Events, t as Button } from "./button-XnD6ylpt.js";
14
14
  import { s as Logger } from "./hotkeys-CwkyZ6ZF.js";
@@ -25,7 +25,7 @@ import "./merge-DPdZQMPt.js";
25
25
  import "./_baseSlice-D44oUJcJ.js";
26
26
  import "./_hasUnicode-nuTfNJRy.js";
27
27
  import "./now-BA1FgVte.js";
28
- import "./constants-DWBOe162.js";
28
+ import "./constants-D_G8vnDk.js";
29
29
  import "./zod-Bvx56F8M.js";
30
30
  import "./invariant-Ctm_8TNZ.js";
31
31
  import "./once-DjP4Kbhy.js";