antd-mobile 5.12.0 → 5.12.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/2x/cjs/utils/render.js +14 -2
- package/2x/es/utils/render.js +14 -2
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.js +12 -2
- package/bundle/antd-mobile.es.js +12 -2
- package/cjs/utils/render.js +14 -2
- package/es/utils/render.js +14 -2
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
package/2x/cjs/utils/render.js
CHANGED
|
@@ -26,13 +26,23 @@ let createRoot;
|
|
|
26
26
|
try {
|
|
27
27
|
const mainVersion = Number((version || '').split('.')[0]);
|
|
28
28
|
|
|
29
|
-
if (mainVersion >= 18) {
|
|
29
|
+
if (mainVersion >= 18 && fullClone.createRoot) {
|
|
30
30
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
31
|
-
createRoot =
|
|
31
|
+
createRoot = fullClone.createRoot;
|
|
32
32
|
}
|
|
33
33
|
} catch (e) {// Do nothing;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
function toggleWarning(skip) {
|
|
37
|
+
const {
|
|
38
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
39
|
+
} = fullClone;
|
|
40
|
+
|
|
41
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === 'object') {
|
|
42
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
36
46
|
const MARK = '__antd_mobile_root__';
|
|
37
47
|
|
|
38
48
|
function legacyRender(node, container) {
|
|
@@ -40,7 +50,9 @@ function legacyRender(node, container) {
|
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
function concurrentRender(node, container) {
|
|
53
|
+
toggleWarning(true);
|
|
43
54
|
const root = container[MARK] || createRoot(container);
|
|
55
|
+
toggleWarning(false);
|
|
44
56
|
root.render(node);
|
|
45
57
|
container[MARK] = root;
|
|
46
58
|
}
|
package/2x/es/utils/render.js
CHANGED
|
@@ -12,13 +12,23 @@ let createRoot;
|
|
|
12
12
|
try {
|
|
13
13
|
const mainVersion = Number((version || '').split('.')[0]);
|
|
14
14
|
|
|
15
|
-
if (mainVersion >= 18) {
|
|
15
|
+
if (mainVersion >= 18 && fullClone.createRoot) {
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
17
|
-
createRoot =
|
|
17
|
+
createRoot = fullClone.createRoot;
|
|
18
18
|
}
|
|
19
19
|
} catch (e) {// Do nothing;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
function toggleWarning(skip) {
|
|
23
|
+
const {
|
|
24
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
25
|
+
} = fullClone;
|
|
26
|
+
|
|
27
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === 'object') {
|
|
28
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
22
32
|
const MARK = '__antd_mobile_root__';
|
|
23
33
|
|
|
24
34
|
function legacyRender(node, container) {
|
|
@@ -26,7 +36,9 @@ function legacyRender(node, container) {
|
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
function concurrentRender(node, container) {
|
|
39
|
+
toggleWarning(true);
|
|
29
40
|
const root = container[MARK] || createRoot(container);
|
|
41
|
+
toggleWarning(false);
|
|
30
42
|
root.render(node);
|
|
31
43
|
container[MARK] = root;
|
|
32
44
|
}
|
package/2x/package.json
CHANGED
|
@@ -9165,17 +9165,27 @@ const {
|
|
|
9165
9165
|
let createRoot;
|
|
9166
9166
|
try {
|
|
9167
9167
|
const mainVersion = Number((version || "").split(".")[0]);
|
|
9168
|
-
if (mainVersion >= 18) {
|
|
9169
|
-
createRoot =
|
|
9168
|
+
if (mainVersion >= 18 && fullClone.createRoot) {
|
|
9169
|
+
createRoot = fullClone.createRoot;
|
|
9170
9170
|
}
|
|
9171
9171
|
} catch (e) {
|
|
9172
9172
|
}
|
|
9173
|
+
function toggleWarning(skip) {
|
|
9174
|
+
const {
|
|
9175
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
9176
|
+
} = fullClone;
|
|
9177
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === "object") {
|
|
9178
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
9179
|
+
}
|
|
9180
|
+
}
|
|
9173
9181
|
const MARK = "__antd_mobile_root__";
|
|
9174
9182
|
function legacyRender(node, container) {
|
|
9175
9183
|
reactRender(node, container);
|
|
9176
9184
|
}
|
|
9177
9185
|
function concurrentRender(node, container) {
|
|
9186
|
+
toggleWarning(true);
|
|
9178
9187
|
const root2 = container[MARK] || createRoot(container);
|
|
9188
|
+
toggleWarning(false);
|
|
9179
9189
|
root2.render(node);
|
|
9180
9190
|
container[MARK] = root2;
|
|
9181
9191
|
}
|
package/bundle/antd-mobile.es.js
CHANGED
|
@@ -9155,17 +9155,27 @@ const {
|
|
|
9155
9155
|
let createRoot;
|
|
9156
9156
|
try {
|
|
9157
9157
|
const mainVersion = Number((version || "").split(".")[0]);
|
|
9158
|
-
if (mainVersion >= 18) {
|
|
9159
|
-
createRoot =
|
|
9158
|
+
if (mainVersion >= 18 && fullClone.createRoot) {
|
|
9159
|
+
createRoot = fullClone.createRoot;
|
|
9160
9160
|
}
|
|
9161
9161
|
} catch (e) {
|
|
9162
9162
|
}
|
|
9163
|
+
function toggleWarning(skip) {
|
|
9164
|
+
const {
|
|
9165
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
9166
|
+
} = fullClone;
|
|
9167
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === "object") {
|
|
9168
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
9169
|
+
}
|
|
9170
|
+
}
|
|
9163
9171
|
const MARK = "__antd_mobile_root__";
|
|
9164
9172
|
function legacyRender(node, container) {
|
|
9165
9173
|
reactRender(node, container);
|
|
9166
9174
|
}
|
|
9167
9175
|
function concurrentRender(node, container) {
|
|
9176
|
+
toggleWarning(true);
|
|
9168
9177
|
const root2 = container[MARK] || createRoot(container);
|
|
9178
|
+
toggleWarning(false);
|
|
9169
9179
|
root2.render(node);
|
|
9170
9180
|
container[MARK] = root2;
|
|
9171
9181
|
}
|
package/cjs/utils/render.js
CHANGED
|
@@ -26,13 +26,23 @@ let createRoot;
|
|
|
26
26
|
try {
|
|
27
27
|
const mainVersion = Number((version || '').split('.')[0]);
|
|
28
28
|
|
|
29
|
-
if (mainVersion >= 18) {
|
|
29
|
+
if (mainVersion >= 18 && fullClone.createRoot) {
|
|
30
30
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
31
|
-
createRoot =
|
|
31
|
+
createRoot = fullClone.createRoot;
|
|
32
32
|
}
|
|
33
33
|
} catch (e) {// Do nothing;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
function toggleWarning(skip) {
|
|
37
|
+
const {
|
|
38
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
39
|
+
} = fullClone;
|
|
40
|
+
|
|
41
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === 'object') {
|
|
42
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
36
46
|
const MARK = '__antd_mobile_root__';
|
|
37
47
|
|
|
38
48
|
function legacyRender(node, container) {
|
|
@@ -40,7 +50,9 @@ function legacyRender(node, container) {
|
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
function concurrentRender(node, container) {
|
|
53
|
+
toggleWarning(true);
|
|
43
54
|
const root = container[MARK] || createRoot(container);
|
|
55
|
+
toggleWarning(false);
|
|
44
56
|
root.render(node);
|
|
45
57
|
container[MARK] = root;
|
|
46
58
|
}
|
package/es/utils/render.js
CHANGED
|
@@ -12,13 +12,23 @@ let createRoot;
|
|
|
12
12
|
try {
|
|
13
13
|
const mainVersion = Number((version || '').split('.')[0]);
|
|
14
14
|
|
|
15
|
-
if (mainVersion >= 18) {
|
|
15
|
+
if (mainVersion >= 18 && fullClone.createRoot) {
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
17
|
-
createRoot =
|
|
17
|
+
createRoot = fullClone.createRoot;
|
|
18
18
|
}
|
|
19
19
|
} catch (e) {// Do nothing;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
function toggleWarning(skip) {
|
|
23
|
+
const {
|
|
24
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
|
|
25
|
+
} = fullClone;
|
|
26
|
+
|
|
27
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === 'object') {
|
|
28
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
22
32
|
const MARK = '__antd_mobile_root__';
|
|
23
33
|
|
|
24
34
|
function legacyRender(node, container) {
|
|
@@ -26,7 +36,9 @@ function legacyRender(node, container) {
|
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
function concurrentRender(node, container) {
|
|
39
|
+
toggleWarning(true);
|
|
29
40
|
const root = container[MARK] || createRoot(container);
|
|
41
|
+
toggleWarning(false);
|
|
30
42
|
root.render(node);
|
|
31
43
|
container[MARK] = root;
|
|
32
44
|
}
|