@raketa-builder/support 1.3.4 → 1.3.5

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.
@@ -0,0 +1,55 @@
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.js CHANGED
@@ -1,11 +1,17 @@
1
- import './chunk-ORMEWXMH.js';
2
- import MarkdownIt from 'markdown-it';
3
- import markdownItAttrs from 'markdown-it-attrs';
1
+ 'use strict';
4
2
 
5
- const parser = new MarkdownIt({
3
+ var MarkdownIt = require('markdown-it');
4
+ var markdownItAttrs = require('markdown-it-attrs');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var MarkdownIt__default = /*#__PURE__*/_interopDefault(MarkdownIt);
9
+ var markdownItAttrs__default = /*#__PURE__*/_interopDefault(markdownItAttrs);
10
+
11
+ const parser = new MarkdownIt__default.default({
6
12
  html: true,
7
13
  breaks: true
8
- }).use(markdownItAttrs, {
14
+ }).use(markdownItAttrs__default.default, {
9
15
  // optional, these are default options
10
16
  leftDelimiter: "{",
11
17
  rightDelimiter: "}",
@@ -18,4 +24,4 @@ const toHTML = (string, inline = false) => {
18
24
  };
19
25
  var toHTML_default = toHTML;
20
26
 
21
- export { toHTML_default as default };
27
+ module.exports = toHTML_default;
@@ -0,0 +1,21 @@
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 };
package/package.json CHANGED
@@ -1,14 +1,30 @@
1
1
  {
2
2
  "name": "@raketa-builder/support",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
+ "type": "module",
4
5
  "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
5
7
  "sideEffects": false,
6
8
  "exports": {
7
9
  ".": {
8
- "import": "./dist/index.js"
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ }
9
18
  },
10
19
  "./*": {
11
- "import": "./dist/*.js"
20
+ "import": {
21
+ "types": "./dist/*.d.ts",
22
+ "default": "./dist/*.mjs"
23
+ },
24
+ "require": {
25
+ "types": "./dist/*.d.ts",
26
+ "default": "./dist/*.js"
27
+ }
12
28
  }
13
29
  },
14
30
  "files": [
File without changes