@webstudio-is/react-sdk 0.42.0 → 0.44.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.
@@ -22,13 +22,14 @@ __export(rich_text_link_ws_exports, {
22
22
  propsMeta: () => propsMeta
23
23
  });
24
24
  module.exports = __toCommonJS(rich_text_link_ws_exports);
25
- var import_icons = require("@webstudio-is/icons");
26
25
  var import_rich_text_link = require("./__generated__/rich-text-link.props");
26
+ var import_link = require("./link.ws");
27
27
  const meta = {
28
+ ...import_link.meta,
28
29
  type: "rich-text-child",
29
- label: "Link",
30
- Icon: import_icons.Link2Icon
30
+ children: []
31
31
  };
32
32
  const propsMeta = {
33
+ ...import_link.propsMeta,
33
34
  props: import_rich_text_link.props
34
35
  };
@@ -1,11 +1,12 @@
1
- import { Link2Icon } from "@webstudio-is/icons";
2
1
  import { props } from "./__generated__/rich-text-link.props";
2
+ import { meta as linkMeta, propsMeta as propsLinkMeta } from "./link.ws";
3
3
  const meta = {
4
+ ...linkMeta,
4
5
  type: "rich-text-child",
5
- label: "Link",
6
- Icon: Link2Icon
6
+ children: []
7
7
  };
8
8
  const propsMeta = {
9
+ ...propsLinkMeta,
9
10
  props
10
11
  };
11
12
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/react-sdk",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "description": "Webstudio JavaScript / TypeScript API",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -46,14 +46,14 @@
46
46
  "mitt": "^3.0.0",
47
47
  "nanostores": "^0.7.1",
48
48
  "warn-once": "^0.1.1",
49
- "@webstudio-is/asset-uploader": "^0.42.0",
50
- "@webstudio-is/css-data": "^0.42.0",
51
- "@webstudio-is/css-vars": "^0.42.0",
52
- "@webstudio-is/generate-arg-types": "^0.42.0",
53
- "@webstudio-is/icons": "^0.42.0",
54
- "@webstudio-is/image": "^0.42.0",
55
- "@webstudio-is/prisma-client": "^0.42.0",
56
- "@webstudio-is/project-build": "^0.42.0"
49
+ "@webstudio-is/asset-uploader": "^0.44.0",
50
+ "@webstudio-is/css-data": "^0.44.0",
51
+ "@webstudio-is/css-vars": "^0.44.0",
52
+ "@webstudio-is/generate-arg-types": "^0.44.0",
53
+ "@webstudio-is/icons": "^0.44.0",
54
+ "@webstudio-is/image": "^0.44.0",
55
+ "@webstudio-is/prisma-client": "^0.44.0",
56
+ "@webstudio-is/project-build": "^0.44.0"
57
57
  },
58
58
  "exports": {
59
59
  ".": {
@@ -1,9 +1,7 @@
1
- import { forwardRef, type ElementRef, type ComponentProps } from "react";
1
+ import { forwardRef } from "react";
2
2
  import { Link } from "./link";
3
3
 
4
- type Props = ComponentProps<typeof Link>;
5
-
6
- export const RichTextLink = forwardRef<ElementRef<"a">, Props>((props, ref) => (
4
+ export const RichTextLink: typeof Link = forwardRef((props, ref) => (
7
5
  <Link {...props} ref={ref} />
8
6
  ));
9
7
 
@@ -1,13 +1,14 @@
1
- import { Link2Icon } from "@webstudio-is/icons";
2
1
  import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
3
2
  import { props } from "./__generated__/rich-text-link.props";
3
+ import { meta as linkMeta, propsMeta as propsLinkMeta } from "./link.ws";
4
4
 
5
5
  export const meta: WsComponentMeta = {
6
+ ...linkMeta,
6
7
  type: "rich-text-child",
7
- label: "Link",
8
- Icon: Link2Icon,
8
+ children: [],
9
9
  };
10
10
 
11
11
  export const propsMeta: WsComponentPropsMeta = {
12
+ ...propsLinkMeta,
12
13
  props,
13
14
  };