@marimo-team/islands 0.19.3-dev3 → 0.19.3-dev6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.19.3-dev3",
3
+ "version": "0.19.3-dev6",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -585,7 +585,7 @@ const EditableCellComponent = ({
585
585
  className={cn(
586
586
  className,
587
587
  navigationProps.className,
588
- "focus:ring-1 focus:ring-(--slate-7) focus:ring-offset-2",
588
+ "focus:ring-1 focus:ring-(--slate-8) focus:ring-offset-2",
589
589
  )}
590
590
  ref={cellContainerRef}
591
591
  {...cellDomProps(cellId, cellData.name)}
@@ -1032,16 +1032,12 @@ const SetupCellComponent = ({
1032
1032
  const hasConsoleOutput = cellRuntime.consoleOutputs.length > 0;
1033
1033
  const isErrorOutput = isErrorMime(cellRuntime.output?.mimetype);
1034
1034
 
1035
- const className = clsx(
1036
- "marimo-cell",
1037
- "hover-actions-parent z-10 border shadow-sm",
1038
- "border-(--blue-5)! rounded-sm!",
1039
- {
1040
- "needs-run": needsRun,
1041
- "has-error": cellRuntime.errored,
1042
- stopped: cellRuntime.stopped,
1043
- },
1044
- );
1035
+ const className = clsx("marimo-cell", "hover-actions-parent z-10", {
1036
+ interactive: true,
1037
+ "needs-run": needsRun,
1038
+ "has-error": cellRuntime.errored,
1039
+ stopped: cellRuntime.stopped,
1040
+ });
1045
1041
 
1046
1042
  const handleRefactorWithAI: OnRefactorWithAI = useEvent(
1047
1043
  (opts: { prompt: string; triggerImmediately: boolean }) => {
@@ -1076,7 +1072,7 @@ const SetupCellComponent = ({
1076
1072
  {...mergeProps(navigationProps, {
1077
1073
  className: cn(
1078
1074
  className,
1079
- "focus:ring-1 focus:ring-(--blue-7) focus:ring-offset-0",
1075
+ "focus:ring-1 focus:ring-(--slate-8) focus:ring-offset-2",
1080
1076
  ),
1081
1077
  onBlur: closeCompletionHandler,
1082
1078
  onKeyDown: resumeCompletionHandler,
@@ -1086,7 +1082,11 @@ const SetupCellComponent = ({
1086
1082
  tabIndex={-1}
1087
1083
  data-setup-cell={true}
1088
1084
  >
1089
- <div className={cn("tray")} data-hidden={!isCellCodeShown}>
1085
+ <div
1086
+ className={cn("tray")}
1087
+ data-has-output-above={false}
1088
+ data-hidden={!isCellCodeShown}
1089
+ >
1090
1090
  <StagedAICellBackground
1091
1091
  cellId={cellId}
1092
1092
  className="mo-ai-setup-cell"
@@ -1325,10 +1325,7 @@ const {
1325
1325
  };
1326
1326
  },
1327
1327
  addSetupCellIfDoesntExist: (state, action: { code?: string }) => {
1328
- let { code } = action;
1329
- if (code == null) {
1330
- code = "# Initialization code that runs before all other cells";
1331
- }
1328
+ const { code } = action;
1332
1329
 
1333
1330
  if (state.cellIds.setupCellExists()) {
1334
1331
  // Just focus on the existing setup cell
@@ -319,6 +319,12 @@
319
319
  }
320
320
  }
321
321
 
322
+ #cell-setup,
323
+ #cell-setup .cm-editor,
324
+ #cell-setup .cm-gutter {
325
+ background-color: var(--gray-2);
326
+ }
327
+
322
328
  #App.disconnected {
323
329
  /* Background determined by disconnected gradient/noise. */
324
330