@webstudio-is/react-sdk 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/arg-types/utils.d.ts +19 -1
- package/lib/arg-types/utils.d.ts.map +1 -1
- package/lib/arg-types/utils.js +7 -6
- package/lib/canvas/canvas.d.ts +8 -0
- package/lib/canvas/canvas.d.ts.map +1 -0
- package/lib/canvas/canvas.js +13 -0
- package/lib/canvas/index.d.ts +2 -0
- package/lib/canvas/index.d.ts.map +1 -0
- package/lib/canvas/index.js +17 -0
- package/lib/components/body.d.ts +3 -0
- package/lib/components/body.d.ts.map +1 -0
- package/lib/components/body.js +8 -0
- package/lib/components/body.props.json +2234 -0
- package/lib/components/body.stories.d.ts +7 -0
- package/lib/components/body.stories.d.ts.map +1 -0
- package/lib/components/body.stories.js +16 -0
- package/lib/components/body.ws.d.ts +5 -0
- package/lib/components/body.ws.d.ts.map +1 -0
- package/lib/components/body.ws.js +64 -0
- package/lib/components/bold.props.json +37 -7
- package/lib/components/bold.ws.d.ts +5 -0
- package/lib/components/bold.ws.d.ts.map +1 -0
- package/lib/components/bold.ws.js +14 -0
- package/lib/components/box.d.ts +7 -2
- package/lib/components/box.d.ts.map +1 -1
- package/lib/components/box.js +3 -2
- package/lib/components/box.props.json +102 -7
- package/lib/components/box.stories.d.ts +6 -2
- package/lib/components/box.stories.d.ts.map +1 -1
- package/lib/components/box.ws.d.ts +5 -0
- package/lib/components/box.ws.d.ts.map +1 -0
- package/lib/components/box.ws.js +21 -0
- package/lib/components/button.d.ts +1 -4
- package/lib/components/button.d.ts.map +1 -1
- package/lib/components/button.props.json +42 -8
- package/lib/components/button.ws.d.ts +5 -0
- package/lib/components/button.ws.d.ts.map +1 -0
- package/lib/components/button.ws.js +15 -0
- package/lib/components/component-type.d.ts +17 -0
- package/lib/components/component-type.d.ts.map +1 -0
- package/lib/components/component-type.js +28 -0
- package/lib/components/form.props.json +37 -7
- package/lib/components/form.ws.d.ts +5 -0
- package/lib/components/form.ws.d.ts.map +1 -0
- package/lib/components/form.ws.js +26 -0
- package/lib/components/heading.d.ts +2 -2
- package/lib/components/heading.d.ts.map +1 -1
- package/lib/components/heading.js +1 -4
- package/lib/components/heading.props.json +45 -8
- package/lib/components/heading.stories.d.ts +2 -2
- package/lib/components/heading.ws.d.ts +5 -0
- package/lib/components/heading.ws.d.ts.map +1 -0
- package/lib/components/heading.ws.js +15 -0
- package/lib/components/index.d.ts +11 -10
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +25 -23
- package/lib/components/index.test.d.ts +2 -0
- package/lib/components/index.test.d.ts.map +1 -0
- package/lib/components/index.test.js +33 -0
- package/lib/components/input.props.json +46 -8
- package/lib/components/input.ws.d.ts +5 -0
- package/lib/components/input.ws.d.ts.map +1 -0
- package/lib/components/input.ws.js +14 -0
- package/lib/components/italic.props.json +37 -7
- package/lib/components/italic.ws.d.ts +5 -0
- package/lib/components/italic.ws.d.ts.map +1 -0
- package/lib/components/italic.ws.js +14 -0
- package/lib/components/link.d.ts +2 -2
- package/lib/components/link.d.ts.map +1 -1
- package/lib/components/link.props.json +37 -7
- package/lib/components/link.stories.d.ts +6 -2
- package/lib/components/link.stories.d.ts.map +1 -1
- package/lib/components/link.ws.d.ts +5 -0
- package/lib/components/link.ws.d.ts.map +1 -0
- package/lib/components/link.ws.js +27 -0
- package/lib/components/meta.d.ts +1 -0
- package/lib/components/meta.d.ts.map +1 -1
- package/lib/components/meta.js +3 -1
- package/lib/components/paragraph.props.json +37 -7
- package/lib/components/paragraph.ws.d.ts +5 -0
- package/lib/components/paragraph.ws.d.ts.map +1 -0
- package/lib/components/paragraph.ws.js +15 -0
- package/lib/components/text-block.props.json +37 -7
- package/lib/components/text-block.ws.d.ts +5 -0
- package/lib/components/text-block.ws.d.ts.map +1 -0
- package/lib/components/text-block.ws.js +23 -0
- package/lib/css/categories.d.ts +1 -1
- package/lib/css/categories.js +1 -1
- package/lib/css/get-browser-style.js +1 -1
- package/lib/css/keyword-values.d.ts.map +1 -1
- package/lib/css/keyword-values.js +1149 -396
- package/lib/css/properties.d.ts +6 -4
- package/lib/css/properties.d.ts.map +1 -1
- package/lib/css/properties.js +3196 -3194
- package/lib/css/units.js +1 -1
- package/lib/db/instance.d.ts +5 -2
- package/lib/db/instance.d.ts.map +1 -1
- package/lib/db/instance.js +9 -1
- package/lib/db/types.d.ts +1 -2
- package/lib/db/types.d.ts.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/pubsub/create.d.ts +28 -0
- package/lib/pubsub/create.d.ts.map +1 -0
- package/lib/pubsub/create.js +58 -0
- package/lib/pubsub/index.d.ts +1 -2
- package/lib/pubsub/index.d.ts.map +1 -1
- package/lib/pubsub/index.js +1 -2
- package/lib/stitches/css.d.ts.map +1 -1
- package/lib/stitches/css.js +1 -0
- package/lib/stitches/to-css.js +2 -3
- package/lib/tree/create-elements-tree.d.ts.map +1 -1
- package/lib/tree/create-elements-tree.js +43 -12
- package/lib/tree/root.d.ts +1 -1
- package/lib/tree/root.d.ts.map +1 -1
- package/lib/tree/root.js +6 -6
- package/lib/tree/wrapper-component.js +2 -2
- package/lib/user-props/all-user-props.d.ts.map +1 -1
- package/lib/user-props/all-user-props.js +5 -4
- package/lib/user-props/use-user-props.js +1 -1
- package/package.json +13 -14
- package/lib/prisma.server.d.ts +0 -3
- package/lib/prisma.server.d.ts.map +0 -1
- package/lib/prisma.server.js +0 -8
- package/lib/pubsub/publish.d.ts +0 -17
- package/lib/pubsub/publish.d.ts.map +0 -1
- package/lib/pubsub/publish.js +0 -27
- package/lib/pubsub/subscribe.d.ts +0 -8
- package/lib/pubsub/subscribe.d.ts.map +0 -1
- package/lib/pubsub/subscribe.js +0 -31
- package/prisma/schema.prisma +0 -71
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"italic.ws.d.ts","sourceRoot":"","sources":["../../src/components/italic.ws.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,OAAO,MAAM,CAQxC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const icons_1 = require("@webstudio-is/icons");
|
|
4
|
+
const italic_1 = require("./italic");
|
|
5
|
+
const meta = {
|
|
6
|
+
Icon: icons_1.FontItalicIcon,
|
|
7
|
+
Component: italic_1.Italic,
|
|
8
|
+
canAcceptChildren: false,
|
|
9
|
+
isContentEditable: false,
|
|
10
|
+
isInlineOnly: true,
|
|
11
|
+
label: "Italic Text",
|
|
12
|
+
isListed: false,
|
|
13
|
+
};
|
|
14
|
+
exports.default = meta;
|
package/lib/components/link.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { type ComponentProps } from "react";
|
|
2
2
|
declare const defaultTag = "a";
|
|
3
|
-
|
|
3
|
+
declare type LinkProps = Omit<ComponentProps<typeof defaultTag>, "href"> & {
|
|
4
4
|
href?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "type" | "style" | "id" | "color" | "translate" | "hidden" | "media" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "
|
|
6
|
+
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "type" | "style" | "id" | "color" | "translate" | "hidden" | "media" | "children" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhF,QAAA,MAAM,UAAU,MAAM,CAAC;AAEvB,
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhF,QAAA,MAAM,UAAU,MAAM,CAAC;AAEvB,aAAK,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,EAAE,MAAM,CAAC,GAAG;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,IAAI,srJAEhB,CAAC"}
|
|
@@ -684,7 +684,10 @@
|
|
|
684
684
|
"control": {
|
|
685
685
|
"type": "radio"
|
|
686
686
|
},
|
|
687
|
-
"options": [
|
|
687
|
+
"options": [
|
|
688
|
+
"yes",
|
|
689
|
+
"no"
|
|
690
|
+
]
|
|
688
691
|
},
|
|
689
692
|
"radioGroup": {
|
|
690
693
|
"defaultValue": null,
|
|
@@ -1177,7 +1180,10 @@
|
|
|
1177
1180
|
"control": {
|
|
1178
1181
|
"type": "radio"
|
|
1179
1182
|
},
|
|
1180
|
-
"options": [
|
|
1183
|
+
"options": [
|
|
1184
|
+
"on",
|
|
1185
|
+
"off"
|
|
1186
|
+
]
|
|
1181
1187
|
},
|
|
1182
1188
|
"inputMode": {
|
|
1183
1189
|
"defaultValue": null,
|
|
@@ -1340,7 +1346,12 @@
|
|
|
1340
1346
|
"control": {
|
|
1341
1347
|
"type": "radio"
|
|
1342
1348
|
},
|
|
1343
|
-
"options": [
|
|
1349
|
+
"options": [
|
|
1350
|
+
"list",
|
|
1351
|
+
"none",
|
|
1352
|
+
"inline",
|
|
1353
|
+
"both"
|
|
1354
|
+
]
|
|
1344
1355
|
},
|
|
1345
1356
|
"aria-busy": {
|
|
1346
1357
|
"defaultValue": null,
|
|
@@ -1604,7 +1615,14 @@
|
|
|
1604
1615
|
"control": {
|
|
1605
1616
|
"type": "select"
|
|
1606
1617
|
},
|
|
1607
|
-
"options": [
|
|
1618
|
+
"options": [
|
|
1619
|
+
"link",
|
|
1620
|
+
"none",
|
|
1621
|
+
"copy",
|
|
1622
|
+
"execute",
|
|
1623
|
+
"move",
|
|
1624
|
+
"popup"
|
|
1625
|
+
]
|
|
1608
1626
|
},
|
|
1609
1627
|
"aria-errormessage": {
|
|
1610
1628
|
"defaultValue": null,
|
|
@@ -1881,7 +1899,11 @@
|
|
|
1881
1899
|
"control": {
|
|
1882
1900
|
"type": "radio"
|
|
1883
1901
|
},
|
|
1884
|
-
"options": [
|
|
1902
|
+
"options": [
|
|
1903
|
+
"off",
|
|
1904
|
+
"assertive",
|
|
1905
|
+
"polite"
|
|
1906
|
+
]
|
|
1885
1907
|
},
|
|
1886
1908
|
"aria-modal": {
|
|
1887
1909
|
"defaultValue": null,
|
|
@@ -1979,7 +2001,10 @@
|
|
|
1979
2001
|
"control": {
|
|
1980
2002
|
"type": "radio"
|
|
1981
2003
|
},
|
|
1982
|
-
"options": [
|
|
2004
|
+
"options": [
|
|
2005
|
+
"horizontal",
|
|
2006
|
+
"vertical"
|
|
2007
|
+
]
|
|
1983
2008
|
},
|
|
1984
2009
|
"aria-owns": {
|
|
1985
2010
|
"defaultValue": null,
|
|
@@ -2348,7 +2373,12 @@
|
|
|
2348
2373
|
"control": {
|
|
2349
2374
|
"type": "radio"
|
|
2350
2375
|
},
|
|
2351
|
-
"options": [
|
|
2376
|
+
"options": [
|
|
2377
|
+
"none",
|
|
2378
|
+
"ascending",
|
|
2379
|
+
"descending",
|
|
2380
|
+
"other"
|
|
2381
|
+
]
|
|
2352
2382
|
},
|
|
2353
2383
|
"aria-valuemax": {
|
|
2354
2384
|
"defaultValue": null,
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
-
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Pick<
|
|
3
|
+
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "href"> & {
|
|
4
|
+
href?: string | undefined;
|
|
5
|
+
}, "type" | "style" | "id" | "color" | "translate" | "hidden" | "media" | "children" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>>;
|
|
4
6
|
export default _default;
|
|
5
|
-
export declare const Link: ComponentStory<React.ForwardRefExoticComponent<Pick<
|
|
7
|
+
export declare const Link: ComponentStory<React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "href"> & {
|
|
8
|
+
href?: string | undefined;
|
|
9
|
+
}, "type" | "style" | "id" | "color" | "translate" | "hidden" | "media" | "children" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>>;
|
|
6
10
|
//# sourceMappingURL=link.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.stories.d.ts","sourceRoot":"","sources":["../../src/components/link.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC
|
|
1
|
+
{"version":3,"file":"link.stories.d.ts","sourceRoot":"","sources":["../../src/components/link.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;;;AAItE,wBAIyC;AAMzC,eAAO,MAAM,IAAI;;woJAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.ws.d.ts","sourceRoot":"","sources":["../../src/components/link.ws.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAcxD,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,OAAO,IAAI,CAUtC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const icons_1 = require("@webstudio-is/icons");
|
|
4
|
+
const link_1 = require("./link");
|
|
5
|
+
const defaultStyle = {
|
|
6
|
+
minHeight: {
|
|
7
|
+
type: "unit",
|
|
8
|
+
unit: "em",
|
|
9
|
+
value: 1,
|
|
10
|
+
},
|
|
11
|
+
display: {
|
|
12
|
+
type: "keyword",
|
|
13
|
+
value: "inline-block",
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const meta = {
|
|
17
|
+
Icon: icons_1.Link2Icon,
|
|
18
|
+
Component: link_1.Link,
|
|
19
|
+
defaultStyle,
|
|
20
|
+
canAcceptChildren: false,
|
|
21
|
+
isContentEditable: true,
|
|
22
|
+
isInlineOnly: false,
|
|
23
|
+
isListed: true,
|
|
24
|
+
label: "Link",
|
|
25
|
+
children: ["Link text you can edit"],
|
|
26
|
+
};
|
|
27
|
+
exports.default = meta;
|
package/lib/components/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/components/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/components/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC"}
|
package/lib/components/meta.js
CHANGED
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TextBlock = exports.Paragraph = exports.Link = exports.Italic = exports.Input = exports.Heading = exports.Form = exports.Box = exports.Bold = exports.Button = void 0;
|
|
6
|
+
exports.TextBlock = exports.Paragraph = exports.Link = exports.Italic = exports.Input = exports.Heading = exports.Form = exports.Box = exports.Bold = exports.Button = exports.Body = void 0;
|
|
7
|
+
var body_stories_1 = require("./body.stories");
|
|
8
|
+
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return __importDefault(body_stories_1).default; } });
|
|
7
9
|
var button_stories_1 = require("./button.stories");
|
|
8
10
|
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(button_stories_1).default; } });
|
|
9
11
|
var bold_stories_1 = require("./bold.stories");
|
|
@@ -447,7 +447,10 @@
|
|
|
447
447
|
"control": {
|
|
448
448
|
"type": "radio"
|
|
449
449
|
},
|
|
450
|
-
"options": [
|
|
450
|
+
"options": [
|
|
451
|
+
"yes",
|
|
452
|
+
"no"
|
|
453
|
+
]
|
|
451
454
|
},
|
|
452
455
|
"radioGroup": {
|
|
453
456
|
"defaultValue": null,
|
|
@@ -940,7 +943,10 @@
|
|
|
940
943
|
"control": {
|
|
941
944
|
"type": "radio"
|
|
942
945
|
},
|
|
943
|
-
"options": [
|
|
946
|
+
"options": [
|
|
947
|
+
"on",
|
|
948
|
+
"off"
|
|
949
|
+
]
|
|
944
950
|
},
|
|
945
951
|
"inputMode": {
|
|
946
952
|
"defaultValue": null,
|
|
@@ -1103,7 +1109,12 @@
|
|
|
1103
1109
|
"control": {
|
|
1104
1110
|
"type": "radio"
|
|
1105
1111
|
},
|
|
1106
|
-
"options": [
|
|
1112
|
+
"options": [
|
|
1113
|
+
"list",
|
|
1114
|
+
"none",
|
|
1115
|
+
"inline",
|
|
1116
|
+
"both"
|
|
1117
|
+
]
|
|
1107
1118
|
},
|
|
1108
1119
|
"aria-busy": {
|
|
1109
1120
|
"defaultValue": null,
|
|
@@ -1367,7 +1378,14 @@
|
|
|
1367
1378
|
"control": {
|
|
1368
1379
|
"type": "select"
|
|
1369
1380
|
},
|
|
1370
|
-
"options": [
|
|
1381
|
+
"options": [
|
|
1382
|
+
"link",
|
|
1383
|
+
"none",
|
|
1384
|
+
"copy",
|
|
1385
|
+
"execute",
|
|
1386
|
+
"move",
|
|
1387
|
+
"popup"
|
|
1388
|
+
]
|
|
1371
1389
|
},
|
|
1372
1390
|
"aria-errormessage": {
|
|
1373
1391
|
"defaultValue": null,
|
|
@@ -1644,7 +1662,11 @@
|
|
|
1644
1662
|
"control": {
|
|
1645
1663
|
"type": "radio"
|
|
1646
1664
|
},
|
|
1647
|
-
"options": [
|
|
1665
|
+
"options": [
|
|
1666
|
+
"off",
|
|
1667
|
+
"assertive",
|
|
1668
|
+
"polite"
|
|
1669
|
+
]
|
|
1648
1670
|
},
|
|
1649
1671
|
"aria-modal": {
|
|
1650
1672
|
"defaultValue": null,
|
|
@@ -1742,7 +1764,10 @@
|
|
|
1742
1764
|
"control": {
|
|
1743
1765
|
"type": "radio"
|
|
1744
1766
|
},
|
|
1745
|
-
"options": [
|
|
1767
|
+
"options": [
|
|
1768
|
+
"horizontal",
|
|
1769
|
+
"vertical"
|
|
1770
|
+
]
|
|
1746
1771
|
},
|
|
1747
1772
|
"aria-owns": {
|
|
1748
1773
|
"defaultValue": null,
|
|
@@ -2111,7 +2136,12 @@
|
|
|
2111
2136
|
"control": {
|
|
2112
2137
|
"type": "radio"
|
|
2113
2138
|
},
|
|
2114
|
-
"options": [
|
|
2139
|
+
"options": [
|
|
2140
|
+
"none",
|
|
2141
|
+
"ascending",
|
|
2142
|
+
"descending",
|
|
2143
|
+
"other"
|
|
2144
|
+
]
|
|
2115
2145
|
},
|
|
2116
2146
|
"aria-valuemax": {
|
|
2117
2147
|
"defaultValue": null,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph.ws.d.ts","sourceRoot":"","sources":["../../src/components/paragraph.ws.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,OAAO,SAAS,CAS3C,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const icons_1 = require("@webstudio-is/icons");
|
|
4
|
+
const paragraph_1 = require("./paragraph");
|
|
5
|
+
const meta = {
|
|
6
|
+
Icon: icons_1.TextAlignLeftIcon,
|
|
7
|
+
Component: paragraph_1.Paragraph,
|
|
8
|
+
canAcceptChildren: false,
|
|
9
|
+
isContentEditable: true,
|
|
10
|
+
isInlineOnly: false,
|
|
11
|
+
isListed: true,
|
|
12
|
+
label: "Paragraph",
|
|
13
|
+
children: ["Pragraph you can edit"],
|
|
14
|
+
};
|
|
15
|
+
exports.default = meta;
|
|
@@ -447,7 +447,10 @@
|
|
|
447
447
|
"control": {
|
|
448
448
|
"type": "radio"
|
|
449
449
|
},
|
|
450
|
-
"options": [
|
|
450
|
+
"options": [
|
|
451
|
+
"yes",
|
|
452
|
+
"no"
|
|
453
|
+
]
|
|
451
454
|
},
|
|
452
455
|
"radioGroup": {
|
|
453
456
|
"defaultValue": null,
|
|
@@ -940,7 +943,10 @@
|
|
|
940
943
|
"control": {
|
|
941
944
|
"type": "radio"
|
|
942
945
|
},
|
|
943
|
-
"options": [
|
|
946
|
+
"options": [
|
|
947
|
+
"on",
|
|
948
|
+
"off"
|
|
949
|
+
]
|
|
944
950
|
},
|
|
945
951
|
"inputMode": {
|
|
946
952
|
"defaultValue": null,
|
|
@@ -1103,7 +1109,12 @@
|
|
|
1103
1109
|
"control": {
|
|
1104
1110
|
"type": "radio"
|
|
1105
1111
|
},
|
|
1106
|
-
"options": [
|
|
1112
|
+
"options": [
|
|
1113
|
+
"list",
|
|
1114
|
+
"none",
|
|
1115
|
+
"inline",
|
|
1116
|
+
"both"
|
|
1117
|
+
]
|
|
1107
1118
|
},
|
|
1108
1119
|
"aria-busy": {
|
|
1109
1120
|
"defaultValue": null,
|
|
@@ -1367,7 +1378,14 @@
|
|
|
1367
1378
|
"control": {
|
|
1368
1379
|
"type": "select"
|
|
1369
1380
|
},
|
|
1370
|
-
"options": [
|
|
1381
|
+
"options": [
|
|
1382
|
+
"link",
|
|
1383
|
+
"none",
|
|
1384
|
+
"copy",
|
|
1385
|
+
"execute",
|
|
1386
|
+
"move",
|
|
1387
|
+
"popup"
|
|
1388
|
+
]
|
|
1371
1389
|
},
|
|
1372
1390
|
"aria-errormessage": {
|
|
1373
1391
|
"defaultValue": null,
|
|
@@ -1644,7 +1662,11 @@
|
|
|
1644
1662
|
"control": {
|
|
1645
1663
|
"type": "radio"
|
|
1646
1664
|
},
|
|
1647
|
-
"options": [
|
|
1665
|
+
"options": [
|
|
1666
|
+
"off",
|
|
1667
|
+
"assertive",
|
|
1668
|
+
"polite"
|
|
1669
|
+
]
|
|
1648
1670
|
},
|
|
1649
1671
|
"aria-modal": {
|
|
1650
1672
|
"defaultValue": null,
|
|
@@ -1742,7 +1764,10 @@
|
|
|
1742
1764
|
"control": {
|
|
1743
1765
|
"type": "radio"
|
|
1744
1766
|
},
|
|
1745
|
-
"options": [
|
|
1767
|
+
"options": [
|
|
1768
|
+
"horizontal",
|
|
1769
|
+
"vertical"
|
|
1770
|
+
]
|
|
1746
1771
|
},
|
|
1747
1772
|
"aria-owns": {
|
|
1748
1773
|
"defaultValue": null,
|
|
@@ -2111,7 +2136,12 @@
|
|
|
2111
2136
|
"control": {
|
|
2112
2137
|
"type": "radio"
|
|
2113
2138
|
},
|
|
2114
|
-
"options": [
|
|
2139
|
+
"options": [
|
|
2140
|
+
"none",
|
|
2141
|
+
"ascending",
|
|
2142
|
+
"descending",
|
|
2143
|
+
"other"
|
|
2144
|
+
]
|
|
2115
2145
|
},
|
|
2116
2146
|
"aria-valuemax": {
|
|
2117
2147
|
"defaultValue": null,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-block.ws.d.ts","sourceRoot":"","sources":["../../src/components/text-block.ws.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzC,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,OAAO,SAAS,CAU3C,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const icons_1 = require("@webstudio-is/icons");
|
|
4
|
+
const text_block_1 = require("./text-block");
|
|
5
|
+
const defaultStyle = {
|
|
6
|
+
minHeight: {
|
|
7
|
+
type: "unit",
|
|
8
|
+
unit: "em",
|
|
9
|
+
value: 1,
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
const meta = {
|
|
13
|
+
Icon: icons_1.TextIcon,
|
|
14
|
+
Component: text_block_1.TextBlock,
|
|
15
|
+
defaultStyle,
|
|
16
|
+
canAcceptChildren: false,
|
|
17
|
+
isContentEditable: true,
|
|
18
|
+
isInlineOnly: false,
|
|
19
|
+
isListed: true,
|
|
20
|
+
label: "Text Block",
|
|
21
|
+
children: ["Block of text you can edit"],
|
|
22
|
+
};
|
|
23
|
+
exports.default = meta;
|
package/lib/css/categories.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const categories: {
|
|
2
2
|
layout: {
|
|
3
3
|
label: string;
|
|
4
|
-
properties: readonly ["display", "flexDirection", "flexWrap", "alignItems", "justifyContent", "
|
|
4
|
+
properties: readonly ["display", "flexDirection", "flexWrap", "alignItems", "justifyContent", "alignContent", "placeContent", "justifyItems", "rowGap", "columnGap", "gridAutoFlow", "gridAutoRows", "gridAutoColumns", "gridTemplateColumns", "gridTemplateRows", "gridTemplateAreas"];
|
|
5
5
|
moreFrom: string;
|
|
6
6
|
};
|
|
7
7
|
flexChild: {
|
package/lib/css/categories.js
CHANGED
|
@@ -34,7 +34,7 @@ const getBrowserStyle = (element) => {
|
|
|
34
34
|
for (knownProperty in properties_1.properties) {
|
|
35
35
|
if (knownProperty in computedStyle === false)
|
|
36
36
|
continue;
|
|
37
|
-
//
|
|
37
|
+
// Typescript doesn't know we can access CSSStyleDeclaration properties by keys
|
|
38
38
|
const computedValue = computedStyle[knownProperty];
|
|
39
39
|
browserStyle[knownProperty] = parseValue(knownProperty, computedValue);
|
|
40
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyword-values.d.ts","sourceRoot":"","sources":["../../src/css/keyword-values.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"keyword-values.d.ts","sourceRoot":"","sources":["../../src/css/keyword-values.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAusOhB,CAAC"}
|