@webstudio-is/sdk-components-react-remix 0.69.0 → 0.71.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/README.md +1 -2
- package/lib/cjs/link-block.js +2 -2
- package/lib/cjs/link.js +2 -2
- package/lib/cjs/rich-text-link.js +2 -2
- package/lib/link-block.js +1 -1
- package/lib/link.js +1 -1
- package/lib/rich-text-link.js +1 -1
- package/lib/types/form.d.ts +1 -1
- package/package.json +12 -9
- package/src/link-block.tsx +1 -1
- package/src/link.tsx +1 -1
- package/src/rich-text-link.tsx +1 -1
- package/src/shared/remix-link.tsx +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# Webstudio SDK
|
|
1
|
+
# Webstudio SDK Components
|
|
2
2
|
|
|
3
3
|
Webstudio SDK is a TypeScript API that lets you use your Webstudio site or some components in your custom codebase or just render a complete Remix Document.
|
|
4
|
-
It is currently under development, but feel free to play with the the current [landing site](https://github.com/webstudio-is/webstudio-landing)
|
package/lib/cjs/link-block.js
CHANGED
|
@@ -21,6 +21,6 @@ __export(link_block_exports, {
|
|
|
21
21
|
LinkBlock: () => LinkBlock
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(link_block_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_sdk_components_react = require("@webstudio-is/sdk-components-react");
|
|
25
25
|
var import_remix_link = require("./shared/remix-link");
|
|
26
|
-
const LinkBlock = (0, import_remix_link.wrapLinkComponent)(
|
|
26
|
+
const LinkBlock = (0, import_remix_link.wrapLinkComponent)(import_sdk_components_react.LinkBlock);
|
package/lib/cjs/link.js
CHANGED
|
@@ -21,6 +21,6 @@ __export(link_exports, {
|
|
|
21
21
|
Link: () => Link
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(link_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_sdk_components_react = require("@webstudio-is/sdk-components-react");
|
|
25
25
|
var import_remix_link = require("./shared/remix-link");
|
|
26
|
-
const Link = (0, import_remix_link.wrapLinkComponent)(
|
|
26
|
+
const Link = (0, import_remix_link.wrapLinkComponent)(import_sdk_components_react.Link);
|
|
@@ -21,6 +21,6 @@ __export(rich_text_link_exports, {
|
|
|
21
21
|
RichTextLink: () => RichTextLink
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(rich_text_link_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_sdk_components_react = require("@webstudio-is/sdk-components-react");
|
|
25
25
|
var import_remix_link = require("./shared/remix-link");
|
|
26
|
-
const RichTextLink = (0, import_remix_link.wrapLinkComponent)(
|
|
26
|
+
const RichTextLink = (0, import_remix_link.wrapLinkComponent)(import_sdk_components_react.RichTextLink);
|
package/lib/link-block.js
CHANGED
package/lib/link.js
CHANGED
package/lib/rich-text-link.js
CHANGED
package/lib/types/form.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const defaultTag = "form";
|
|
3
3
|
export declare const Form: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "action" | "method"> & {
|
|
4
|
-
initialState?: "
|
|
4
|
+
initialState?: "initial" | "error" | "success" | undefined;
|
|
5
5
|
}, "ref"> & import("react").RefAttributes<HTMLFormElement>>;
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react-remix",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"description": "Webstudio components for Remix",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"private": false,
|
|
9
9
|
"type": "module",
|
|
10
|
-
"types": "lib/types/index.d.ts",
|
|
11
10
|
"files": [
|
|
12
11
|
"lib/*",
|
|
13
12
|
"src/*"
|
|
@@ -17,17 +16,20 @@
|
|
|
17
16
|
".": {
|
|
18
17
|
"source": "./src/components.ts",
|
|
19
18
|
"import": "./lib/components.js",
|
|
20
|
-
"require": "./lib/cjs/components.js"
|
|
19
|
+
"require": "./lib/cjs/components.js",
|
|
20
|
+
"types": "./lib/types/components.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"./metas": {
|
|
23
23
|
"source": "./src/metas.ts",
|
|
24
24
|
"import": "./lib/metas.js",
|
|
25
|
-
"require": "./lib/cjs/metas.js"
|
|
25
|
+
"require": "./lib/cjs/metas.js",
|
|
26
|
+
"types": "./lib/types/metas.d.ts"
|
|
26
27
|
},
|
|
27
28
|
"./props": {
|
|
28
29
|
"source": "./src/props.ts",
|
|
29
30
|
"import": "./lib/props.js",
|
|
30
|
-
"require": "./lib/cjs/props.js"
|
|
31
|
+
"require": "./lib/cjs/props.js",
|
|
32
|
+
"types": "./lib/types/props.d.ts"
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
35
|
"peerDependencies": {
|
|
@@ -36,10 +38,11 @@
|
|
|
36
38
|
"react-dom": "^18.2.0"
|
|
37
39
|
},
|
|
38
40
|
"dependencies": {
|
|
39
|
-
"@webstudio-is/form-handlers": "^0.
|
|
40
|
-
"@webstudio-is/generate-arg-types": "^0.
|
|
41
|
-
"@webstudio-is/icons": "^0.
|
|
42
|
-
"@webstudio-is/react-sdk": "^0.
|
|
41
|
+
"@webstudio-is/form-handlers": "^0.71.0",
|
|
42
|
+
"@webstudio-is/generate-arg-types": "^0.71.0",
|
|
43
|
+
"@webstudio-is/icons": "^0.71.0",
|
|
44
|
+
"@webstudio-is/react-sdk": "^0.71.0",
|
|
45
|
+
"@webstudio-is/sdk-components-react": "^0.71.0"
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
45
48
|
"@remix-run/react": "^1.15.0",
|
package/src/link-block.tsx
CHANGED
package/src/link.tsx
CHANGED
package/src/rich-text-link.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { forwardRef, type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
import { NavLink as RemixLink } from "@remix-run/react";
|
|
3
3
|
import {
|
|
4
|
-
type Link,
|
|
5
4
|
usePropUrl,
|
|
6
5
|
getInstanceIdFromComponentProps,
|
|
7
6
|
} from "@webstudio-is/react-sdk";
|
|
7
|
+
import type { Link } from "@webstudio-is/sdk-components-react";
|
|
8
8
|
|
|
9
9
|
type LinkComponent = typeof Link;
|
|
10
10
|
type LinkProps = ComponentPropsWithoutRef<LinkComponent>;
|