@shelf/global-renderer 1.0.0 → 1.0.1-beta.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/CHANGELOG.md +2366 -44
- package/lib/DecisionTreeContent/DecisionTreeContent.d.ts +2 -2
- package/lib/DecisionTreeContent/DecisionTreeContent.js +84 -0
- package/lib/DecisionTreeContent/DecisionTreeContent.styled.d.ts +47 -11483
- package/lib/DecisionTreeContent/DecisionTreeContent.styled.js +225 -0
- package/lib/DecisionTreeContent/components/Condition.d.ts +2 -2
- package/lib/DecisionTreeContent/components/Condition.js +73 -0
- package/lib/DecisionTreeContent/components/ContentTable.d.ts +2 -2
- package/lib/DecisionTreeContent/components/ContentTable.js +26 -0
- package/lib/DecisionTreeContent/components/ExportedMeta.d.ts +3 -3
- package/lib/DecisionTreeContent/components/ExportedMeta.js +29 -0
- package/lib/DecisionTreeContent/components/Link.d.ts +2 -2
- package/lib/DecisionTreeContent/components/Link.js +18 -0
- package/lib/DecisionTreeContent/components/Question.d.ts +2 -2
- package/lib/DecisionTreeContent/components/Question.js +55 -0
- package/lib/DecisionTreeContent/components/Solution.d.ts +2 -2
- package/lib/DecisionTreeContent/components/Solution.js +20 -0
- package/lib/DecisionTreeContent/components/StepHeader.d.ts +2 -2
- package/lib/DecisionTreeContent/components/StepHeader.js +46 -0
- package/lib/DecisionTreeContent/components/StepTypeIcon.js +30 -0
- package/lib/DecisionTreeContent/helpers.d.ts +4 -4
- package/lib/DecisionTreeContent/helpers.js +56 -0
- package/lib/DecisionTreeContent/renderDTContent.js +12 -0
- package/lib/DecisionTreeContent/types.d.ts +1 -1
- package/lib/DecisionTreeDiagram/StaticTreeContainer.d.ts +2 -2
- package/lib/DecisionTreeDiagram/StaticTreeContainer.js +27 -0
- package/lib/DecisionTreeDiagram/renderStaticDTDiagram.js +26 -0
- package/lib/_virtual/_commonjsHelpers.js +4 -0
- package/lib/_virtual/advancedFormat.js +4 -0
- package/lib/_virtual/client.js +4 -0
- package/lib/_virtual/dayjs.min.js +4 -0
- package/lib/_virtual/index.js +4 -0
- package/lib/_virtual/index2.js +4 -0
- package/lib/_virtual/localeData.js +4 -0
- package/lib/_virtual/localizedFormat.js +4 -0
- package/lib/_virtual/react-dom.development.js +4 -0
- package/lib/_virtual/react-dom.production.min.js +4 -0
- package/lib/_virtual/scheduler.development.js +4 -0
- package/lib/_virtual/scheduler.production.min.js +4 -0
- package/lib/i18next/index.js +18 -0
- package/lib/index.js +4 -20383
- package/lib/node_modules/@shelf/datetime/lib/getDateFormatTemplates.js +15 -0
- package/lib/node_modules/@shelf/datetime/lib/getDateWithCustomFormat.js +10 -0
- package/lib/node_modules/@shelf/datetime/lib/getTimeFormatTemplates.js +17 -0
- package/lib/node_modules/@shelf/datetime/lib/isDate.js +4 -0
- package/lib/node_modules/@shelf/datetime/node_modules/dayjs/dayjs.min.js +295 -0
- package/lib/node_modules/@shelf/datetime/node_modules/dayjs/plugin/advancedFormat.js +54 -0
- package/lib/node_modules/@shelf/datetime/node_modules/dayjs/plugin/localeData.js +82 -0
- package/lib/node_modules/@shelf/datetime/node_modules/dayjs/plugin/localizedFormat.js +28 -0
- package/lib/node_modules/react-dom/cjs/react-dom.development.js +12880 -0
- package/lib/node_modules/react-dom/cjs/react-dom.production.min.js +5643 -0
- package/lib/node_modules/react-dom/client.js +28 -0
- package/lib/node_modules/react-dom/index.js +17 -0
- package/lib/node_modules/scheduler/cjs/scheduler.development.js +278 -0
- package/lib/node_modules/scheduler/cjs/scheduler.production.min.js +231 -0
- package/lib/node_modules/scheduler/index.js +12 -0
- package/package.json +16 -19
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __exports as o } from "../../_virtual/client.js";
|
|
2
|
+
import { __exports as E } from "../../_virtual/client.js";
|
|
3
|
+
import "./index.js";
|
|
4
|
+
import { r as i } from "../../_virtual/index.js";
|
|
5
|
+
var t = i.exports;
|
|
6
|
+
if (process.env.NODE_ENV === "production")
|
|
7
|
+
o.createRoot = t.createRoot, o.hydrateRoot = t.hydrateRoot;
|
|
8
|
+
else {
|
|
9
|
+
var r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
10
|
+
o.createRoot = function(e, n) {
|
|
11
|
+
r.usingClientEntryPoint = !0;
|
|
12
|
+
try {
|
|
13
|
+
return t.createRoot(e, n);
|
|
14
|
+
} finally {
|
|
15
|
+
r.usingClientEntryPoint = !1;
|
|
16
|
+
}
|
|
17
|
+
}, o.hydrateRoot = function(e, n, a) {
|
|
18
|
+
r.usingClientEntryPoint = !0;
|
|
19
|
+
try {
|
|
20
|
+
return t.hydrateRoot(e, n, a);
|
|
21
|
+
} finally {
|
|
22
|
+
r.usingClientEntryPoint = !1;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
E as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as o } from "../../_virtual/index.js";
|
|
2
|
+
import { __require as t } from "./cjs/react-dom.production.min.js";
|
|
3
|
+
import { __require as c } from "./cjs/react-dom.development.js";
|
|
4
|
+
(function(r) {
|
|
5
|
+
function e() {
|
|
6
|
+
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
7
|
+
if (process.env.NODE_ENV !== "production")
|
|
8
|
+
throw new Error("^_^");
|
|
9
|
+
try {
|
|
10
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
|
|
11
|
+
} catch (_) {
|
|
12
|
+
console.error(_);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
process.env.NODE_ENV === "production" ? (e(), r.exports = t()) : r.exports = c();
|
|
17
|
+
})(o);
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { __exports as N } from "../../../_virtual/scheduler.development.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* scheduler.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var Q;
|
|
12
|
+
function we() {
|
|
13
|
+
return Q ? N : (Q = 1, function(t) {
|
|
14
|
+
process.env.NODE_ENV !== "production" && function() {
|
|
15
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
16
|
+
var z = !1, J = !1, q = 5;
|
|
17
|
+
function C(e, n) {
|
|
18
|
+
var r = e.length;
|
|
19
|
+
e.push(n), X(e, n, r);
|
|
20
|
+
}
|
|
21
|
+
function f(e) {
|
|
22
|
+
return e.length === 0 ? null : e[0];
|
|
23
|
+
}
|
|
24
|
+
function O(e) {
|
|
25
|
+
if (e.length === 0)
|
|
26
|
+
return null;
|
|
27
|
+
var n = e[0], r = e.pop();
|
|
28
|
+
return r !== n && (e[0] = r, Z(e, r, 0)), n;
|
|
29
|
+
}
|
|
30
|
+
function X(e, n, r) {
|
|
31
|
+
for (var a = r; a > 0; ) {
|
|
32
|
+
var i = a - 1 >>> 1, c = e[i];
|
|
33
|
+
if (k(c, n) > 0)
|
|
34
|
+
e[i] = n, e[a] = c, a = i;
|
|
35
|
+
else
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function Z(e, n, r) {
|
|
40
|
+
for (var a = r, i = e.length, c = i >>> 1; a < c; ) {
|
|
41
|
+
var u = (a + 1) * 2 - 1, m = e[u], o = u + 1, w = e[o];
|
|
42
|
+
if (k(m, n) < 0)
|
|
43
|
+
o < i && k(w, m) < 0 ? (e[a] = w, e[o] = n, a = o) : (e[a] = m, e[u] = n, a = u);
|
|
44
|
+
else if (o < i && k(w, n) < 0)
|
|
45
|
+
e[a] = w, e[o] = n, a = o;
|
|
46
|
+
else
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function k(e, n) {
|
|
51
|
+
var r = e.sortIndex - n.sortIndex;
|
|
52
|
+
return r !== 0 ? r : e.id - n.id;
|
|
53
|
+
}
|
|
54
|
+
var P = 1, g = 2, b = 3, R = 4, S = 5;
|
|
55
|
+
function Ee(e, n) {
|
|
56
|
+
}
|
|
57
|
+
var $ = typeof performance == "object" && typeof performance.now == "function";
|
|
58
|
+
if ($) {
|
|
59
|
+
var x = performance;
|
|
60
|
+
t.unstable_now = function() {
|
|
61
|
+
return x.now();
|
|
62
|
+
};
|
|
63
|
+
} else {
|
|
64
|
+
var Y = Date, ee = Y.now();
|
|
65
|
+
t.unstable_now = function() {
|
|
66
|
+
return Y.now() - ee;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
var ne = 1073741823, re = -1, te = 250, ae = 5e3, ie = 1e4, le = ne, v = [], _ = [], ue = 1, s = null, l = b, L = !1, d = !1, T = !1, G = typeof setTimeout == "function" ? setTimeout : null, oe = typeof clearTimeout == "function" ? clearTimeout : null, K = typeof setImmediate < "u" ? setImmediate : null;
|
|
70
|
+
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
71
|
+
function p(e) {
|
|
72
|
+
for (var n = f(_); n !== null; ) {
|
|
73
|
+
if (n.callback === null)
|
|
74
|
+
O(_);
|
|
75
|
+
else if (n.startTime <= e)
|
|
76
|
+
O(_), n.sortIndex = n.expirationTime, C(v, n);
|
|
77
|
+
else
|
|
78
|
+
return;
|
|
79
|
+
n = f(_);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function h(e) {
|
|
83
|
+
if (T = !1, p(e), !d)
|
|
84
|
+
if (f(v) !== null)
|
|
85
|
+
d = !0, U(M);
|
|
86
|
+
else {
|
|
87
|
+
var n = f(_);
|
|
88
|
+
n !== null && B(h, n.startTime - e);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function M(e, n) {
|
|
92
|
+
d = !1, T && (T = !1, j()), L = !0;
|
|
93
|
+
var r = l;
|
|
94
|
+
try {
|
|
95
|
+
var a;
|
|
96
|
+
if (!J)
|
|
97
|
+
return se(e, n);
|
|
98
|
+
} finally {
|
|
99
|
+
s = null, l = r, L = !1;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function se(e, n) {
|
|
103
|
+
var r = n;
|
|
104
|
+
for (p(r), s = f(v); s !== null && !z && !(s.expirationTime > r && (!e || W())); ) {
|
|
105
|
+
var a = s.callback;
|
|
106
|
+
if (typeof a == "function") {
|
|
107
|
+
s.callback = null, l = s.priorityLevel;
|
|
108
|
+
var i = s.expirationTime <= r, c = a(i);
|
|
109
|
+
r = t.unstable_now(), typeof c == "function" ? s.callback = c : s === f(v) && O(v), p(r);
|
|
110
|
+
} else
|
|
111
|
+
O(v);
|
|
112
|
+
s = f(v);
|
|
113
|
+
}
|
|
114
|
+
if (s !== null)
|
|
115
|
+
return !0;
|
|
116
|
+
var u = f(_);
|
|
117
|
+
return u !== null && B(h, u.startTime - r), !1;
|
|
118
|
+
}
|
|
119
|
+
function fe(e, n) {
|
|
120
|
+
switch (e) {
|
|
121
|
+
case P:
|
|
122
|
+
case g:
|
|
123
|
+
case b:
|
|
124
|
+
case R:
|
|
125
|
+
case S:
|
|
126
|
+
break;
|
|
127
|
+
default:
|
|
128
|
+
e = b;
|
|
129
|
+
}
|
|
130
|
+
var r = l;
|
|
131
|
+
l = e;
|
|
132
|
+
try {
|
|
133
|
+
return n();
|
|
134
|
+
} finally {
|
|
135
|
+
l = r;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function ce(e) {
|
|
139
|
+
var n;
|
|
140
|
+
switch (l) {
|
|
141
|
+
case P:
|
|
142
|
+
case g:
|
|
143
|
+
case b:
|
|
144
|
+
n = b;
|
|
145
|
+
break;
|
|
146
|
+
default:
|
|
147
|
+
n = l;
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
var r = l;
|
|
151
|
+
l = n;
|
|
152
|
+
try {
|
|
153
|
+
return e();
|
|
154
|
+
} finally {
|
|
155
|
+
l = r;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function ve(e) {
|
|
159
|
+
var n = l;
|
|
160
|
+
return function() {
|
|
161
|
+
var r = l;
|
|
162
|
+
l = n;
|
|
163
|
+
try {
|
|
164
|
+
return e.apply(this, arguments);
|
|
165
|
+
} finally {
|
|
166
|
+
l = r;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function _e(e, n, r) {
|
|
171
|
+
var a = t.unstable_now(), i;
|
|
172
|
+
if (typeof r == "object" && r !== null) {
|
|
173
|
+
var c = r.delay;
|
|
174
|
+
typeof c == "number" && c > 0 ? i = a + c : i = a;
|
|
175
|
+
} else
|
|
176
|
+
i = a;
|
|
177
|
+
var u;
|
|
178
|
+
switch (e) {
|
|
179
|
+
case P:
|
|
180
|
+
u = re;
|
|
181
|
+
break;
|
|
182
|
+
case g:
|
|
183
|
+
u = te;
|
|
184
|
+
break;
|
|
185
|
+
case S:
|
|
186
|
+
u = le;
|
|
187
|
+
break;
|
|
188
|
+
case R:
|
|
189
|
+
u = ie;
|
|
190
|
+
break;
|
|
191
|
+
case b:
|
|
192
|
+
default:
|
|
193
|
+
u = ae;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
var m = i + u, o = {
|
|
197
|
+
id: ue++,
|
|
198
|
+
callback: n,
|
|
199
|
+
priorityLevel: e,
|
|
200
|
+
startTime: i,
|
|
201
|
+
expirationTime: m,
|
|
202
|
+
sortIndex: -1
|
|
203
|
+
};
|
|
204
|
+
return i > a ? (o.sortIndex = i, C(_, o), f(v) === null && o === f(_) && (T ? j() : T = !0, B(h, i - a))) : (o.sortIndex = m, C(v, o), !d && !L && (d = !0, U(M))), o;
|
|
205
|
+
}
|
|
206
|
+
function be() {
|
|
207
|
+
}
|
|
208
|
+
function de() {
|
|
209
|
+
!d && !L && (d = !0, U(M));
|
|
210
|
+
}
|
|
211
|
+
function me() {
|
|
212
|
+
return f(v);
|
|
213
|
+
}
|
|
214
|
+
function Te(e) {
|
|
215
|
+
e.callback = null;
|
|
216
|
+
}
|
|
217
|
+
function ye() {
|
|
218
|
+
return l;
|
|
219
|
+
}
|
|
220
|
+
var E = !1, I = null, A = -1, D = q, V = -1;
|
|
221
|
+
function W() {
|
|
222
|
+
var e = t.unstable_now() - V;
|
|
223
|
+
return !(e < D);
|
|
224
|
+
}
|
|
225
|
+
function Oe() {
|
|
226
|
+
}
|
|
227
|
+
function ke(e) {
|
|
228
|
+
if (e < 0 || e > 125) {
|
|
229
|
+
console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
e > 0 ? D = Math.floor(1e3 / e) : D = q;
|
|
233
|
+
}
|
|
234
|
+
var H = function() {
|
|
235
|
+
if (I !== null) {
|
|
236
|
+
var e = t.unstable_now();
|
|
237
|
+
V = e;
|
|
238
|
+
var n = !0, r = !0;
|
|
239
|
+
try {
|
|
240
|
+
r = I(n, e);
|
|
241
|
+
} finally {
|
|
242
|
+
r ? y() : (E = !1, I = null);
|
|
243
|
+
}
|
|
244
|
+
} else
|
|
245
|
+
E = !1;
|
|
246
|
+
}, y;
|
|
247
|
+
if (typeof K == "function")
|
|
248
|
+
y = function() {
|
|
249
|
+
K(H);
|
|
250
|
+
};
|
|
251
|
+
else if (typeof MessageChannel < "u") {
|
|
252
|
+
var F = new MessageChannel(), Pe = F.port2;
|
|
253
|
+
F.port1.onmessage = H, y = function() {
|
|
254
|
+
Pe.postMessage(null);
|
|
255
|
+
};
|
|
256
|
+
} else
|
|
257
|
+
y = function() {
|
|
258
|
+
G(H, 0);
|
|
259
|
+
};
|
|
260
|
+
function U(e) {
|
|
261
|
+
I = e, E || (E = !0, y());
|
|
262
|
+
}
|
|
263
|
+
function B(e, n) {
|
|
264
|
+
A = G(function() {
|
|
265
|
+
e(t.unstable_now());
|
|
266
|
+
}, n);
|
|
267
|
+
}
|
|
268
|
+
function j() {
|
|
269
|
+
oe(A), A = -1;
|
|
270
|
+
}
|
|
271
|
+
var ge = Oe, Le = null;
|
|
272
|
+
t.unstable_IdlePriority = S, t.unstable_ImmediatePriority = P, t.unstable_LowPriority = R, t.unstable_NormalPriority = b, t.unstable_Profiling = Le, t.unstable_UserBlockingPriority = g, t.unstable_cancelCallback = Te, t.unstable_continueExecution = de, t.unstable_forceFrameRate = ke, t.unstable_getCurrentPriorityLevel = ye, t.unstable_getFirstCallbackNode = me, t.unstable_next = ce, t.unstable_pauseExecution = be, t.unstable_requestPaint = ge, t.unstable_runWithPriority = fe, t.unstable_scheduleCallback = _e, t.unstable_shouldYield = W, t.unstable_wrapCallback = ve, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
273
|
+
}();
|
|
274
|
+
}(N), N);
|
|
275
|
+
}
|
|
276
|
+
export {
|
|
277
|
+
we as __require
|
|
278
|
+
};
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { __exports as R } from "../../../_virtual/scheduler.production.min.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* scheduler.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var H;
|
|
12
|
+
function W() {
|
|
13
|
+
return H ? R : (H = 1, function(i) {
|
|
14
|
+
function P(n, e) {
|
|
15
|
+
var t = n.length;
|
|
16
|
+
n.push(e);
|
|
17
|
+
n:
|
|
18
|
+
for (; 0 < t; ) {
|
|
19
|
+
var l = t - 1 >>> 1, r = n[l];
|
|
20
|
+
if (0 < g(r, e))
|
|
21
|
+
n[l] = e, n[t] = r, t = l;
|
|
22
|
+
else
|
|
23
|
+
break n;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function o(n) {
|
|
27
|
+
return n.length === 0 ? null : n[0];
|
|
28
|
+
}
|
|
29
|
+
function m(n) {
|
|
30
|
+
if (n.length === 0)
|
|
31
|
+
return null;
|
|
32
|
+
var e = n[0], t = n.pop();
|
|
33
|
+
if (t !== e) {
|
|
34
|
+
n[0] = t;
|
|
35
|
+
n:
|
|
36
|
+
for (var l = 0, r = n.length, w = r >>> 1; l < w; ) {
|
|
37
|
+
var v = 2 * (l + 1) - 1, F = n[v], d = v + 1, I = n[d];
|
|
38
|
+
if (0 > g(F, t))
|
|
39
|
+
d < r && 0 > g(I, F) ? (n[l] = I, n[d] = t, l = d) : (n[l] = F, n[v] = t, l = v);
|
|
40
|
+
else if (d < r && 0 > g(I, t))
|
|
41
|
+
n[l] = I, n[d] = t, l = d;
|
|
42
|
+
else
|
|
43
|
+
break n;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return e;
|
|
47
|
+
}
|
|
48
|
+
function g(n, e) {
|
|
49
|
+
var t = n.sortIndex - e.sortIndex;
|
|
50
|
+
return t !== 0 ? t : n.id - e.id;
|
|
51
|
+
}
|
|
52
|
+
if (typeof performance == "object" && typeof performance.now == "function") {
|
|
53
|
+
var J = performance;
|
|
54
|
+
i.unstable_now = function() {
|
|
55
|
+
return J.now();
|
|
56
|
+
};
|
|
57
|
+
} else {
|
|
58
|
+
var N = Date, K = N.now();
|
|
59
|
+
i.unstable_now = function() {
|
|
60
|
+
return N.now() - K;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
var f = [], c = [], O = 1, a = null, u = 3, h = !1, s = !1, _ = !1, S = typeof setTimeout == "function" ? setTimeout : null, j = typeof clearTimeout == "function" ? clearTimeout : null, B = typeof setImmediate < "u" ? setImmediate : null;
|
|
64
|
+
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
65
|
+
function T(n) {
|
|
66
|
+
for (var e = o(c); e !== null; ) {
|
|
67
|
+
if (e.callback === null)
|
|
68
|
+
m(c);
|
|
69
|
+
else if (e.startTime <= n)
|
|
70
|
+
m(c), e.sortIndex = e.expirationTime, P(f, e);
|
|
71
|
+
else
|
|
72
|
+
break;
|
|
73
|
+
e = o(c);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function E(n) {
|
|
77
|
+
if (_ = !1, T(n), !s)
|
|
78
|
+
if (o(f) !== null)
|
|
79
|
+
s = !0, M(C);
|
|
80
|
+
else {
|
|
81
|
+
var e = o(c);
|
|
82
|
+
e !== null && q(E, e.startTime - n);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function C(n, e) {
|
|
86
|
+
s = !1, _ && (_ = !1, j(b), b = -1), h = !0;
|
|
87
|
+
var t = u;
|
|
88
|
+
try {
|
|
89
|
+
for (T(e), a = o(f); a !== null && (!(a.expirationTime > e) || n && !A()); ) {
|
|
90
|
+
var l = a.callback;
|
|
91
|
+
if (typeof l == "function") {
|
|
92
|
+
a.callback = null, u = a.priorityLevel;
|
|
93
|
+
var r = l(a.expirationTime <= e);
|
|
94
|
+
e = i.unstable_now(), typeof r == "function" ? a.callback = r : a === o(f) && m(f), T(e);
|
|
95
|
+
} else
|
|
96
|
+
m(f);
|
|
97
|
+
a = o(f);
|
|
98
|
+
}
|
|
99
|
+
if (a !== null)
|
|
100
|
+
var w = !0;
|
|
101
|
+
else {
|
|
102
|
+
var v = o(c);
|
|
103
|
+
v !== null && q(E, v.startTime - e), w = !1;
|
|
104
|
+
}
|
|
105
|
+
return w;
|
|
106
|
+
} finally {
|
|
107
|
+
a = null, u = t, h = !1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
var k = !1, p = null, b = -1, D = 5, z = -1;
|
|
111
|
+
function A() {
|
|
112
|
+
return !(i.unstable_now() - z < D);
|
|
113
|
+
}
|
|
114
|
+
function L() {
|
|
115
|
+
if (p !== null) {
|
|
116
|
+
var n = i.unstable_now();
|
|
117
|
+
z = n;
|
|
118
|
+
var e = !0;
|
|
119
|
+
try {
|
|
120
|
+
e = p(!0, n);
|
|
121
|
+
} finally {
|
|
122
|
+
e ? y() : (k = !1, p = null);
|
|
123
|
+
}
|
|
124
|
+
} else
|
|
125
|
+
k = !1;
|
|
126
|
+
}
|
|
127
|
+
var y;
|
|
128
|
+
if (typeof B == "function")
|
|
129
|
+
y = function() {
|
|
130
|
+
B(L);
|
|
131
|
+
};
|
|
132
|
+
else if (typeof MessageChannel < "u") {
|
|
133
|
+
var G = new MessageChannel(), Q = G.port2;
|
|
134
|
+
G.port1.onmessage = L, y = function() {
|
|
135
|
+
Q.postMessage(null);
|
|
136
|
+
};
|
|
137
|
+
} else
|
|
138
|
+
y = function() {
|
|
139
|
+
S(L, 0);
|
|
140
|
+
};
|
|
141
|
+
function M(n) {
|
|
142
|
+
p = n, k || (k = !0, y());
|
|
143
|
+
}
|
|
144
|
+
function q(n, e) {
|
|
145
|
+
b = S(function() {
|
|
146
|
+
n(i.unstable_now());
|
|
147
|
+
}, e);
|
|
148
|
+
}
|
|
149
|
+
i.unstable_IdlePriority = 5, i.unstable_ImmediatePriority = 1, i.unstable_LowPriority = 4, i.unstable_NormalPriority = 3, i.unstable_Profiling = null, i.unstable_UserBlockingPriority = 2, i.unstable_cancelCallback = function(n) {
|
|
150
|
+
n.callback = null;
|
|
151
|
+
}, i.unstable_continueExecution = function() {
|
|
152
|
+
s || h || (s = !0, M(C));
|
|
153
|
+
}, i.unstable_forceFrameRate = function(n) {
|
|
154
|
+
0 > n || 125 < n ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : D = 0 < n ? Math.floor(1e3 / n) : 5;
|
|
155
|
+
}, i.unstable_getCurrentPriorityLevel = function() {
|
|
156
|
+
return u;
|
|
157
|
+
}, i.unstable_getFirstCallbackNode = function() {
|
|
158
|
+
return o(f);
|
|
159
|
+
}, i.unstable_next = function(n) {
|
|
160
|
+
switch (u) {
|
|
161
|
+
case 1:
|
|
162
|
+
case 2:
|
|
163
|
+
case 3:
|
|
164
|
+
var e = 3;
|
|
165
|
+
break;
|
|
166
|
+
default:
|
|
167
|
+
e = u;
|
|
168
|
+
}
|
|
169
|
+
var t = u;
|
|
170
|
+
u = e;
|
|
171
|
+
try {
|
|
172
|
+
return n();
|
|
173
|
+
} finally {
|
|
174
|
+
u = t;
|
|
175
|
+
}
|
|
176
|
+
}, i.unstable_pauseExecution = function() {
|
|
177
|
+
}, i.unstable_requestPaint = function() {
|
|
178
|
+
}, i.unstable_runWithPriority = function(n, e) {
|
|
179
|
+
switch (n) {
|
|
180
|
+
case 1:
|
|
181
|
+
case 2:
|
|
182
|
+
case 3:
|
|
183
|
+
case 4:
|
|
184
|
+
case 5:
|
|
185
|
+
break;
|
|
186
|
+
default:
|
|
187
|
+
n = 3;
|
|
188
|
+
}
|
|
189
|
+
var t = u;
|
|
190
|
+
u = n;
|
|
191
|
+
try {
|
|
192
|
+
return e();
|
|
193
|
+
} finally {
|
|
194
|
+
u = t;
|
|
195
|
+
}
|
|
196
|
+
}, i.unstable_scheduleCallback = function(n, e, t) {
|
|
197
|
+
var l = i.unstable_now();
|
|
198
|
+
switch (typeof t == "object" && t !== null ? (t = t.delay, t = typeof t == "number" && 0 < t ? l + t : l) : t = l, n) {
|
|
199
|
+
case 1:
|
|
200
|
+
var r = -1;
|
|
201
|
+
break;
|
|
202
|
+
case 2:
|
|
203
|
+
r = 250;
|
|
204
|
+
break;
|
|
205
|
+
case 5:
|
|
206
|
+
r = 1073741823;
|
|
207
|
+
break;
|
|
208
|
+
case 4:
|
|
209
|
+
r = 1e4;
|
|
210
|
+
break;
|
|
211
|
+
default:
|
|
212
|
+
r = 5e3;
|
|
213
|
+
}
|
|
214
|
+
return r = t + r, n = { id: O++, callback: e, priorityLevel: n, startTime: t, expirationTime: r, sortIndex: -1 }, t > l ? (n.sortIndex = t, P(c, n), o(f) === null && n === o(c) && (_ ? (j(b), b = -1) : _ = !0, q(E, t - l))) : (n.sortIndex = r, P(f, n), s || h || (s = !0, M(C))), n;
|
|
215
|
+
}, i.unstable_shouldYield = A, i.unstable_wrapCallback = function(n) {
|
|
216
|
+
var e = u;
|
|
217
|
+
return function() {
|
|
218
|
+
var t = u;
|
|
219
|
+
u = e;
|
|
220
|
+
try {
|
|
221
|
+
return n.apply(this, arguments);
|
|
222
|
+
} finally {
|
|
223
|
+
u = t;
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
}(R), R);
|
|
228
|
+
}
|
|
229
|
+
export {
|
|
230
|
+
W as __require
|
|
231
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { s as e } from "../../_virtual/index2.js";
|
|
2
|
+
import { __require as i } from "./cjs/scheduler.production.min.js";
|
|
3
|
+
import { __require as u } from "./cjs/scheduler.development.js";
|
|
4
|
+
var o;
|
|
5
|
+
function n() {
|
|
6
|
+
return o ? e.exports : (o = 1, function(r) {
|
|
7
|
+
process.env.NODE_ENV === "production" ? r.exports = i() : r.exports = u();
|
|
8
|
+
}(e), e.exports);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
n as __require
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shelf/global-renderer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-beta.1",
|
|
4
4
|
"description": "The package exposes entrypoints with window's function(-s) to render React component",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,38 +19,35 @@
|
|
|
19
19
|
"module": "lib/index.js",
|
|
20
20
|
"types": "lib/index.d.ts",
|
|
21
21
|
"files": [
|
|
22
|
-
"lib"
|
|
23
|
-
"CHANGELOG.md"
|
|
22
|
+
"lib"
|
|
24
23
|
],
|
|
25
24
|
"scripts": {
|
|
26
25
|
"build": "vite build && yarn build:types",
|
|
27
26
|
"build:types": "tsc --emitDeclarationOnly --noEmit false",
|
|
28
|
-
"
|
|
29
|
-
"start": "storybook dev -p 3001",
|
|
27
|
+
"type-check": "tsc --noEmit",
|
|
30
28
|
"test": "jest",
|
|
31
|
-
"
|
|
29
|
+
"coverage": "yarn test --coverage",
|
|
30
|
+
"start": "storybook dev -p 3001"
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
|
-
"@shelf/
|
|
35
|
-
"@shelf/icons": "^8.1.0-beta.3",
|
|
36
|
-
"react-i18next": "11.8.15"
|
|
33
|
+
"@shelf/datetime": "^1.2.1"
|
|
37
34
|
},
|
|
38
35
|
"devDependencies": {
|
|
39
|
-
"@shelf/decision-tree-editor-components": "^1.0.
|
|
40
|
-
"@shelf/
|
|
36
|
+
"@shelf/decision-tree-editor-components": "^1.0.1-beta.1",
|
|
37
|
+
"@shelf/i18n": "10.11.0",
|
|
38
|
+
"@shelf/types": "^44.82.1",
|
|
41
39
|
"@types/react-dom": "18.0.6",
|
|
42
|
-
"i18next": "
|
|
43
|
-
"react-i18next": "11.8.15"
|
|
40
|
+
"i18next": "20.2.2",
|
|
41
|
+
"react-i18next": "11.8.15",
|
|
42
|
+
"styled-components": "5.3.5"
|
|
44
43
|
},
|
|
45
44
|
"peerDependencies": {
|
|
46
45
|
"@shelf/client-helpers": "4.x.x",
|
|
47
|
-
"@shelf/
|
|
48
|
-
"@shelf/decision-tree-editor-components": "^1.0.4-beta.0",
|
|
46
|
+
"@shelf/icons": "^7.14.10",
|
|
49
47
|
"@shelf/rich-text-editor": "4.x.x",
|
|
50
|
-
"@shelf/types": "^
|
|
48
|
+
"@shelf/types": "^44.82.1",
|
|
51
49
|
"lodash": "4.17.x",
|
|
52
|
-
"react": "18.x.x"
|
|
53
|
-
"styled-components": "^5 || ^6"
|
|
50
|
+
"react": "18.x.x"
|
|
54
51
|
},
|
|
55
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "67d9c657dbc1ee9c9d58ed0ef74d52686dbc3020"
|
|
56
53
|
}
|