@replohq/sandbox-runtime 1.13.2 → 1.13.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.
package/buildMetadata.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export const BUILD_METADATA = {
2
2
  "packageName": "@replohq/sandbox-runtime",
3
- "version": "1.13.2",
3
+ "version": "1.13.4",
4
4
  "branch": "HEAD",
5
- "commit": "1fe63426bf74b55c32a549607740292ec2d1f41d",
6
- "builtAt": "2026-10-11T03:08:13.456Z"
5
+ "commit": "846cda8229162197eb0c6dc9c32ce08fccd2d89e",
6
+ "builtAt": "2026-10-12T04:17:30.872Z"
7
7
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@replohq/sandbox-runtime",
3
- "version": "1.13.2",
3
+ "version": "1.13.4",
4
4
  "reploBuild": {
5
5
  "packageName": "@replohq/sandbox-runtime",
6
- "version": "1.13.2",
6
+ "version": "1.13.4",
7
7
  "branch": "HEAD",
8
- "commit": "1fe63426bf74b55c32a549607740292ec2d1f41d",
9
- "builtAt": "2026-10-11T03:08:13.456Z"
8
+ "commit": "846cda8229162197eb0c6dc9c32ce08fccd2d89e",
9
+ "builtAt": "2026-10-12T04:17:30.872Z"
10
10
  },
11
11
  "description": "Replo sandbox runtime — editor integration for agent-built Next.js sites.",
12
12
  "license": "SEE LICENSE IN LICENSE",
@@ -268,7 +268,7 @@ const selectModeStore = createShallowStore(
268
268
  onCommit: commitInlineEdit,
269
269
  onEscape: revertInlineEdit,
270
270
  onBlur: handleBlur,
271
- onSelectionUpdate: (activeMarks) => {
271
+ onActiveMarksChange: (activeMarks) => {
272
272
  set({ activeMarks });
273
273
  reportInlineEditingState({
274
274
  activeMarks,
@@ -289,7 +289,7 @@ const selectModeStore = createShallowStore(
289
289
  });
290
290
  editor.focusAndSelectAll();
291
291
  reportInlineEditingState({
292
- activeMarks: EMPTY_ACTIVE_MARKS,
292
+ activeMarks: get().activeMarks,
293
293
  isInlineEditing: true,
294
294
  request: null
295
295
  });
@@ -8,13 +8,13 @@ export type InlineTiptapEditor = {
8
8
  getJSON: () => JSONContent;
9
9
  runFormatCommand: (command: SelectModeFormatCommand) => void;
10
10
  };
11
- export declare function createInlineTiptapEditor({ element, content, onCommit, onEscape, onBlur, onSelectionUpdate, }: {
11
+ export declare function createInlineTiptapEditor({ element, content, onCommit, onEscape, onBlur, onActiveMarksChange, }: {
12
12
  element: HTMLElement;
13
13
  content: string;
14
14
  onCommit: () => void;
15
15
  onEscape: () => void;
16
16
  onBlur: () => void;
17
- onSelectionUpdate: (activeMarks: {
17
+ onActiveMarksChange: (activeMarks: {
18
18
  bold: boolean;
19
19
  italic: boolean;
20
20
  underline: boolean;
@@ -1,4 +1,4 @@
1
- import { Editor, Mark, Node } from "@tiptap/core";
1
+ import { Editor, Extension, Mark, Node } from "@tiptap/core";
2
2
  import Bold from "@tiptap/extension-bold";
3
3
  import Document from "@tiptap/extension-document";
4
4
  import History from "@tiptap/extension-history";
@@ -23,12 +23,25 @@ const InlineBreak = Node.create({
23
23
  };
24
24
  }
25
25
  });
26
+ const InlineMarkStyles = Extension.create({
27
+ name: "inlineMarkStyles",
28
+ addGlobalAttributes() {
29
+ return [
30
+ {
31
+ types: ["bold", "italic", "underline", "strike", "link"],
32
+ attributes: {
33
+ class: { default: null },
34
+ style: { default: null }
35
+ }
36
+ }
37
+ ];
38
+ }
39
+ });
26
40
  const InlineLink = Mark.create({
27
41
  name: "link",
28
42
  inclusive: false,
29
43
  addAttributes() {
30
44
  return {
31
- class: { default: null },
32
45
  href: { default: null },
33
46
  rel: { default: null },
34
47
  target: { default: null }
@@ -47,7 +60,7 @@ function createInlineTiptapEditor({
47
60
  onCommit,
48
61
  onEscape,
49
62
  onBlur,
50
- onSelectionUpdate
63
+ onActiveMarksChange
51
64
  }) {
52
65
  const originalAttributes = Array.from(
53
66
  element.attributes,
@@ -72,7 +85,8 @@ function createInlineTiptapEditor({
72
85
  Italic,
73
86
  Underline,
74
87
  Strike,
75
- InlineLink
88
+ InlineLink,
89
+ InlineMarkStyles
76
90
  ],
77
91
  editorProps: {
78
92
  attributes: {
@@ -93,8 +107,8 @@ function createInlineTiptapEditor({
93
107
  return false;
94
108
  }
95
109
  },
96
- onSelectionUpdate: ({ editor: activeEditor }) => {
97
- onSelectionUpdate({
110
+ onTransaction: ({ editor: activeEditor }) => {
111
+ onActiveMarksChange({
98
112
  bold: activeEditor.isActive("bold"),
99
113
  italic: activeEditor.isActive("italic"),
100
114
  underline: activeEditor.isActive("underline"),