publ-echo 0.0.17 → 0.0.19

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.
Files changed (119) hide show
  1. package/dist/{src/lib → lib}/Draggable/Draggable.d.ts +1 -1
  2. package/dist/{src/lib → lib}/GridLayoutEditor/ResponsiveGridLayout.d.ts +1 -1
  3. package/dist/{src/lib → lib}/Resizable/ResizableBox.d.ts +1 -1
  4. package/dist/{src/lib → lib}/Resizable/ResizableBox.js +2 -2
  5. package/dist/{src/lib → lib}/components/WidthProvider.d.ts +1 -1
  6. package/package.json +1 -5
  7. package/dist/bin/cli.d.ts +0 -2
  8. package/dist/bin/cli.js +0 -6
  9. package/dist/build/static/js/787.a1754c4c.chunk.d.ts +0 -0
  10. package/dist/build/static/js/787.a1754c4c.chunk.js +0 -30
  11. package/dist/build/static/js/main.0319b2d6.d.ts +0 -0
  12. package/dist/build/static/js/main.0319b2d6.js +0 -11345
  13. package/dist/src/App.d.ts +0 -2
  14. package/dist/src/App.js +0 -6
  15. package/dist/src/examples/Example.d.ts +0 -7
  16. package/dist/src/examples/Example.js +0 -28
  17. package/dist/src/examples/ExampleMatcher.d.ts +0 -6
  18. package/dist/src/examples/ExampleMatcher.js +0 -13
  19. package/dist/src/examples/ReactGridLayout/ReactGridLayoutShowcase01.d.ts +0 -3
  20. package/dist/src/examples/ReactGridLayout/ReactGridLayoutShowcase01.js +0 -53
  21. package/dist/src/examples/ReactGridLayout/index.d.ts +0 -1
  22. package/dist/src/examples/ReactGridLayout/index.js +0 -1
  23. package/dist/src/examples/ResponsiveGridLayout/ResponsiveGridLayoutShowcase01.d.ts +0 -2
  24. package/dist/src/examples/ResponsiveGridLayout/ResponsiveGridLayoutShowcase01.js +0 -73
  25. package/dist/src/examples/ResponsiveGridLayout/index.d.ts +0 -1
  26. package/dist/src/examples/ResponsiveGridLayout/index.js +0 -1
  27. package/dist/src/examples/components/GridBox.d.ts +0 -7
  28. package/dist/src/examples/components/GridBox.js +0 -13
  29. package/dist/src/examples/components/Icon.d.ts +0 -6
  30. package/dist/src/examples/components/Icon.js +0 -13
  31. package/dist/src/examples/components/Iframe.d.ts +0 -5
  32. package/dist/src/examples/components/Iframe.js +0 -13
  33. package/dist/src/examples/components/Img.d.ts +0 -6
  34. package/dist/src/examples/components/Img.js +0 -13
  35. package/dist/src/examples/components/SampleMap.d.ts +0 -4
  36. package/dist/src/examples/components/SampleMap.js +0 -29
  37. package/dist/src/examples/components/Text.d.ts +0 -7
  38. package/dist/src/examples/components/Text.js +0 -13
  39. package/dist/src/examples/components/TextWIcon.d.ts +0 -10
  40. package/dist/src/examples/components/TextWIcon.js +0 -22
  41. package/dist/src/examples/components/Video.d.ts +0 -4
  42. package/dist/src/examples/components/Video.js +0 -13
  43. package/dist/src/examples/components/WhatsAppDesign.d.ts +0 -30
  44. package/dist/src/examples/components/WhatsAppDesign.js +0 -294
  45. package/dist/src/examples/components/WhatsAppMap.d.ts +0 -4
  46. package/dist/src/examples/components/WhatsAppMap.js +0 -6
  47. package/dist/src/examples/components/assets/index.d.ts +0 -4
  48. package/dist/src/examples/components/assets/index.js +0 -4
  49. package/dist/src/examples/index.d.ts +0 -1
  50. package/dist/src/examples/index.js +0 -1
  51. package/dist/src/examples/utils.d.ts +0 -18
  52. package/dist/src/examples/utils.js +0 -199
  53. package/dist/src/index.d.ts +0 -1
  54. package/dist/src/index.js +0 -12
  55. package/dist/src/reportWebVitals.d.ts +0 -3
  56. package/dist/src/reportWebVitals.js +0 -13
  57. package/dist/src/setupTests.d.ts +0 -1
  58. package/dist/src/setupTests.js +0 -5
  59. package/dist/webpack.config.d.ts +0 -19
  60. package/dist/webpack.config.js +0 -25
  61. /package/dist/{src/external-lib → external-lib}/classnames/index.d.ts +0 -0
  62. /package/dist/{src/external-lib → external-lib}/classnames/index.js +0 -0
  63. /package/dist/{src/external-lib → external-lib}/lodash.isEqual/index.d.ts +0 -0
  64. /package/dist/{src/external-lib → external-lib}/lodash.isEqual/index.js +0 -0
  65. /package/dist/{src/lib → lib}/Draggable/Draggable.js +0 -0
  66. /package/dist/{src/lib → lib}/Draggable/DraggableCore.d.ts +0 -0
  67. /package/dist/{src/lib → lib}/Draggable/DraggableCore.js +0 -0
  68. /package/dist/{src/lib → lib}/Draggable/constants.d.ts +0 -0
  69. /package/dist/{src/lib → lib}/Draggable/constants.js +0 -0
  70. /package/dist/{src/lib → lib}/Draggable/index.d.ts +0 -0
  71. /package/dist/{src/lib → lib}/Draggable/index.js +0 -0
  72. /package/dist/{src/lib → lib}/Draggable/types.d.ts +0 -0
  73. /package/dist/{src/lib → lib}/Draggable/types.js +0 -0
  74. /package/dist/{src/lib → lib}/Draggable/utils/domHelpers.d.ts +0 -0
  75. /package/dist/{src/lib → lib}/Draggable/utils/domHelpers.js +0 -0
  76. /package/dist/{src/lib → lib}/Draggable/utils/getPrefix.d.ts +0 -0
  77. /package/dist/{src/lib → lib}/Draggable/utils/getPrefix.js +0 -0
  78. /package/dist/{src/lib → lib}/Draggable/utils/positionHelpers.d.ts +0 -0
  79. /package/dist/{src/lib → lib}/Draggable/utils/positionHelpers.js +0 -0
  80. /package/dist/{src/lib → lib}/Draggable/utils/types.d.ts +0 -0
  81. /package/dist/{src/lib → lib}/Draggable/utils/types.js +0 -0
  82. /package/dist/{src/lib → lib}/Draggable/utils/validationHelpers.d.ts +0 -0
  83. /package/dist/{src/lib → lib}/Draggable/utils/validationHelpers.js +0 -0
  84. /package/dist/{src/lib → lib}/GridItem/GridItem.d.ts +0 -0
  85. /package/dist/{src/lib → lib}/GridItem/GridItem.js +0 -0
  86. /package/dist/{src/lib → lib}/GridItem/index.d.ts +0 -0
  87. /package/dist/{src/lib → lib}/GridItem/index.js +0 -0
  88. /package/dist/{src/lib → lib}/GridItem/types.d.ts +0 -0
  89. /package/dist/{src/lib → lib}/GridItem/types.js +0 -0
  90. /package/dist/{src/lib → lib}/GridItem/utils/calculateUtils.d.ts +0 -0
  91. /package/dist/{src/lib → lib}/GridItem/utils/calculateUtils.js +0 -0
  92. /package/dist/{src/lib → lib}/GridLayoutEditor/ReactGridLayout.d.ts +0 -0
  93. /package/dist/{src/lib → lib}/GridLayoutEditor/ReactGridLayout.js +0 -0
  94. /package/dist/{src/lib → lib}/GridLayoutEditor/ResponsiveGridLayout.js +0 -0
  95. /package/dist/{src/lib → lib}/GridLayoutEditor/index.d.ts +0 -0
  96. /package/dist/{src/lib → lib}/GridLayoutEditor/index.js +0 -0
  97. /package/dist/{src/lib → lib}/GridLayoutEditor/types.d.ts +0 -0
  98. /package/dist/{src/lib → lib}/GridLayoutEditor/types.js +0 -0
  99. /package/dist/{src/lib → lib}/GridLayoutEditor/utils/renderHelpers.d.ts +0 -0
  100. /package/dist/{src/lib → lib}/GridLayoutEditor/utils/renderHelpers.js +0 -0
  101. /package/dist/{src/lib → lib}/GridLayoutEditor/utils/responsiveUtils.d.ts +0 -0
  102. /package/dist/{src/lib → lib}/GridLayoutEditor/utils/responsiveUtils.js +0 -0
  103. /package/dist/{src/lib → lib}/Resizable/Resizable.d.ts +0 -0
  104. /package/dist/{src/lib → lib}/Resizable/Resizable.js +0 -0
  105. /package/dist/{src/lib → lib}/Resizable/index.d.ts +0 -0
  106. /package/dist/{src/lib → lib}/Resizable/index.js +0 -0
  107. /package/dist/{src/lib → lib}/Resizable/types.d.ts +0 -0
  108. /package/dist/{src/lib → lib}/Resizable/types.js +0 -0
  109. /package/dist/{src/lib → lib}/Resizable/utils/cloneElement.d.ts +0 -0
  110. /package/dist/{src/lib → lib}/Resizable/utils/cloneElement.js +0 -0
  111. /package/dist/{src/lib → lib}/components/WidthProvider.js +0 -0
  112. /package/dist/{src/lib → lib}/components/index.d.ts +0 -0
  113. /package/dist/{src/lib → lib}/components/index.js +0 -0
  114. /package/dist/{src/lib → lib}/components/types.d.ts +0 -0
  115. /package/dist/{src/lib → lib}/components/types.js +0 -0
  116. /package/dist/{src/lib → lib}/index.d.ts +0 -0
  117. /package/dist/{src/lib → lib}/index.js +0 -0
  118. /package/dist/{src/lib → lib}/types.d.ts +0 -0
  119. /package/dist/{src/lib → lib}/types.js +0 -0
@@ -13,5 +13,5 @@ export type DraggableDefaultProps = {
13
13
  className?: string;
14
14
  style?: Object;
15
15
  } & DraggableCoreDefaultProps & DraggablePositionType;
16
- declare const Draggable: ({ children, axis, bounds, defaultClassName, defaultClassNameDragging, defaultClassNameDragged, defaultPosition, scale, ...props }: PropsWithChildren<DraggableDefaultProps>) => import("react/jsx-runtime").JSX.Element;
16
+ declare const Draggable: ({ children, axis, bounds, defaultClassName, defaultClassNameDragging, defaultClassNameDragged, defaultPosition, scale, ...props }: PropsWithChildren<DraggableDefaultProps>) => React.ReactElement;
17
17
  export default Draggable;
@@ -1,4 +1,4 @@
1
1
  import { ResponsiveGridLayoutProps } from "./types";
2
2
  import { PropsWithChildren } from "../types";
3
- export declare const ResponsiveGridLayout: ({ children, ...props }: PropsWithChildren<ResponsiveGridLayoutProps>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ResponsiveGridLayout: ({ children, ...props }: PropsWithChildren<ResponsiveGridLayoutProps>) => React.ReactElement;
4
4
  export default ResponsiveGridLayout;
@@ -3,5 +3,5 @@ import { PropsWithChildren } from "../Draggable/types";
3
3
  type ResizableBoxProps = ResizableProps & {
4
4
  style?: Object;
5
5
  };
6
- declare const ResizableBox: ({ children, ...props }: PropsWithChildren<ResizableBoxProps>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const ResizableBox: ({ children, ...props }: PropsWithChildren<ResizableBoxProps>) => React.ReactElement;
7
7
  export default ResizableBox;
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { useState } from "react";
25
25
  import Resizable from "./Resizable";
26
26
  var ResizableBox = function (_a) {
@@ -52,6 +52,6 @@ var ResizableBox = function (_a) {
52
52
  propsHeight: height,
53
53
  });
54
54
  }
55
- return (_jsx(_Fragment, { children: _jsx(Resizable, { axis: axis, draggableOpts: draggableOpts, handle: handle, handleSize: handleSize, height: resizableBoxState.height, lockAspectRatio: lockAspectRatio, maxConstraints: maxConstraints, minConstraints: minConstraints, onResizeStart: onResizeStart, onResize: handleResize, onResizeStop: onResizeStop, resizeHandles: resizeHandles, transformScale: transformScale, width: resizableBoxState.width, children: _jsx("div", __assign({}, restProps, { style: __assign(__assign({}, style), { width: resizableBoxState.width + "px", height: resizableBoxState.height + "px" }) })) }) }));
55
+ return (_jsx(Resizable, { axis: axis, draggableOpts: draggableOpts, handle: handle, handleSize: handleSize, height: resizableBoxState.height, lockAspectRatio: lockAspectRatio, maxConstraints: maxConstraints, minConstraints: minConstraints, onResizeStart: onResizeStart, onResize: handleResize, onResizeStop: onResizeStop, resizeHandles: resizeHandles, transformScale: transformScale, width: resizableBoxState.width, children: _jsx("div", __assign({}, restProps, { style: __assign(__assign({}, style), { width: resizableBoxState.width + "px", height: resizableBoxState.height + "px" }) })) }));
56
56
  };
57
57
  export default ResizableBox;
@@ -5,5 +5,5 @@ type ComposedProps<Config> = {
5
5
  style?: Object;
6
6
  width?: number;
7
7
  } & Config;
8
- declare const WidthProvider: <Config>(ComposedComponent: React.ComponentType<Config>) => (props: ComposedProps<Config>) => import("react/jsx-runtime").JSX.Element;
8
+ declare const WidthProvider: <Config>(ComposedComponent: React.ComponentType<Config>) => (props: ComposedProps<Config>) => React.ReactElement;
9
9
  export default WidthProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",
@@ -52,9 +52,5 @@
52
52
  "styled-components": "^5.3.10",
53
53
  "typescript": "^5.1.6",
54
54
  "web-vitals": "^2.1.4"
55
- },
56
- "peerDependencies": {
57
- "react": "^18.2.0",
58
- "react-dom": "^18.2.0"
59
55
  }
60
56
  }
package/dist/bin/cli.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
package/dist/bin/cli.js DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var program = require("commander").program;
4
- // action
5
- program.action(function (cmd) { return console.log("✓ Running!!"); });
6
- program.parse(process.argv);
File without changes
@@ -1,30 +0,0 @@
1
- "use strict";
2
- (self.webpackChunkpubl_echo = self.webpackChunkpubl_echo || []).push([[787], { 787: function (e, t, n) { n.r(t), n.d(t, { getCLS: function () { return y; }, getFCP: function () { return h; }, getFID: function () { return C; }, getLCP: function () { return P; }, getTTFB: function () { return D; } }); var i, r, a, o, u = function (e, t) { return { name: e, value: void 0 === t ? -1 : t, delta: 0, entries: [], id: "v2-".concat(Date.now(), "-").concat(Math.floor(8999999999999 * Math.random()) + 1e12) }; }, c = function (e, t) { try {
3
- if (PerformanceObserver.supportedEntryTypes.includes(e)) {
4
- if ("first-input" === e && !("PerformanceEventTiming" in self))
5
- return;
6
- var n = new PerformanceObserver((function (e) { return e.getEntries().map(t); }));
7
- return n.observe({ type: e, buffered: !0 }), n;
8
- }
9
- }
10
- catch (e) { } }, f = function (e, t) { var n = function n(i) { "pagehide" !== i.type && "hidden" !== document.visibilityState || (e(i), t && (removeEventListener("visibilitychange", n, !0), removeEventListener("pagehide", n, !0))); }; addEventListener("visibilitychange", n, !0), addEventListener("pagehide", n, !0); }, s = function (e) { addEventListener("pageshow", (function (t) { t.persisted && e(t); }), !0); }, m = function (e, t, n) { var i; return function (r) { t.value >= 0 && (r || n) && (t.delta = t.value - (i || 0), (t.delta || void 0 === i) && (i = t.value, e(t))); }; }, v = -1, p = function () { return "hidden" === document.visibilityState ? 0 : 1 / 0; }, d = function () { f((function (e) { var t = e.timeStamp; v = t; }), !0); }, l = function () { return v < 0 && (v = p(), d(), s((function () { setTimeout((function () { v = p(), d(); }), 0); }))), { get firstHiddenTime() { return v; } }; }, h = function (e, t) { var n, i = l(), r = u("FCP"), a = function (e) { "first-contentful-paint" === e.name && (f && f.disconnect(), e.startTime < i.firstHiddenTime && (r.value = e.startTime, r.entries.push(e), n(!0))); }, o = window.performance && performance.getEntriesByName && performance.getEntriesByName("first-contentful-paint")[0], f = o ? null : c("paint", a); (o || f) && (n = m(e, r, t), o && a(o), s((function (i) { r = u("FCP"), n = m(e, r, t), requestAnimationFrame((function () { requestAnimationFrame((function () { r.value = performance.now() - i.timeStamp, n(!0); })); })); }))); }, g = !1, T = -1, y = function (e, t) { g || (h((function (e) { T = e.value; })), g = !0); var n, i = function (t) { T > -1 && e(t); }, r = u("CLS", 0), a = 0, o = [], v = function (e) { if (!e.hadRecentInput) {
11
- var t = o[0], i = o[o.length - 1];
12
- a && e.startTime - i.startTime < 1e3 && e.startTime - t.startTime < 5e3 ? (a += e.value, o.push(e)) : (a = e.value, o = [e]), a > r.value && (r.value = a, r.entries = o, n());
13
- } }, p = c("layout-shift", v); p && (n = m(i, r, t), f((function () { p.takeRecords().map(v), n(!0); })), s((function () { a = 0, T = -1, r = u("CLS", 0), n = m(i, r, t); }))); }, E = { passive: !0, capture: !0 }, w = new Date, L = function (e, t) { i || (i = t, r = e, a = new Date, F(removeEventListener), S()); }, S = function () { if (r >= 0 && r < a - w) {
14
- var e = { entryType: "first-input", name: i.type, target: i.target, cancelable: i.cancelable, startTime: i.timeStamp, processingStart: i.timeStamp + r };
15
- o.forEach((function (t) { t(e); })), o = [];
16
- } }, b = function (e) { if (e.cancelable) {
17
- var t = (e.timeStamp > 1e12 ? new Date : performance.now()) - e.timeStamp;
18
- "pointerdown" == e.type ? function (e, t) { var n = function () { L(e, t), r(); }, i = function () { r(); }, r = function () { removeEventListener("pointerup", n, E), removeEventListener("pointercancel", i, E); }; addEventListener("pointerup", n, E), addEventListener("pointercancel", i, E); }(t, e) : L(t, e);
19
- } }, F = function (e) { ["mousedown", "keydown", "touchstart", "pointerdown"].forEach((function (t) { return e(t, b, E); })); }, C = function (e, t) { var n, a = l(), v = u("FID"), p = function (e) { e.startTime < a.firstHiddenTime && (v.value = e.processingStart - e.startTime, v.entries.push(e), n(!0)); }, d = c("first-input", p); n = m(e, v, t), d && f((function () { d.takeRecords().map(p), d.disconnect(); }), !0), d && s((function () { var a; v = u("FID"), n = m(e, v, t), o = [], r = -1, i = null, F(addEventListener), a = p, o.push(a), S(); })); }, k = {}, P = function (e, t) { var n, i = l(), r = u("LCP"), a = function (e) { var t = e.startTime; t < i.firstHiddenTime && (r.value = t, r.entries.push(e), n()); }, o = c("largest-contentful-paint", a); if (o) {
20
- n = m(e, r, t);
21
- var v = function () { k[r.id] || (o.takeRecords().map(a), o.disconnect(), k[r.id] = !0, n(!0)); };
22
- ["keydown", "click"].forEach((function (e) { addEventListener(e, v, { once: !0, capture: !0 }); })), f(v, !0), s((function (i) { r = u("LCP"), n = m(e, r, t), requestAnimationFrame((function () { requestAnimationFrame((function () { r.value = performance.now() - i.timeStamp, k[r.id] = !0, n(!0); })); })); }));
23
- } }, D = function (e) { var t, n = u("TTFB"); t = function () { try {
24
- var t = performance.getEntriesByType("navigation")[0] || function () { var e = performance.timing, t = { entryType: "navigation", startTime: 0 }; for (var n in e)
25
- "navigationStart" !== n && "toJSON" !== n && (t[n] = Math.max(e[n] - e.navigationStart, 0)); return t; }();
26
- if (n.value = n.delta = t.responseStart, n.value < 0 || n.value > performance.now())
27
- return;
28
- n.entries = [t], e(n);
29
- }
30
- catch (e) { } }, "complete" === document.readyState ? setTimeout(t, 0) : addEventListener("load", (function () { return setTimeout(t, 0); })); }; } }]);
File without changes