@webstudio-is/sdk-components-react 0.91.0 → 0.93.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/lib/__generated__/blockquote.props.js +2 -4
- package/lib/__generated__/body.props.js +2 -4
- package/lib/__generated__/bold.props.js +2 -4
- package/lib/__generated__/box.props.js +2 -4
- package/lib/__generated__/button.props.js +2 -4
- package/lib/__generated__/checkbox.props.js +2 -4
- package/lib/__generated__/code-text.props.js +2 -4
- package/lib/__generated__/form.props.js +2 -4
- package/lib/__generated__/fragment.props.js +2 -4
- package/lib/__generated__/heading.props.js +2 -4
- package/lib/__generated__/html-embed.props.js +2 -4
- package/lib/__generated__/image.props.js +2 -4
- package/lib/__generated__/input.props.js +2 -4
- package/lib/__generated__/italic.props.js +2 -4
- package/lib/__generated__/label.props.js +2 -4
- package/lib/__generated__/link.props.js +2 -4
- package/lib/__generated__/list-item.props.js +2 -4
- package/lib/__generated__/list.props.js +2 -4
- package/lib/__generated__/paragraph.props.js +2 -4
- package/lib/__generated__/radio-button.props.js +2 -4
- package/lib/__generated__/rich-text-link.props.js +2 -4
- package/lib/__generated__/separator.props.js +2 -4
- package/lib/__generated__/slot.props.js +2 -4
- package/lib/__generated__/span.props.js +2 -4
- package/lib/__generated__/subscript.props.js +2 -4
- package/lib/__generated__/superscript.props.js +2 -4
- package/lib/__generated__/text.props.js +2 -4
- package/lib/__generated__/textarea.props.js +2 -4
- package/lib/__generated__/vimeo-play-button.props.js +2 -4
- package/lib/__generated__/vimeo-preview-image.props.js +2 -4
- package/lib/__generated__/vimeo-spinner.props.js +2 -4
- package/lib/__generated__/vimeo.props.js +2 -4
- package/lib/blockquote.js +3 -6
- package/lib/blockquote.stories.js +11 -0
- package/lib/blockquote.ws.js +3 -6
- package/lib/body.js +3 -6
- package/lib/body.stories.js +11 -0
- package/lib/body.ws.js +3 -6
- package/lib/bold.js +3 -6
- package/lib/bold.stories.js +11 -0
- package/lib/bold.ws.js +3 -6
- package/lib/box.js +3 -6
- package/lib/box.stories.js +11 -0
- package/lib/box.ws.js +3 -6
- package/lib/button.js +3 -6
- package/lib/button.stories.js +11 -0
- package/lib/button.ws.js +3 -6
- package/lib/checkbox.js +3 -6
- package/lib/checkbox.ws.js +3 -6
- package/lib/code-text.js +3 -6
- package/lib/code-text.stories.js +11 -0
- package/lib/code-text.ws.js +3 -6
- package/lib/components.js +33 -66
- package/lib/form.js +3 -6
- package/lib/form.stories.js +11 -0
- package/lib/form.ws.js +3 -6
- package/lib/fragment.js +2 -4
- package/lib/fragment.ws.js +3 -6
- package/lib/heading.js +2 -4
- package/lib/heading.stories.js +11 -0
- package/lib/heading.ws.js +3 -6
- package/lib/html-embed.js +2 -4
- package/lib/html-embed.stories.js +11 -0
- package/lib/html-embed.ws.js +3 -6
- package/lib/image.js +3 -6
- package/lib/image.stories.js +7 -0
- package/lib/image.ws.js +4 -8
- package/lib/input.js +3 -6
- package/lib/input.stories.js +9 -0
- package/lib/input.ws.js +9 -11
- package/lib/italic.js +3 -6
- package/lib/italic.stories.js +11 -0
- package/lib/italic.ws.js +3 -6
- package/lib/label.js +3 -6
- package/lib/label.ws.js +3 -6
- package/lib/link.js +3 -6
- package/lib/link.stories.js +11 -0
- package/lib/link.ws.js +3 -6
- package/lib/list-item.js +3 -6
- package/lib/list-item.stories.js +11 -0
- package/lib/list-item.ws.js +3 -6
- package/lib/list.js +2 -4
- package/lib/list.stories.js +13 -0
- package/lib/list.ws.js +3 -6
- package/lib/metas.js +33 -66
- package/lib/paragraph.js +3 -6
- package/lib/paragraph.stories.js +11 -0
- package/lib/paragraph.ws.js +3 -6
- package/lib/props.js +33 -66
- package/lib/radio-button.js +3 -6
- package/lib/radio-button.ws.js +9 -11
- package/lib/rich-text-link.js +2 -4
- package/lib/rich-text-link.stories.js +11 -0
- package/lib/rich-text-link.ws.js +3 -6
- package/lib/separator.js +3 -6
- package/lib/separator.stories.js +7 -0
- package/lib/separator.ws.js +3 -6
- package/lib/slot.js +2 -4
- package/lib/slot.stories.js +11 -0
- package/lib/slot.ws.js +3 -6
- package/lib/span.js +3 -6
- package/lib/span.stories.js +11 -0
- package/lib/span.ws.js +3 -6
- package/lib/subscript.js +3 -6
- package/lib/subscript.stories.js +11 -0
- package/lib/subscript.ws.js +3 -6
- package/lib/superscript.js +3 -6
- package/lib/superscript.stories.js +11 -0
- package/lib/superscript.ws.js +3 -6
- package/lib/text.js +3 -6
- package/lib/text.stories.js +11 -0
- package/lib/text.ws.js +3 -6
- package/lib/textarea.js +3 -6
- package/lib/textarea.ws.js +9 -11
- package/lib/types/__generated__/blockquote.props.d.ts +1 -1
- package/lib/types/__generated__/body.props.d.ts +1 -1
- package/lib/types/__generated__/bold.props.d.ts +1 -1
- package/lib/types/__generated__/box.props.d.ts +1 -1
- package/lib/types/__generated__/button.props.d.ts +1 -1
- package/lib/types/__generated__/checkbox.props.d.ts +1 -1
- package/lib/types/__generated__/code-text.props.d.ts +1 -1
- package/lib/types/__generated__/form.props.d.ts +1 -1
- package/lib/types/__generated__/fragment.props.d.ts +1 -1
- package/lib/types/__generated__/heading.props.d.ts +1 -1
- package/lib/types/__generated__/html-embed.props.d.ts +1 -1
- package/lib/types/__generated__/image.props.d.ts +1 -1
- package/lib/types/__generated__/input.props.d.ts +1 -1
- package/lib/types/__generated__/italic.props.d.ts +1 -1
- package/lib/types/__generated__/label.props.d.ts +1 -1
- package/lib/types/__generated__/link.props.d.ts +1 -1
- package/lib/types/__generated__/list-item.props.d.ts +1 -1
- package/lib/types/__generated__/list.props.d.ts +1 -1
- package/lib/types/__generated__/paragraph.props.d.ts +1 -1
- package/lib/types/__generated__/radio-button.props.d.ts +1 -1
- package/lib/types/__generated__/rich-text-link.props.d.ts +1 -1
- package/lib/types/__generated__/separator.props.d.ts +1 -1
- package/lib/types/__generated__/slot.props.d.ts +1 -1
- package/lib/types/__generated__/span.props.d.ts +1 -1
- package/lib/types/__generated__/subscript.props.d.ts +1 -1
- package/lib/types/__generated__/superscript.props.d.ts +1 -1
- package/lib/types/__generated__/text.props.d.ts +1 -1
- package/lib/types/__generated__/textarea.props.d.ts +1 -1
- package/lib/types/__generated__/vimeo-play-button.props.d.ts +1 -1
- package/lib/types/__generated__/vimeo-preview-image.props.d.ts +1 -1
- package/lib/types/__generated__/vimeo-spinner.props.d.ts +1 -1
- package/lib/types/__generated__/vimeo.props.d.ts +1 -1
- package/lib/types/vimeo-preview-image.d.ts +1 -1
- package/lib/vimeo-play-button.js +3 -5
- package/lib/vimeo-play-button.stories.js +11 -0
- package/lib/vimeo-play-button.ws.js +3 -6
- package/lib/vimeo-preview-image.js +2 -4
- package/lib/vimeo-preview-image.stories.js +11 -0
- package/lib/vimeo-preview-image.ws.js +3 -6
- package/lib/vimeo-spinner.js +2 -4
- package/lib/vimeo-spinner.stories.js +11 -0
- package/lib/vimeo-spinner.ws.js +3 -6
- package/lib/vimeo.js +3 -6
- package/lib/vimeo.stories.js +11 -0
- package/lib/vimeo.ws.js +3 -6
- package/package.json +16 -20
- package/lib/cjs/__generated__/blockquote.props.js +0 -536
- package/lib/cjs/__generated__/body.props.js +0 -530
- package/lib/cjs/__generated__/bold.props.js +0 -530
- package/lib/cjs/__generated__/box.props.js +0 -549
- package/lib/cjs/__generated__/button.props.js +0 -586
- package/lib/cjs/__generated__/checkbox.props.js +0 -688
- package/lib/cjs/__generated__/code-text.props.js +0 -530
- package/lib/cjs/__generated__/form.props.js +0 -578
- package/lib/cjs/__generated__/fragment.props.js +0 -24
- package/lib/cjs/__generated__/heading.props.js +0 -538
- package/lib/cjs/__generated__/html-embed.props.js +0 -31
- package/lib/cjs/__generated__/image.props.js +0 -603
- package/lib/cjs/__generated__/input.props.js +0 -695
- package/lib/cjs/__generated__/italic.props.js +0 -530
- package/lib/cjs/__generated__/label.props.js +0 -542
- package/lib/cjs/__generated__/link.props.js +0 -584
- package/lib/cjs/__generated__/list-item.props.js +0 -530
- package/lib/cjs/__generated__/list.props.js +0 -556
- package/lib/cjs/__generated__/paragraph.props.js +0 -530
- package/lib/cjs/__generated__/radio-button.props.js +0 -688
- package/lib/cjs/__generated__/rich-text-link.props.js +0 -584
- package/lib/cjs/__generated__/separator.props.js +0 -530
- package/lib/cjs/__generated__/slot.props.js +0 -24
- package/lib/cjs/__generated__/span.props.js +0 -530
- package/lib/cjs/__generated__/subscript.props.js +0 -530
- package/lib/cjs/__generated__/superscript.props.js +0 -530
- package/lib/cjs/__generated__/text.props.js +0 -538
- package/lib/cjs/__generated__/textarea.props.js +0 -597
- package/lib/cjs/__generated__/vimeo-play-button.props.js +0 -585
- package/lib/cjs/__generated__/vimeo-preview-image.props.js +0 -602
- package/lib/cjs/__generated__/vimeo-spinner.props.js +0 -530
- package/lib/cjs/__generated__/vimeo.props.js +0 -687
- package/lib/cjs/blockquote.js +0 -32
- package/lib/cjs/blockquote.ws.js +0 -96
- package/lib/cjs/body.js +0 -29
- package/lib/cjs/body.ws.js +0 -52
- package/lib/cjs/bold.js +0 -29
- package/lib/cjs/bold.ws.js +0 -42
- package/lib/cjs/box.js +0 -32
- package/lib/cjs/box.ws.js +0 -54
- package/lib/cjs/button.js +0 -31
- package/lib/cjs/button.ws.js +0 -57
- package/lib/cjs/checkbox.js +0 -29
- package/lib/cjs/checkbox.ws.js +0 -78
- package/lib/cjs/code-text.js +0 -30
- package/lib/cjs/code-text.ws.js +0 -75
- package/lib/cjs/components.js +0 -86
- package/lib/cjs/form.js +0 -29
- package/lib/cjs/form.ws.js +0 -84
- package/lib/cjs/fragment.js +0 -29
- package/lib/cjs/fragment.ws.js +0 -33
- package/lib/cjs/heading.js +0 -31
- package/lib/cjs/heading.ws.js +0 -58
- package/lib/cjs/html-embed.js +0 -80
- package/lib/cjs/html-embed.ws.js +0 -51
- package/lib/cjs/image.js +0 -86
- package/lib/cjs/image.ws.js +0 -70
- package/lib/cjs/input.js +0 -29
- package/lib/cjs/input.ws.js +0 -63
- package/lib/cjs/italic.js +0 -29
- package/lib/cjs/italic.ws.js +0 -48
- package/lib/cjs/label.js +0 -29
- package/lib/cjs/label.ws.js +0 -61
- package/lib/cjs/link.js +0 -52
- package/lib/cjs/link.ws.js +0 -81
- package/lib/cjs/list-item.js +0 -32
- package/lib/cjs/list-item.ws.js +0 -53
- package/lib/cjs/list.js +0 -31
- package/lib/cjs/list.ws.js +0 -74
- package/lib/cjs/metas.js +0 -86
- package/lib/cjs/package.json +0 -1
- package/lib/cjs/paragraph.js +0 -29
- package/lib/cjs/paragraph.ws.js +0 -53
- package/lib/cjs/props.js +0 -86
- package/lib/cjs/radio-button.js +0 -29
- package/lib/cjs/radio-button.ws.js +0 -78
- package/lib/cjs/rich-text-link.js +0 -28
- package/lib/cjs/rich-text-link.ws.js +0 -32
- package/lib/cjs/separator.js +0 -32
- package/lib/cjs/separator.ws.js +0 -71
- package/lib/cjs/slot.js +0 -36
- package/lib/cjs/slot.ws.js +0 -37
- package/lib/cjs/span.js +0 -29
- package/lib/cjs/span.ws.js +0 -42
- package/lib/cjs/subscript.js +0 -29
- package/lib/cjs/subscript.ws.js +0 -42
- package/lib/cjs/superscript.js +0 -29
- package/lib/cjs/superscript.ws.js +0 -42
- package/lib/cjs/text.js +0 -32
- package/lib/cjs/text.ws.js +0 -58
- package/lib/cjs/textarea.js +0 -29
- package/lib/cjs/textarea.ws.js +0 -64
- package/lib/cjs/vimeo-play-button.js +0 -38
- package/lib/cjs/vimeo-play-button.ws.js +0 -46
- package/lib/cjs/vimeo-preview-image.js +0 -40
- package/lib/cjs/vimeo-preview-image.ws.js +0 -37
- package/lib/cjs/vimeo-spinner.js +0 -37
- package/lib/cjs/vimeo-spinner.ws.js +0 -44
- package/lib/cjs/vimeo.js +0 -294
- package/lib/cjs/vimeo.ws.js +0 -348
- package/src/LICENSE +0 -661
- package/src/__generated__/blockquote.props.ts +0 -580
- package/src/__generated__/body.props.ts +0 -573
- package/src/__generated__/bold.props.ts +0 -573
- package/src/__generated__/box.props.ts +0 -593
- package/src/__generated__/button.props.ts +0 -636
- package/src/__generated__/checkbox.props.ts +0 -748
- package/src/__generated__/code-text.props.ts +0 -573
- package/src/__generated__/form.props.ts +0 -628
- package/src/__generated__/fragment.props.ts +0 -3
- package/src/__generated__/heading.props.ts +0 -582
- package/src/__generated__/html-embed.props.ts +0 -10
- package/src/__generated__/image.props.ts +0 -648
- package/src/__generated__/input.props.ts +0 -756
- package/src/__generated__/italic.props.ts +0 -573
- package/src/__generated__/label.props.ts +0 -586
- package/src/__generated__/link.props.ts +0 -630
- package/src/__generated__/list-item.props.ts +0 -573
- package/src/__generated__/list.props.ts +0 -601
- package/src/__generated__/paragraph.props.ts +0 -573
- package/src/__generated__/radio-button.props.ts +0 -748
- package/src/__generated__/rich-text-link.props.ts +0 -630
- package/src/__generated__/separator.props.ts +0 -573
- package/src/__generated__/slot.props.ts +0 -3
- package/src/__generated__/span.props.ts +0 -573
- package/src/__generated__/subscript.props.ts +0 -573
- package/src/__generated__/superscript.props.ts +0 -573
- package/src/__generated__/text.props.ts +0 -582
- package/src/__generated__/textarea.props.ts +0 -645
- package/src/__generated__/vimeo-play-button.props.ts +0 -634
- package/src/__generated__/vimeo-preview-image.props.ts +0 -647
- package/src/__generated__/vimeo-spinner.props.ts +0 -573
- package/src/__generated__/vimeo.props.ts +0 -751
- package/src/blockquote.stories.tsx +0 -13
- package/src/blockquote.tsx +0 -18
- package/src/blockquote.ws.tsx +0 -84
- package/src/body.stories.tsx +0 -13
- package/src/body.tsx +0 -10
- package/src/body.ws.tsx +0 -37
- package/src/bold.stories.tsx +0 -13
- package/src/bold.tsx +0 -10
- package/src/bold.ws.tsx +0 -27
- package/src/box.stories.tsx +0 -13
- package/src/box.tsx +0 -32
- package/src/box.ws.ts +0 -54
- package/src/button.stories.tsx +0 -13
- package/src/button.tsx +0 -15
- package/src/button.ws.tsx +0 -43
- package/src/checkbox.tsx +0 -13
- package/src/checkbox.ws.tsx +0 -64
- package/src/code-text.stories.tsx +0 -13
- package/src/code-text.tsx +0 -17
- package/src/code-text.ws.tsx +0 -61
- package/src/components.ts +0 -32
- package/src/form.stories.tsx +0 -13
- package/src/form.tsx +0 -14
- package/src/form.ws.tsx +0 -69
- package/src/fragment.tsx +0 -11
- package/src/fragment.ws.ts +0 -15
- package/src/heading.stories.tsx +0 -13
- package/src/heading.tsx +0 -21
- package/src/heading.ws.tsx +0 -47
- package/src/html-embed.stories.tsx +0 -13
- package/src/html-embed.tsx +0 -99
- package/src/html-embed.ws.ts +0 -34
- package/src/image.stories.tsx +0 -9
- package/src/image.tsx +0 -91
- package/src/image.ws.tsx +0 -58
- package/src/input.stories.tsx +0 -11
- package/src/input.tsx +0 -13
- package/src/input.ws.tsx +0 -49
- package/src/italic.stories.tsx +0 -13
- package/src/italic.tsx +0 -10
- package/src/italic.ws.tsx +0 -33
- package/src/label.tsx +0 -10
- package/src/label.ws.tsx +0 -46
- package/src/link.stories.tsx +0 -13
- package/src/link.tsx +0 -43
- package/src/link.ws.tsx +0 -67
- package/src/list-item.stories.tsx +0 -13
- package/src/list-item.tsx +0 -18
- package/src/list-item.ws.tsx +0 -38
- package/src/list.stories.tsx +0 -14
- package/src/list.tsx +0 -27
- package/src/list.ws.tsx +0 -59
- package/src/metas.ts +0 -32
- package/src/paragraph.stories.tsx +0 -13
- package/src/paragraph.tsx +0 -10
- package/src/paragraph.ws.tsx +0 -38
- package/src/props.ts +0 -32
- package/src/radio-button.tsx +0 -13
- package/src/radio-button.ws.tsx +0 -64
- package/src/rich-text-link.stories.tsx +0 -13
- package/src/rich-text-link.tsx +0 -8
- package/src/rich-text-link.ws.tsx +0 -14
- package/src/separator.stories.tsx +0 -9
- package/src/separator.tsx +0 -18
- package/src/separator.ws.tsx +0 -58
- package/src/slot.stories.tsx +0 -13
- package/src/slot.tsx +0 -17
- package/src/slot.ws.ts +0 -20
- package/src/span.stories.tsx +0 -13
- package/src/span.tsx +0 -10
- package/src/span.ws.tsx +0 -27
- package/src/subscript.stories.tsx +0 -13
- package/src/subscript.tsx +0 -10
- package/src/subscript.ws.tsx +0 -27
- package/src/superscript.stories.tsx +0 -13
- package/src/superscript.tsx +0 -10
- package/src/superscript.ws.tsx +0 -27
- package/src/text.stories.tsx +0 -13
- package/src/text.tsx +0 -22
- package/src/text.ws.tsx +0 -44
- package/src/textarea.tsx +0 -13
- package/src/textarea.ws.tsx +0 -50
- package/src/vimeo-play-button.stories.tsx +0 -13
- package/src/vimeo-play-button.tsx +0 -24
- package/src/vimeo-play-button.ws.ts +0 -30
- package/src/vimeo-preview-image.stories.tsx +0 -13
- package/src/vimeo-preview-image.tsx +0 -30
- package/src/vimeo-preview-image.ws.ts +0 -22
- package/src/vimeo-spinner.stories.tsx +0 -13
- package/src/vimeo-spinner.tsx +0 -25
- package/src/vimeo-spinner.ws.ts +0 -28
- package/src/vimeo.stories.tsx +0 -13
- package/src/vimeo.tsx +0 -431
- package/src/vimeo.ws.ts +0 -335
package/lib/cjs/components.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var components_exports = {};
|
|
20
|
-
__export(components_exports, {
|
|
21
|
-
Blockquote: () => import_blockquote.Blockquote,
|
|
22
|
-
Body: () => import_body.Body,
|
|
23
|
-
Bold: () => import_bold.Bold,
|
|
24
|
-
Box: () => import_box.Box,
|
|
25
|
-
Button: () => import_button.Button,
|
|
26
|
-
Checkbox: () => import_checkbox.Checkbox,
|
|
27
|
-
CodeText: () => import_code_text.CodeText,
|
|
28
|
-
Form: () => import_form.Form,
|
|
29
|
-
Fragment: () => import_fragment.Fragment,
|
|
30
|
-
Heading: () => import_heading.Heading,
|
|
31
|
-
HtmlEmbed: () => import_html_embed.HtmlEmbed,
|
|
32
|
-
Image: () => import_image.Image,
|
|
33
|
-
Input: () => import_input.Input,
|
|
34
|
-
Italic: () => import_italic.Italic,
|
|
35
|
-
Label: () => import_label.Label,
|
|
36
|
-
Link: () => import_link.Link,
|
|
37
|
-
List: () => import_list.List,
|
|
38
|
-
ListItem: () => import_list_item.ListItem,
|
|
39
|
-
Paragraph: () => import_paragraph.Paragraph,
|
|
40
|
-
RadioButton: () => import_radio_button.RadioButton,
|
|
41
|
-
RichTextLink: () => import_rich_text_link.RichTextLink,
|
|
42
|
-
Separator: () => import_separator.Separator,
|
|
43
|
-
Slot: () => import_slot.Slot,
|
|
44
|
-
Span: () => import_span.Span,
|
|
45
|
-
Subscript: () => import_subscript.Subscript,
|
|
46
|
-
Superscript: () => import_superscript.Superscript,
|
|
47
|
-
Text: () => import_text.Text,
|
|
48
|
-
Textarea: () => import_textarea.Textarea,
|
|
49
|
-
Vimeo: () => import_vimeo.Vimeo,
|
|
50
|
-
VimeoPlayButton: () => import_vimeo_play_button.VimeoPlayButton,
|
|
51
|
-
VimeoPreviewImage: () => import_vimeo_preview_image.VimeoPreviewImage,
|
|
52
|
-
VimeoSpinner: () => import_vimeo_spinner.VimeoSpinner
|
|
53
|
-
});
|
|
54
|
-
module.exports = __toCommonJS(components_exports);
|
|
55
|
-
var import_slot = require("./slot");
|
|
56
|
-
var import_fragment = require("./fragment");
|
|
57
|
-
var import_html_embed = require("./html-embed");
|
|
58
|
-
var import_body = require("./body");
|
|
59
|
-
var import_box = require("./box");
|
|
60
|
-
var import_text = require("./text");
|
|
61
|
-
var import_heading = require("./heading");
|
|
62
|
-
var import_paragraph = require("./paragraph");
|
|
63
|
-
var import_link = require("./link");
|
|
64
|
-
var import_rich_text_link = require("./rich-text-link");
|
|
65
|
-
var import_span = require("./span");
|
|
66
|
-
var import_bold = require("./bold");
|
|
67
|
-
var import_italic = require("./italic");
|
|
68
|
-
var import_superscript = require("./superscript");
|
|
69
|
-
var import_subscript = require("./subscript");
|
|
70
|
-
var import_button = require("./button");
|
|
71
|
-
var import_input = require("./input");
|
|
72
|
-
var import_form = require("./form");
|
|
73
|
-
var import_image = require("./image");
|
|
74
|
-
var import_blockquote = require("./blockquote");
|
|
75
|
-
var import_list = require("./list");
|
|
76
|
-
var import_list_item = require("./list-item");
|
|
77
|
-
var import_separator = require("./separator");
|
|
78
|
-
var import_code_text = require("./code-text");
|
|
79
|
-
var import_label = require("./label");
|
|
80
|
-
var import_textarea = require("./textarea");
|
|
81
|
-
var import_radio_button = require("./radio-button");
|
|
82
|
-
var import_checkbox = require("./checkbox");
|
|
83
|
-
var import_vimeo = require("./vimeo");
|
|
84
|
-
var import_vimeo_preview_image = require("./vimeo-preview-image");
|
|
85
|
-
var import_vimeo_play_button = require("./vimeo-play-button");
|
|
86
|
-
var import_vimeo_spinner = require("./vimeo-spinner");
|
package/lib/cjs/form.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var form_exports = {};
|
|
20
|
-
__export(form_exports, {
|
|
21
|
-
Form: () => Form,
|
|
22
|
-
defaultTag: () => defaultTag
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(form_exports);
|
|
25
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
-
var import_react = require("react");
|
|
27
|
-
const defaultTag = "form";
|
|
28
|
-
const Form = (0, import_react.forwardRef)(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("form", { ...props, ref, children }));
|
|
29
|
-
Form.displayName = "Form";
|
package/lib/cjs/form.ws.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var form_ws_exports = {};
|
|
20
|
-
__export(form_ws_exports, {
|
|
21
|
-
meta: () => meta,
|
|
22
|
-
propsMeta: () => propsMeta
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(form_ws_exports);
|
|
25
|
-
var import_svg = require("@webstudio-is/icons/svg");
|
|
26
|
-
var import_react_sdk = require("@webstudio-is/react-sdk");
|
|
27
|
-
var import_css_normalize = require("@webstudio-is/react-sdk/css-normalize");
|
|
28
|
-
var import_form = require("./__generated__/form.props");
|
|
29
|
-
const presetStyle = {
|
|
30
|
-
form: [
|
|
31
|
-
...import_css_normalize.form,
|
|
32
|
-
{ property: "minHeight", value: { type: "unit", unit: "px", value: 20 } }
|
|
33
|
-
]
|
|
34
|
-
};
|
|
35
|
-
const meta = {
|
|
36
|
-
category: "forms",
|
|
37
|
-
type: "container",
|
|
38
|
-
invalidAncestors: ["Form"],
|
|
39
|
-
label: "Form",
|
|
40
|
-
description: "Collect information from your users using validation rules.",
|
|
41
|
-
icon: import_svg.FormIcon,
|
|
42
|
-
states: import_react_sdk.defaultStates,
|
|
43
|
-
presetStyle,
|
|
44
|
-
order: 0,
|
|
45
|
-
template: [
|
|
46
|
-
{
|
|
47
|
-
type: "instance",
|
|
48
|
-
component: "Form",
|
|
49
|
-
children: [
|
|
50
|
-
{
|
|
51
|
-
type: "instance",
|
|
52
|
-
component: "Label",
|
|
53
|
-
children: [{ type: "text", value: "Name" }]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: "instance",
|
|
57
|
-
component: "Input",
|
|
58
|
-
props: [{ type: "string", name: "name", value: "name" }],
|
|
59
|
-
children: []
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
type: "instance",
|
|
63
|
-
component: "Label",
|
|
64
|
-
children: [{ type: "text", value: "Email" }]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: "instance",
|
|
68
|
-
component: "Input",
|
|
69
|
-
props: [{ type: "string", name: "name", value: "email" }],
|
|
70
|
-
children: []
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
type: "instance",
|
|
74
|
-
component: "Button",
|
|
75
|
-
children: [{ type: "text", value: "Submit" }]
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
};
|
|
81
|
-
const propsMeta = {
|
|
82
|
-
props: import_form.props,
|
|
83
|
-
initialProps: ["id", "action"]
|
|
84
|
-
};
|
package/lib/cjs/fragment.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var fragment_exports = {};
|
|
20
|
-
__export(fragment_exports, {
|
|
21
|
-
Fragment: () => Fragment
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(fragment_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
const Fragment = (0, import_react.forwardRef)((props, ref) => {
|
|
27
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...props, ref, style: { display: "contents" } });
|
|
28
|
-
});
|
|
29
|
-
Fragment.displayName = "Fragment";
|
package/lib/cjs/fragment.ws.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var fragment_ws_exports = {};
|
|
20
|
-
__export(fragment_ws_exports, {
|
|
21
|
-
meta: () => meta,
|
|
22
|
-
propsMeta: () => propsMeta
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(fragment_ws_exports);
|
|
25
|
-
const meta = {
|
|
26
|
-
type: "container",
|
|
27
|
-
label: "Fragment",
|
|
28
|
-
icon: "",
|
|
29
|
-
stylable: false
|
|
30
|
-
};
|
|
31
|
-
const propsMeta = {
|
|
32
|
-
props: {}
|
|
33
|
-
};
|
package/lib/cjs/heading.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var heading_exports = {};
|
|
20
|
-
__export(heading_exports, {
|
|
21
|
-
Heading: () => Heading
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(heading_exports);
|
|
24
|
-
var import_react = require("react");
|
|
25
|
-
const defaultTag = "h1";
|
|
26
|
-
const Heading = (0, import_react.forwardRef)(
|
|
27
|
-
({ tag = defaultTag, ...props }, ref) => {
|
|
28
|
-
return (0, import_react.createElement)(tag, { ...props, ref });
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
Heading.displayName = "Heading";
|
package/lib/cjs/heading.ws.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var heading_ws_exports = {};
|
|
20
|
-
__export(heading_ws_exports, {
|
|
21
|
-
meta: () => meta,
|
|
22
|
-
propsMeta: () => propsMeta
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(heading_ws_exports);
|
|
25
|
-
var import_svg = require("@webstudio-is/icons/svg");
|
|
26
|
-
var import_react_sdk = require("@webstudio-is/react-sdk");
|
|
27
|
-
var import_css_normalize = require("@webstudio-is/react-sdk/css-normalize");
|
|
28
|
-
var import_heading = require("./__generated__/heading.props");
|
|
29
|
-
const presetStyle = {
|
|
30
|
-
h1: import_css_normalize.h1,
|
|
31
|
-
h2: import_css_normalize.h2,
|
|
32
|
-
h3: import_css_normalize.h3,
|
|
33
|
-
h4: import_css_normalize.h4,
|
|
34
|
-
h5: import_css_normalize.h5,
|
|
35
|
-
h6: import_css_normalize.h6
|
|
36
|
-
};
|
|
37
|
-
const meta = {
|
|
38
|
-
category: "text",
|
|
39
|
-
type: "container",
|
|
40
|
-
label: "Heading",
|
|
41
|
-
description: "Use HTML headings to structure and organize content. Use the Tag property in settings to change the heading level (h1-h6).",
|
|
42
|
-
icon: import_svg.HeadingIcon,
|
|
43
|
-
invalidAncestors: ["Heading"],
|
|
44
|
-
states: import_react_sdk.defaultStates,
|
|
45
|
-
presetStyle,
|
|
46
|
-
template: [
|
|
47
|
-
{
|
|
48
|
-
type: "instance",
|
|
49
|
-
component: "Heading",
|
|
50
|
-
children: [{ type: "text", value: "Heading you can edit" }]
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
order: 1
|
|
54
|
-
};
|
|
55
|
-
const propsMeta = {
|
|
56
|
-
props: import_heading.props,
|
|
57
|
-
initialProps: ["id", "tag"]
|
|
58
|
-
};
|
package/lib/cjs/html-embed.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var html_embed_exports = {};
|
|
20
|
-
__export(html_embed_exports, {
|
|
21
|
-
HtmlEmbed: () => HtmlEmbed
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(html_embed_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
var import_utils = require("@react-aria/utils");
|
|
27
|
-
var import_react_sdk = require("@webstudio-is/react-sdk");
|
|
28
|
-
const ExecutableHtml = (props) => {
|
|
29
|
-
const { code, innerRef, ...rest } = props;
|
|
30
|
-
const containerRef = (0, import_react.useRef)(null);
|
|
31
|
-
(0, import_react.useEffect)(() => {
|
|
32
|
-
const container = containerRef.current;
|
|
33
|
-
if (container === null || code === void 0) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const range = document.createRange();
|
|
37
|
-
range.setStart(container, 0);
|
|
38
|
-
const fragment = range.createContextualFragment(code);
|
|
39
|
-
while (container.firstChild) {
|
|
40
|
-
container.removeChild(container.firstChild);
|
|
41
|
-
}
|
|
42
|
-
container.append(fragment);
|
|
43
|
-
}, [code]);
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
45
|
-
"div",
|
|
46
|
-
{
|
|
47
|
-
...rest,
|
|
48
|
-
ref: (0, import_utils.mergeRefs)(innerRef, containerRef),
|
|
49
|
-
style: { display: "contents" }
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
const InnerHtml = (props) => {
|
|
54
|
-
const { code, innerRef, ...rest } = props;
|
|
55
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
...rest,
|
|
59
|
-
ref: innerRef,
|
|
60
|
-
style: { display: "contents" },
|
|
61
|
-
dangerouslySetInnerHTML: { __html: props.code ?? "" }
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
const Placeholder = (props) => {
|
|
66
|
-
const { code, innerRef, ...rest } = props;
|
|
67
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref: innerRef, ...rest, style: { padding: "20px" }, children: 'Open the "Settings" panel to insert HTML code' });
|
|
68
|
-
};
|
|
69
|
-
const HtmlEmbed = (0, import_react.forwardRef)((props, ref) => {
|
|
70
|
-
const { renderer } = (0, import_react.useContext)(import_react_sdk.ReactSdkContext);
|
|
71
|
-
const { code, executeScriptOnCanvas, ...rest } = props;
|
|
72
|
-
if (code === void 0 || code.trim().length === 0) {
|
|
73
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Placeholder, { innerRef: ref, ...rest });
|
|
74
|
-
}
|
|
75
|
-
if (renderer === "canvas" && executeScriptOnCanvas === true || renderer === "preview") {
|
|
76
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExecutableHtml, { innerRef: ref, code, ...rest });
|
|
77
|
-
}
|
|
78
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InnerHtml, { innerRef: ref, code, ...rest });
|
|
79
|
-
});
|
|
80
|
-
HtmlEmbed.displayName = "HtmlEmbed";
|
package/lib/cjs/html-embed.ws.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var html_embed_ws_exports = {};
|
|
20
|
-
__export(html_embed_ws_exports, {
|
|
21
|
-
meta: () => meta,
|
|
22
|
-
propsMeta: () => propsMeta
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(html_embed_ws_exports);
|
|
25
|
-
var import_svg = require("@webstudio-is/icons/svg");
|
|
26
|
-
var import_html_embed = require("./__generated__/html-embed.props");
|
|
27
|
-
const meta = {
|
|
28
|
-
category: "general",
|
|
29
|
-
type: "embed",
|
|
30
|
-
label: "HTML Embed",
|
|
31
|
-
description: "Used to add HTML code to the page, such as an SVG or script.",
|
|
32
|
-
icon: import_svg.EmbedIcon,
|
|
33
|
-
stylable: false,
|
|
34
|
-
order: 7
|
|
35
|
-
};
|
|
36
|
-
const propsMeta = {
|
|
37
|
-
props: {
|
|
38
|
-
...import_html_embed.props,
|
|
39
|
-
executeScriptOnCanvas: {
|
|
40
|
-
...import_html_embed.props.executeScriptOnCanvas,
|
|
41
|
-
label: "Run script on canvas"
|
|
42
|
-
},
|
|
43
|
-
code: {
|
|
44
|
-
required: true,
|
|
45
|
-
control: "code",
|
|
46
|
-
type: "string",
|
|
47
|
-
rows: 10
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
initialProps: []
|
|
51
|
-
};
|
package/lib/cjs/image.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var image_exports = {};
|
|
20
|
-
__export(image_exports, {
|
|
21
|
-
Image: () => Image,
|
|
22
|
-
defaultTag: () => defaultTag
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(image_exports);
|
|
25
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
-
var import_react = require("react");
|
|
27
|
-
var import_image = require("@webstudio-is/image");
|
|
28
|
-
var import_react_sdk = require("@webstudio-is/react-sdk");
|
|
29
|
-
const defaultTag = "img";
|
|
30
|
-
const imagePlaceholderSvg = `data:image/svg+xml;base64,${btoa(`<svg
|
|
31
|
-
width="140"
|
|
32
|
-
height="140"
|
|
33
|
-
viewBox="0 0 600 600"
|
|
34
|
-
fill="none"
|
|
35
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
36
|
-
>
|
|
37
|
-
<rect width="600" height="600" fill="#CCCCCC" />
|
|
38
|
-
<path
|
|
39
|
-
fill-rule="evenodd"
|
|
40
|
-
clip-rule="evenodd"
|
|
41
|
-
d="M450 170H150C141.716 170 135 176.716 135 185V415C135 423.284 141.716 430 150 430H450C458.284 430 465 423.284 465 415V185C465 176.716 458.284 170 450 170ZM150 145C127.909 145 110 162.909 110 185V415C110 437.091 127.909 455 150 455H450C472.091 455 490 437.091 490 415V185C490 162.909 472.091 145 450 145H150Z"
|
|
42
|
-
fill="#A2A2A2"
|
|
43
|
-
/>
|
|
44
|
-
<path
|
|
45
|
-
d="M237.135 235.012C237.135 255.723 220.345 272.512 199.635 272.512C178.924 272.512 162.135 255.723 162.135 235.012C162.135 214.301 178.924 197.512 199.635 197.512C220.345 197.512 237.135 214.301 237.135 235.012Z"
|
|
46
|
-
fill="#A2A2A2"
|
|
47
|
-
/>
|
|
48
|
-
<path
|
|
49
|
-
d="M160 405V367.205L221.609 306.364L256.552 338.628L358.161 234L440 316.043V405H160Z"
|
|
50
|
-
fill="#A2A2A2"
|
|
51
|
-
/>
|
|
52
|
-
</svg>`)}`;
|
|
53
|
-
const Image = (0, import_react.forwardRef)(
|
|
54
|
-
({ loading = "lazy", ...props }, ref) => {
|
|
55
|
-
const { imageBaseUrl } = (0, import_react.useContext)(import_react_sdk.ReactSdkContext);
|
|
56
|
-
const asset = (0, import_react_sdk.usePropAsset)((0, import_react_sdk.getInstanceIdFromComponentProps)(props), "src");
|
|
57
|
-
const loader = (0, import_react.useMemo)(() => {
|
|
58
|
-
return (0, import_image.createImageLoader)({ imageBaseUrl });
|
|
59
|
-
}, [imageBaseUrl]);
|
|
60
|
-
const src = asset?.name ?? props.src;
|
|
61
|
-
if (asset == null || loader == null) {
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
63
|
-
"img",
|
|
64
|
-
{
|
|
65
|
-
loading,
|
|
66
|
-
...props,
|
|
67
|
-
src: src || imagePlaceholderSvg,
|
|
68
|
-
ref
|
|
69
|
-
},
|
|
70
|
-
src
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
|
-
import_image.Image,
|
|
75
|
-
{
|
|
76
|
-
loading,
|
|
77
|
-
...props,
|
|
78
|
-
loader,
|
|
79
|
-
src,
|
|
80
|
-
ref
|
|
81
|
-
},
|
|
82
|
-
src
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
Image.displayName = "Image";
|
package/lib/cjs/image.ws.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var image_ws_exports = {};
|
|
20
|
-
__export(image_ws_exports, {
|
|
21
|
-
meta: () => meta,
|
|
22
|
-
propsMeta: () => propsMeta,
|
|
23
|
-
propsOverrides: () => propsOverrides
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(image_ws_exports);
|
|
26
|
-
var import_svg = require("@webstudio-is/icons/svg");
|
|
27
|
-
var import_react_sdk = require("@webstudio-is/react-sdk");
|
|
28
|
-
var import_css_normalize = require("@webstudio-is/react-sdk/css-normalize");
|
|
29
|
-
var import_image = require("./__generated__/image.props");
|
|
30
|
-
const presetStyle = {
|
|
31
|
-
img: [
|
|
32
|
-
...import_css_normalize.img,
|
|
33
|
-
// Otherwise on new image insert onto canvas it can overfit screen size multiple times
|
|
34
|
-
{
|
|
35
|
-
property: "maxWidth",
|
|
36
|
-
value: { type: "unit", unit: "%", value: 100 }
|
|
37
|
-
},
|
|
38
|
-
// inline | inline-block is not suitable because without line-height: 0 on the parent you get unsuitable spaces/margins
|
|
39
|
-
// see https://stackoverflow.com/questions/24771194/is-the-margin-of-inline-block-4px-is-static-for-all-browsers
|
|
40
|
-
{
|
|
41
|
-
property: "display",
|
|
42
|
-
value: { type: "keyword", value: "block" }
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
};
|
|
46
|
-
const meta = {
|
|
47
|
-
category: "media",
|
|
48
|
-
type: "embed",
|
|
49
|
-
label: "Image",
|
|
50
|
-
description: "Add an image asset to the page. Webstudio automatically converts images to WebP or AVIF format and makes them responsive for best performance.",
|
|
51
|
-
icon: import_svg.ImageIcon,
|
|
52
|
-
states: import_react_sdk.defaultStates,
|
|
53
|
-
presetStyle,
|
|
54
|
-
order: 0
|
|
55
|
-
};
|
|
56
|
-
const propsOverrides = {
|
|
57
|
-
src: {
|
|
58
|
-
type: "string",
|
|
59
|
-
control: "file",
|
|
60
|
-
label: "Source",
|
|
61
|
-
required: false
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const propsMeta = {
|
|
65
|
-
props: {
|
|
66
|
-
...import_image.props,
|
|
67
|
-
...propsOverrides
|
|
68
|
-
},
|
|
69
|
-
initialProps: ["id", "src", "width", "height", "alt", "loading"]
|
|
70
|
-
};
|
package/lib/cjs/input.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var input_exports = {};
|
|
20
|
-
__export(input_exports, {
|
|
21
|
-
Input: () => Input,
|
|
22
|
-
defaultTag: () => defaultTag
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(input_exports);
|
|
25
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
-
var import_react = require("react");
|
|
27
|
-
const defaultTag = "input";
|
|
28
|
-
const Input = (0, import_react.forwardRef)(({ children: _children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { ...props, ref }));
|
|
29
|
-
Input.displayName = "Input";
|