@marimo-team/islands 0.19.3-dev3 → 0.19.3-dev4
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 +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/editor/notebook-cell.tsx +13 -13
- package/src/core/cells/cells.ts +1 -4
- package/src/css/app/Cell.css +6 -0
package/package.json
CHANGED
|
@@ -585,7 +585,7 @@ const EditableCellComponent = ({
|
|
|
585
585
|
className={cn(
|
|
586
586
|
className,
|
|
587
587
|
navigationProps.className,
|
|
588
|
-
"focus:ring-1 focus:ring-(--slate-
|
|
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
|
-
|
|
1037
|
-
"
|
|
1038
|
-
"
|
|
1039
|
-
|
|
1040
|
-
|
|
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-(--
|
|
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
|
|
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"
|
package/src/core/cells/cells.ts
CHANGED
|
@@ -1325,10 +1325,7 @@ const {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
},
|
|
1327
1327
|
addSetupCellIfDoesntExist: (state, action: { code?: string }) => {
|
|
1328
|
-
|
|
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
|
package/src/css/app/Cell.css
CHANGED