@appkit/dek-lib 0.9.0 → 0.9.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/dist/index.es.js +12 -9
- package/dist/index.umd.js +5 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -7,7 +7,8 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
import * as React$3 from "react";
|
|
8
8
|
import React__default, { useCallback, useState as useState$1, useEffect as useEffect$1, useRef as useRef$1, useLayoutEffect as useLayoutEffect$1, useMemo, useDebugValue, createContext, forwardRef, isValidElement, createElement, cloneElement, useContext, Fragment, createRef } from "react";
|
|
9
9
|
import styled, { createGlobalStyle, ThemeProvider } from "styled-components";
|
|
10
|
-
import ReactDOM from "react-dom";
|
|
10
|
+
import * as ReactDOM from "react-dom";
|
|
11
|
+
import ReactDOM__default from "react-dom";
|
|
11
12
|
function _mergeNamespaces(n4, m) {
|
|
12
13
|
for (var i4 = 0; i4 < m.length; i4++) {
|
|
13
14
|
const e4 = m[i4];
|
|
@@ -33750,7 +33751,7 @@ function EN1() {
|
|
|
33750
33751
|
return S;
|
|
33751
33752
|
}, g = (S, B, t1) => (d(S, B, "default"), t1 && d(t1, B, "default")), L = (S) => d(r4({}, "__esModule", { value: true }), S), y2 = {};
|
|
33752
33753
|
l2(y2, { a: () => d1, animated: () => d1 }), t2.exports = L(y2);
|
|
33753
|
-
var V = Kt(), k =
|
|
33754
|
+
var V = Kt(), k = ReactDOM__default, E = D1(), q = Y0(), U = /^--/;
|
|
33754
33755
|
function D(S, B) {
|
|
33755
33756
|
return B == null || typeof B == "boolean" || B === "" ? "" : typeof B == "number" && B !== 0 && !U.test(S) && !(i1.hasOwnProperty(S) && i1[S]) ? B + "px" : ("" + B).trim();
|
|
33756
33757
|
}
|
|
@@ -33829,7 +33830,7 @@ function TN1() {
|
|
|
33829
33830
|
a: () => d1,
|
|
33830
33831
|
animated: () => d1
|
|
33831
33832
|
}), t2.exports = L(y2);
|
|
33832
|
-
var V = Kt(), k =
|
|
33833
|
+
var V = Kt(), k = ReactDOM__default, E = D1(), q = Y0(), U = /^--/;
|
|
33833
33834
|
function D(S, B) {
|
|
33834
33835
|
return B == null || typeof B == "boolean" || B === "" ? "" : typeof B == "number" && B !== 0 && !U.test(S) && !(i1.hasOwnProperty(S) && i1[S]) ? B + "px" : ("" + B).trim();
|
|
33835
33836
|
}
|
|
@@ -58228,7 +58229,7 @@ async function fetchUserPlugins(email, password) {
|
|
|
58228
58229
|
result.integrations.push({
|
|
58229
58230
|
key: "base",
|
|
58230
58231
|
pluginName: "base",
|
|
58231
|
-
pluginVersion: "0.9.
|
|
58232
|
+
pluginVersion: "0.9.1",
|
|
58232
58233
|
pluginConfig: []
|
|
58233
58234
|
});
|
|
58234
58235
|
return result;
|
|
@@ -58403,7 +58404,7 @@ const Header = ({ height = 70 }) => {
|
|
|
58403
58404
|
};
|
|
58404
58405
|
const About = () => {
|
|
58405
58406
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(x0, { padding: 20, direction: "vert", children: [
|
|
58406
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.9.
|
|
58407
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.9.1"}` }),
|
|
58407
58408
|
/* @__PURE__ */ jsxRuntimeExports.jsx(X4, { children: "From Appkit" })
|
|
58408
58409
|
] });
|
|
58409
58410
|
};
|
|
@@ -93754,6 +93755,8 @@ async function loadUserPlugin(name, version2, code) {
|
|
|
93754
93755
|
return jsxRuntimeModule;
|
|
93755
93756
|
case "react":
|
|
93756
93757
|
return React$3;
|
|
93758
|
+
case "react-dom":
|
|
93759
|
+
return ReactDOM;
|
|
93757
93760
|
case "@appkit/dek-ui":
|
|
93758
93761
|
return dekUi;
|
|
93759
93762
|
}
|
|
@@ -94119,7 +94122,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
|
|
|
94119
94122
|
this.cancelNextCallback();
|
|
94120
94123
|
if (nextStatus === ENTERING) {
|
|
94121
94124
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
94122
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
94125
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM__default.findDOMNode(this);
|
|
94123
94126
|
if (node)
|
|
94124
94127
|
forceReflow(node);
|
|
94125
94128
|
}
|
|
@@ -94137,7 +94140,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
|
|
|
94137
94140
|
var _this2 = this;
|
|
94138
94141
|
var enter = this.props.enter;
|
|
94139
94142
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
94140
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
94143
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM__default.findDOMNode(this), appearing], maybeNode = _ref2[0], maybeAppearing = _ref2[1];
|
|
94141
94144
|
var timeouts = this.getTimeouts();
|
|
94142
94145
|
var enterTimeout = appearing ? timeouts.appear : timeouts.enter;
|
|
94143
94146
|
if (!mounting && !enter || config.disabled) {
|
|
@@ -94166,7 +94169,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
|
|
|
94166
94169
|
var _this3 = this;
|
|
94167
94170
|
var exit = this.props.exit;
|
|
94168
94171
|
var timeouts = this.getTimeouts();
|
|
94169
|
-
var maybeNode = this.props.nodeRef ? void 0 :
|
|
94172
|
+
var maybeNode = this.props.nodeRef ? void 0 : ReactDOM__default.findDOMNode(this);
|
|
94170
94173
|
if (!exit || config.disabled) {
|
|
94171
94174
|
this.safeSetState({
|
|
94172
94175
|
status: EXITED
|
|
@@ -94216,7 +94219,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
|
|
|
94216
94219
|
};
|
|
94217
94220
|
_proto.onTransitionEnd = function onTransitionEnd(timeout2, handler) {
|
|
94218
94221
|
this.setNextCallback(handler);
|
|
94219
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
94222
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM__default.findDOMNode(this);
|
|
94220
94223
|
var doesNotHaveTimeoutOrListener = timeout2 == null && !this.props.addEndListener;
|
|
94221
94224
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
94222
94225
|
setTimeout(this.nextCallback, 0);
|
package/dist/index.umd.js
CHANGED
|
@@ -44,6 +44,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44
44
|
return Object.freeze(Object.defineProperty(n4, Symbol.toStringTag, { value: "Module" }));
|
|
45
45
|
}
|
|
46
46
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React$3);
|
|
47
|
+
const ReactDOM__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactDOM);
|
|
47
48
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
48
49
|
function getDefaultExportFromCjs(x) {
|
|
49
50
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -58245,7 +58246,7 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
|
|
|
58245
58246
|
result.integrations.push({
|
|
58246
58247
|
key: "base",
|
|
58247
58248
|
pluginName: "base",
|
|
58248
|
-
pluginVersion: "0.9.
|
|
58249
|
+
pluginVersion: "0.9.1",
|
|
58249
58250
|
pluginConfig: []
|
|
58250
58251
|
});
|
|
58251
58252
|
return result;
|
|
@@ -58420,7 +58421,7 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
|
|
|
58420
58421
|
};
|
|
58421
58422
|
const About = () => {
|
|
58422
58423
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(x0, { padding: 20, direction: "vert", children: [
|
|
58423
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.9.
|
|
58424
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.9.1"}` }),
|
|
58424
58425
|
/* @__PURE__ */ jsxRuntimeExports.jsx(X4, { children: "From Appkit" })
|
|
58425
58426
|
] });
|
|
58426
58427
|
};
|
|
@@ -93771,6 +93772,8 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
|
|
|
93771
93772
|
return jsxRuntimeModule;
|
|
93772
93773
|
case "react":
|
|
93773
93774
|
return React__namespace;
|
|
93775
|
+
case "react-dom":
|
|
93776
|
+
return ReactDOM__namespace;
|
|
93774
93777
|
case "@appkit/dek-ui":
|
|
93775
93778
|
return dekUi;
|
|
93776
93779
|
}
|