@webstudio-is/react-sdk 0.7.0 → 0.7.1

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.
Files changed (139) hide show
  1. package/lib/arg-types/utils.d.ts +1 -8
  2. package/lib/arg-types/utils.d.ts.map +1 -1
  3. package/lib/arg-types/utils.js +18 -7
  4. package/lib/component-utils/image.d.ts +107 -0
  5. package/lib/component-utils/image.d.ts.map +1 -0
  6. package/lib/component-utils/image.js +198 -0
  7. package/lib/component-utils/image.test.d.ts +2 -0
  8. package/lib/component-utils/image.test.d.ts.map +1 -0
  9. package/lib/component-utils/image.test.js +132 -0
  10. package/lib/components/body.props.json +8 -37
  11. package/lib/components/bold.props.json +8 -37
  12. package/lib/components/box.props.json +9 -40
  13. package/lib/components/button.props.json +10 -45
  14. package/lib/components/component-type.d.ts +1 -1
  15. package/lib/components/component-type.d.ts.map +1 -1
  16. package/lib/components/form.props.json +8 -37
  17. package/lib/components/heading.props.json +10 -48
  18. package/lib/components/image-dev.stories.d.ts +36 -0
  19. package/lib/components/image-dev.stories.d.ts.map +1 -0
  20. package/lib/components/image-dev.stories.js +102 -0
  21. package/lib/components/image.d.ts +10 -2
  22. package/lib/components/image.d.ts.map +1 -1
  23. package/lib/components/image.js +19 -9
  24. package/lib/components/image.props.json +60 -15
  25. package/lib/components/image.stories.d.ts +10 -2
  26. package/lib/components/image.stories.d.ts.map +1 -1
  27. package/lib/components/image.ws.d.ts.map +1 -1
  28. package/lib/components/image.ws.js +15 -0
  29. package/lib/components/index.d.ts +3 -0
  30. package/lib/components/index.d.ts.map +1 -1
  31. package/lib/components/index.js +7 -1
  32. package/lib/components/input.props.json +9 -46
  33. package/lib/components/italic.props.json +8 -37
  34. package/lib/components/link.d.ts +1 -1
  35. package/lib/components/link.props.json +9 -40
  36. package/lib/components/link.stories.d.ts +2 -2
  37. package/lib/components/meta.d.ts +3 -0
  38. package/lib/components/meta.d.ts.map +1 -1
  39. package/lib/components/meta.js +7 -1
  40. package/lib/components/paragraph.props.json +8 -37
  41. package/lib/components/span.d.ts +3 -0
  42. package/lib/components/span.d.ts.map +1 -0
  43. package/lib/components/span.js +8 -0
  44. package/lib/components/span.props.json +2205 -0
  45. package/lib/components/span.stories.d.ts +6 -0
  46. package/lib/components/span.stories.d.ts.map +1 -0
  47. package/lib/components/span.stories.js +19 -0
  48. package/lib/components/span.ws.d.ts +5 -0
  49. package/lib/components/span.ws.d.ts.map +1 -0
  50. package/lib/components/span.ws.js +14 -0
  51. package/lib/components/subscript.d.ts +3 -0
  52. package/lib/components/subscript.d.ts.map +1 -0
  53. package/lib/components/subscript.js +8 -0
  54. package/lib/components/subscript.props.json +2205 -0
  55. package/lib/components/subscript.stories.d.ts +6 -0
  56. package/lib/components/subscript.stories.d.ts.map +1 -0
  57. package/lib/components/subscript.stories.js +19 -0
  58. package/lib/components/subscript.ws.d.ts +5 -0
  59. package/lib/components/subscript.ws.d.ts.map +1 -0
  60. package/lib/components/subscript.ws.js +14 -0
  61. package/lib/components/superscript.d.ts +3 -0
  62. package/lib/components/superscript.d.ts.map +1 -0
  63. package/lib/components/superscript.js +8 -0
  64. package/lib/components/superscript.props.json +2205 -0
  65. package/lib/components/superscript.stories.d.ts +6 -0
  66. package/lib/components/superscript.stories.d.ts.map +1 -0
  67. package/lib/components/superscript.stories.js +19 -0
  68. package/lib/components/superscript.ws.d.ts +5 -0
  69. package/lib/components/superscript.ws.d.ts.map +1 -0
  70. package/lib/components/superscript.ws.js +14 -0
  71. package/lib/components/text-block.props.json +8 -37
  72. package/lib/css/breakpoints.d.ts +1 -1
  73. package/lib/css/breakpoints.d.ts.map +1 -1
  74. package/lib/css/categories.d.ts +2 -2
  75. package/lib/css/get-browser-style.d.ts +1 -1
  76. package/lib/css/get-browser-style.d.ts.map +1 -1
  77. package/lib/css/get-browser-style.js +10 -5
  78. package/lib/css/index.d.ts +0 -5
  79. package/lib/css/index.d.ts.map +1 -1
  80. package/lib/css/index.js +0 -5
  81. package/lib/db/instance.d.ts +1 -1
  82. package/lib/db/instance.d.ts.map +1 -1
  83. package/lib/db/instance.js +2 -2
  84. package/lib/index.d.ts +0 -1
  85. package/lib/index.d.ts.map +1 -1
  86. package/lib/index.js +0 -1
  87. package/lib/pubsub/create.d.ts +1 -0
  88. package/lib/pubsub/create.d.ts.map +1 -1
  89. package/lib/pubsub/create.js +8 -0
  90. package/lib/remix/handle-request.server.d.ts.map +1 -1
  91. package/lib/remix/handle-request.server.js +1 -2
  92. package/lib/remix/root.d.ts.map +1 -1
  93. package/lib/remix/root.js +2 -2
  94. package/lib/tree/create-elements-tree.d.ts +7 -11
  95. package/lib/tree/create-elements-tree.d.ts.map +1 -1
  96. package/lib/tree/create-elements-tree.js +5 -10
  97. package/lib/tree/root.d.ts +4 -6
  98. package/lib/tree/root.d.ts.map +1 -1
  99. package/lib/tree/root.js +1 -23
  100. package/lib/tree/session-storage-polyfill.d.ts +2 -0
  101. package/lib/tree/session-storage-polyfill.d.ts.map +1 -0
  102. package/lib/tree/session-storage-polyfill.js +39 -0
  103. package/lib/tree/wrapper-component.d.ts +4 -4
  104. package/lib/tree/wrapper-component.d.ts.map +1 -1
  105. package/lib/tree/wrapper-component.js +5 -5
  106. package/package.json +20 -13
  107. package/lib/css/keyword-values.d.ts +0 -302
  108. package/lib/css/keyword-values.d.ts.map +0 -1
  109. package/lib/css/keyword-values.js +0 -6619
  110. package/lib/css/properties.d.ts +0 -3199
  111. package/lib/css/properties.d.ts.map +0 -1
  112. package/lib/css/properties.js +0 -3202
  113. package/lib/css/schema.d.ts +0 -283
  114. package/lib/css/schema.d.ts.map +0 -1
  115. package/lib/css/schema.js +0 -48
  116. package/lib/css/types.d.ts +0 -6
  117. package/lib/css/types.d.ts.map +0 -1
  118. package/lib/css/types.js +0 -2
  119. package/lib/css/units.d.ts +0 -2
  120. package/lib/css/units.d.ts.map +0 -1
  121. package/lib/css/units.js +0 -35
  122. package/lib/remix/constants.d.ts +0 -2
  123. package/lib/remix/constants.d.ts.map +0 -1
  124. package/lib/remix/constants.js +0 -4
  125. package/lib/remix/insert-critical-css.d.ts +0 -2
  126. package/lib/remix/insert-critical-css.d.ts.map +0 -1
  127. package/lib/remix/insert-critical-css.js +0 -9
  128. package/lib/stitches/index.d.ts +0 -3
  129. package/lib/stitches/index.d.ts.map +0 -1
  130. package/lib/stitches/index.js +0 -18
  131. package/lib/stitches/stitches.d.ts +0 -8
  132. package/lib/stitches/stitches.d.ts.map +0 -1
  133. package/lib/stitches/stitches.js +0 -38
  134. package/lib/stitches/to-css.d.ts +0 -8
  135. package/lib/stitches/to-css.d.ts.map +0 -1
  136. package/lib/stitches/to-css.js +0 -52
  137. package/lib/stitches/to-css.test.d.ts +0 -2
  138. package/lib/stitches/to-css.test.d.ts.map +0 -1
  139. package/lib/stitches/to-css.test.js +0 -82
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import type { ComponentStory, ComponentMeta } from "@storybook/react";
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof React.HTMLAttributes<HTMLElement>> & React.RefAttributes<HTMLElement>>>;
4
+ export default _default;
5
+ export declare const Bold: ComponentStory<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof React.HTMLAttributes<HTMLElement>> & React.RefAttributes<HTMLElement>>>;
6
+ //# sourceMappingURL=subscript.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscript.stories.d.ts","sourceRoot":"","sources":["../../src/components/subscript.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;AAItE,wBAIyC;AAMzC,eAAO,MAAM,IAAI,oNAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Bold = void 0;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const bold_1 = require("./bold");
9
+ const bold_props_json_1 = __importDefault(require("./bold.props.json"));
10
+ exports.default = {
11
+ title: "Components/Bold",
12
+ component: bold_1.Bold,
13
+ argTypes: bold_props_json_1.default,
14
+ };
15
+ const Template = (args) => ((0, jsx_runtime_1.jsx)(bold_1.Bold, { ...args }));
16
+ exports.Bold = Template.bind({});
17
+ exports.Bold.args = {
18
+ children: "some bold text",
19
+ };
@@ -0,0 +1,5 @@
1
+ import type { WsComponentMeta } from "./component-type";
2
+ import { Subscript } from "./subscript";
3
+ declare const meta: WsComponentMeta<typeof Subscript>;
4
+ export default meta;
5
+ //# sourceMappingURL=subscript.ws.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscript.ws.d.ts","sourceRoot":"","sources":["../../src/components/subscript.ws.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,OAAO,SAAS,CAQ3C,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const icons_1 = require("@webstudio-is/icons");
4
+ const subscript_1 = require("./subscript");
5
+ const meta = {
6
+ Icon: icons_1.SubscriptIcon,
7
+ Component: subscript_1.Subscript,
8
+ canAcceptChildren: false,
9
+ isContentEditable: false,
10
+ label: "Subscript Text",
11
+ isInlineOnly: true,
12
+ isListed: false,
13
+ };
14
+ exports.default = meta;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const Superscript: import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof import("react").HTMLAttributes<HTMLElement>> & import("react").RefAttributes<HTMLElement>>;
3
+ //# sourceMappingURL=superscript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"superscript.d.ts","sourceRoot":"","sources":["../../src/components/superscript.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,WAAW,sPAGuB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Superscript = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const defaultTag = "sup";
7
+ exports.Superscript = (0, react_1.forwardRef)((props, ref) => (0, jsx_runtime_1.jsx)("sup", { ...props, ref: ref }));
8
+ exports.Superscript.displayName = "Bold";