@webstudio-is/sdk-components-react 0.145.0 → 0.163.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.
@@ -0,0 +1,2 @@
1
+ import type { PropMeta } from "@webstudio-is/react-sdk";
2
+ export declare const props: Record<string, PropMeta>;
@@ -0,0 +1,2 @@
1
+ import type { PropMeta } from "@webstudio-is/react-sdk";
2
+ export declare const props: Record<string, PropMeta>;
@@ -0,0 +1,2 @@
1
+ import type { PropMeta } from "@webstudio-is/react-sdk";
2
+ export declare const props: Record<string, PropMeta>;
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const defaultTag = "code";
3
- export declare const CodeText: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
3
+ export declare const CodeText: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
4
+ code?: string | undefined;
5
+ }, "ref"> & import("react").RefAttributes<HTMLElement>>;
@@ -30,3 +30,5 @@ export { Vimeo } from "./vimeo";
30
30
  export { VimeoPreviewImage } from "./vimeo-preview-image";
31
31
  export { VimeoPlayButton } from "./vimeo-play-button";
32
32
  export { VimeoSpinner } from "./vimeo-spinner";
33
+ export { XmlNode } from "./xml-node";
34
+ export { Time } from "./time";
@@ -0,0 +1,2 @@
1
+ import { type WsComponentMeta } from "@webstudio-is/react-sdk";
2
+ export declare const meta: WsComponentMeta;
@@ -0,0 +1,2 @@
1
+ export declare const patchDomEvents: () => void;
2
+ export declare const executeDomEvents: () => void;
@@ -6,6 +6,7 @@ type HtmlEmbedProps = {
6
6
  code: string;
7
7
  executeScriptOnCanvas?: boolean;
8
8
  clientOnly?: boolean;
9
+ children?: never;
9
10
  };
10
11
  export declare const HtmlEmbed: import("react").ForwardRefExoticComponent<HtmlEmbedProps & import("react").RefAttributes<HTMLDivElement>>;
11
12
  export {};
@@ -1,6 +1,7 @@
1
1
  export { meta as Slot } from "./slot.ws";
2
2
  export { meta as Fragment } from "./fragment.ws";
3
3
  export { meta as HtmlEmbed } from "./html-embed.ws";
4
+ export { meta as ContentEmbed } from "./content-embed.ws";
4
5
  export { meta as Body } from "./body.ws";
5
6
  export { meta as Box } from "./box.ws";
6
7
  export { meta as Text } from "./text.ws";
@@ -30,3 +31,5 @@ export { meta as Vimeo } from "./vimeo.ws";
30
31
  export { meta as VimeoPreviewImage } from "./vimeo-preview-image.ws";
31
32
  export { meta as VimeoPlayButton } from "./vimeo-play-button.ws";
32
33
  export { meta as VimeoSpinner } from "./vimeo-spinner.ws";
34
+ export { meta as XmlNode } from "./xml-node.ws";
35
+ export { meta as Time } from "./time.ws";
@@ -30,3 +30,5 @@ export { propsMeta as Vimeo } from "./vimeo.ws";
30
30
  export { propsMeta as VimeoPreviewImage } from "./vimeo-preview-image.ws";
31
31
  export { propsMeta as VimeoPlayButton } from "./vimeo-play-button.ws";
32
32
  export { propsMeta as VimeoSpinner } from "./vimeo-spinner.ws";
33
+ export { propsMeta as XmlNode } from "./xml-node.ws";
34
+ export { propsMeta as Time } from "./time.ws";
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ declare const languages: readonly ["af", "am", "ar", "az", "be", "bg", "bn", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "es", "et", "eu", "fa", "fi", "fr", "ga", "gl", "gu", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "ka", "kk", "km", "kn", "ko", "ky", "lb", "lt", "lv", "mk", "ml", "mn", "mr", "ms", "mt", "nb", "nl", "nn", "pl", "pt", "ro", "ru", "si", "sk", "sl", "sq", "sr", "sv", "sw", "ta", "te", "th", "tr", "uk", "ur", "uz", "vi", "zh"];
3
+ declare const countries: readonly ["AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BR", "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", "CL", "CN", "CO", "KM", "CG", "CD", "CR", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "SZ", "ET", "FJ", "FI", "FR", "GA", "GM", "GE", "DE", "GH", "GR", "GD", "GT", "GN", "GW", "GY", "HT", "HN", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IL", "IT", "JM", "JP", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MR", "MU", "MX", "FM", "MD", "MC", "MN", "ME", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NZ", "NI", "NE", "NG", "NO", "OM", "PK", "PW", "PA", "PG", "PY", "PE", "PH", "PL", "PT", "QA", "RO", "RU", "RW", "KN", "LC", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "SS", "ES", "LK", "SD", "SR", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TO", "TT", "TN", "TR", "TM", "TV", "UG", "UA", "AE", "GB", "US", "UY", "UZ", "VU", "VA", "VE", "VN", "YE", "ZM", "ZW"];
4
+ type Language = (typeof languages)[number];
5
+ type Country = (typeof countries)[number];
6
+ type DateStyle = Intl.DateTimeFormatOptions["dateStyle"] | "none";
7
+ type TimeStyle = Intl.DateTimeFormatOptions["timeStyle"] | "none";
8
+ export type TimeProps = {
9
+ datetime?: string;
10
+ language?: Language;
11
+ country?: Country;
12
+ dateStyle?: DateStyle;
13
+ timeStyle?: TimeStyle;
14
+ };
15
+ export declare const Time: React.ForwardRefExoticComponent<TimeProps & React.RefAttributes<HTMLTimeElement>>;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/react-sdk";
2
+ export declare const meta: WsComponentMeta;
3
+ export declare const propsMeta: WsComponentPropsMeta;
@@ -0,0 +1,12 @@
1
+ import { idAttribute, componentAttribute } from "@webstudio-is/react-sdk";
2
+ import { type ReactNode } from "react";
3
+ export declare const defaultTag = "div";
4
+ type Props = {
5
+ tag: string;
6
+ xmlns?: string;
7
+ children: ReactNode;
8
+ [idAttribute]: string;
9
+ [componentAttribute]: string;
10
+ };
11
+ export declare const XmlNode: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
12
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/react-sdk";
2
+ export declare const meta: WsComponentMeta;
3
+ export declare const propsMeta: WsComponentPropsMeta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react",
3
- "version": "0.145.0",
3
+ "version": "0.163.0",
4
4
  "description": "Webstudio default library for react",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -16,20 +16,17 @@
16
16
  ".": {
17
17
  "webstudio": "./src/components.ts",
18
18
  "types": "./lib/types/components.d.ts",
19
- "import": "./lib/components.js",
20
- "require": "./lib/components.js"
19
+ "import": "./lib/components.js"
21
20
  },
22
21
  "./metas": {
23
22
  "webstudio": "./src/metas.ts",
24
23
  "types": "./lib/types/metas.d.ts",
25
- "import": "./lib/metas.js",
26
- "require": "./lib/metas.js"
24
+ "import": "./lib/metas.js"
27
25
  },
28
26
  "./props": {
29
27
  "webstudio": "./src/props.ts",
30
28
  "types": "./lib/types/props.d.ts",
31
- "import": "./lib/props.js",
32
- "require": "./lib/props.js"
29
+ "import": "./lib/props.js"
33
30
  }
34
31
  },
35
32
  "peerDependencies": {
@@ -39,15 +36,15 @@
39
36
  "dependencies": {
40
37
  "@react-aria/utils": "^3.21.0",
41
38
  "colord": "^2.9.3",
42
- "@webstudio-is/image": "0.145.0",
43
- "@webstudio-is/icons": "0.145.0",
44
- "@webstudio-is/react-sdk": "0.145.0"
39
+ "@webstudio-is/icons": "0.163.0",
40
+ "@webstudio-is/image": "0.163.0",
41
+ "@webstudio-is/react-sdk": "0.163.0"
45
42
  },
46
43
  "devDependencies": {
47
44
  "@jest/globals": "^29.7.0",
48
- "@storybook/addon-essentials": "^7.4.0",
49
- "@storybook/addon-links": "^7.4.0",
50
- "@storybook/react": "^7.4.0",
45
+ "@storybook/addon-essentials": "^8.1.2",
46
+ "@storybook/addon-links": "^8.1.2",
47
+ "@storybook/react": "^8.1.2",
51
48
  "@testing-library/jest-dom": "^6.4.2",
52
49
  "@testing-library/react": "^14.2.2",
53
50
  "@types/react": "^18.2.70",
@@ -56,7 +53,7 @@
56
53
  "react": "18.3.0-canary-14898b6a9-20240318",
57
54
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
58
55
  "typescript": "5.4.5",
59
- "@webstudio-is/generate-arg-types": "0.145.0",
56
+ "@webstudio-is/generate-arg-types": "0.0.0",
60
57
  "@webstudio-is/jest-config": "1.0.7",
61
58
  "@webstudio-is/storybook-config": "0.0.0",
62
59
  "@webstudio-is/tsconfig": "1.0.7"