@editframe/react 0.30.2-beta.0 → 0.31.0-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/dist/_virtual/rolldown_runtime.js +31 -0
- package/dist/components/TimelineRoot.d.ts +41 -0
- package/dist/components/TimelineRoot.js +78 -0
- package/dist/components/TimelineRoot.js.map +1 -0
- package/dist/elements/PanZoom.d.ts +10 -0
- package/dist/elements/PanZoom.js +16 -0
- package/dist/elements/PanZoom.js.map +1 -0
- package/dist/gui/EFTransformHandles.d.ts +11 -0
- package/dist/gui/EFTransformHandles.js +18 -0
- package/dist/gui/EFTransformHandles.js.map +1 -0
- package/dist/gui/OverlayItem.d.ts +16 -0
- package/dist/gui/OverlayItem.js +16 -0
- package/dist/gui/OverlayItem.js.map +1 -0
- package/dist/gui/OverlayLayer.d.ts +8 -0
- package/dist/gui/OverlayLayer.js +15 -0
- package/dist/gui/OverlayLayer.js.map +1 -0
- package/dist/gui/Scrubber.d.ts +15 -3
- package/dist/gui/Scrubber.js +27 -3
- package/dist/gui/Scrubber.js.map +1 -1
- package/dist/gui/TimelineRuler.d.ts +16 -0
- package/dist/gui/TimelineRuler.js +33 -0
- package/dist/gui/TimelineRuler.js.map +1 -0
- package/dist/hooks/usePanZoomTransform.d.ts +25 -0
- package/dist/hooks/usePanZoomTransform.js +49 -0
- package/dist/hooks/usePanZoomTransform.js.map +1 -0
- package/dist/index.d.ts +10 -2
- package/dist/index.js +9 -1
- package/dist/node_modules/react-dom/cjs/react-dom.development.js +16845 -0
- package/dist/node_modules/react-dom/cjs/react-dom.development.js.map +1 -0
- package/dist/node_modules/react-dom/client.js +22 -0
- package/dist/node_modules/react-dom/client.js.map +1 -0
- package/dist/node_modules/react-dom/index.js +13 -0
- package/dist/node_modules/react-dom/index.js.map +1 -0
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +391 -0
- package/dist/node_modules/scheduler/cjs/scheduler.development.js.map +1 -0
- package/dist/node_modules/scheduler/index.js +13 -0
- package/dist/node_modules/scheduler/index.js.map +1 -0
- package/package.json +3 -3
- package/types.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __commonJS } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_react_dom } from "./index.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/react-dom/client.js
|
|
5
|
+
var require_client = /* @__PURE__ */ __commonJS({ "../../node_modules/react-dom/client.js": ((exports) => {
|
|
6
|
+
var m = require_react_dom();
|
|
7
|
+
var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
8
|
+
exports.createRoot = function(c, o) {
|
|
9
|
+
i.usingClientEntryPoint = true;
|
|
10
|
+
try {
|
|
11
|
+
return m.createRoot(c, o);
|
|
12
|
+
} finally {
|
|
13
|
+
i.usingClientEntryPoint = false;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}) });
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export default require_client();
|
|
20
|
+
|
|
21
|
+
export { require_client };
|
|
22
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","names":[],"sources":["../../../../../node_modules/react-dom/client.js"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAEA,IAAI;CAKF,IAAI,IAAI,EAAE;AACV,SAAQ,aAAa,SAAS,GAAG,GAAG;AAClC,IAAE,wBAAwB;AAC1B,MAAI;AACF,UAAO,EAAE,WAAW,GAAG,EAAE;YACjB;AACR,KAAE,wBAAwB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __commonJS } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_react_dom_development } from "./cjs/react-dom.development.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/react-dom/index.js
|
|
5
|
+
var require_react_dom = /* @__PURE__ */ __commonJS({ "../../node_modules/react-dom/index.js": ((exports, module) => {
|
|
6
|
+
module.exports = require_react_dom_development();
|
|
7
|
+
}) });
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export default require_react_dom();
|
|
11
|
+
|
|
12
|
+
export { require_react_dom };
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/react-dom/index.js"],"sourcesContent":["'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAoCE,QAAO"}
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { __commonJS } from "../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/scheduler/cjs/scheduler.development.js
|
|
4
|
+
var require_scheduler_development = /* @__PURE__ */ __commonJS({ "../../node_modules/scheduler/cjs/scheduler.development.js": ((exports) => {
|
|
5
|
+
(function() {
|
|
6
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(/* @__PURE__ */ new Error());
|
|
7
|
+
var enableSchedulerDebugging = false;
|
|
8
|
+
var enableProfiling = false;
|
|
9
|
+
var frameYieldMs = 5;
|
|
10
|
+
function push(heap, node) {
|
|
11
|
+
var index = heap.length;
|
|
12
|
+
heap.push(node);
|
|
13
|
+
siftUp(heap, node, index);
|
|
14
|
+
}
|
|
15
|
+
function peek(heap) {
|
|
16
|
+
return heap.length === 0 ? null : heap[0];
|
|
17
|
+
}
|
|
18
|
+
function pop(heap) {
|
|
19
|
+
if (heap.length === 0) return null;
|
|
20
|
+
var first = heap[0];
|
|
21
|
+
var last = heap.pop();
|
|
22
|
+
if (last !== first) {
|
|
23
|
+
heap[0] = last;
|
|
24
|
+
siftDown(heap, last, 0);
|
|
25
|
+
}
|
|
26
|
+
return first;
|
|
27
|
+
}
|
|
28
|
+
function siftUp(heap, node, i) {
|
|
29
|
+
var index = i;
|
|
30
|
+
while (index > 0) {
|
|
31
|
+
var parentIndex = index - 1 >>> 1;
|
|
32
|
+
var parent = heap[parentIndex];
|
|
33
|
+
if (compare(parent, node) > 0) {
|
|
34
|
+
heap[parentIndex] = node;
|
|
35
|
+
heap[index] = parent;
|
|
36
|
+
index = parentIndex;
|
|
37
|
+
} else return;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function siftDown(heap, node, i) {
|
|
41
|
+
var index = i;
|
|
42
|
+
var length = heap.length;
|
|
43
|
+
var halfLength = length >>> 1;
|
|
44
|
+
while (index < halfLength) {
|
|
45
|
+
var leftIndex = (index + 1) * 2 - 1;
|
|
46
|
+
var left = heap[leftIndex];
|
|
47
|
+
var rightIndex = leftIndex + 1;
|
|
48
|
+
var right = heap[rightIndex];
|
|
49
|
+
if (compare(left, node) < 0) if (rightIndex < length && compare(right, left) < 0) {
|
|
50
|
+
heap[index] = right;
|
|
51
|
+
heap[rightIndex] = node;
|
|
52
|
+
index = rightIndex;
|
|
53
|
+
} else {
|
|
54
|
+
heap[index] = left;
|
|
55
|
+
heap[leftIndex] = node;
|
|
56
|
+
index = leftIndex;
|
|
57
|
+
}
|
|
58
|
+
else if (rightIndex < length && compare(right, node) < 0) {
|
|
59
|
+
heap[index] = right;
|
|
60
|
+
heap[rightIndex] = node;
|
|
61
|
+
index = rightIndex;
|
|
62
|
+
} else return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function compare(a, b) {
|
|
66
|
+
var diff = a.sortIndex - b.sortIndex;
|
|
67
|
+
return diff !== 0 ? diff : a.id - b.id;
|
|
68
|
+
}
|
|
69
|
+
var ImmediatePriority = 1;
|
|
70
|
+
var UserBlockingPriority = 2;
|
|
71
|
+
var NormalPriority = 3;
|
|
72
|
+
var LowPriority = 4;
|
|
73
|
+
var IdlePriority = 5;
|
|
74
|
+
function markTaskErrored(task, ms) {}
|
|
75
|
+
if (typeof performance === "object" && typeof performance.now === "function") {
|
|
76
|
+
var localPerformance = performance;
|
|
77
|
+
exports.unstable_now = function() {
|
|
78
|
+
return localPerformance.now();
|
|
79
|
+
};
|
|
80
|
+
} else {
|
|
81
|
+
var localDate = Date;
|
|
82
|
+
var initialTime = localDate.now();
|
|
83
|
+
exports.unstable_now = function() {
|
|
84
|
+
return localDate.now() - initialTime;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
var maxSigned31BitInt = 1073741823;
|
|
88
|
+
var IMMEDIATE_PRIORITY_TIMEOUT = -1;
|
|
89
|
+
var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
|
|
90
|
+
var NORMAL_PRIORITY_TIMEOUT = 5e3;
|
|
91
|
+
var LOW_PRIORITY_TIMEOUT = 1e4;
|
|
92
|
+
var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt;
|
|
93
|
+
var taskQueue = [];
|
|
94
|
+
var timerQueue = [];
|
|
95
|
+
var taskIdCounter = 1;
|
|
96
|
+
var currentTask = null;
|
|
97
|
+
var currentPriorityLevel = NormalPriority;
|
|
98
|
+
var isPerformingWork = false;
|
|
99
|
+
var isHostCallbackScheduled = false;
|
|
100
|
+
var isHostTimeoutScheduled = false;
|
|
101
|
+
var localSetTimeout = typeof setTimeout === "function" ? setTimeout : null;
|
|
102
|
+
var localClearTimeout = typeof clearTimeout === "function" ? clearTimeout : null;
|
|
103
|
+
var localSetImmediate = typeof setImmediate !== "undefined" ? setImmediate : null;
|
|
104
|
+
typeof navigator !== "undefined" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
105
|
+
function advanceTimers(currentTime) {
|
|
106
|
+
var timer = peek(timerQueue);
|
|
107
|
+
while (timer !== null) {
|
|
108
|
+
if (timer.callback === null) pop(timerQueue);
|
|
109
|
+
else if (timer.startTime <= currentTime) {
|
|
110
|
+
pop(timerQueue);
|
|
111
|
+
timer.sortIndex = timer.expirationTime;
|
|
112
|
+
push(taskQueue, timer);
|
|
113
|
+
} else return;
|
|
114
|
+
timer = peek(timerQueue);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function handleTimeout(currentTime) {
|
|
118
|
+
isHostTimeoutScheduled = false;
|
|
119
|
+
advanceTimers(currentTime);
|
|
120
|
+
if (!isHostCallbackScheduled) if (peek(taskQueue) !== null) {
|
|
121
|
+
isHostCallbackScheduled = true;
|
|
122
|
+
requestHostCallback(flushWork);
|
|
123
|
+
} else {
|
|
124
|
+
var firstTimer = peek(timerQueue);
|
|
125
|
+
if (firstTimer !== null) requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function flushWork(hasTimeRemaining, initialTime$1) {
|
|
129
|
+
isHostCallbackScheduled = false;
|
|
130
|
+
if (isHostTimeoutScheduled) {
|
|
131
|
+
isHostTimeoutScheduled = false;
|
|
132
|
+
cancelHostTimeout();
|
|
133
|
+
}
|
|
134
|
+
isPerformingWork = true;
|
|
135
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
136
|
+
try {
|
|
137
|
+
if (enableProfiling) try {
|
|
138
|
+
return workLoop(hasTimeRemaining, initialTime$1);
|
|
139
|
+
} catch (error) {
|
|
140
|
+
if (currentTask !== null) {
|
|
141
|
+
var currentTime = exports.unstable_now();
|
|
142
|
+
markTaskErrored(currentTask, currentTime);
|
|
143
|
+
currentTask.isQueued = false;
|
|
144
|
+
}
|
|
145
|
+
throw error;
|
|
146
|
+
}
|
|
147
|
+
else return workLoop(hasTimeRemaining, initialTime$1);
|
|
148
|
+
} finally {
|
|
149
|
+
currentTask = null;
|
|
150
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
151
|
+
isPerformingWork = false;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function workLoop(hasTimeRemaining, initialTime$1) {
|
|
155
|
+
var currentTime = initialTime$1;
|
|
156
|
+
advanceTimers(currentTime);
|
|
157
|
+
currentTask = peek(taskQueue);
|
|
158
|
+
while (currentTask !== null && !enableSchedulerDebugging) {
|
|
159
|
+
if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) break;
|
|
160
|
+
var callback = currentTask.callback;
|
|
161
|
+
if (typeof callback === "function") {
|
|
162
|
+
currentTask.callback = null;
|
|
163
|
+
currentPriorityLevel = currentTask.priorityLevel;
|
|
164
|
+
var continuationCallback = callback(currentTask.expirationTime <= currentTime);
|
|
165
|
+
currentTime = exports.unstable_now();
|
|
166
|
+
if (typeof continuationCallback === "function") currentTask.callback = continuationCallback;
|
|
167
|
+
else if (currentTask === peek(taskQueue)) pop(taskQueue);
|
|
168
|
+
advanceTimers(currentTime);
|
|
169
|
+
} else pop(taskQueue);
|
|
170
|
+
currentTask = peek(taskQueue);
|
|
171
|
+
}
|
|
172
|
+
if (currentTask !== null) return true;
|
|
173
|
+
else {
|
|
174
|
+
var firstTimer = peek(timerQueue);
|
|
175
|
+
if (firstTimer !== null) requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function unstable_runWithPriority(priorityLevel, eventHandler) {
|
|
180
|
+
switch (priorityLevel) {
|
|
181
|
+
case ImmediatePriority:
|
|
182
|
+
case UserBlockingPriority:
|
|
183
|
+
case NormalPriority:
|
|
184
|
+
case LowPriority:
|
|
185
|
+
case IdlePriority: break;
|
|
186
|
+
default: priorityLevel = NormalPriority;
|
|
187
|
+
}
|
|
188
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
189
|
+
currentPriorityLevel = priorityLevel;
|
|
190
|
+
try {
|
|
191
|
+
return eventHandler();
|
|
192
|
+
} finally {
|
|
193
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function unstable_next(eventHandler) {
|
|
197
|
+
var priorityLevel;
|
|
198
|
+
switch (currentPriorityLevel) {
|
|
199
|
+
case ImmediatePriority:
|
|
200
|
+
case UserBlockingPriority:
|
|
201
|
+
case NormalPriority:
|
|
202
|
+
priorityLevel = NormalPriority;
|
|
203
|
+
break;
|
|
204
|
+
default:
|
|
205
|
+
priorityLevel = currentPriorityLevel;
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
209
|
+
currentPriorityLevel = priorityLevel;
|
|
210
|
+
try {
|
|
211
|
+
return eventHandler();
|
|
212
|
+
} finally {
|
|
213
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function unstable_wrapCallback(callback) {
|
|
217
|
+
var parentPriorityLevel = currentPriorityLevel;
|
|
218
|
+
return function() {
|
|
219
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
220
|
+
currentPriorityLevel = parentPriorityLevel;
|
|
221
|
+
try {
|
|
222
|
+
return callback.apply(this, arguments);
|
|
223
|
+
} finally {
|
|
224
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function unstable_scheduleCallback(priorityLevel, callback, options) {
|
|
229
|
+
var currentTime = exports.unstable_now();
|
|
230
|
+
var startTime$1;
|
|
231
|
+
if (typeof options === "object" && options !== null) {
|
|
232
|
+
var delay = options.delay;
|
|
233
|
+
if (typeof delay === "number" && delay > 0) startTime$1 = currentTime + delay;
|
|
234
|
+
else startTime$1 = currentTime;
|
|
235
|
+
} else startTime$1 = currentTime;
|
|
236
|
+
var timeout;
|
|
237
|
+
switch (priorityLevel) {
|
|
238
|
+
case ImmediatePriority:
|
|
239
|
+
timeout = IMMEDIATE_PRIORITY_TIMEOUT;
|
|
240
|
+
break;
|
|
241
|
+
case UserBlockingPriority:
|
|
242
|
+
timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
|
|
243
|
+
break;
|
|
244
|
+
case IdlePriority:
|
|
245
|
+
timeout = IDLE_PRIORITY_TIMEOUT;
|
|
246
|
+
break;
|
|
247
|
+
case LowPriority:
|
|
248
|
+
timeout = LOW_PRIORITY_TIMEOUT;
|
|
249
|
+
break;
|
|
250
|
+
case NormalPriority:
|
|
251
|
+
default:
|
|
252
|
+
timeout = NORMAL_PRIORITY_TIMEOUT;
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
var expirationTime = startTime$1 + timeout;
|
|
256
|
+
var newTask = {
|
|
257
|
+
id: taskIdCounter++,
|
|
258
|
+
callback,
|
|
259
|
+
priorityLevel,
|
|
260
|
+
startTime: startTime$1,
|
|
261
|
+
expirationTime,
|
|
262
|
+
sortIndex: -1
|
|
263
|
+
};
|
|
264
|
+
if (startTime$1 > currentTime) {
|
|
265
|
+
newTask.sortIndex = startTime$1;
|
|
266
|
+
push(timerQueue, newTask);
|
|
267
|
+
if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
|
|
268
|
+
if (isHostTimeoutScheduled) cancelHostTimeout();
|
|
269
|
+
else isHostTimeoutScheduled = true;
|
|
270
|
+
requestHostTimeout(handleTimeout, startTime$1 - currentTime);
|
|
271
|
+
}
|
|
272
|
+
} else {
|
|
273
|
+
newTask.sortIndex = expirationTime;
|
|
274
|
+
push(taskQueue, newTask);
|
|
275
|
+
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
276
|
+
isHostCallbackScheduled = true;
|
|
277
|
+
requestHostCallback(flushWork);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return newTask;
|
|
281
|
+
}
|
|
282
|
+
function unstable_pauseExecution() {}
|
|
283
|
+
function unstable_continueExecution() {
|
|
284
|
+
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
285
|
+
isHostCallbackScheduled = true;
|
|
286
|
+
requestHostCallback(flushWork);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function unstable_getFirstCallbackNode() {
|
|
290
|
+
return peek(taskQueue);
|
|
291
|
+
}
|
|
292
|
+
function unstable_cancelCallback(task) {
|
|
293
|
+
task.callback = null;
|
|
294
|
+
}
|
|
295
|
+
function unstable_getCurrentPriorityLevel() {
|
|
296
|
+
return currentPriorityLevel;
|
|
297
|
+
}
|
|
298
|
+
var isMessageLoopRunning = false;
|
|
299
|
+
var scheduledHostCallback = null;
|
|
300
|
+
var taskTimeoutID = -1;
|
|
301
|
+
var frameInterval = frameYieldMs;
|
|
302
|
+
var startTime = -1;
|
|
303
|
+
function shouldYieldToHost() {
|
|
304
|
+
if (exports.unstable_now() - startTime < frameInterval) return false;
|
|
305
|
+
return true;
|
|
306
|
+
}
|
|
307
|
+
function requestPaint() {}
|
|
308
|
+
function forceFrameRate(fps) {
|
|
309
|
+
if (fps < 0 || fps > 125) {
|
|
310
|
+
console["error"]("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
if (fps > 0) frameInterval = Math.floor(1e3 / fps);
|
|
314
|
+
else frameInterval = frameYieldMs;
|
|
315
|
+
}
|
|
316
|
+
var performWorkUntilDeadline = function() {
|
|
317
|
+
if (scheduledHostCallback !== null) {
|
|
318
|
+
var currentTime = exports.unstable_now();
|
|
319
|
+
startTime = currentTime;
|
|
320
|
+
var hasTimeRemaining = true;
|
|
321
|
+
var hasMoreWork = true;
|
|
322
|
+
try {
|
|
323
|
+
hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
|
|
324
|
+
} finally {
|
|
325
|
+
if (hasMoreWork) schedulePerformWorkUntilDeadline();
|
|
326
|
+
else {
|
|
327
|
+
isMessageLoopRunning = false;
|
|
328
|
+
scheduledHostCallback = null;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
} else isMessageLoopRunning = false;
|
|
332
|
+
};
|
|
333
|
+
var schedulePerformWorkUntilDeadline;
|
|
334
|
+
if (typeof localSetImmediate === "function") schedulePerformWorkUntilDeadline = function() {
|
|
335
|
+
localSetImmediate(performWorkUntilDeadline);
|
|
336
|
+
};
|
|
337
|
+
else if (typeof MessageChannel !== "undefined") {
|
|
338
|
+
var channel = new MessageChannel();
|
|
339
|
+
var port = channel.port2;
|
|
340
|
+
channel.port1.onmessage = performWorkUntilDeadline;
|
|
341
|
+
schedulePerformWorkUntilDeadline = function() {
|
|
342
|
+
port.postMessage(null);
|
|
343
|
+
};
|
|
344
|
+
} else schedulePerformWorkUntilDeadline = function() {
|
|
345
|
+
localSetTimeout(performWorkUntilDeadline, 0);
|
|
346
|
+
};
|
|
347
|
+
function requestHostCallback(callback) {
|
|
348
|
+
scheduledHostCallback = callback;
|
|
349
|
+
if (!isMessageLoopRunning) {
|
|
350
|
+
isMessageLoopRunning = true;
|
|
351
|
+
schedulePerformWorkUntilDeadline();
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function requestHostTimeout(callback, ms) {
|
|
355
|
+
taskTimeoutID = localSetTimeout(function() {
|
|
356
|
+
callback(exports.unstable_now());
|
|
357
|
+
}, ms);
|
|
358
|
+
}
|
|
359
|
+
function cancelHostTimeout() {
|
|
360
|
+
localClearTimeout(taskTimeoutID);
|
|
361
|
+
taskTimeoutID = -1;
|
|
362
|
+
}
|
|
363
|
+
var unstable_requestPaint = requestPaint;
|
|
364
|
+
var unstable_Profiling = null;
|
|
365
|
+
exports.unstable_IdlePriority = IdlePriority;
|
|
366
|
+
exports.unstable_ImmediatePriority = ImmediatePriority;
|
|
367
|
+
exports.unstable_LowPriority = LowPriority;
|
|
368
|
+
exports.unstable_NormalPriority = NormalPriority;
|
|
369
|
+
exports.unstable_Profiling = unstable_Profiling;
|
|
370
|
+
exports.unstable_UserBlockingPriority = UserBlockingPriority;
|
|
371
|
+
exports.unstable_cancelCallback = unstable_cancelCallback;
|
|
372
|
+
exports.unstable_continueExecution = unstable_continueExecution;
|
|
373
|
+
exports.unstable_forceFrameRate = forceFrameRate;
|
|
374
|
+
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
|
|
375
|
+
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
|
|
376
|
+
exports.unstable_next = unstable_next;
|
|
377
|
+
exports.unstable_pauseExecution = unstable_pauseExecution;
|
|
378
|
+
exports.unstable_requestPaint = unstable_requestPaint;
|
|
379
|
+
exports.unstable_runWithPriority = unstable_runWithPriority;
|
|
380
|
+
exports.unstable_scheduleCallback = unstable_scheduleCallback;
|
|
381
|
+
exports.unstable_shouldYield = shouldYieldToHost;
|
|
382
|
+
exports.unstable_wrapCallback = unstable_wrapCallback;
|
|
383
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(/* @__PURE__ */ new Error());
|
|
384
|
+
})();
|
|
385
|
+
}) });
|
|
386
|
+
|
|
387
|
+
//#endregion
|
|
388
|
+
export default require_scheduler_development();
|
|
389
|
+
|
|
390
|
+
export { require_scheduler_development };
|
|
391
|
+
//# sourceMappingURL=scheduler.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduler.development.js","names":["initialTime","startTime"],"sources":["../../../../../../node_modules/scheduler/cjs/scheduler.development.js"],"sourcesContent":["/**\n * @license React\n * scheduler.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n\n 'use strict';\n\n/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());\n}\n var enableSchedulerDebugging = false;\nvar enableProfiling = false;\nvar frameYieldMs = 5;\n\nfunction push(heap, node) {\n var index = heap.length;\n heap.push(node);\n siftUp(heap, node, index);\n}\nfunction peek(heap) {\n return heap.length === 0 ? null : heap[0];\n}\nfunction pop(heap) {\n if (heap.length === 0) {\n return null;\n }\n\n var first = heap[0];\n var last = heap.pop();\n\n if (last !== first) {\n heap[0] = last;\n siftDown(heap, last, 0);\n }\n\n return first;\n}\n\nfunction siftUp(heap, node, i) {\n var index = i;\n\n while (index > 0) {\n var parentIndex = index - 1 >>> 1;\n var parent = heap[parentIndex];\n\n if (compare(parent, node) > 0) {\n // The parent is larger. Swap positions.\n heap[parentIndex] = node;\n heap[index] = parent;\n index = parentIndex;\n } else {\n // The parent is smaller. Exit.\n return;\n }\n }\n}\n\nfunction siftDown(heap, node, i) {\n var index = i;\n var length = heap.length;\n var halfLength = length >>> 1;\n\n while (index < halfLength) {\n var leftIndex = (index + 1) * 2 - 1;\n var left = heap[leftIndex];\n var rightIndex = leftIndex + 1;\n var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.\n\n if (compare(left, node) < 0) {\n if (rightIndex < length && compare(right, left) < 0) {\n heap[index] = right;\n heap[rightIndex] = node;\n index = rightIndex;\n } else {\n heap[index] = left;\n heap[leftIndex] = node;\n index = leftIndex;\n }\n } else if (rightIndex < length && compare(right, node) < 0) {\n heap[index] = right;\n heap[rightIndex] = node;\n index = rightIndex;\n } else {\n // Neither child is smaller. Exit.\n return;\n }\n }\n}\n\nfunction compare(a, b) {\n // Compare sort index first, then task id.\n var diff = a.sortIndex - b.sortIndex;\n return diff !== 0 ? diff : a.id - b.id;\n}\n\n// TODO: Use symbols?\nvar ImmediatePriority = 1;\nvar UserBlockingPriority = 2;\nvar NormalPriority = 3;\nvar LowPriority = 4;\nvar IdlePriority = 5;\n\nfunction markTaskErrored(task, ms) {\n}\n\n/* eslint-disable no-var */\n\nvar hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';\n\nif (hasPerformanceNow) {\n var localPerformance = performance;\n\n exports.unstable_now = function () {\n return localPerformance.now();\n };\n} else {\n var localDate = Date;\n var initialTime = localDate.now();\n\n exports.unstable_now = function () {\n return localDate.now() - initialTime;\n };\n} // Max 31 bit integer. The max integer size in V8 for 32-bit systems.\n// Math.pow(2, 30) - 1\n// 0b111111111111111111111111111111\n\n\nvar maxSigned31BitInt = 1073741823; // Times out immediately\n\nvar IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out\n\nvar USER_BLOCKING_PRIORITY_TIMEOUT = 250;\nvar NORMAL_PRIORITY_TIMEOUT = 5000;\nvar LOW_PRIORITY_TIMEOUT = 10000; // Never times out\n\nvar IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap\n\nvar taskQueue = [];\nvar timerQueue = []; // Incrementing id counter. Used to maintain insertion order.\n\nvar taskIdCounter = 1; // Pausing the scheduler is useful for debugging.\nvar currentTask = null;\nvar currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance.\n\nvar isPerformingWork = false;\nvar isHostCallbackScheduled = false;\nvar isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them.\n\nvar localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null;\nvar localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null;\nvar localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom\n\nvar isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null;\n\nfunction advanceTimers(currentTime) {\n // Check for tasks that are no longer delayed and add them to the queue.\n var timer = peek(timerQueue);\n\n while (timer !== null) {\n if (timer.callback === null) {\n // Timer was cancelled.\n pop(timerQueue);\n } else if (timer.startTime <= currentTime) {\n // Timer fired. Transfer to the task queue.\n pop(timerQueue);\n timer.sortIndex = timer.expirationTime;\n push(taskQueue, timer);\n } else {\n // Remaining timers are pending.\n return;\n }\n\n timer = peek(timerQueue);\n }\n}\n\nfunction handleTimeout(currentTime) {\n isHostTimeoutScheduled = false;\n advanceTimers(currentTime);\n\n if (!isHostCallbackScheduled) {\n if (peek(taskQueue) !== null) {\n isHostCallbackScheduled = true;\n requestHostCallback(flushWork);\n } else {\n var firstTimer = peek(timerQueue);\n\n if (firstTimer !== null) {\n requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n }\n }\n }\n}\n\nfunction flushWork(hasTimeRemaining, initialTime) {\n\n\n isHostCallbackScheduled = false;\n\n if (isHostTimeoutScheduled) {\n // We scheduled a timeout but it's no longer needed. Cancel it.\n isHostTimeoutScheduled = false;\n cancelHostTimeout();\n }\n\n isPerformingWork = true;\n var previousPriorityLevel = currentPriorityLevel;\n\n try {\n if (enableProfiling) {\n try {\n return workLoop(hasTimeRemaining, initialTime);\n } catch (error) {\n if (currentTask !== null) {\n var currentTime = exports.unstable_now();\n markTaskErrored(currentTask, currentTime);\n currentTask.isQueued = false;\n }\n\n throw error;\n }\n } else {\n // No catch in prod code path.\n return workLoop(hasTimeRemaining, initialTime);\n }\n } finally {\n currentTask = null;\n currentPriorityLevel = previousPriorityLevel;\n isPerformingWork = false;\n }\n}\n\nfunction workLoop(hasTimeRemaining, initialTime) {\n var currentTime = initialTime;\n advanceTimers(currentTime);\n currentTask = peek(taskQueue);\n\n while (currentTask !== null && !(enableSchedulerDebugging )) {\n if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {\n // This currentTask hasn't expired, and we've reached the deadline.\n break;\n }\n\n var callback = currentTask.callback;\n\n if (typeof callback === 'function') {\n currentTask.callback = null;\n currentPriorityLevel = currentTask.priorityLevel;\n var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;\n\n var continuationCallback = callback(didUserCallbackTimeout);\n currentTime = exports.unstable_now();\n\n if (typeof continuationCallback === 'function') {\n currentTask.callback = continuationCallback;\n } else {\n\n if (currentTask === peek(taskQueue)) {\n pop(taskQueue);\n }\n }\n\n advanceTimers(currentTime);\n } else {\n pop(taskQueue);\n }\n\n currentTask = peek(taskQueue);\n } // Return whether there's additional work\n\n\n if (currentTask !== null) {\n return true;\n } else {\n var firstTimer = peek(timerQueue);\n\n if (firstTimer !== null) {\n requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n }\n\n return false;\n }\n}\n\nfunction unstable_runWithPriority(priorityLevel, eventHandler) {\n switch (priorityLevel) {\n case ImmediatePriority:\n case UserBlockingPriority:\n case NormalPriority:\n case LowPriority:\n case IdlePriority:\n break;\n\n default:\n priorityLevel = NormalPriority;\n }\n\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n}\n\nfunction unstable_next(eventHandler) {\n var priorityLevel;\n\n switch (currentPriorityLevel) {\n case ImmediatePriority:\n case UserBlockingPriority:\n case NormalPriority:\n // Shift down to normal priority\n priorityLevel = NormalPriority;\n break;\n\n default:\n // Anything lower than normal priority should remain at the current level.\n priorityLevel = currentPriorityLevel;\n break;\n }\n\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n}\n\nfunction unstable_wrapCallback(callback) {\n var parentPriorityLevel = currentPriorityLevel;\n return function () {\n // This is a fork of runWithPriority, inlined for performance.\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = parentPriorityLevel;\n\n try {\n return callback.apply(this, arguments);\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n };\n}\n\nfunction unstable_scheduleCallback(priorityLevel, callback, options) {\n var currentTime = exports.unstable_now();\n var startTime;\n\n if (typeof options === 'object' && options !== null) {\n var delay = options.delay;\n\n if (typeof delay === 'number' && delay > 0) {\n startTime = currentTime + delay;\n } else {\n startTime = currentTime;\n }\n } else {\n startTime = currentTime;\n }\n\n var timeout;\n\n switch (priorityLevel) {\n case ImmediatePriority:\n timeout = IMMEDIATE_PRIORITY_TIMEOUT;\n break;\n\n case UserBlockingPriority:\n timeout = USER_BLOCKING_PRIORITY_TIMEOUT;\n break;\n\n case IdlePriority:\n timeout = IDLE_PRIORITY_TIMEOUT;\n break;\n\n case LowPriority:\n timeout = LOW_PRIORITY_TIMEOUT;\n break;\n\n case NormalPriority:\n default:\n timeout = NORMAL_PRIORITY_TIMEOUT;\n break;\n }\n\n var expirationTime = startTime + timeout;\n var newTask = {\n id: taskIdCounter++,\n callback: callback,\n priorityLevel: priorityLevel,\n startTime: startTime,\n expirationTime: expirationTime,\n sortIndex: -1\n };\n\n if (startTime > currentTime) {\n // This is a delayed task.\n newTask.sortIndex = startTime;\n push(timerQueue, newTask);\n\n if (peek(taskQueue) === null && newTask === peek(timerQueue)) {\n // All tasks are delayed, and this is the task with the earliest delay.\n if (isHostTimeoutScheduled) {\n // Cancel an existing timeout.\n cancelHostTimeout();\n } else {\n isHostTimeoutScheduled = true;\n } // Schedule a timeout.\n\n\n requestHostTimeout(handleTimeout, startTime - currentTime);\n }\n } else {\n newTask.sortIndex = expirationTime;\n push(taskQueue, newTask);\n // wait until the next time we yield.\n\n\n if (!isHostCallbackScheduled && !isPerformingWork) {\n isHostCallbackScheduled = true;\n requestHostCallback(flushWork);\n }\n }\n\n return newTask;\n}\n\nfunction unstable_pauseExecution() {\n}\n\nfunction unstable_continueExecution() {\n\n if (!isHostCallbackScheduled && !isPerformingWork) {\n isHostCallbackScheduled = true;\n requestHostCallback(flushWork);\n }\n}\n\nfunction unstable_getFirstCallbackNode() {\n return peek(taskQueue);\n}\n\nfunction unstable_cancelCallback(task) {\n // remove from the queue because you can't remove arbitrary nodes from an\n // array based heap, only the first one.)\n\n\n task.callback = null;\n}\n\nfunction unstable_getCurrentPriorityLevel() {\n return currentPriorityLevel;\n}\n\nvar isMessageLoopRunning = false;\nvar scheduledHostCallback = null;\nvar taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main\n// thread, like user events. By default, it yields multiple times per frame.\n// It does not attempt to align with frame boundaries, since most tasks don't\n// need to be frame aligned; for those that do, use requestAnimationFrame.\n\nvar frameInterval = frameYieldMs;\nvar startTime = -1;\n\nfunction shouldYieldToHost() {\n var timeElapsed = exports.unstable_now() - startTime;\n\n if (timeElapsed < frameInterval) {\n // The main thread has only been blocked for a really short amount of time;\n // smaller than a single frame. Don't yield yet.\n return false;\n } // The main thread has been blocked for a non-negligible amount of time. We\n\n\n return true;\n}\n\nfunction requestPaint() {\n\n}\n\nfunction forceFrameRate(fps) {\n if (fps < 0 || fps > 125) {\n // Using console['error'] to evade Babel and ESLint\n console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');\n return;\n }\n\n if (fps > 0) {\n frameInterval = Math.floor(1000 / fps);\n } else {\n // reset the framerate\n frameInterval = frameYieldMs;\n }\n}\n\nvar performWorkUntilDeadline = function () {\n if (scheduledHostCallback !== null) {\n var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread\n // has been blocked.\n\n startTime = currentTime;\n var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the\n // error can be observed.\n //\n // Intentionally not using a try-catch, since that makes some debugging\n // techniques harder. Instead, if `scheduledHostCallback` errors, then\n // `hasMoreWork` will remain true, and we'll continue the work loop.\n\n var hasMoreWork = true;\n\n try {\n hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);\n } finally {\n if (hasMoreWork) {\n // If there's more work, schedule the next message event at the end\n // of the preceding one.\n schedulePerformWorkUntilDeadline();\n } else {\n isMessageLoopRunning = false;\n scheduledHostCallback = null;\n }\n }\n } else {\n isMessageLoopRunning = false;\n } // Yielding to the browser will give it a chance to paint, so we can\n};\n\nvar schedulePerformWorkUntilDeadline;\n\nif (typeof localSetImmediate === 'function') {\n // Node.js and old IE.\n // There's a few reasons for why we prefer setImmediate.\n //\n // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting.\n // (Even though this is a DOM fork of the Scheduler, you could get here\n // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.)\n // https://github.com/facebook/react/issues/20756\n //\n // But also, it runs earlier which is the semantic we want.\n // If other browsers ever implement it, it's better to use it.\n // Although both of these would be inferior to native scheduling.\n schedulePerformWorkUntilDeadline = function () {\n localSetImmediate(performWorkUntilDeadline);\n };\n} else if (typeof MessageChannel !== 'undefined') {\n // DOM and Worker environments.\n // We prefer MessageChannel because of the 4ms setTimeout clamping.\n var channel = new MessageChannel();\n var port = channel.port2;\n channel.port1.onmessage = performWorkUntilDeadline;\n\n schedulePerformWorkUntilDeadline = function () {\n port.postMessage(null);\n };\n} else {\n // We should only fallback here in non-browser environments.\n schedulePerformWorkUntilDeadline = function () {\n localSetTimeout(performWorkUntilDeadline, 0);\n };\n}\n\nfunction requestHostCallback(callback) {\n scheduledHostCallback = callback;\n\n if (!isMessageLoopRunning) {\n isMessageLoopRunning = true;\n schedulePerformWorkUntilDeadline();\n }\n}\n\nfunction requestHostTimeout(callback, ms) {\n taskTimeoutID = localSetTimeout(function () {\n callback(exports.unstable_now());\n }, ms);\n}\n\nfunction cancelHostTimeout() {\n localClearTimeout(taskTimeoutID);\n taskTimeoutID = -1;\n}\n\nvar unstable_requestPaint = requestPaint;\nvar unstable_Profiling = null;\n\nexports.unstable_IdlePriority = IdlePriority;\nexports.unstable_ImmediatePriority = ImmediatePriority;\nexports.unstable_LowPriority = LowPriority;\nexports.unstable_NormalPriority = NormalPriority;\nexports.unstable_Profiling = unstable_Profiling;\nexports.unstable_UserBlockingPriority = UserBlockingPriority;\nexports.unstable_cancelCallback = unstable_cancelCallback;\nexports.unstable_continueExecution = unstable_continueExecution;\nexports.unstable_forceFrameRate = forceFrameRate;\nexports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;\nexports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;\nexports.unstable_next = unstable_next;\nexports.unstable_pauseExecution = unstable_pauseExecution;\nexports.unstable_requestPaint = unstable_requestPaint;\nexports.unstable_runWithPriority = unstable_runWithPriority;\nexports.unstable_scheduleCallback = unstable_scheduleCallback;\nexports.unstable_shouldYield = shouldYieldToHost;\nexports.unstable_wrapCallback = unstable_wrapCallback;\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\nif (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===\n 'function'\n) {\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());\n}\n \n })();\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;AAaE,EAAC,WAAW;AAKd,MACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,gCACpC,WAEF,gCAA+B,4CAA4B,IAAI,OAAO,CAAC;EAE/D,IAAI,2BAA2B;EACzC,IAAI,kBAAkB;EACtB,IAAI,eAAe;EAEnB,SAAS,KAAK,MAAM,MAAM;GACxB,IAAI,QAAQ,KAAK;AACjB,QAAK,KAAK,KAAK;AACf,UAAO,MAAM,MAAM,MAAM;;EAE3B,SAAS,KAAK,MAAM;AAClB,UAAO,KAAK,WAAW,IAAI,OAAO,KAAK;;EAEzC,SAAS,IAAI,MAAM;AACjB,OAAI,KAAK,WAAW,EAClB,QAAO;GAGT,IAAI,QAAQ,KAAK;GACjB,IAAI,OAAO,KAAK,KAAK;AAErB,OAAI,SAAS,OAAO;AAClB,SAAK,KAAK;AACV,aAAS,MAAM,MAAM,EAAE;;AAGzB,UAAO;;EAGT,SAAS,OAAO,MAAM,MAAM,GAAG;GAC7B,IAAI,QAAQ;AAEZ,UAAO,QAAQ,GAAG;IAChB,IAAI,cAAc,QAAQ,MAAM;IAChC,IAAI,SAAS,KAAK;AAElB,QAAI,QAAQ,QAAQ,KAAK,GAAG,GAAG;AAE7B,UAAK,eAAe;AACpB,UAAK,SAAS;AACd,aAAQ;UAGR;;;EAKN,SAAS,SAAS,MAAM,MAAM,GAAG;GAC/B,IAAI,QAAQ;GACZ,IAAI,SAAS,KAAK;GAClB,IAAI,aAAa,WAAW;AAE5B,UAAO,QAAQ,YAAY;IACzB,IAAI,aAAa,QAAQ,KAAK,IAAI;IAClC,IAAI,OAAO,KAAK;IAChB,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,UAAQ,6BAA6B;AACrC,UAAQ,0BAA0B;AAClC,UAAQ,mCAAmC;AAC3C,UAAQ,gCAAgC;AACxC,UAAQ,gBAAgB;AACxB,UAAQ,0BAA0B;AAClC,UAAQ,wBAAwB;AAChC,UAAQ,2BAA2B;AACnC,UAAQ,4BAA4B;AACpC,UAAQ,uBAAuB;AAC/B,UAAQ,wBAAwB;AAEhC,MACE,OAAO,mCAAmC,eAC1C,OAAO,+BAA+B,+BACpC,WAEF,gCAA+B,2CAA2B,IAAI,OAAO,CAAC;KAGlE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __commonJS } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_scheduler_development } from "./cjs/scheduler.development.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/scheduler/index.js
|
|
5
|
+
var require_scheduler = /* @__PURE__ */ __commonJS({ "../../node_modules/scheduler/index.js": ((exports, module) => {
|
|
6
|
+
module.exports = require_scheduler_development();
|
|
7
|
+
}) });
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export default require_scheduler();
|
|
11
|
+
|
|
12
|
+
export { require_scheduler };
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/scheduler/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAKE,QAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editframe/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
|
|
18
18
|
"build": "tsdown",
|
|
19
19
|
"build:watch": "tsdown --watch",
|
|
20
|
-
"typedoc": "typedoc --json ./types.json --plugin typedoc-plugin-zod --excludeExternals ./src && jq -c . ./types.json > ./types.tmp.json && mv ./types.tmp.json ./types.json"
|
|
20
|
+
"typedoc": "(typedoc --json ./types.json --plugin typedoc-plugin-zod --excludeExternals ./src || true) && ([ -f ./types.json ] && jq -c . ./types.json > ./types.tmp.json && mv ./types.tmp.json ./types.json || true)"
|
|
21
21
|
},
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "UNLICENSED",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@editframe/elements": "0.
|
|
25
|
+
"@editframe/elements": "0.31.0-beta.1",
|
|
26
26
|
"@lit/task": "^1.0.1",
|
|
27
27
|
"lit": "^3.3.1",
|
|
28
28
|
"react": "^18.3.0"
|