@makeswift/runtime 0.2.19 → 0.3.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/dist/Box.cjs.js +35 -70
- package/dist/Box.cjs.js.map +1 -1
- package/dist/Box.es.js +34 -65
- package/dist/Box.es.js.map +1 -1
- package/dist/Button.cjs.js +176 -208
- package/dist/Button.cjs.js.map +1 -1
- package/dist/Button.es.js +177 -208
- package/dist/Button.es.js.map +1 -1
- package/dist/Carousel.cjs.js +227 -249
- package/dist/Carousel.cjs.js.map +1 -1
- package/dist/Carousel.es.js +229 -247
- package/dist/Carousel.es.js.map +1 -1
- package/dist/Countdown.cjs.js +270 -203
- package/dist/Countdown.cjs.js.map +1 -1
- package/dist/Countdown.es.js +273 -202
- package/dist/Countdown.es.js.map +1 -1
- package/dist/Divider.cjs.js +50 -71
- package/dist/Divider.cjs.js.map +1 -1
- package/dist/Divider.es.js +51 -68
- package/dist/Divider.es.js.map +1 -1
- package/dist/Embed.cjs.js +6 -17
- package/dist/Embed.cjs.js.map +1 -1
- package/dist/Embed.es.js +7 -14
- package/dist/Embed.es.js.map +1 -1
- package/dist/Form.cjs.js +723 -553
- package/dist/Form.cjs.js.map +1 -1
- package/dist/Form.es.js +723 -552
- package/dist/Form.es.js.map +1 -1
- package/dist/Image.cjs.js +16 -38
- package/dist/Image.cjs.js.map +1 -1
- package/dist/Image.es.js +17 -38
- package/dist/Image.es.js.map +1 -1
- package/dist/Navigation.cjs.js +318 -224
- package/dist/Navigation.cjs.js.map +1 -1
- package/dist/Navigation.es.js +318 -220
- package/dist/Navigation.es.js.map +1 -1
- package/dist/Root.cjs.js +116 -78
- package/dist/Root.cjs.js.map +1 -1
- package/dist/Root.es.js +99 -77
- package/dist/Root.es.js.map +1 -1
- package/dist/SocialLinks.cjs.js +119 -86
- package/dist/SocialLinks.cjs.js.map +1 -1
- package/dist/SocialLinks.es.js +120 -83
- package/dist/SocialLinks.es.js.map +1 -1
- package/dist/Text.cjs.js +83 -99
- package/dist/Text.cjs.js.map +1 -1
- package/dist/Text.es.js +84 -99
- package/dist/Text.es.js.map +1 -1
- package/dist/Video.cjs.js +8 -19
- package/dist/Video.cjs.js.map +1 -1
- package/dist/Video.es.js +8 -18
- package/dist/Video.es.js.map +1 -1
- package/dist/components.cjs.js +6 -18
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +5 -8
- package/dist/components.es.js.map +1 -1
- package/dist/controls.es.js +1 -1
- package/dist/grid-item.cjs.js +612 -0
- package/dist/grid-item.cjs.js.map +1 -0
- package/dist/grid-item.es.js +604 -0
- package/dist/grid-item.es.js.map +1 -0
- package/dist/index.cjs.js +592 -275
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs2.js +98 -474
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs3.js +20 -107
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.es.js +587 -274
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +99 -473
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es3.js +21 -103
- package/dist/index.es3.js.map +1 -1
- package/dist/next.cjs.js +1 -2
- package/dist/next.cjs.js.map +1 -1
- package/dist/next.es.js +2 -3
- package/dist/next.es.js.map +1 -1
- package/dist/react-builder-preview.cjs.js +1 -2
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +3 -4
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react.cjs.js +1 -2
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.es.js +1 -2
- package/dist/react.es.js.map +1 -1
- package/dist/slot.cjs.js +41 -6
- package/dist/slot.cjs.js.map +1 -1
- package/dist/slot.es.js +36 -6
- package/dist/slot.es.js.map +1 -1
- package/dist/types/src/components/builtin/Box/Box.d.ts +7 -7
- package/dist/types/src/components/builtin/Box/Box.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Box/components/Placeholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Box/register.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Button/Button.d.ts +46 -34
- package/dist/types/src/components/builtin/Button/Button.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Carousel/Carousel.d.ts +5 -5
- package/dist/types/src/components/builtin/Carousel/Carousel.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Carousel/register.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Countdown/Countdown.d.ts +3 -3
- package/dist/types/src/components/builtin/Countdown/Countdown.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Countdown/register.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Divider/Divider.d.ts +3 -3
- package/dist/types/src/components/builtin/Divider/Divider.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Divider/register.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Embed/Embed.d.ts +3 -3
- package/dist/types/src/components/builtin/Embed/Embed.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/Form.d.ts +3 -3
- package/dist/types/src/components/builtin/Form/Form.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +4 -6
- package/dist/types/src/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts +3 -0
- package/dist/types/src/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts +2 -0
- package/dist/types/src/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/Input/index.d.ts +3 -7
- package/dist/types/src/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/Label/index.d.ts +7 -13
- package/dist/types/src/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts +2 -0
- package/dist/types/src/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts +2 -0
- package/dist/types/src/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts +2 -0
- package/dist/types/src/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/RadioButton/index.d.ts +4 -8
- package/dist/types/src/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts +2 -0
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/TextArea/index.d.ts +2 -7
- package/dist/types/src/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/components/URLTableField/index.d.ts +2 -0
- package/dist/types/src/components/builtin/Form/components/Field/components/URLTableField/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Field/services/{cssField.d.ts → responsiveField.d.ts} +5 -4
- package/dist/types/src/components/builtin/Form/components/Field/services/responsiveField.d.ts.map +1 -0
- package/dist/types/src/components/builtin/Form/components/Placeholder/index.d.ts +2 -3
- package/dist/types/src/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/components/Spinner/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Form/register.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Image/Image.d.ts +7 -7
- package/dist/types/src/components/builtin/Image/Image.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/Navigation.d.ts +3 -3
- package/dist/types/src/components/builtin/Navigation/Navigation.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/components/DropDownButton/index.d.ts +8 -81
- package/dist/types/src/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts +8 -81
- package/dist/types/src/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Navigation/register.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Root/Root.d.ts +1 -2
- package/dist/types/src/components/builtin/Root/Root.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Root/components/Placeholder/index.d.ts +1 -2
- package/dist/types/src/components/builtin/Root/components/Placeholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/SocialLinks/SocialLinks.d.ts +3 -3
- package/dist/types/src/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
- package/dist/types/src/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/SocialLinks/register.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/Text.d.ts +3 -3
- package/dist/types/src/components/builtin/Text/Text.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts +8 -11
- package/dist/types/src/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts +3 -6
- package/dist/types/src/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/components/RichTextEditor/index.d.ts +1 -1
- package/dist/types/src/components/builtin/Text/components/RichTextEditor/index.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Text/register.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Video/Video.d.ts +4 -4
- package/dist/types/src/components/builtin/Video/Video.d.ts.map +1 -1
- package/dist/types/src/components/builtin/Video/register.d.ts.map +1 -1
- package/dist/types/src/components/hooks/useBackgrounds.d.ts +1 -1
- package/dist/types/src/components/hooks/useBackgrounds.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/BackgroundsContainer/index.d.ts +255 -4
- package/dist/types/src/components/shared/BackgroundsContainer/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/FallbackComponent/FallbackComponent.d.ts.map +1 -1
- package/dist/types/src/components/shared/GutterContainer/index.d.ts +8 -4
- package/dist/types/src/components/shared/GutterContainer/index.d.ts.map +1 -1
- package/dist/types/src/components/shared/grid-item.d.ts +17 -0
- package/dist/types/src/components/shared/grid-item.d.ts.map +1 -0
- package/dist/types/src/components/utils/responsive-style.d.ts +22 -1
- package/dist/types/src/components/utils/responsive-style.d.ts.map +1 -1
- package/dist/types/src/controls/style.d.ts +5 -65
- package/dist/types/src/controls/style.d.ts.map +1 -1
- package/dist/types/src/css/border-radius.d.ts +20 -0
- package/dist/types/src/css/border-radius.d.ts.map +1 -0
- package/dist/types/src/css/border.d.ts +31 -0
- package/dist/types/src/css/border.d.ts.map +1 -0
- package/dist/types/src/css/length-percentage.d.ts +10 -0
- package/dist/types/src/css/length-percentage.d.ts.map +1 -0
- package/dist/types/src/css/length.d.ts +14 -0
- package/dist/types/src/css/length.d.ts.map +1 -0
- package/dist/types/src/css/margin.d.ts +20 -0
- package/dist/types/src/css/margin.d.ts.map +1 -0
- package/dist/types/src/css/padding.d.ts +20 -0
- package/dist/types/src/css/padding.d.ts.map +1 -0
- package/dist/types/src/next/document.d.ts.map +1 -1
- package/dist/types/src/prop-controllers/descriptors.d.ts +96 -33
- package/dist/types/src/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls/style.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/controls.d.ts +10 -2
- package/dist/types/src/runtimes/react/controls.d.ts.map +1 -1
- package/dist/types/src/runtimes/react/use-global-style.d.ts +3 -0
- package/dist/types/src/runtimes/react/use-global-style.d.ts.map +1 -0
- package/dist/useMediaQuery.es.js +1 -1
- package/package.json +1 -3
- package/dist/cssMediaRules.cjs.js +0 -210
- package/dist/cssMediaRules.cjs.js.map +0 -1
- package/dist/cssMediaRules.es.js +0 -201
- package/dist/cssMediaRules.es.js.map +0 -1
- package/dist/index.cjs4.js +0 -18
- package/dist/index.cjs4.js.map +0 -1
- package/dist/index.es4.js +0 -13
- package/dist/index.es4.js.map +0 -1
- package/dist/types/src/components/builtin/Form/components/Field/services/cssField.d.ts.map +0 -1
- package/dist/types/src/components/utils/cssMediaRules.d.ts +0 -69
- package/dist/types/src/components/utils/cssMediaRules.d.ts.map +0 -1
- package/dist/useBoxShadow.cjs.js +0 -78
- package/dist/useBoxShadow.cjs.js.map +0 -1
- package/dist/useBoxShadow.es.js +0 -77
- package/dist/useBoxShadow.es.js.map +0 -1
package/dist/Divider.cjs.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
var React = require("react");
|
|
4
|
-
var styled = require("styled-components");
|
|
5
|
-
var cssMediaRules = require("./cssMediaRules.cjs.js");
|
|
6
4
|
var next = require("./index.cjs.js");
|
|
5
|
+
var css = require("@emotion/css");
|
|
7
6
|
var jsxRuntime = require("react/jsx-runtime");
|
|
8
7
|
require("use-sync-external-store/shim/with-selector");
|
|
9
8
|
require("./react-page.cjs.js");
|
|
@@ -19,7 +18,6 @@ require("slate");
|
|
|
19
18
|
require("./graphql.cjs.js");
|
|
20
19
|
require("./text-input.cjs.js");
|
|
21
20
|
require("./combobox.cjs.js");
|
|
22
|
-
require("@emotion/css");
|
|
23
21
|
require("color");
|
|
24
22
|
require("scroll-into-view-if-needed");
|
|
25
23
|
require("./box-models.cjs.js");
|
|
@@ -35,66 +33,6 @@ require("http-proxy");
|
|
|
35
33
|
require("set-cookie-parser");
|
|
36
34
|
require("uuid/v4");
|
|
37
35
|
require("corporate-ipsum");
|
|
38
|
-
function _interopDefaultLegacy(e) {
|
|
39
|
-
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
40
|
-
}
|
|
41
|
-
var styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
|
|
42
|
-
const IE11MinHeightContainer = styled__default["default"].div.withConfig({
|
|
43
|
-
shouldForwardProp: (prop) => !["width", "margin"].includes(prop)
|
|
44
|
-
})`
|
|
45
|
-
display: flex;
|
|
46
|
-
width: 100%;
|
|
47
|
-
${cssMediaRules.cssWidth()}
|
|
48
|
-
${cssMediaRules.cssMargin()}
|
|
49
|
-
`;
|
|
50
|
-
const Container = styled__default["default"].div`
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
min-height: 40px;
|
|
55
|
-
width: 100%;
|
|
56
|
-
`;
|
|
57
|
-
const Line = styled__default["default"].div.withConfig({
|
|
58
|
-
shouldForwardProp: (prop) => !["variant", "color", "thickness"].includes(prop)
|
|
59
|
-
})`
|
|
60
|
-
${(p) => cssMediaRules.cssMediaRules([p.variant, p.thickness, p.color], ([variant = "solid", thickness = {
|
|
61
|
-
value: 1,
|
|
62
|
-
unit: "px"
|
|
63
|
-
}, color = {
|
|
64
|
-
swatch: {
|
|
65
|
-
hue: 0,
|
|
66
|
-
saturation: 0,
|
|
67
|
-
lightness: 0
|
|
68
|
-
},
|
|
69
|
-
alpha: 1
|
|
70
|
-
}]) => {
|
|
71
|
-
switch (variant) {
|
|
72
|
-
case "solid":
|
|
73
|
-
case "dashed":
|
|
74
|
-
case "dotted":
|
|
75
|
-
return styled.css`
|
|
76
|
-
border-bottom-width: ${thickness == null ? "1px" : `${thickness.value}${thickness.unit}`};
|
|
77
|
-
border-bottom-style: ${variant};
|
|
78
|
-
border-bottom-color: ${next.colorToString(color)};
|
|
79
|
-
`;
|
|
80
|
-
case "blended":
|
|
81
|
-
return styled.css`
|
|
82
|
-
height: ${`${thickness.value}${thickness.unit}`};
|
|
83
|
-
background: linear-gradient(
|
|
84
|
-
${["90deg", next.colorToString({
|
|
85
|
-
swatch: color.swatch,
|
|
86
|
-
alpha: 0
|
|
87
|
-
}), next.colorToString(color), next.colorToString({
|
|
88
|
-
swatch: color.swatch,
|
|
89
|
-
alpha: 0
|
|
90
|
-
})].join(", ")}
|
|
91
|
-
);
|
|
92
|
-
`;
|
|
93
|
-
default:
|
|
94
|
-
throw new Error(`Invalid variant ${variant}.`);
|
|
95
|
-
}
|
|
96
|
-
})}
|
|
97
|
-
`;
|
|
98
36
|
const Divider = React.forwardRef(function Divider2({
|
|
99
37
|
id,
|
|
100
38
|
variant,
|
|
@@ -103,16 +41,57 @@ const Divider = React.forwardRef(function Divider2({
|
|
|
103
41
|
width,
|
|
104
42
|
margin
|
|
105
43
|
}, ref) {
|
|
106
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
107
45
|
ref,
|
|
108
46
|
id,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
47
|
+
className: css.cx(next.useStyle({
|
|
48
|
+
display: "flex",
|
|
49
|
+
width: "100%"
|
|
50
|
+
}), width, margin),
|
|
51
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
52
|
+
className: next.useStyle({
|
|
53
|
+
display: "flex",
|
|
54
|
+
flexDirection: "column",
|
|
55
|
+
justifyContent: "center",
|
|
56
|
+
minHeight: 40,
|
|
57
|
+
width: "100%"
|
|
58
|
+
}),
|
|
59
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
60
|
+
className: next.useStyle(next.responsiveStyle([variant, thickness, color], ([variant2 = "solid", thickness2 = {
|
|
61
|
+
value: 1,
|
|
62
|
+
unit: "px"
|
|
63
|
+
}, color2 = {
|
|
64
|
+
swatch: {
|
|
65
|
+
hue: 0,
|
|
66
|
+
saturation: 0,
|
|
67
|
+
lightness: 0
|
|
68
|
+
},
|
|
69
|
+
alpha: 1
|
|
70
|
+
}]) => {
|
|
71
|
+
switch (variant2) {
|
|
72
|
+
case "solid":
|
|
73
|
+
case "dashed":
|
|
74
|
+
case "dotted":
|
|
75
|
+
return {
|
|
76
|
+
borderBottomWidth: thickness2 == null ? 1 : `${thickness2.value}${thickness2.unit}`,
|
|
77
|
+
borderBottomStyle: variant2,
|
|
78
|
+
borderBottomColor: next.colorToString(color2)
|
|
79
|
+
};
|
|
80
|
+
case "blended":
|
|
81
|
+
return {
|
|
82
|
+
height: `${thickness2.value}${thickness2.unit}`,
|
|
83
|
+
background: `linear-gradient(${["90deg", next.colorToString({
|
|
84
|
+
swatch: color2.swatch,
|
|
85
|
+
alpha: 0
|
|
86
|
+
}), next.colorToString(color2), next.colorToString({
|
|
87
|
+
swatch: color2.swatch,
|
|
88
|
+
alpha: 0
|
|
89
|
+
})].join(", ")})`
|
|
90
|
+
};
|
|
91
|
+
default:
|
|
92
|
+
throw new Error(`Invalid variant ${variant2}.`);
|
|
93
|
+
}
|
|
94
|
+
}))
|
|
116
95
|
})
|
|
117
96
|
})
|
|
118
97
|
});
|
package/dist/Divider.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.cjs.js","sources":["../src/components/builtin/Divider/Divider.tsx"],"sourcesContent":["import { forwardRef, Ref } from 'react'\
|
|
1
|
+
{"version":3,"file":"Divider.cjs.js","sources":["../src/components/builtin/Divider/Divider.tsx"],"sourcesContent":["import { forwardRef, Ref } from 'react'\n\nimport {\n ElementIDValue,\n ResponsiveLengthValue,\n ResponsiveSelectValue,\n} from '../../../prop-controllers/descriptors'\nimport { colorToString } from '../../utils/colorToString'\nimport { ResponsiveColor } from '../../../runtimes/react/controls'\nimport { useStyle } from '../../../runtimes/react/use-style'\nimport { cx } from '@emotion/css'\nimport { responsiveStyle } from '../../utils/responsive-style'\n\ntype DividerVariant = 'solid' | 'dashed' | 'dotted' | 'blended'\n\ntype Props = {\n id?: ElementIDValue\n variant?: ResponsiveSelectValue<DividerVariant>\n thickness?: ResponsiveLengthValue\n color?: ResponsiveColor | null\n width?: string\n margin?: string\n}\n\nconst Divider = forwardRef(function Divider(\n { id, variant, thickness, color, width, margin }: Props,\n ref: Ref<HTMLDivElement>,\n) {\n return (\n // IE11 has a bug with Flexbox vertical centering with min height if height is not set.\n // Wrapping it in another flex container fixes it for some reason, read more here:\n // https://stackoverflow.com/questions/19371626/flexbox-not-centering-vertically-in-ie\n <div\n ref={ref}\n id={id}\n className={cx(useStyle({ display: 'flex', width: '100%' }), width, margin)}\n >\n <div\n className={useStyle({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n minHeight: 40,\n width: '100%',\n })}\n >\n <div\n className={useStyle(\n responsiveStyle(\n [variant, thickness, color] as const,\n ([\n variant = 'solid',\n thickness = { value: 1, unit: 'px' },\n color = { swatch: { hue: 0, saturation: 0, lightness: 0 }, alpha: 1 },\n ]) => {\n switch (variant) {\n case 'solid':\n case 'dashed':\n case 'dotted':\n return {\n borderBottomWidth:\n thickness == null ? 1 : `${thickness.value}${thickness.unit}`,\n borderBottomStyle: variant,\n borderBottomColor: colorToString(color),\n }\n\n case 'blended':\n return {\n height: `${thickness.value}${thickness.unit}`,\n background: `linear-gradient(${[\n '90deg',\n colorToString({ swatch: color.swatch, alpha: 0 }),\n colorToString(color),\n colorToString({ swatch: color.swatch, alpha: 0 }),\n ].join(', ')})`,\n }\n\n default:\n variant as never\n throw new Error(`Invalid variant ${variant}.`)\n }\n },\n ),\n )}\n />\n </div>\n </div>\n )\n})\n\nexport default Divider\n"],"names":["Divider","forwardRef","id","variant","thickness","color","width","margin","ref","cx","useStyle","display","flexDirection","justifyContent","minHeight","responsiveStyle","value","unit","swatch","hue","saturation","lightness","alpha","borderBottomWidth","borderBottomStyle","borderBottomColor","colorToString","height","background","join","Error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBMA,MAAAA,UAAUC,MAAAA,WAAW,kBACzB;AAAA,EAAEC;AAAAA,EAAIC;AAAAA,EAASC;AAAAA,EAAWC;AAAAA,EAAOC;AAAAA,EAAOC;AAAAA,GACxCC,KACA;AACA,wCAIE,OAAA;AAAA,IACE;AAAA,IACA;AAAA,IACA,WAAWC,OAAGC,cAAS;AAAA,MAAEC,SAAS;AAAA,MAAQL,OAAO;AAAA,IAAA,CAA3B,GAAsCA,OAAOC,MAAtD;AAAA,IAEb,yCAAA,OAAA;AAAA,MACE,WAAWG,KAAAA,SAAS;AAAA,QAClBC,SAAS;AAAA,QACTC,eAAe;AAAA,QACfC,gBAAgB;AAAA,QAChBC,WAAW;AAAA,QACXR,OAAO;AAAA,MAAA,CALU;AAAA,MAQnB,yCAAA,OAAA;AAAA,QACE,WAAWI,KAAAA,SACTK,qBACE,CAACZ,SAASC,WAAWC,KAArB,GACA,CAAC,CACCF,WAAU,SACVC,aAAY;AAAA,UAAEY,OAAO;AAAA,UAAGC,MAAM;AAAA,WAC9BZ,SAAQ;AAAA,UAAEa,QAAQ;AAAA,YAAEC,KAAK;AAAA,YAAGC,YAAY;AAAA,YAAGC,WAAW;AAAA,UAA9C;AAAA,UAAmDC,OAAO;AAAA,QAAA,OAC9D;AACInB,kBAAAA;AAAAA,iBACD;AAAA,iBACA;AAAA,iBACA;AACI,qBAAA;AAAA,gBACLoB,mBACEnB,cAAa,OAAO,IAAK,GAAEA,WAAUY,QAAQZ,WAAUa;AAAAA,gBACzDO,mBAAmBrB;AAAAA,gBACnBsB,mBAAmBC,mBAAcrB,MAAD;AAAA,cAAA;AAAA,iBAG/B;AACI,qBAAA;AAAA,gBACLsB,QAAS,GAAEvB,WAAUY,QAAQZ,WAAUa;AAAAA,gBACvCW,YAAa,mBAAkB,CAC7B,SACAF,KAAAA,cAAc;AAAA,kBAAER,QAAQb,OAAMa;AAAAA,kBAAQI,OAAO;AAAA,gBAAhC,CAAA,GACbI,KAAcrB,cAAAA,MAAD,GACbqB,mBAAc;AAAA,kBAAER,QAAQb,OAAMa;AAAAA,kBAAQI,OAAO;AAAA,gBAAhC,CAAA,CAJgB,EAK7BO,KAAK,IALwB;AAAA,cAAA;AAAA;AAU3B,oBAAA,IAAIC,MAAO,mBAAkB3B,WAA7B;AAAA;AAAA,QAAA,CA/BC,CADE;AAAA,MAAA,CADrB;AAAA,IAAA,CATF;AAAA,EAAA,CALF;AAwDH,CAhEyB;;"}
|
package/dist/Divider.es.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { forwardRef } from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { p as colorToString } from "./index.es.js";
|
|
2
|
+
import { q as useStyle, r as responsiveStyle, v as colorToString } from "./index.es.js";
|
|
3
|
+
import { cx } from "@emotion/css";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import "use-sync-external-store/shim/with-selector";
|
|
7
6
|
import "./react-page.es.js";
|
|
@@ -17,7 +16,6 @@ import "slate";
|
|
|
17
16
|
import "./graphql.es.js";
|
|
18
17
|
import "./text-input.es.js";
|
|
19
18
|
import "./combobox.es.js";
|
|
20
|
-
import "@emotion/css";
|
|
21
19
|
import "color";
|
|
22
20
|
import "scroll-into-view-if-needed";
|
|
23
21
|
import "./box-models.es.js";
|
|
@@ -33,62 +31,6 @@ import "http-proxy";
|
|
|
33
31
|
import "set-cookie-parser";
|
|
34
32
|
import "uuid/v4";
|
|
35
33
|
import "corporate-ipsum";
|
|
36
|
-
const IE11MinHeightContainer = styled.div.withConfig({
|
|
37
|
-
shouldForwardProp: (prop) => !["width", "margin"].includes(prop)
|
|
38
|
-
})`
|
|
39
|
-
display: flex;
|
|
40
|
-
width: 100%;
|
|
41
|
-
${cssWidth()}
|
|
42
|
-
${cssMargin()}
|
|
43
|
-
`;
|
|
44
|
-
const Container = styled.div`
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
min-height: 40px;
|
|
49
|
-
width: 100%;
|
|
50
|
-
`;
|
|
51
|
-
const Line = styled.div.withConfig({
|
|
52
|
-
shouldForwardProp: (prop) => !["variant", "color", "thickness"].includes(prop)
|
|
53
|
-
})`
|
|
54
|
-
${(p) => cssMediaRules([p.variant, p.thickness, p.color], ([variant = "solid", thickness = {
|
|
55
|
-
value: 1,
|
|
56
|
-
unit: "px"
|
|
57
|
-
}, color = {
|
|
58
|
-
swatch: {
|
|
59
|
-
hue: 0,
|
|
60
|
-
saturation: 0,
|
|
61
|
-
lightness: 0
|
|
62
|
-
},
|
|
63
|
-
alpha: 1
|
|
64
|
-
}]) => {
|
|
65
|
-
switch (variant) {
|
|
66
|
-
case "solid":
|
|
67
|
-
case "dashed":
|
|
68
|
-
case "dotted":
|
|
69
|
-
return css`
|
|
70
|
-
border-bottom-width: ${thickness == null ? "1px" : `${thickness.value}${thickness.unit}`};
|
|
71
|
-
border-bottom-style: ${variant};
|
|
72
|
-
border-bottom-color: ${colorToString(color)};
|
|
73
|
-
`;
|
|
74
|
-
case "blended":
|
|
75
|
-
return css`
|
|
76
|
-
height: ${`${thickness.value}${thickness.unit}`};
|
|
77
|
-
background: linear-gradient(
|
|
78
|
-
${["90deg", colorToString({
|
|
79
|
-
swatch: color.swatch,
|
|
80
|
-
alpha: 0
|
|
81
|
-
}), colorToString(color), colorToString({
|
|
82
|
-
swatch: color.swatch,
|
|
83
|
-
alpha: 0
|
|
84
|
-
})].join(", ")}
|
|
85
|
-
);
|
|
86
|
-
`;
|
|
87
|
-
default:
|
|
88
|
-
throw new Error(`Invalid variant ${variant}.`);
|
|
89
|
-
}
|
|
90
|
-
})}
|
|
91
|
-
`;
|
|
92
34
|
const Divider = forwardRef(function Divider2({
|
|
93
35
|
id,
|
|
94
36
|
variant,
|
|
@@ -97,16 +39,57 @@ const Divider = forwardRef(function Divider2({
|
|
|
97
39
|
width,
|
|
98
40
|
margin
|
|
99
41
|
}, ref) {
|
|
100
|
-
return /* @__PURE__ */ jsx(
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
101
43
|
ref,
|
|
102
44
|
id,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
45
|
+
className: cx(useStyle({
|
|
46
|
+
display: "flex",
|
|
47
|
+
width: "100%"
|
|
48
|
+
}), width, margin),
|
|
49
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
50
|
+
className: useStyle({
|
|
51
|
+
display: "flex",
|
|
52
|
+
flexDirection: "column",
|
|
53
|
+
justifyContent: "center",
|
|
54
|
+
minHeight: 40,
|
|
55
|
+
width: "100%"
|
|
56
|
+
}),
|
|
57
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
58
|
+
className: useStyle(responsiveStyle([variant, thickness, color], ([variant2 = "solid", thickness2 = {
|
|
59
|
+
value: 1,
|
|
60
|
+
unit: "px"
|
|
61
|
+
}, color2 = {
|
|
62
|
+
swatch: {
|
|
63
|
+
hue: 0,
|
|
64
|
+
saturation: 0,
|
|
65
|
+
lightness: 0
|
|
66
|
+
},
|
|
67
|
+
alpha: 1
|
|
68
|
+
}]) => {
|
|
69
|
+
switch (variant2) {
|
|
70
|
+
case "solid":
|
|
71
|
+
case "dashed":
|
|
72
|
+
case "dotted":
|
|
73
|
+
return {
|
|
74
|
+
borderBottomWidth: thickness2 == null ? 1 : `${thickness2.value}${thickness2.unit}`,
|
|
75
|
+
borderBottomStyle: variant2,
|
|
76
|
+
borderBottomColor: colorToString(color2)
|
|
77
|
+
};
|
|
78
|
+
case "blended":
|
|
79
|
+
return {
|
|
80
|
+
height: `${thickness2.value}${thickness2.unit}`,
|
|
81
|
+
background: `linear-gradient(${["90deg", colorToString({
|
|
82
|
+
swatch: color2.swatch,
|
|
83
|
+
alpha: 0
|
|
84
|
+
}), colorToString(color2), colorToString({
|
|
85
|
+
swatch: color2.swatch,
|
|
86
|
+
alpha: 0
|
|
87
|
+
})].join(", ")})`
|
|
88
|
+
};
|
|
89
|
+
default:
|
|
90
|
+
throw new Error(`Invalid variant ${variant2}.`);
|
|
91
|
+
}
|
|
92
|
+
}))
|
|
110
93
|
})
|
|
111
94
|
})
|
|
112
95
|
});
|
package/dist/Divider.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.es.js","sources":["../src/components/builtin/Divider/Divider.tsx"],"sourcesContent":["import { forwardRef, Ref } from 'react'\
|
|
1
|
+
{"version":3,"file":"Divider.es.js","sources":["../src/components/builtin/Divider/Divider.tsx"],"sourcesContent":["import { forwardRef, Ref } from 'react'\n\nimport {\n ElementIDValue,\n ResponsiveLengthValue,\n ResponsiveSelectValue,\n} from '../../../prop-controllers/descriptors'\nimport { colorToString } from '../../utils/colorToString'\nimport { ResponsiveColor } from '../../../runtimes/react/controls'\nimport { useStyle } from '../../../runtimes/react/use-style'\nimport { cx } from '@emotion/css'\nimport { responsiveStyle } from '../../utils/responsive-style'\n\ntype DividerVariant = 'solid' | 'dashed' | 'dotted' | 'blended'\n\ntype Props = {\n id?: ElementIDValue\n variant?: ResponsiveSelectValue<DividerVariant>\n thickness?: ResponsiveLengthValue\n color?: ResponsiveColor | null\n width?: string\n margin?: string\n}\n\nconst Divider = forwardRef(function Divider(\n { id, variant, thickness, color, width, margin }: Props,\n ref: Ref<HTMLDivElement>,\n) {\n return (\n // IE11 has a bug with Flexbox vertical centering with min height if height is not set.\n // Wrapping it in another flex container fixes it for some reason, read more here:\n // https://stackoverflow.com/questions/19371626/flexbox-not-centering-vertically-in-ie\n <div\n ref={ref}\n id={id}\n className={cx(useStyle({ display: 'flex', width: '100%' }), width, margin)}\n >\n <div\n className={useStyle({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n minHeight: 40,\n width: '100%',\n })}\n >\n <div\n className={useStyle(\n responsiveStyle(\n [variant, thickness, color] as const,\n ([\n variant = 'solid',\n thickness = { value: 1, unit: 'px' },\n color = { swatch: { hue: 0, saturation: 0, lightness: 0 }, alpha: 1 },\n ]) => {\n switch (variant) {\n case 'solid':\n case 'dashed':\n case 'dotted':\n return {\n borderBottomWidth:\n thickness == null ? 1 : `${thickness.value}${thickness.unit}`,\n borderBottomStyle: variant,\n borderBottomColor: colorToString(color),\n }\n\n case 'blended':\n return {\n height: `${thickness.value}${thickness.unit}`,\n background: `linear-gradient(${[\n '90deg',\n colorToString({ swatch: color.swatch, alpha: 0 }),\n colorToString(color),\n colorToString({ swatch: color.swatch, alpha: 0 }),\n ].join(', ')})`,\n }\n\n default:\n variant as never\n throw new Error(`Invalid variant ${variant}.`)\n }\n },\n ),\n )}\n />\n </div>\n </div>\n )\n})\n\nexport default Divider\n"],"names":["Divider","forwardRef","id","variant","thickness","color","width","margin","ref","cx","useStyle","display","flexDirection","justifyContent","minHeight","responsiveStyle","value","unit","swatch","hue","saturation","lightness","alpha","borderBottomWidth","borderBottomStyle","borderBottomColor","colorToString","height","background","join","Error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA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;AAAAA,kBAAQI,OAAO;AAAA,gBAAhC,CAAA,CAJgB,EAK7BO,KAAK,IALwB;AAAA,cAAA;AAAA;AAU3B,oBAAA,IAAIC,MAAO,mBAAkB3B,WAA7B;AAAA;AAAA,QAAA,CA/BC,CADE;AAAA,MAAA,CADrB;AAAA,IAAA,CATF;AAAA,EAAA,CALF;AAwDH,CAhEyB;;"}
|
package/dist/Embed.cjs.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
var React = require("react");
|
|
4
|
-
var styled = require("styled-components");
|
|
5
|
-
var cssMediaRules = require("./cssMediaRules.cjs.js");
|
|
6
4
|
var next = require("./index.cjs.js");
|
|
5
|
+
var css = require("@emotion/css");
|
|
7
6
|
var jsxRuntime = require("react/jsx-runtime");
|
|
8
7
|
require("use-sync-external-store/shim/with-selector");
|
|
9
8
|
require("./react-page.cjs.js");
|
|
@@ -19,7 +18,6 @@ require("slate");
|
|
|
19
18
|
require("./graphql.cjs.js");
|
|
20
19
|
require("./text-input.cjs.js");
|
|
21
20
|
require("./combobox.cjs.js");
|
|
22
|
-
require("@emotion/css");
|
|
23
21
|
require("color");
|
|
24
22
|
require("scroll-into-view-if-needed");
|
|
25
23
|
require("./box-models.cjs.js");
|
|
@@ -35,17 +33,6 @@ require("http-proxy");
|
|
|
35
33
|
require("set-cookie-parser");
|
|
36
34
|
require("uuid/v4");
|
|
37
35
|
require("corporate-ipsum");
|
|
38
|
-
function _interopDefaultLegacy(e) {
|
|
39
|
-
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
40
|
-
}
|
|
41
|
-
var styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
|
|
42
|
-
const Container = styled__default["default"].div.withConfig({
|
|
43
|
-
shouldForwardProp: (prop) => !["width", "margin"].includes(prop)
|
|
44
|
-
})`
|
|
45
|
-
min-height: 15px;
|
|
46
|
-
${cssMediaRules.cssWidth()}
|
|
47
|
-
${cssMediaRules.cssMargin()}
|
|
48
|
-
`;
|
|
49
36
|
const defaultHtml = `<div style="padding: 24px; background-color: rgba(161, 168, 194, 0.18); overflow: hidden;">
|
|
50
37
|
<svg width="316" height="168" viewBox="0 0 316 168" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
51
38
|
<rect width="70" height="8" rx="2" fill="#A1A8C2" fill-opacity="0.5"/>
|
|
@@ -119,13 +106,15 @@ const Embed = React.forwardRef(function Embed2({
|
|
|
119
106
|
console.error(error);
|
|
120
107
|
});
|
|
121
108
|
}, [container, html]);
|
|
109
|
+
const className = next.useStyle({
|
|
110
|
+
minHeight: 15
|
|
111
|
+
});
|
|
122
112
|
if (shouldRender === false)
|
|
123
113
|
return null;
|
|
124
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
114
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
125
115
|
ref: setContainer,
|
|
126
116
|
id,
|
|
127
|
-
width,
|
|
128
|
-
margin,
|
|
117
|
+
className: css.cx(className, width, margin),
|
|
129
118
|
dangerouslySetInnerHTML: {
|
|
130
119
|
__html: html
|
|
131
120
|
}
|
package/dist/Embed.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Embed.cjs.js","sources":["../src/components/builtin/Embed/Embed.tsx"],"sourcesContent":["/* eslint-env browser */\n\nimport { useState, useEffect, forwardRef, Ref, useImperativeHandle } from 'react'\nimport
|
|
1
|
+
{"version":3,"file":"Embed.cjs.js","sources":["../src/components/builtin/Embed/Embed.tsx"],"sourcesContent":["/* eslint-env browser */\n\nimport { useState, useEffect, forwardRef, Ref, useImperativeHandle } from 'react'\n\nimport { ElementIDValue, TextAreaValue } from '../../../prop-controllers/descriptors'\nimport { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect'\nimport { useStyle } from '../../../runtimes/react/use-style'\nimport { cx } from '@emotion/css'\n\ntype Props = {\n id?: ElementIDValue\n html?: TextAreaValue\n width?: string\n margin?: string\n}\n\nconst defaultHtml = `<div style=\"padding: 24px; background-color: rgba(161, 168, 194, 0.18); overflow: hidden;\">\n<svg width=\"316\" height=\"168\" viewBox=\"0 0 316 168\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"70\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"78\" width=\"30\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"116\" width=\"78\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect y=\"20\" width=\"120\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"128\" y=\"20\" width=\"30\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"166\" y=\"20\" width=\"78\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect y=\"60\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"20\" y=\"80\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"40\" y=\"100\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"88\" y=\"100\" width=\"110\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"206\" y=\"100\" width=\"24\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"238\" y=\"100\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"40\" y=\"120\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"88\" y=\"120\" width=\"50\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"146\" y=\"120\" width=\"24\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"178\" y=\"120\" width=\"90\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"276\" y=\"120\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"20\" y=\"140\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect y=\"160\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n</svg>\n</div>`\nconst SCRIPT_TAG = 'script'\n\nconst Embed = forwardRef(function Embed(\n { id, width, margin, html = defaultHtml }: Props,\n ref: Ref<HTMLDivElement | null>,\n) {\n const [container, setContainer] = useState<HTMLDivElement | null>(null)\n const [shouldRender, setShouldRender] = useState(false)\n\n useIsomorphicLayoutEffect(() => {\n setShouldRender(true)\n }, [])\n\n useImperativeHandle(ref, () => container, [container])\n\n useEffect(() => {\n // TODO: When we SSR the editor, we can remove the editor check\n // and not run this effect on the first render.\n if (!container) return\n\n const walker = container.ownerDocument.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode(node: Element) {\n return node.tagName.toLowerCase() === SCRIPT_TAG\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_REJECT\n },\n })\n\n const nodes: Element[] = []\n\n while (walker.nextNode()) nodes.push(walker.currentNode as Element)\n\n // By default scripts appended dynamically will execute asyncrhonously. Here we ensure that\n // scripts are loaded synchronously since that's what a user usually expects with scripts in\n // embedded in HTML which usually comes from the server.\n //\n // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#notes\n async function executeScriptsInOrder() {\n for (let i = 0; i < nodes.length; i++) {\n await new Promise<void>(resolve => {\n const node = nodes[i]\n const script = node.ownerDocument.createElement(SCRIPT_TAG)\n\n script.textContent = node.textContent\n Array.from(node.attributes).forEach(({ name, value }) => {\n script.setAttribute(name, value)\n })\n\n script.onload = () => resolve()\n script.onerror = () => resolve()\n\n node.parentNode?.insertBefore(script, node)\n node.parentNode?.removeChild(node)\n\n if (!script.hasAttribute('src')) resolve()\n })\n }\n }\n\n executeScriptsInOrder().catch(error => {\n // Ignore errors from user-provided code\n console.error(error)\n })\n }, [container, html])\n\n const className = useStyle({ minHeight: 15 })\n\n if (shouldRender === false) return null\n\n return (\n <div\n ref={setContainer}\n id={id}\n className={cx(className, width, margin)}\n dangerouslySetInnerHTML={{ __html: html }}\n />\n )\n})\n\nexport default Embed\n"],"names":["defaultHtml","SCRIPT_TAG","Embed","forwardRef","id","width","margin","html","ref","container","setContainer","useState","shouldRender","setShouldRender","useIsomorphicLayoutEffect","useImperativeHandle","useEffect","walker","ownerDocument","createTreeWalker","NodeFilter","SHOW_ELEMENT","acceptNode","node","tagName","toLowerCase","FILTER_ACCEPT","FILTER_REJECT","nodes","nextNode","push","currentNode","i","length","Promise","resolve","script","createElement","textContent","Array","from","attributes","forEach","name","value","setAttribute","onload","onerror","parentNode","insertBefore","removeChild","hasAttribute","catch","error","console","className","useStyle","minHeight","cx","__html"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,cAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBrB,MAAMC,aAAa;AAEbC,MAAAA,QAAQC,MAAAA,WAAW,gBACvB;AAAA,EAAEC;AAAAA,EAAIC;AAAAA,EAAOC;AAAAA,EAAQC,OAAOP;AAAAA,GAC5BQ,KACA;AACA,QAAM,CAACC,WAA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MA,KAAd;AAAA,IAAA,CAFF;AAAA,EAAA,GAIC,CAAC5C,WAAWF,IAAZ,CAhDM;AAkDHgD,QAAAA,YAAYC,KAAAA,SAAS;AAAA,IAAEC,WAAW;AAAA,EAAA,CAAd;AAE1B,MAAI7C,iBAAiB;AAAc,WAAA;AAGjC,wCAAA,OAAA;AAAA,IACE,KAAKF;AAAAA,IACL;AAAA,IACA,WAAWgD,IAAAA,GAAGH,WAAWlD,OAAOC,MAAnB;AAAA,IACb,yBAAyB;AAAA,MAAEqD,QAAQpD;AAAAA,IAAV;AAAA,EAAA,CAL7B;AAQD,CA3EuB;;"}
|
package/dist/Embed.es.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { forwardRef, useState, useImperativeHandle, useEffect } from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { q as useIsomorphicLayoutEffect } from "./index.es.js";
|
|
2
|
+
import { w as useIsomorphicLayoutEffect, q as useStyle } from "./index.es.js";
|
|
3
|
+
import { cx } from "@emotion/css";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import "use-sync-external-store/shim/with-selector";
|
|
7
6
|
import "./react-page.es.js";
|
|
@@ -17,7 +16,6 @@ import "slate";
|
|
|
17
16
|
import "./graphql.es.js";
|
|
18
17
|
import "./text-input.es.js";
|
|
19
18
|
import "./combobox.es.js";
|
|
20
|
-
import "@emotion/css";
|
|
21
19
|
import "color";
|
|
22
20
|
import "scroll-into-view-if-needed";
|
|
23
21
|
import "./box-models.es.js";
|
|
@@ -33,13 +31,6 @@ import "http-proxy";
|
|
|
33
31
|
import "set-cookie-parser";
|
|
34
32
|
import "uuid/v4";
|
|
35
33
|
import "corporate-ipsum";
|
|
36
|
-
const Container = styled.div.withConfig({
|
|
37
|
-
shouldForwardProp: (prop) => !["width", "margin"].includes(prop)
|
|
38
|
-
})`
|
|
39
|
-
min-height: 15px;
|
|
40
|
-
${cssWidth()}
|
|
41
|
-
${cssMargin()}
|
|
42
|
-
`;
|
|
43
34
|
const defaultHtml = `<div style="padding: 24px; background-color: rgba(161, 168, 194, 0.18); overflow: hidden;">
|
|
44
35
|
<svg width="316" height="168" viewBox="0 0 316 168" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
45
36
|
<rect width="70" height="8" rx="2" fill="#A1A8C2" fill-opacity="0.5"/>
|
|
@@ -113,13 +104,15 @@ const Embed = forwardRef(function Embed2({
|
|
|
113
104
|
console.error(error);
|
|
114
105
|
});
|
|
115
106
|
}, [container, html]);
|
|
107
|
+
const className = useStyle({
|
|
108
|
+
minHeight: 15
|
|
109
|
+
});
|
|
116
110
|
if (shouldRender === false)
|
|
117
111
|
return null;
|
|
118
|
-
return /* @__PURE__ */ jsx(
|
|
112
|
+
return /* @__PURE__ */ jsx("div", {
|
|
119
113
|
ref: setContainer,
|
|
120
114
|
id,
|
|
121
|
-
width,
|
|
122
|
-
margin,
|
|
115
|
+
className: cx(className, width, margin),
|
|
123
116
|
dangerouslySetInnerHTML: {
|
|
124
117
|
__html: html
|
|
125
118
|
}
|
package/dist/Embed.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Embed.es.js","sources":["../src/components/builtin/Embed/Embed.tsx"],"sourcesContent":["/* eslint-env browser */\n\nimport { useState, useEffect, forwardRef, Ref, useImperativeHandle } from 'react'\nimport
|
|
1
|
+
{"version":3,"file":"Embed.es.js","sources":["../src/components/builtin/Embed/Embed.tsx"],"sourcesContent":["/* eslint-env browser */\n\nimport { useState, useEffect, forwardRef, Ref, useImperativeHandle } from 'react'\n\nimport { ElementIDValue, TextAreaValue } from '../../../prop-controllers/descriptors'\nimport { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect'\nimport { useStyle } from '../../../runtimes/react/use-style'\nimport { cx } from '@emotion/css'\n\ntype Props = {\n id?: ElementIDValue\n html?: TextAreaValue\n width?: string\n margin?: string\n}\n\nconst defaultHtml = `<div style=\"padding: 24px; background-color: rgba(161, 168, 194, 0.18); overflow: hidden;\">\n<svg width=\"316\" height=\"168\" viewBox=\"0 0 316 168\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect width=\"70\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"78\" width=\"30\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"116\" width=\"78\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect y=\"20\" width=\"120\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"128\" y=\"20\" width=\"30\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"166\" y=\"20\" width=\"78\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect y=\"60\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"20\" y=\"80\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"40\" y=\"100\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"88\" y=\"100\" width=\"110\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"206\" y=\"100\" width=\"24\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"238\" y=\"100\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"40\" y=\"120\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"88\" y=\"120\" width=\"50\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"146\" y=\"120\" width=\"24\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"178\" y=\"120\" width=\"90\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.25\"/>\n<rect x=\"276\" y=\"120\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect x=\"20\" y=\"140\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n<rect y=\"160\" width=\"40\" height=\"8\" rx=\"2\" fill=\"#A1A8C2\" fill-opacity=\"0.5\"/>\n</svg>\n</div>`\nconst SCRIPT_TAG = 'script'\n\nconst Embed = forwardRef(function Embed(\n { id, width, margin, html = defaultHtml }: Props,\n ref: Ref<HTMLDivElement | null>,\n) {\n const [container, setContainer] = useState<HTMLDivElement | null>(null)\n const [shouldRender, setShouldRender] = useState(false)\n\n useIsomorphicLayoutEffect(() => {\n setShouldRender(true)\n }, [])\n\n useImperativeHandle(ref, () => container, [container])\n\n useEffect(() => {\n // TODO: When we SSR the editor, we can remove the editor check\n // and not run this effect on the first render.\n if (!container) return\n\n const walker = container.ownerDocument.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode(node: Element) {\n return node.tagName.toLowerCase() === SCRIPT_TAG\n ? NodeFilter.FILTER_ACCEPT\n : NodeFilter.FILTER_REJECT\n },\n })\n\n const nodes: Element[] = []\n\n while (walker.nextNode()) nodes.push(walker.currentNode as Element)\n\n // By default scripts appended dynamically will execute asyncrhonously. Here we ensure that\n // scripts are loaded synchronously since that's what a user usually expects with scripts in\n // embedded in HTML which usually comes from the server.\n //\n // See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#notes\n async function executeScriptsInOrder() {\n for (let i = 0; i < nodes.length; i++) {\n await new Promise<void>(resolve => {\n const node = nodes[i]\n const script = node.ownerDocument.createElement(SCRIPT_TAG)\n\n script.textContent = node.textContent\n Array.from(node.attributes).forEach(({ name, value }) => {\n script.setAttribute(name, value)\n })\n\n script.onload = () => resolve()\n script.onerror = () => resolve()\n\n node.parentNode?.insertBefore(script, node)\n node.parentNode?.removeChild(node)\n\n if (!script.hasAttribute('src')) resolve()\n })\n }\n }\n\n executeScriptsInOrder().catch(error => {\n // Ignore errors from user-provided code\n console.error(error)\n })\n }, [container, html])\n\n const className = useStyle({ minHeight: 15 })\n\n if (shouldRender === false) return null\n\n return (\n <div\n ref={setContainer}\n id={id}\n className={cx(className, width, margin)}\n dangerouslySetInnerHTML={{ __html: html }}\n />\n )\n})\n\nexport default Embed\n"],"names":["defaultHtml","SCRIPT_TAG","Embed","forwardRef","id","width","margin","html","ref","container","setContainer","useState","shouldRender","setShouldRender","useIsomorphicLayoutEffect","useImperativeHandle","useEffect","walker","ownerDocument","createTreeWalker","NodeFilter","SHOW_ELEMENT","acceptNode","node","tagName","toLowerCase","FILTER_ACCEPT","FILTER_REJECT","nodes","nextNode","push","currentNode","i","length","Promise","resolve","script","createElement","textContent","Array","from","attributes","forEach","name","value","setAttribute","onload","onerror","parentNode","insertBefore","removeChild","hasAttribute","catch","error","console","className","useStyle","minHeight","cx","__html"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,cAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBrB,MAAMC,aAAa;AAEbC,MAAAA,QAAQC,WAAW,gBACvB;AAAA,EAAEC;AAAAA,EAAIC;AAAAA,EAAOC;AAAAA,EAAQC,OAAOP;AAAAA,GAC5BQ,KACA;AACA,QAAM,CAACC,WAAWC,gBAAgBC,SAAgC,IAAxB;AACpC,QAAA,CAACC,cAAcC,mBAAmBF,SAAS,KAAD;AAEhDG,4BAA0B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