From f64a53f0459007419916919d3ab67a2decdc0c02 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Sat, 29 Aug 2026 07:14:50 +0200 Subject: [PATCH] Upgrade Xote to 7.1.0 Signed-off-by: Christoph Knittel --- packages/dev-playground/package.json | 2 +- packages/dev-playground/src/Main.res | 64 +++++++++---------- .../dev-playground/src/SourceHighlight.res | 2 +- .../dev-playground/src/SourceHighlight.resi | 2 +- yarn.lock | 10 +-- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/packages/dev-playground/package.json b/packages/dev-playground/package.json index 4c86f136c7f..2c0cd72a293 100644 --- a/packages/dev-playground/package.json +++ b/packages/dev-playground/package.json @@ -17,6 +17,6 @@ "@rescript/runtime": "12.3.0", "rescript": "12.3.0", "vite": "^8.0.14", - "xote": "6.4.0" + "xote": "7.1.0" } } diff --git a/packages/dev-playground/src/Main.res b/packages/dev-playground/src/Main.res index 91ffae6b5bd..53e3c8597a3 100644 --- a/packages/dev-playground/src/Main.res +++ b/packages/dev-playground/src/Main.res @@ -175,7 +175,7 @@ module TabButton = { class={() => Signal.get(activeTab) === tab ? "tab-button tab-button-active" : "tab-button"} onClick={_ => onSelect(tab)} > - {Node.text(tabLabel(tab))} + {View.text(tabLabel(tab))} } } @@ -184,9 +184,9 @@ module Problems = { @jsx.component let make = (~compileResult: Signal.t>) => {
-
{Node.text("Problems")}
+
{View.text("Problems")}
-        {Node.signalText(() =>
+        {View.signalText(() =>
           switch Signal.get(compileResult) {
           | Some(Ok({warnings})) if warnings->Array.length > 0 => warnings->Array.join("\n")
           | Some(Error({warnings})) if warnings->Array.length > 0 => warnings->Array.join("\n")
@@ -219,7 +219,7 @@ module SettingsPanel = {
     >
       
- +
- {Node.signalText(() => + {View.signalText(() => switch Signal.get(compilerInfo) { | Some(info) => `${info.version} / API ${info.apiVersion} / ${info.bundleId}` | None => "loading" @@ -249,7 +249,7 @@ module SettingsPanel = {
- +
- + Signal.get(config).warnFlags} @@ -291,7 +291,7 @@ module SettingsPanel = { compileNow() }} > - {Node.text("Reset")} + {View.text("Reset")}
@@ -305,7 +305,7 @@ module SettingsPanel = { compileNow() }} /> - +
- +
- +
- {Node.signalText(() => + {View.signalText(() => switch Signal.get(compilerInfo) { | Some(info) => info.libraries->Array.join(", ") | None => "loading" @@ -349,7 +349,7 @@ module StatusBadge = { | Ready => "status" }} > - {Node.signalText(() => + {View.signalText(() => switch Signal.get(status) { | Failed(message) => message | other => statusLabel(other) @@ -371,7 +371,7 @@ module App = { let activeLine = Signal.make(1) let editorScrollTop = Signal.make(0) let editorScrollLeft = Signal.make(0) - let highlightedSource: Signal.t> = Obj.magic( + let highlightedSource: Signal.t> = Obj.magic( Computed.make(() => SourceHighlight.render(Signal.get(source))), ) let timerId: ref> = ref(None) @@ -596,17 +596,17 @@ module App = {
-

{Node.text("ReScript Developer Playground")}

+

{View.text("ReScript Developer Playground")}

-

{Node.text("Source")}

+

{View.text("Source")}

@@ -638,16 +638,16 @@ module App = {
-                {Node.signalText(() => lineNumbersText(Signal.get(source)))}
+                {View.signalText(() => lineNumbersText(Signal.get(source)))}
               
-              {Node.signalFragment(highlightedSource)}
+              {View.signalFragment(highlightedSource)}