@webstudio-is/sdk-components-react-remix 0.182.0 → 0.185.0
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/lib/components.js +10 -2
- package/package.json +8 -8
package/lib/components.js
CHANGED
|
@@ -28,7 +28,7 @@ var wrapLinkComponent = (BaseLink3) => {
|
|
|
28
28
|
href === "" || href.startsWith("?") || href.startsWith("#") || href.startsWith("/") && href.startsWith(assetBaseUrl) === false
|
|
29
29
|
) {
|
|
30
30
|
if (renderer !== "canvas" && renderer !== "preview") {
|
|
31
|
-
return /* @__PURE__ */ jsx2(RemixLink, { ...props, to: href, ref });
|
|
31
|
+
return /* @__PURE__ */ jsx2(RemixLink, { ...props, to: href, ref, end: true });
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
const { prefetch, reloadDocument, replace, preventScrollReset, ...rest } = props;
|
|
@@ -142,7 +142,15 @@ var RemixForm = forwardRef4(({ action, ...props }, ref) => {
|
|
|
142
142
|
const { renderer } = useContext2(ReactSdkContext2);
|
|
143
143
|
if (action === void 0 || action === "" || typeof action === "string" && action?.startsWith("/")) {
|
|
144
144
|
if (renderer !== "canvas" && renderer !== "preview") {
|
|
145
|
-
return /* @__PURE__ */ jsx4(
|
|
145
|
+
return /* @__PURE__ */ jsx4(
|
|
146
|
+
Form,
|
|
147
|
+
{
|
|
148
|
+
action,
|
|
149
|
+
...props,
|
|
150
|
+
ref,
|
|
151
|
+
preventScrollReset: action === void 0 || action === ""
|
|
152
|
+
}
|
|
153
|
+
);
|
|
146
154
|
}
|
|
147
155
|
}
|
|
148
156
|
return /* @__PURE__ */ jsx4("form", { ...props, ref });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react-remix",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.185.0",
|
|
4
4
|
"description": "Webstudio components for Remix",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"react-dom": "18.3.0-canary-14898b6a9-20240318"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@webstudio-is/icons": "0.
|
|
39
|
-
"@webstudio-is/sdk": "0.
|
|
40
|
-
"@webstudio-is/sdk
|
|
41
|
-
"@webstudio-is/react
|
|
38
|
+
"@webstudio-is/icons": "0.185.0",
|
|
39
|
+
"@webstudio-is/react-sdk": "0.185.0",
|
|
40
|
+
"@webstudio-is/sdk": "0.185.0",
|
|
41
|
+
"@webstudio-is/sdk-components-react": "0.185.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@remix-run/react": "^2.
|
|
44
|
+
"@remix-run/react": "^2.12.1",
|
|
45
45
|
"@types/node": "^22.6.1",
|
|
46
46
|
"@types/react": "^18.2.70",
|
|
47
47
|
"@types/react-dom": "^18.2.25",
|
|
48
48
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
49
49
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
50
50
|
"typescript": "5.5.2",
|
|
51
|
-
"@webstudio-is/
|
|
52
|
-
"@webstudio-is/
|
|
51
|
+
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
52
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "rm -rf lib && esbuild src/components.ts src/metas.ts src/props.ts --outdir=lib --bundle --format=esm --packages=external",
|