@marimo-team/islands 0.18.5-dev168 → 0.18.5-dev169

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.
package/dist/main.js CHANGED
@@ -2691,8 +2691,7 @@ let __tla = Promise.all([
2691
2691
  if (typeof e2 != "string") throw TypeError("First argument must be a string");
2692
2692
  return e2 ? (0, d.default)((0, c.default)(e2, (r2 == null ? void 0 : r2.htmlparser2) || h), r2) : [];
2693
2693
  }
2694
- })), import_compiler_runtime$157 = require_compiler_runtime(), import_lib = __toESM(require_lib(), 1), import_lib$1 = require_lib(), esm_default$1 = import_lib.default.default || import_lib.default;
2695
- createLucideIcon("activity", [
2694
+ })), import_compiler_runtime$157 = require_compiler_runtime(), import_lib = __toESM(require_lib(), 1), import_lib$1 = require_lib(), esm_default$1 = import_lib.default.default || import_lib.default, Activity = createLucideIcon("activity", [
2696
2695
  [
2697
2696
  "path",
2698
2697
  {
@@ -2700,8 +2699,7 @@ let __tla = Promise.all([
2700
2699
  key: "169zse"
2701
2700
  }
2702
2701
  ]
2703
- ]);
2704
- var AlignEndVertical = createLucideIcon("align-end-vertical", [
2702
+ ]), AlignEndVertical = createLucideIcon("align-end-vertical", [
2705
2703
  [
2706
2704
  "rect",
2707
2705
  {
@@ -3942,8 +3940,7 @@ let __tla = Promise.all([
3942
3940
  key: "1f4ei9"
3943
3941
  }
3944
3942
  ]
3945
- ]);
3946
- createLucideIcon("database-zap", [
3943
+ ]), DatabaseZap = createLucideIcon("database-zap", [
3947
3944
  [
3948
3945
  "ellipse",
3949
3946
  {
@@ -3982,8 +3979,7 @@ let __tla = Promise.all([
3982
3979
  key: "1y4wr8"
3983
3980
  }
3984
3981
  ]
3985
- ]);
3986
- var Database = createLucideIcon("database", [
3982
+ ]), Database = createLucideIcon("database", [
3987
3983
  [
3988
3984
  "ellipse",
3989
3985
  {
@@ -4703,8 +4699,7 @@ let __tla = Promise.all([
4703
4699
  key: "e9boi3"
4704
4700
  }
4705
4701
  ]
4706
- ]);
4707
- createLucideIcon("key-round", [
4702
+ ]), KeyRound = createLucideIcon("key-round", [
4708
4703
  [
4709
4704
  "path",
4710
4705
  {
@@ -4722,8 +4717,7 @@ let __tla = Promise.all([
4722
4717
  key: "w0ekpg"
4723
4718
  }
4724
4719
  ]
4725
- ]);
4726
- var Key = createLucideIcon("key", [
4720
+ ]), Key = createLucideIcon("key", [
4727
4721
  [
4728
4722
  "path",
4729
4723
  {
@@ -5529,8 +5523,7 @@ let __tla = Promise.all([
5529
5523
  key: "1fa9i4"
5530
5524
  }
5531
5525
  ]
5532
- ]);
5533
- createLucideIcon("square-terminal", [
5526
+ ]), SquareTerminal = createLucideIcon("square-terminal", [
5534
5527
  [
5535
5528
  "path",
5536
5529
  {
@@ -5557,8 +5550,7 @@ let __tla = Promise.all([
5557
5550
  key: "1m3agn"
5558
5551
  }
5559
5552
  ]
5560
- ]);
5561
- var Square = createLucideIcon("square", [
5553
+ ]), Square = createLucideIcon("square", [
5562
5554
  [
5563
5555
  "rect",
5564
5556
  {
@@ -30435,59 +30427,122 @@ ${c.sqlString}
30435
30427
  repl(setFeatureFlag, "setFeatureFlag");
30436
30428
  const PANELS = [
30437
30429
  {
30438
- id: "files",
30430
+ type: "files",
30439
30431
  Icon: FolderTree,
30432
+ label: "Files",
30440
30433
  tooltip: "View files",
30441
- position: "sidebar"
30434
+ defaultSection: "sidebar"
30442
30435
  },
30443
30436
  {
30444
- id: "variables",
30437
+ type: "variables",
30445
30438
  Icon: Variable$1,
30439
+ label: "Variables",
30446
30440
  tooltip: "Explore variables and data sources",
30447
- position: "sidebar"
30441
+ defaultSection: "sidebar"
30448
30442
  },
30449
30443
  {
30450
- id: "packages",
30444
+ type: "packages",
30451
30445
  Icon: Box$1,
30446
+ label: "Packages",
30452
30447
  tooltip: "Manage packages",
30453
- position: "sidebar"
30448
+ defaultSection: "sidebar"
30454
30449
  },
30455
30450
  {
30456
- id: "ai",
30451
+ type: "ai",
30457
30452
  Icon: Bot,
30453
+ label: "AI",
30458
30454
  tooltip: "Chat & Agents",
30459
- position: "sidebar"
30455
+ defaultSection: "sidebar"
30460
30456
  },
30461
30457
  {
30462
- id: "snippets",
30458
+ type: "snippets",
30463
30459
  Icon: SquareDashedBottomCode,
30460
+ label: "Snippets",
30464
30461
  tooltip: "Snippets",
30465
- position: "sidebar",
30466
- defaultHidden: true
30462
+ defaultSection: "developer-panel"
30467
30463
  },
30468
30464
  {
30469
- id: "outline",
30465
+ type: "outline",
30470
30466
  Icon: ScrollText,
30467
+ label: "Outline",
30471
30468
  tooltip: "View outline",
30472
- position: "sidebar"
30469
+ defaultSection: "sidebar"
30473
30470
  },
30474
30471
  {
30475
- id: "documentation",
30472
+ type: "documentation",
30476
30473
  Icon: TextSearch,
30474
+ label: "Docs",
30477
30475
  tooltip: "View live docs",
30478
- position: "sidebar"
30476
+ defaultSection: "sidebar"
30479
30477
  },
30480
30478
  {
30481
- id: "dependencies",
30479
+ type: "dependencies",
30482
30480
  Icon: Network,
30481
+ label: "Dependencies",
30483
30482
  tooltip: "Explore dependencies",
30484
- position: "sidebar"
30483
+ defaultSection: "sidebar"
30484
+ },
30485
+ {
30486
+ type: "errors",
30487
+ Icon: CircleX,
30488
+ label: "Errors",
30489
+ tooltip: "View errors",
30490
+ defaultSection: "developer-panel"
30491
+ },
30492
+ {
30493
+ type: "scratchpad",
30494
+ Icon: NotebookPen,
30495
+ label: "Scratchpad",
30496
+ tooltip: "Scratchpad",
30497
+ defaultSection: "developer-panel"
30498
+ },
30499
+ {
30500
+ type: "tracing",
30501
+ Icon: Activity,
30502
+ label: "Tracing",
30503
+ tooltip: "View tracing",
30504
+ defaultSection: "developer-panel"
30505
+ },
30506
+ {
30507
+ type: "secrets",
30508
+ Icon: KeyRound,
30509
+ label: "Secrets",
30510
+ tooltip: "Manage secrets",
30511
+ defaultSection: "developer-panel",
30512
+ hidden: isWasm()
30513
+ },
30514
+ {
30515
+ type: "logs",
30516
+ Icon: FileText,
30517
+ label: "Logs",
30518
+ tooltip: "View logs",
30519
+ defaultSection: "developer-panel"
30520
+ },
30521
+ {
30522
+ type: "terminal",
30523
+ Icon: SquareTerminal,
30524
+ label: "Terminal",
30525
+ tooltip: "Terminal",
30526
+ defaultSection: "developer-panel"
30527
+ },
30528
+ {
30529
+ type: "cache",
30530
+ Icon: DatabaseZap,
30531
+ label: "Cache",
30532
+ tooltip: "View cache",
30533
+ defaultSection: "developer-panel",
30534
+ hidden: !getFeatureFlag("cache_panel")
30485
30535
  }
30486
30536
  ];
30487
30537
  new Map(PANELS.map((e) => [
30488
- e.id,
30538
+ e.type,
30489
30539
  e
30490
- ])), isWasm(), getFeatureFlag("cache_panel"), require_compiler_runtime();
30540
+ ])), require_compiler_runtime(), atomWithStorage("marimo:panel-layout", {
30541
+ sidebar: PANELS.filter((e) => !e.hidden && e.defaultSection === "sidebar").map((e) => e.type),
30542
+ developerPanel: PANELS.filter((e) => !e.hidden && e.defaultSection === "developer-panel").map((e) => e.type)
30543
+ }, jotaiJsonStorage, {
30544
+ getOnInit: true
30545
+ });
30491
30546
  var KEY$4 = "marimo:sidebar", storage$1 = new ZodLocalStorage(object$1({
30492
30547
  selectedPanel: string$2().optional().transform((e) => e),
30493
30548
  isSidebarOpen: boolean$2(),
@@ -30544,9 +30599,6 @@ ${c.sqlString}
30544
30599
  function useChromeActions() {
30545
30600
  return useActions$2();
30546
30601
  }
30547
- atomWithStorage("marimo:sidebar-order", PANELS.filter((e) => !e.hidden && !e.defaultHidden && e.position === "sidebar").map((e) => e.id), jotaiJsonStorage, {
30548
- getOnInit: true
30549
- });
30550
30602
  const capabilitiesAtom = atom({
30551
30603
  terminal: false,
30552
30604
  pylsp: false,
@@ -100967,7 +101019,7 @@ Defaulting to \`null\`.`;
100967
101019
  return Logger.warn("Failed to get version from mount config"), null;
100968
101020
  }
100969
101021
  }
100970
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.18.5-dev168"), showCodeInRunModeAtom = atom(true);
101022
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.18.5-dev169"), showCodeInRunModeAtom = atom(true);
100971
101023
  atom(null);
100972
101024
  var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
100973
101025
  constructor() {