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.
- package/dist/{src/lib → lib}/Draggable/Draggable.d.ts +1 -1
- package/dist/{src/lib → lib}/GridLayoutEditor/ResponsiveGridLayout.d.ts +1 -1
- package/dist/{src/lib → lib}/Resizable/ResizableBox.d.ts +1 -1
- package/dist/{src/lib → lib}/Resizable/ResizableBox.js +2 -2
- package/dist/{src/lib → lib}/components/WidthProvider.d.ts +1 -1
- package/package.json +1 -5
- package/dist/bin/cli.d.ts +0 -2
- package/dist/bin/cli.js +0 -6
- package/dist/build/static/js/787.a1754c4c.chunk.d.ts +0 -0
- package/dist/build/static/js/787.a1754c4c.chunk.js +0 -30
- package/dist/build/static/js/main.0319b2d6.d.ts +0 -0
- package/dist/build/static/js/main.0319b2d6.js +0 -11345
- package/dist/src/App.d.ts +0 -2
- package/dist/src/App.js +0 -6
- package/dist/src/examples/Example.d.ts +0 -7
- package/dist/src/examples/Example.js +0 -28
- package/dist/src/examples/ExampleMatcher.d.ts +0 -6
- package/dist/src/examples/ExampleMatcher.js +0 -13
- package/dist/src/examples/ReactGridLayout/ReactGridLayoutShowcase01.d.ts +0 -3
- package/dist/src/examples/ReactGridLayout/ReactGridLayoutShowcase01.js +0 -53
- package/dist/src/examples/ReactGridLayout/index.d.ts +0 -1
- package/dist/src/examples/ReactGridLayout/index.js +0 -1
- package/dist/src/examples/ResponsiveGridLayout/ResponsiveGridLayoutShowcase01.d.ts +0 -2
- package/dist/src/examples/ResponsiveGridLayout/ResponsiveGridLayoutShowcase01.js +0 -73
- package/dist/src/examples/ResponsiveGridLayout/index.d.ts +0 -1
- package/dist/src/examples/ResponsiveGridLayout/index.js +0 -1
- package/dist/src/examples/components/GridBox.d.ts +0 -7
- package/dist/src/examples/components/GridBox.js +0 -13
- package/dist/src/examples/components/Icon.d.ts +0 -6
- package/dist/src/examples/components/Icon.js +0 -13
- package/dist/src/examples/components/Iframe.d.ts +0 -5
- package/dist/src/examples/components/Iframe.js +0 -13
- package/dist/src/examples/components/Img.d.ts +0 -6
- package/dist/src/examples/components/Img.js +0 -13
- package/dist/src/examples/components/SampleMap.d.ts +0 -4
- package/dist/src/examples/components/SampleMap.js +0 -29
- package/dist/src/examples/components/Text.d.ts +0 -7
- package/dist/src/examples/components/Text.js +0 -13
- package/dist/src/examples/components/TextWIcon.d.ts +0 -10
- package/dist/src/examples/components/TextWIcon.js +0 -22
- package/dist/src/examples/components/Video.d.ts +0 -4
- package/dist/src/examples/components/Video.js +0 -13
- package/dist/src/examples/components/WhatsAppDesign.d.ts +0 -30
- package/dist/src/examples/components/WhatsAppDesign.js +0 -294
- package/dist/src/examples/components/WhatsAppMap.d.ts +0 -4
- package/dist/src/examples/components/WhatsAppMap.js +0 -6
- package/dist/src/examples/components/assets/index.d.ts +0 -4
- package/dist/src/examples/components/assets/index.js +0 -4
- package/dist/src/examples/index.d.ts +0 -1
- package/dist/src/examples/index.js +0 -1
- package/dist/src/examples/utils.d.ts +0 -18
- package/dist/src/examples/utils.js +0 -199
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -12
- package/dist/src/reportWebVitals.d.ts +0 -3
- package/dist/src/reportWebVitals.js +0 -13
- package/dist/src/setupTests.d.ts +0 -1
- package/dist/src/setupTests.js +0 -5
- package/dist/webpack.config.d.ts +0 -19
- package/dist/webpack.config.js +0 -25
- /package/dist/{src/external-lib → external-lib}/classnames/index.d.ts +0 -0
- /package/dist/{src/external-lib → external-lib}/classnames/index.js +0 -0
- /package/dist/{src/external-lib → external-lib}/lodash.isEqual/index.d.ts +0 -0
- /package/dist/{src/external-lib → external-lib}/lodash.isEqual/index.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/Draggable.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/DraggableCore.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/DraggableCore.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/constants.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/constants.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/index.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/index.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/types.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/types.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/domHelpers.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/domHelpers.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/getPrefix.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/getPrefix.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/positionHelpers.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/positionHelpers.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/types.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/types.js +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/validationHelpers.d.ts +0 -0
- /package/dist/{src/lib → lib}/Draggable/utils/validationHelpers.js +0 -0
- /package/dist/{src/lib → lib}/GridItem/GridItem.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridItem/GridItem.js +0 -0
- /package/dist/{src/lib → lib}/GridItem/index.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridItem/index.js +0 -0
- /package/dist/{src/lib → lib}/GridItem/types.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridItem/types.js +0 -0
- /package/dist/{src/lib → lib}/GridItem/utils/calculateUtils.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridItem/utils/calculateUtils.js +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/ReactGridLayout.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/ReactGridLayout.js +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/ResponsiveGridLayout.js +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/index.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/index.js +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/types.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/types.js +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/utils/renderHelpers.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/utils/renderHelpers.js +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/utils/responsiveUtils.d.ts +0 -0
- /package/dist/{src/lib → lib}/GridLayoutEditor/utils/responsiveUtils.js +0 -0
- /package/dist/{src/lib → lib}/Resizable/Resizable.d.ts +0 -0
- /package/dist/{src/lib → lib}/Resizable/Resizable.js +0 -0
- /package/dist/{src/lib → lib}/Resizable/index.d.ts +0 -0
- /package/dist/{src/lib → lib}/Resizable/index.js +0 -0
- /package/dist/{src/lib → lib}/Resizable/types.d.ts +0 -0
- /package/dist/{src/lib → lib}/Resizable/types.js +0 -0
- /package/dist/{src/lib → lib}/Resizable/utils/cloneElement.d.ts +0 -0
- /package/dist/{src/lib → lib}/Resizable/utils/cloneElement.js +0 -0
- /package/dist/{src/lib → lib}/components/WidthProvider.js +0 -0
- /package/dist/{src/lib → lib}/components/index.d.ts +0 -0
- /package/dist/{src/lib → lib}/components/index.js +0 -0
- /package/dist/{src/lib → lib}/components/types.d.ts +0 -0
- /package/dist/{src/lib → lib}/components/types.js +0 -0
- /package/dist/{src/lib → lib}/index.d.ts +0 -0
- /package/dist/{src/lib → lib}/index.js +0 -0
- /package/dist/{src/lib → lib}/types.d.ts +0 -0
- /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>) =>
|
|
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>) =>
|
|
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>) =>
|
|
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
|
|
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(
|
|
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>) =>
|
|
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.
|
|
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
package/dist/bin/cli.js
DELETED
|
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
|