1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | 'use strict';
|
13 |
|
14 | (function(global, factory) {
|
15 |
|
16 | typeof exports === 'object' && typeof module !== 'undefined'
|
17 | ? (module.exports = factory(require('react')))
|
18 | : typeof define === 'function' && define.amd
|
19 | ? define(['react'], factory)
|
20 | : (global.Scheduler = factory(global));
|
21 | })(this, function(global) {
|
22 | function unstable_now() {
|
23 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
|
24 | this,
|
25 | arguments
|
26 | );
|
27 | }
|
28 |
|
29 | function unstable_scheduleCallback() {
|
30 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
|
31 | this,
|
32 | arguments
|
33 | );
|
34 | }
|
35 |
|
36 | function unstable_cancelCallback() {
|
37 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
|
38 | this,
|
39 | arguments
|
40 | );
|
41 | }
|
42 |
|
43 | function unstable_shouldYield() {
|
44 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
|
45 | this,
|
46 | arguments
|
47 | );
|
48 | }
|
49 |
|
50 | function unstable_runWithPriority() {
|
51 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
|
52 | this,
|
53 | arguments
|
54 | );
|
55 | }
|
56 |
|
57 | function unstable_next() {
|
58 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
|
59 | this,
|
60 | arguments
|
61 | );
|
62 | }
|
63 |
|
64 | function unstable_wrapCallback() {
|
65 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
|
66 | this,
|
67 | arguments
|
68 | );
|
69 | }
|
70 |
|
71 | function unstable_getCurrentPriorityLevel() {
|
72 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
|
73 | this,
|
74 | arguments
|
75 | );
|
76 | }
|
77 |
|
78 | function unstable_getFirstCallbackNode() {
|
79 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
|
80 | this,
|
81 | arguments
|
82 | );
|
83 | }
|
84 |
|
85 | function unstable_pauseExecution() {
|
86 | return undefined;
|
87 | }
|
88 |
|
89 | function unstable_continueExecution() {
|
90 | return undefined;
|
91 | }
|
92 |
|
93 | return Object.freeze({
|
94 | unstable_now: unstable_now,
|
95 | unstable_scheduleCallback: unstable_scheduleCallback,
|
96 | unstable_cancelCallback: unstable_cancelCallback,
|
97 | unstable_shouldYield: unstable_shouldYield,
|
98 | unstable_runWithPriority: unstable_runWithPriority,
|
99 | unstable_next: unstable_next,
|
100 | unstable_wrapCallback: unstable_wrapCallback,
|
101 | unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
|
102 | unstable_continueExecution: unstable_continueExecution,
|
103 | unstable_pauseExecution: unstable_pauseExecution,
|
104 | unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
|
105 | get unstable_IdlePriority() {
|
106 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
107 | .Scheduler.unstable_IdlePriority;
|
108 | },
|
109 | get unstable_ImmediatePriority() {
|
110 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
111 | .Scheduler.unstable_ImmediatePriority;
|
112 | },
|
113 | get unstable_LowPriority() {
|
114 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
115 | .Scheduler.unstable_LowPriority;
|
116 | },
|
117 | get unstable_NormalPriority() {
|
118 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
119 | .Scheduler.unstable_NormalPriority;
|
120 | },
|
121 | get unstable_UserBlockingPriority() {
|
122 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
123 | .Scheduler.unstable_UserBlockingPriority;
|
124 | },
|
125 | });
|
126 | });
|