@webstudio-is/sdk-components-react-remix 0.70.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 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)
@@ -21,6 +21,6 @@ __export(link_block_exports, {
21
21
  LinkBlock: () => LinkBlock
22
22
  });
23
23
  module.exports = __toCommonJS(link_block_exports);
24
- var import_react_sdk = require("@webstudio-is/react-sdk");
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)(import_react_sdk.LinkBlock);
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 import_react_sdk = require("@webstudio-is/react-sdk");
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)(import_react_sdk.Link);
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 import_react_sdk = require("@webstudio-is/react-sdk");
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)(import_react_sdk.RichTextLink);
26
+ const RichTextLink = (0, import_remix_link.wrapLinkComponent)(import_sdk_components_react.RichTextLink);
package/lib/link-block.js CHANGED
@@ -1,4 +1,4 @@
1
- import { LinkBlock as BaseLink } from "@webstudio-is/react-sdk";
1
+ import { LinkBlock as BaseLink } from "@webstudio-is/sdk-components-react";
2
2
  import { wrapLinkComponent } from "./shared/remix-link";
3
3
  const LinkBlock = wrapLinkComponent(BaseLink);
4
4
  export {
package/lib/link.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Link as BaseLink } from "@webstudio-is/react-sdk";
1
+ import { Link as BaseLink } from "@webstudio-is/sdk-components-react";
2
2
  import { wrapLinkComponent } from "./shared/remix-link";
3
3
  const Link = wrapLinkComponent(BaseLink);
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { RichTextLink as BaseLink } from "@webstudio-is/react-sdk";
1
+ import { RichTextLink as BaseLink } from "@webstudio-is/sdk-components-react";
2
2
  import { wrapLinkComponent } from "./shared/remix-link";
3
3
  const RichTextLink = wrapLinkComponent(BaseLink);
4
4
  export {
@@ -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?: "error" | "initial" | "success" | undefined;
4
+ initialState?: "initial" | "error" | "success" | undefined;
5
5
  }, "ref"> & import("react").RefAttributes<HTMLFormElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react-remix",
3
- "version": "0.70.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",
@@ -15,21 +15,21 @@
15
15
  "exports": {
16
16
  ".": {
17
17
  "source": "./src/components.ts",
18
- "types": "./lib/types/components.d.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
- "types": "./lib/types/metas.d.ts",
25
24
  "import": "./lib/metas.js",
26
- "require": "./lib/cjs/metas.js"
25
+ "require": "./lib/cjs/metas.js",
26
+ "types": "./lib/types/metas.d.ts"
27
27
  },
28
28
  "./props": {
29
29
  "source": "./src/props.ts",
30
- "types": "./lib/types/props.d.ts",
31
30
  "import": "./lib/props.js",
32
- "require": "./lib/cjs/props.js"
31
+ "require": "./lib/cjs/props.js",
32
+ "types": "./lib/types/props.d.ts"
33
33
  }
34
34
  },
35
35
  "peerDependencies": {
@@ -38,10 +38,11 @@
38
38
  "react-dom": "^18.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@webstudio-is/form-handlers": "^0.70.0",
42
- "@webstudio-is/generate-arg-types": "^0.70.0",
43
- "@webstudio-is/icons": "^0.70.0",
44
- "@webstudio-is/react-sdk": "^0.70.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"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@remix-run/react": "^1.15.0",
@@ -1,4 +1,4 @@
1
- import { LinkBlock as BaseLink } from "@webstudio-is/react-sdk";
1
+ import { LinkBlock as BaseLink } from "@webstudio-is/sdk-components-react";
2
2
  import { wrapLinkComponent } from "./shared/remix-link";
3
3
 
4
4
  export const LinkBlock = wrapLinkComponent(BaseLink);
package/src/link.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { Link as BaseLink } from "@webstudio-is/react-sdk";
1
+ import { Link as BaseLink } from "@webstudio-is/sdk-components-react";
2
2
  import { wrapLinkComponent } from "./shared/remix-link";
3
3
 
4
4
  export const Link = wrapLinkComponent(BaseLink);
@@ -1,4 +1,4 @@
1
- import { RichTextLink as BaseLink } from "@webstudio-is/react-sdk";
1
+ import { RichTextLink as BaseLink } from "@webstudio-is/sdk-components-react";
2
2
  import { wrapLinkComponent } from "./shared/remix-link";
3
3
 
4
4
  export const RichTextLink = wrapLinkComponent(BaseLink);
@@ -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>;