@code0-tech/pictor 0.0.0-mvp.31 → 0.0.0-mvp.32

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 (134) hide show
  1. package/dist/components/avatar/Avatar.js +7 -7
  2. package/dist/components/breadcrumb/Breadcrumb.js +4 -4
  3. package/dist/components/button/Button.js +8 -8
  4. package/dist/components/context-menu/ContextMenu.js +131 -131
  5. package/dist/components/d-flow/DFlow.edges.hook.js +22 -22
  6. package/dist/components/d-flow/DFlow.js +32 -32
  7. package/dist/components/d-flow/DFlow.nodes.hook.js +8 -8
  8. package/dist/components/d-flow-file/DFlowTabDefault.js +16 -16
  9. package/dist/components/d-flow-folder/DFlowFolder.js +13 -13
  10. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +5 -5
  11. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +13 -13
  12. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +5 -5
  13. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +11 -11
  14. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +7 -7
  15. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +9 -9
  16. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +12 -12
  17. package/dist/components/d-flow-input/DFlowInputDataType.js +16 -16
  18. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +8 -8
  19. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +4 -4
  20. package/dist/components/d-flow-panel/DFlowExport.js +5 -5
  21. package/dist/components/d-flow-panel/DFlowPanelControl.js +4 -4
  22. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +4 -4
  23. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +7 -7
  24. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +12 -12
  25. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +5 -5
  26. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +4 -4
  27. package/dist/components/d-flow-validation/DNodeValidation.hook.js +3 -3
  28. package/dist/components/d-fullscreen/DFullScreen.js +2 -2
  29. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  30. package/dist/components/d-organization/DOrganizationList.js +7 -7
  31. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  32. package/dist/components/d-organization/DOrganizatonContent.js +22 -22
  33. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  34. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  35. package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
  36. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  37. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  38. package/dist/components/d-user/DUser.session.hook.js +2 -2
  39. package/dist/components/d-user/DUserContent.js +13 -13
  40. package/dist/components/d-user/DUserList.js +9 -9
  41. package/dist/components/form/CheckboxInput.js +4 -4
  42. package/dist/components/form/EmailInput.js +9 -9
  43. package/dist/components/form/Input.js +311 -230
  44. package/dist/components/form/Input.utils.js +1 -1
  45. package/dist/components/form/InputContentEditable.hook.d.ts +14 -2
  46. package/dist/components/form/InputContentEditable.hook.js +296 -317
  47. package/dist/components/form/NumberInput.js +9 -9
  48. package/dist/components/form/PasswordInput.js +2 -2
  49. package/dist/components/form/SwitchInput.js +7 -7
  50. package/dist/components/form/TextInput.js +6 -6
  51. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  52. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  53. package/dist/utils/objectStore.js +15 -15
  54. package/dist/utils/reactiveArrayService.js +10 -10
  55. package/package.json +18 -18
  56. package/dist/_virtual/_commonjsHelpers.js +0 -6
  57. package/dist/_virtual/index.js +0 -4
  58. package/dist/_virtual/index2.js +0 -4
  59. package/dist/_virtual/react-contenteditable.js +0 -7
  60. package/dist/_virtual/react-contenteditable2.js +0 -4
  61. package/dist/_virtual/react-dom-server-legacy.browser.development.js +0 -4
  62. package/dist/_virtual/react-dom-server-legacy.browser.production.js +0 -4
  63. package/dist/_virtual/react-dom-server.browser.development.js +0 -4
  64. package/dist/_virtual/react-dom-server.browser.production.js +0 -4
  65. package/dist/_virtual/react-is.development.js +0 -4
  66. package/dist/_virtual/react-is.production.min.js +0 -4
  67. package/dist/_virtual/server.browser.js +0 -5
  68. package/dist/_virtual/server.browser2.js +0 -4
  69. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  70. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  71. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  72. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  73. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  74. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  75. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  76. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -48
  77. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  78. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -53
  79. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -222
  80. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
  81. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  82. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  83. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  84. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  85. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -636
  86. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  87. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  88. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  89. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  90. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
  91. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  92. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  93. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  94. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  95. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  96. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  97. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  98. package/dist/node_modules/fast-deep-equal/index.js +0 -31
  99. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  100. package/dist/node_modules/object-assign/index.js +0 -49
  101. package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
  102. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
  103. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
  104. package/dist/node_modules/prop-types/index.js +0 -17
  105. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
  106. package/dist/node_modules/prop-types/lib/has.js +0 -7
  107. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -87
  108. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -70
  109. package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
  110. package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +0 -132
  111. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -6235
  112. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -4096
  113. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -6753
  114. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -4645
  115. package/dist/node_modules/react-dom/server.browser.js +0 -15
  116. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  117. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  118. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  119. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  120. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  121. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  122. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  123. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  124. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  125. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  126. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  127. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  128. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  129. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  130. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  131. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  132. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  133. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  134. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
@@ -1,87 +0,0 @@
1
- import { __exports as r } from "../../../../../_virtual/react-is.development.js";
2
- var A;
3
- function re() {
4
- return A ? r : (A = 1, process.env.NODE_ENV !== "production" && (function() {
5
- var o = typeof Symbol == "function" && Symbol.for, _ = o ? Symbol.for("react.element") : 60103, T = o ? Symbol.for("react.portal") : 60106, t = o ? Symbol.for("react.fragment") : 60107, n = o ? Symbol.for("react.strict_mode") : 60108, s = o ? Symbol.for("react.profiler") : 60114, c = o ? Symbol.for("react.provider") : 60109, i = o ? Symbol.for("react.context") : 60110, v = o ? Symbol.for("react.async_mode") : 60111, f = o ? Symbol.for("react.concurrent_mode") : 60111, u = o ? Symbol.for("react.forward_ref") : 60112, E = o ? Symbol.for("react.suspense") : 60113, y = o ? Symbol.for("react.suspense_list") : 60120, d = o ? Symbol.for("react.memo") : 60115, l = o ? Symbol.for("react.lazy") : 60116, x = o ? Symbol.for("react.block") : 60121, M = o ? Symbol.for("react.fundamental") : 60117, b = o ? Symbol.for("react.responder") : 60118, p = o ? Symbol.for("react.scope") : 60119;
6
- function Y(e) {
7
- return typeof e == "string" || typeof e == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8
- e === t || e === f || e === s || e === n || e === E || e === y || typeof e == "object" && e !== null && (e.$$typeof === l || e.$$typeof === d || e.$$typeof === c || e.$$typeof === i || e.$$typeof === u || e.$$typeof === M || e.$$typeof === b || e.$$typeof === p || e.$$typeof === x);
9
- }
10
- function a(e) {
11
- if (typeof e == "object" && e !== null) {
12
- var C = e.$$typeof;
13
- switch (C) {
14
- case _:
15
- var m = e.type;
16
- switch (m) {
17
- case v:
18
- case f:
19
- case t:
20
- case s:
21
- case n:
22
- case E:
23
- return m;
24
- default:
25
- var P = m && m.$$typeof;
26
- switch (P) {
27
- case i:
28
- case u:
29
- case l:
30
- case d:
31
- case c:
32
- return P;
33
- default:
34
- return C;
35
- }
36
- }
37
- case T:
38
- return C;
39
- }
40
- }
41
- }
42
- var $ = v, O = f, F = i, N = c, I = _, L = u, h = t, w = l, D = d, g = T, z = s, U = n, V = E, R = !1;
43
- function q(e) {
44
- return R || (R = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(e) || a(e) === v;
45
- }
46
- function S(e) {
47
- return a(e) === f;
48
- }
49
- function W(e) {
50
- return a(e) === i;
51
- }
52
- function k(e) {
53
- return a(e) === c;
54
- }
55
- function B(e) {
56
- return typeof e == "object" && e !== null && e.$$typeof === _;
57
- }
58
- function G(e) {
59
- return a(e) === u;
60
- }
61
- function K(e) {
62
- return a(e) === t;
63
- }
64
- function X(e) {
65
- return a(e) === l;
66
- }
67
- function Z(e) {
68
- return a(e) === d;
69
- }
70
- function H(e) {
71
- return a(e) === T;
72
- }
73
- function J(e) {
74
- return a(e) === s;
75
- }
76
- function Q(e) {
77
- return a(e) === n;
78
- }
79
- function j(e) {
80
- return a(e) === E;
81
- }
82
- r.AsyncMode = $, r.ConcurrentMode = O, r.ContextConsumer = F, r.ContextProvider = N, r.Element = I, r.ForwardRef = L, r.Fragment = h, r.Lazy = w, r.Memo = D, r.Portal = g, r.Profiler = z, r.StrictMode = U, r.Suspense = V, r.isAsyncMode = q, r.isConcurrentMode = S, r.isContextConsumer = W, r.isContextProvider = k, r.isElement = B, r.isForwardRef = G, r.isFragment = K, r.isLazy = X, r.isMemo = Z, r.isPortal = H, r.isProfiler = J, r.isStrictMode = Q, r.isSuspense = j, r.isValidElementType = Y, r.typeOf = a;
83
- })(), r);
84
- }
85
- export {
86
- re as __require
87
- };
@@ -1,70 +0,0 @@
1
- import { __exports as r } from "../../../../../_virtual/react-is.production.min.js";
2
- var _;
3
- function g() {
4
- if (_) return r;
5
- _ = 1;
6
- var t = typeof Symbol == "function" && Symbol.for, a = t ? Symbol.for("react.element") : 60103, b = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, c = t ? Symbol.for("react.strict_mode") : 60108, f = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, y = t ? Symbol.for("react.forward_ref") : 60112, l = t ? Symbol.for("react.suspense") : 60113, x = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, C = t ? Symbol.for("react.block") : 60121, M = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
7
- function o(e) {
8
- if (typeof e == "object" && e !== null) {
9
- var S = e.$$typeof;
10
- switch (S) {
11
- case a:
12
- switch (e = e.type, e) {
13
- case d:
14
- case u:
15
- case n:
16
- case f:
17
- case c:
18
- case l:
19
- return e;
20
- default:
21
- switch (e = e && e.$$typeof, e) {
22
- case s:
23
- case y:
24
- case p:
25
- case m:
26
- case i:
27
- return e;
28
- default:
29
- return S;
30
- }
31
- }
32
- case b:
33
- return S;
34
- }
35
- }
36
- }
37
- function $(e) {
38
- return o(e) === u;
39
- }
40
- return r.AsyncMode = d, r.ConcurrentMode = u, r.ContextConsumer = s, r.ContextProvider = i, r.Element = a, r.ForwardRef = y, r.Fragment = n, r.Lazy = p, r.Memo = m, r.Portal = b, r.Profiler = f, r.StrictMode = c, r.Suspense = l, r.isAsyncMode = function(e) {
41
- return $(e) || o(e) === d;
42
- }, r.isConcurrentMode = $, r.isContextConsumer = function(e) {
43
- return o(e) === s;
44
- }, r.isContextProvider = function(e) {
45
- return o(e) === i;
46
- }, r.isElement = function(e) {
47
- return typeof e == "object" && e !== null && e.$$typeof === a;
48
- }, r.isForwardRef = function(e) {
49
- return o(e) === y;
50
- }, r.isFragment = function(e) {
51
- return o(e) === n;
52
- }, r.isLazy = function(e) {
53
- return o(e) === p;
54
- }, r.isMemo = function(e) {
55
- return o(e) === m;
56
- }, r.isPortal = function(e) {
57
- return o(e) === b;
58
- }, r.isProfiler = function(e) {
59
- return o(e) === f;
60
- }, r.isStrictMode = function(e) {
61
- return o(e) === c;
62
- }, r.isSuspense = function(e) {
63
- return o(e) === l;
64
- }, r.isValidElementType = function(e) {
65
- return typeof e == "string" || typeof e == "function" || e === n || e === u || e === f || e === c || e === l || e === x || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === m || e.$$typeof === i || e.$$typeof === s || e.$$typeof === y || e.$$typeof === M || e.$$typeof === v || e.$$typeof === w || e.$$typeof === C);
66
- }, r.typeOf = o, r;
67
- }
68
- export {
69
- g as __require
70
- };
@@ -1,10 +0,0 @@
1
- import { __module as e } from "../../../../_virtual/index2.js";
2
- import { __require as o } from "./cjs/react-is.production.min.js";
3
- import { __require as t } from "./cjs/react-is.development.js";
4
- var r;
5
- function p() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
7
- }
8
- export {
9
- p as __require
10
- };
@@ -1,132 +0,0 @@
1
- import { __exports as a } from "../../../_virtual/react-contenteditable2.js";
2
- import C from "react";
3
- import { __require as w } from "../../fast-deep-equal/index.js";
4
- import { __require as E } from "../../prop-types/index.js";
5
- var h;
6
- function N() {
7
- if (h) return a;
8
- h = 1;
9
- var d = a && a.__extends || /* @__PURE__ */ (function() {
10
- var t = function(n, e) {
11
- return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
12
- r.__proto__ = o;
13
- } || function(r, o) {
14
- for (var l in o) Object.prototype.hasOwnProperty.call(o, l) && (r[l] = o[l]);
15
- }, t(n, e);
16
- };
17
- return function(n, e) {
18
- if (typeof e != "function" && e !== null)
19
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
20
- t(n, e);
21
- function r() {
22
- this.constructor = n;
23
- }
24
- n.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
25
- };
26
- })(), p = a && a.__assign || function() {
27
- return p = Object.assign || function(t) {
28
- for (var n, e = 1, r = arguments.length; e < r; e++) {
29
- n = arguments[e];
30
- for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
31
- }
32
- return t;
33
- }, p.apply(this, arguments);
34
- }, m = a && a.__createBinding || (Object.create ? (function(t, n, e, r) {
35
- r === void 0 && (r = e);
36
- var o = Object.getOwnPropertyDescriptor(n, e);
37
- (!o || ("get" in o ? !n.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: function() {
38
- return n[e];
39
- } }), Object.defineProperty(t, r, o);
40
- }) : (function(t, n, e, r) {
41
- r === void 0 && (r = e), t[r] = n[e];
42
- })), g = a && a.__setModuleDefault || (Object.create ? (function(t, n) {
43
- Object.defineProperty(t, "default", { enumerable: !0, value: n });
44
- }) : function(t, n) {
45
- t.default = n;
46
- }), s = a && a.__importStar || function(t) {
47
- if (t && t.__esModule) return t;
48
- var n = {};
49
- if (t != null) for (var e in t) e !== "default" && Object.prototype.hasOwnProperty.call(t, e) && m(n, t, e);
50
- return g(n, t), n;
51
- }, y = a && a.__rest || function(t, n) {
52
- var e = {};
53
- for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
54
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
55
- for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
56
- n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (e[r[o]] = t[r[o]]);
57
- return e;
58
- }, v = a && a.__importDefault || function(t) {
59
- return t && t.__esModule ? t : { default: t };
60
- };
61
- Object.defineProperty(a, "__esModule", { value: !0 });
62
- var f = s(C), b = v(w()), i = s(/* @__PURE__ */ E());
63
- function c(t) {
64
- return t && t.replace(/&nbsp;|\u202F|\u00A0/g, " ").replace(/<br \/>/g, "<br>");
65
- }
66
- function O(t) {
67
- var n = document.createTextNode("");
68
- t.appendChild(n);
69
- var e = document.activeElement === t;
70
- if (n !== null && n.nodeValue !== null && e) {
71
- var r = window.getSelection();
72
- if (r !== null) {
73
- var o = document.createRange();
74
- o.setStart(n, n.nodeValue.length), o.collapse(!0), r.removeAllRanges(), r.addRange(o);
75
- }
76
- t instanceof HTMLElement && t.focus();
77
- }
78
- }
79
- var R = (
80
- /** @class */
81
- (function(t) {
82
- d(n, t);
83
- function n() {
84
- var e = t !== null && t.apply(this, arguments) || this;
85
- return e.lastHtml = e.props.html, e.el = typeof e.props.innerRef == "function" ? { current: null } : f.createRef(), e.getEl = function() {
86
- return (e.props.innerRef && typeof e.props.innerRef != "function" ? e.props.innerRef : e.el).current;
87
- }, e.emitChange = function(r) {
88
- var o = e.getEl();
89
- if (o) {
90
- var l = o.innerHTML;
91
- if (e.props.onChange && l !== e.lastHtml) {
92
- var u = Object.assign({}, r, {
93
- target: {
94
- value: l
95
- }
96
- });
97
- e.props.onChange(u);
98
- }
99
- e.lastHtml = l;
100
- }
101
- }, e;
102
- }
103
- return n.prototype.render = function() {
104
- var e = this, r = this.props, o = r.tagName, l = r.html, u = r.innerRef, j = y(r, ["tagName", "html", "innerRef"]);
105
- return f.createElement(o || "div", p(p({}, j), { ref: typeof u == "function" ? function(_) {
106
- u(_), e.el.current = _;
107
- } : u || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: l } }), this.props.children);
108
- }, n.prototype.shouldComponentUpdate = function(e) {
109
- var r = this.props, o = this.getEl();
110
- return !o || c(e.html) !== c(o.innerHTML) ? !0 : r.disabled !== e.disabled || r.tagName !== e.tagName || r.className !== e.className || r.innerRef !== e.innerRef || r.placeholder !== e.placeholder || !(0, b.default)(r.style, e.style);
111
- }, n.prototype.componentDidUpdate = function() {
112
- var e = this.getEl();
113
- e && (this.props.html !== e.innerHTML && (e.innerHTML = this.props.html), this.lastHtml = this.props.html, O(e));
114
- }, n.propTypes = {
115
- html: i.string.isRequired,
116
- onChange: i.func,
117
- disabled: i.bool,
118
- tagName: i.string,
119
- className: i.string,
120
- style: i.object,
121
- innerRef: i.oneOfType([
122
- i.object,
123
- i.func
124
- ])
125
- }, n;
126
- })(f.Component)
127
- );
128
- return a.default = R, a;
129
- }
130
- export {
131
- N as __require
132
- };