@raketa-builder/support 1.3.5 → 1.3.8

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.
@@ -1,17 +0,0 @@
1
- import './chunk-FWCSY2DS.mjs';
2
-
3
- function isImagePresent(value) {
4
- if (!value) {
5
- return false;
6
- }
7
- if (value.hasOwnProperty("image")) {
8
- return !!value.image;
9
- }
10
- if (typeof value === "string" && value) {
11
- return true;
12
- }
13
- return !!value;
14
- }
15
- var isImagePresent_default = isImagePresent;
16
-
17
- export { isImagePresent_default as default };
@@ -1,55 +0,0 @@
1
- import '../chunk-FWCSY2DS.mjs';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
-
4
- const IconCopy = () => /* @__PURE__ */ jsxs(
5
- "svg",
6
- {
7
- xmlns: "http://www.w3.org/2000/svg",
8
- width: "16",
9
- height: "16",
10
- viewBox: "0 0 16 16",
11
- fill: "none",
12
- children: [
13
- /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_2312_498)", children: [
14
- /* @__PURE__ */ jsx(
15
- "path",
16
- {
17
- d: "M13.3334 5.33331H6.66671C5.93033 5.33331 5.33337 5.93027 5.33337 6.66665V13.3333C5.33337 14.0697 5.93033 14.6666 6.66671 14.6666H13.3334C14.0698 14.6666 14.6667 14.0697 14.6667 13.3333V6.66665C14.6667 5.93027 14.0698 5.33331 13.3334 5.33331Z",
18
- stroke: "white",
19
- strokeWidth: "2",
20
- strokeLinecap: "round",
21
- strokeLinejoin: "round"
22
- }
23
- ),
24
- /* @__PURE__ */ jsx(
25
- "path",
26
- {
27
- d: "M2.66671 10.6666C1.93337 10.6666 1.33337 10.0666 1.33337 9.33331V2.66665C1.33337 1.93331 1.93337 1.33331 2.66671 1.33331H9.33337C10.0667 1.33331 10.6667 1.93331 10.6667 2.66665",
28
- stroke: "white",
29
- strokeWidth: "2",
30
- strokeLinecap: "round",
31
- strokeLinejoin: "round"
32
- }
33
- )
34
- ] }),
35
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_2312_498", children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "white" }) }) })
36
- ]
37
- }
38
- );
39
- const SelectedWidgetsToolbar = ({ length, onCopy }) => /* @__PURE__ */ jsx("div", { className: "r-selected-widgets-toolbar", children: /* @__PURE__ */ jsx("div", { className: "r-toolbar-inner", children: /* @__PURE__ */ jsxs(
40
- "button",
41
- {
42
- type: "button",
43
- className: "r-button-reset r-toolbar-button",
44
- onClick: onCopy,
45
- children: [
46
- /* @__PURE__ */ jsx(IconCopy, {}),
47
- "Copy selected (",
48
- length,
49
- ")"
50
- ]
51
- }
52
- ) }) });
53
- var SelectedWidgetsToolbar_default = SelectedWidgetsToolbar;
54
-
55
- export { SelectedWidgetsToolbar_default as default };
package/dist/toHTML.mjs DELETED
@@ -1,21 +0,0 @@
1
- import './chunk-FWCSY2DS.mjs';
2
- import MarkdownIt from 'markdown-it';
3
- import markdownItAttrs from 'markdown-it-attrs';
4
-
5
- const parser = new MarkdownIt({
6
- html: true,
7
- breaks: true
8
- }).use(markdownItAttrs, {
9
- // optional, these are default options
10
- leftDelimiter: "{",
11
- rightDelimiter: "}",
12
- allowedAttributes: []
13
- // empty array = all attributes are allowed
14
- });
15
- const toHTML = (string, inline = false) => {
16
- if (!string) return;
17
- return inline ? parser.renderInline(string) : parser.render(string);
18
- };
19
- var toHTML_default = toHTML;
20
-
21
- export { toHTML_default as default };
File without changes