@zlooks.cn/password-auth-server 1.1.5 → 1.1.6
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/.hile-rsc/{build-muplbuao-a44720c9/client-browser/chunks/chunk-LOK3RT5D.js → build-mv1v7sq7-af95bae4/client-browser/chunks/chunk-UYTFSLNG.js} +310 -124
- package/.hile-rsc/{build-muplbuao-a44720c9/client-browser/src-plugin-page-frame-07c4de56a6-RYRCOOEF.js → build-mv1v7sq7-af95bae4/client-browser/src-plugin-page-frame-07c4de56a6-25BOCBWI.js} +1 -1
- package/.hile-rsc/{build-muplbuao-a44720c9/client-browser/src-plugin-password-form-3bd63d69e5-YI55KB3G.js → build-mv1v7sq7-af95bae4/client-browser/src-plugin-password-form-3bd63d69e5-GJ25JW7M.js} +1 -1
- package/.hile-rsc/{build-muplbuao-a44720c9/client-ssr/chunks/chunk-7R6HABWO.js → build-mv1v7sq7-af95bae4/client-ssr/chunks/chunk-A2AYEE2Z.js} +344 -10
- package/.hile-rsc/{build-muplbuao-a44720c9/client-ssr/src-plugin-page-frame-07c4de56a6-KV2X5ZOL.js → build-mv1v7sq7-af95bae4/client-ssr/src-plugin-page-frame-07c4de56a6-WXFM6XOG.js} +1 -1
- package/.hile-rsc/{build-muplbuao-a44720c9/client-ssr/src-plugin-password-form-3bd63d69e5-QY736AXR.js → build-mv1v7sq7-af95bae4/client-ssr/src-plugin-password-form-3bd63d69e5-ZZ55VGCF.js} +1 -1
- package/.hile-rsc/{build-muplbuao-a44720c9 → build-mv1v7sq7-af95bae4}/plugin.json +22 -22
- package/.hile-rsc/{build-muplbuao-a44720c9 → build-mv1v7sq7-af95bae4}/server-rsc/index.js +2 -2
- package/dist/command/index.js +4 -0
- package/dist/command/index.js.map +1 -1
- package/dist/config/config-command.d.ts +13 -0
- package/dist/config/config-command.d.ts.map +1 -0
- package/dist/config/config-command.js +40 -0
- package/dist/config/config-command.js.map +1 -0
- package/dist/config/schema.d.ts +3 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +1 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/models/complete-authentication.model.js +1 -1
- package/dist/models/complete-authentication.model.js.map +1 -1
- package/dist/password/credential-lifecycle-event.d.ts +24 -0
- package/dist/password/credential-lifecycle-event.d.ts.map +1 -0
- package/dist/password/credential-lifecycle-event.js +15 -0
- package/dist/password/credential-lifecycle-event.js.map +1 -0
- package/dist/password/credential-repository.d.ts +3 -2
- package/dist/password/credential-repository.d.ts.map +1 -1
- package/dist/password/credential-repository.js.map +1 -1
- package/dist/password/password-authenticator.d.ts +4 -6
- package/dist/password/password-authenticator.d.ts.map +1 -1
- package/dist/password/password-authenticator.js +7 -58
- package/dist/password/password-authenticator.js.map +1 -1
- package/dist/password/typeorm-credential-repository.d.ts +6 -3
- package/dist/password/typeorm-credential-repository.d.ts.map +1 -1
- package/dist/password/typeorm-credential-repository.js +37 -13
- package/dist/password/typeorm-credential-repository.js.map +1 -1
- package/dist/persistence/entities.d.ts +1 -1
- package/dist/persistence/entities.d.ts.map +1 -1
- package/dist/persistence/entities.js +2 -0
- package/dist/persistence/entities.js.map +1 -1
- package/dist/runtime/password-auth-runtime.d.ts +2 -1
- package/dist/runtime/password-auth-runtime.d.ts.map +1 -1
- package/dist/runtime/password-auth-runtime.js +5 -5
- package/dist/runtime/password-auth-runtime.js.map +1 -1
- package/dist/services/password-runtime.service.js +7 -3
- package/dist/services/password-runtime.service.js.map +1 -1
- package/package.json +7 -6
- /package/.hile-rsc/{build-muplbuao-a44720c9 → build-mv1v7sq7-af95bae4}/client-browser/src-plugin-page-frame-07c4de56a6-3F24AYCH.css +0 -0
- /package/.hile-rsc/{build-muplbuao-a44720c9 → build-mv1v7sq7-af95bae4}/client-browser/src-plugin-password-form-3bd63d69e5-TRYMJX4F.css +0 -0
- /package/.hile-rsc/{build-muplbuao-a44720c9 → build-mv1v7sq7-af95bae4}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
|
@@ -17052,6 +17052,192 @@ function murmur2(str) {
|
|
|
17052
17052
|
}
|
|
17053
17053
|
var hash_browser_esm_default = murmur2;
|
|
17054
17054
|
|
|
17055
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/Dom/canUseDom.js
|
|
17056
|
+
function canUseDom2() {
|
|
17057
|
+
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
17058
|
+
}
|
|
17059
|
+
|
|
17060
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/Dom/contains.js
|
|
17061
|
+
function contains2(root, n) {
|
|
17062
|
+
if (!root) {
|
|
17063
|
+
return false;
|
|
17064
|
+
}
|
|
17065
|
+
if (root.contains) {
|
|
17066
|
+
return root.contains(n);
|
|
17067
|
+
}
|
|
17068
|
+
let node2 = n;
|
|
17069
|
+
while (node2) {
|
|
17070
|
+
if (node2 === root) {
|
|
17071
|
+
return true;
|
|
17072
|
+
}
|
|
17073
|
+
node2 = node2.parentNode;
|
|
17074
|
+
}
|
|
17075
|
+
return false;
|
|
17076
|
+
}
|
|
17077
|
+
|
|
17078
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/Dom/dynamicCSS.js
|
|
17079
|
+
var APPEND_ORDER2 = "data-rc-order";
|
|
17080
|
+
var APPEND_PRIORITY2 = "data-rc-priority";
|
|
17081
|
+
var MARK_KEY2 = `rc-util-key`;
|
|
17082
|
+
var containerCache2 = /* @__PURE__ */ new Map();
|
|
17083
|
+
function getMark2({
|
|
17084
|
+
mark
|
|
17085
|
+
} = {}) {
|
|
17086
|
+
if (mark) {
|
|
17087
|
+
return mark.startsWith("data-") ? mark : `data-${mark}`;
|
|
17088
|
+
}
|
|
17089
|
+
return MARK_KEY2;
|
|
17090
|
+
}
|
|
17091
|
+
function getContainer2(option) {
|
|
17092
|
+
if (option.attachTo) {
|
|
17093
|
+
return option.attachTo;
|
|
17094
|
+
}
|
|
17095
|
+
const head = document.querySelector("head");
|
|
17096
|
+
return head || document.body;
|
|
17097
|
+
}
|
|
17098
|
+
function getOrder2(prepend) {
|
|
17099
|
+
if (prepend === "queue") {
|
|
17100
|
+
return "prependQueue";
|
|
17101
|
+
}
|
|
17102
|
+
return prepend ? "prepend" : "append";
|
|
17103
|
+
}
|
|
17104
|
+
function findStyles2(container) {
|
|
17105
|
+
return Array.from((containerCache2.get(container) || container).children).filter((node2) => node2.tagName === "STYLE");
|
|
17106
|
+
}
|
|
17107
|
+
function injectCSS2(css, option = {}) {
|
|
17108
|
+
if (!canUseDom2()) {
|
|
17109
|
+
return null;
|
|
17110
|
+
}
|
|
17111
|
+
const {
|
|
17112
|
+
csp,
|
|
17113
|
+
prepend,
|
|
17114
|
+
priority = 0
|
|
17115
|
+
} = option;
|
|
17116
|
+
const mergedOrder = getOrder2(prepend);
|
|
17117
|
+
const isPrependQueue = mergedOrder === "prependQueue";
|
|
17118
|
+
const styleNode = document.createElement("style");
|
|
17119
|
+
styleNode.setAttribute(APPEND_ORDER2, mergedOrder);
|
|
17120
|
+
if (isPrependQueue && priority) {
|
|
17121
|
+
styleNode.setAttribute(APPEND_PRIORITY2, `${priority}`);
|
|
17122
|
+
}
|
|
17123
|
+
if (csp?.nonce) {
|
|
17124
|
+
styleNode.nonce = csp?.nonce;
|
|
17125
|
+
}
|
|
17126
|
+
styleNode.innerHTML = css;
|
|
17127
|
+
const container = getContainer2(option);
|
|
17128
|
+
const {
|
|
17129
|
+
firstChild
|
|
17130
|
+
} = container;
|
|
17131
|
+
if (prepend) {
|
|
17132
|
+
if (isPrependQueue) {
|
|
17133
|
+
const existStyle = (option.styles || findStyles2(container)).filter((node2) => {
|
|
17134
|
+
if (!["prepend", "prependQueue"].includes(node2.getAttribute(APPEND_ORDER2))) {
|
|
17135
|
+
return false;
|
|
17136
|
+
}
|
|
17137
|
+
const nodePriority = Number(node2.getAttribute(APPEND_PRIORITY2) || 0);
|
|
17138
|
+
return priority >= nodePriority;
|
|
17139
|
+
});
|
|
17140
|
+
if (existStyle.length) {
|
|
17141
|
+
container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
|
|
17142
|
+
return styleNode;
|
|
17143
|
+
}
|
|
17144
|
+
}
|
|
17145
|
+
container.insertBefore(styleNode, firstChild);
|
|
17146
|
+
} else {
|
|
17147
|
+
container.appendChild(styleNode);
|
|
17148
|
+
}
|
|
17149
|
+
return styleNode;
|
|
17150
|
+
}
|
|
17151
|
+
function findExistNode2(key, option = {}) {
|
|
17152
|
+
let {
|
|
17153
|
+
styles
|
|
17154
|
+
} = option;
|
|
17155
|
+
styles ||= findStyles2(getContainer2(option));
|
|
17156
|
+
return styles.find((node2) => node2.getAttribute(getMark2(option)) === key);
|
|
17157
|
+
}
|
|
17158
|
+
function removeCSS2(key, option = {}) {
|
|
17159
|
+
const existNode = findExistNode2(key, option);
|
|
17160
|
+
if (existNode) {
|
|
17161
|
+
const container = getContainer2(option);
|
|
17162
|
+
container.removeChild(existNode);
|
|
17163
|
+
}
|
|
17164
|
+
}
|
|
17165
|
+
function syncRealContainer2(container, option) {
|
|
17166
|
+
const cachedRealContainer = containerCache2.get(container);
|
|
17167
|
+
if (!cachedRealContainer || !contains2(document, cachedRealContainer)) {
|
|
17168
|
+
const placeholderStyle = injectCSS2("", option);
|
|
17169
|
+
const {
|
|
17170
|
+
parentNode
|
|
17171
|
+
} = placeholderStyle;
|
|
17172
|
+
containerCache2.set(container, parentNode);
|
|
17173
|
+
container.removeChild(placeholderStyle);
|
|
17174
|
+
}
|
|
17175
|
+
}
|
|
17176
|
+
function updateCSS2(css, key, originOption = {}) {
|
|
17177
|
+
const container = getContainer2(originOption);
|
|
17178
|
+
const styles = findStyles2(container);
|
|
17179
|
+
const option = {
|
|
17180
|
+
...originOption,
|
|
17181
|
+
styles
|
|
17182
|
+
};
|
|
17183
|
+
syncRealContainer2(container, option);
|
|
17184
|
+
const existNode = findExistNode2(key, option);
|
|
17185
|
+
if (existNode) {
|
|
17186
|
+
if (option.csp?.nonce && existNode.nonce !== option.csp?.nonce) {
|
|
17187
|
+
existNode.nonce = option.csp?.nonce;
|
|
17188
|
+
}
|
|
17189
|
+
if (existNode.innerHTML !== css) {
|
|
17190
|
+
existNode.innerHTML = css;
|
|
17191
|
+
}
|
|
17192
|
+
return existNode;
|
|
17193
|
+
}
|
|
17194
|
+
const newNode = injectCSS2(css, option);
|
|
17195
|
+
newNode.setAttribute(getMark2(option), key);
|
|
17196
|
+
return newNode;
|
|
17197
|
+
}
|
|
17198
|
+
|
|
17199
|
+
// ../../node_modules/.pnpm/@rc-component+util@1.13.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/warning.js
|
|
17200
|
+
var warned2 = {};
|
|
17201
|
+
var preWarningFns2 = [];
|
|
17202
|
+
var preMessage2 = (fn) => {
|
|
17203
|
+
preWarningFns2.push(fn);
|
|
17204
|
+
};
|
|
17205
|
+
function warning3(valid, message) {
|
|
17206
|
+
if (!valid && console !== void 0) {
|
|
17207
|
+
const finalMessage = preWarningFns2.reduce((msg, preMessageFn) => preMessageFn(msg ?? "", "warning"), message);
|
|
17208
|
+
if (finalMessage) {
|
|
17209
|
+
console.error(`Warning: ${finalMessage}`);
|
|
17210
|
+
}
|
|
17211
|
+
}
|
|
17212
|
+
}
|
|
17213
|
+
function note2(valid, message) {
|
|
17214
|
+
if (!valid && console !== void 0) {
|
|
17215
|
+
const finalMessage = preWarningFns2.reduce((msg, preMessageFn) => preMessageFn(msg ?? "", "note"), message);
|
|
17216
|
+
if (finalMessage) {
|
|
17217
|
+
console.warn(`Note: ${finalMessage}`);
|
|
17218
|
+
}
|
|
17219
|
+
}
|
|
17220
|
+
}
|
|
17221
|
+
function resetWarned2() {
|
|
17222
|
+
warned2 = {};
|
|
17223
|
+
}
|
|
17224
|
+
function call2(method2, valid, message) {
|
|
17225
|
+
if (!valid && !warned2[message]) {
|
|
17226
|
+
method2(false, message);
|
|
17227
|
+
warned2[message] = true;
|
|
17228
|
+
}
|
|
17229
|
+
}
|
|
17230
|
+
function warningOnce2(valid, message) {
|
|
17231
|
+
call2(warning3, valid, message);
|
|
17232
|
+
}
|
|
17233
|
+
function noteOnce2(valid, message) {
|
|
17234
|
+
call2(note2, valid, message);
|
|
17235
|
+
}
|
|
17236
|
+
warningOnce2.preMessage = preMessage2;
|
|
17237
|
+
warningOnce2.resetWarned = resetWarned2;
|
|
17238
|
+
warningOnce2.noteOnce = noteOnce2;
|
|
17239
|
+
var warning_default3 = warningOnce2;
|
|
17240
|
+
|
|
17055
17241
|
// ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/Cache.js
|
|
17056
17242
|
var SPLIT = "%";
|
|
17057
17243
|
function pathKey(keys2) {
|
|
@@ -17255,7 +17441,7 @@ var Theme = class {
|
|
|
17255
17441
|
this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives];
|
|
17256
17442
|
this.id = uuid5;
|
|
17257
17443
|
if (derivatives.length === 0) {
|
|
17258
|
-
|
|
17444
|
+
warning3(derivatives.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function.");
|
|
17259
17445
|
}
|
|
17260
17446
|
uuid5 += 1;
|
|
17261
17447
|
}
|
|
@@ -17315,7 +17501,7 @@ function token2key(token2, salt) {
|
|
|
17315
17501
|
return hash_browser_esm_default(`${salt}_${flattenToken(token2)}`);
|
|
17316
17502
|
}
|
|
17317
17503
|
var randomSelectorKey = `random-${Date.now()}-${Math.random()}`.replace(/\./g, "");
|
|
17318
|
-
var isClientSide =
|
|
17504
|
+
var isClientSide = canUseDom2();
|
|
17319
17505
|
function unit(num) {
|
|
17320
17506
|
if (typeof num === "number") {
|
|
17321
17507
|
return `${num}px`;
|
|
@@ -17590,7 +17776,7 @@ function useCacheToken(theme2, tokens, option) {
|
|
|
17590
17776
|
priority: -999
|
|
17591
17777
|
};
|
|
17592
17778
|
mergedCSSConfig = injectCSPNonce(mergedCSSConfig, nonce);
|
|
17593
|
-
const style2 =
|
|
17779
|
+
const style2 = updateCSS2(cssVarsStr, hash_browser_esm_default(`css-var-${themeKey}`), mergedCSSConfig);
|
|
17594
17780
|
style2[CSS_IN_JS_INSTANCE] = instanceId;
|
|
17595
17781
|
style2.setAttribute(ATTR_TOKEN, themeKey);
|
|
17596
17782
|
});
|
|
@@ -18294,7 +18480,7 @@ function lintWarning(message, info) {
|
|
|
18294
18480
|
path,
|
|
18295
18481
|
parentSelectors
|
|
18296
18482
|
} = info;
|
|
18297
|
-
|
|
18483
|
+
warning_default3(false, `[Ant Design CSS-in-JS] ${path ? `Error in ${path}: ` : ""}${message}${parentSelectors.length ? ` Selector: ${parentSelectors.join(" | ")}` : ""}`);
|
|
18298
18484
|
}
|
|
18299
18485
|
|
|
18300
18486
|
// ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.js
|
|
@@ -18327,7 +18513,7 @@ var fromCSSFile = true;
|
|
|
18327
18513
|
function prepare() {
|
|
18328
18514
|
if (!cachePathMap) {
|
|
18329
18515
|
cachePathMap = {};
|
|
18330
|
-
if (
|
|
18516
|
+
if (canUseDom2()) {
|
|
18331
18517
|
const div = document.createElement("div");
|
|
18332
18518
|
div.className = ATTR_CACHE_MAP;
|
|
18333
18519
|
div.style.position = "fixed";
|
|
@@ -18356,7 +18542,7 @@ function existPath(path) {
|
|
|
18356
18542
|
function getStyleAndHash(path) {
|
|
18357
18543
|
const hash3 = cachePathMap[path];
|
|
18358
18544
|
let styleStr = null;
|
|
18359
|
-
if (hash3 &&
|
|
18545
|
+
if (hash3 && canUseDom2()) {
|
|
18360
18546
|
if (fromCSSFile) {
|
|
18361
18547
|
styleStr = CSS_FILE_STYLE;
|
|
18362
18548
|
} else {
|
|
@@ -18581,7 +18767,7 @@ function useStyleRegister(info, styleFn) {
|
|
|
18581
18767
|
(cacheValue, fromHMR) => {
|
|
18582
18768
|
const [, styleId] = cacheValue;
|
|
18583
18769
|
if (fromHMR && isClientSide) {
|
|
18584
|
-
|
|
18770
|
+
removeCSS2(styleId, {
|
|
18585
18771
|
mark: ATTR_MARK,
|
|
18586
18772
|
attachTo: container
|
|
18587
18773
|
});
|
|
@@ -18608,18 +18794,18 @@ function useStyleRegister(info, styleFn) {
|
|
|
18608
18794
|
}
|
|
18609
18795
|
});
|
|
18610
18796
|
effectLayerKeys.forEach((effectKey) => {
|
|
18611
|
-
|
|
18797
|
+
updateCSS2(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_layer-${effectKey}`, {
|
|
18612
18798
|
...mergedCSSConfig,
|
|
18613
18799
|
prepend: true
|
|
18614
18800
|
});
|
|
18615
18801
|
});
|
|
18616
|
-
const style2 =
|
|
18802
|
+
const style2 = updateCSS2(styleStr, styleId, mergedCSSConfig);
|
|
18617
18803
|
style2[CSS_IN_JS_INSTANCE] = cache2.instanceId;
|
|
18618
18804
|
if (true) {
|
|
18619
18805
|
style2.setAttribute(ATTR_CACHE_PATH, fullPath.join("|"));
|
|
18620
18806
|
}
|
|
18621
18807
|
effectRestKeys.forEach((effectKey) => {
|
|
18622
|
-
|
|
18808
|
+
updateCSS2(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_effect-${effectKey}`, mergedCSSConfig);
|
|
18623
18809
|
});
|
|
18624
18810
|
}
|
|
18625
18811
|
}
|
|
@@ -18696,7 +18882,7 @@ var useCSSVarRegister = (config2, fn) => {
|
|
|
18696
18882
|
return [mergedToken, cssVarsStr, styleId, key];
|
|
18697
18883
|
}, ([, , styleId]) => {
|
|
18698
18884
|
if (isClientSide) {
|
|
18699
|
-
|
|
18885
|
+
removeCSS2(styleId, {
|
|
18700
18886
|
mark: ATTR_MARK,
|
|
18701
18887
|
attachTo: container
|
|
18702
18888
|
});
|
|
@@ -18712,7 +18898,7 @@ var useCSSVarRegister = (config2, fn) => {
|
|
|
18712
18898
|
priority: -999
|
|
18713
18899
|
};
|
|
18714
18900
|
mergedCSSConfig = injectCSPNonce(mergedCSSConfig, nonce);
|
|
18715
|
-
const style2 =
|
|
18901
|
+
const style2 = updateCSS2(cssVarsStr, styleId, mergedCSSConfig);
|
|
18716
18902
|
style2[CSS_IN_JS_INSTANCE] = instanceId;
|
|
18717
18903
|
style2.setAttribute(ATTR_TOKEN, key);
|
|
18718
18904
|
});
|
|
@@ -19127,8 +19313,8 @@ var LocaleProvider = (props) => {
|
|
|
19127
19313
|
_ANT_MARK__
|
|
19128
19314
|
} = props;
|
|
19129
19315
|
if (true) {
|
|
19130
|
-
const
|
|
19131
|
-
true ?
|
|
19316
|
+
const warning6 = devUseWarning("LocaleProvider");
|
|
19317
|
+
true ? warning6(_ANT_MARK__ === ANT_MARK, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale") : void 0;
|
|
19132
19318
|
}
|
|
19133
19319
|
useEffect(() => {
|
|
19134
19320
|
const clearLocale = changeConfirmLocale(locale5?.Modal);
|
|
@@ -20621,26 +20807,26 @@ function useEscKeyDown(open, onEsc) {
|
|
|
20621
20807
|
}
|
|
20622
20808
|
|
|
20623
20809
|
// ../../node_modules/.pnpm/@rc-component+portal@2.2.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/portal/es/Portal.js
|
|
20624
|
-
var getPortalContainer = (
|
|
20625
|
-
if (
|
|
20810
|
+
var getPortalContainer = (getContainer4) => {
|
|
20811
|
+
if (getContainer4 === false) {
|
|
20626
20812
|
return false;
|
|
20627
20813
|
}
|
|
20628
|
-
if (!canUseDom() || !
|
|
20814
|
+
if (!canUseDom() || !getContainer4) {
|
|
20629
20815
|
return null;
|
|
20630
20816
|
}
|
|
20631
|
-
if (typeof
|
|
20632
|
-
return document.querySelector(
|
|
20817
|
+
if (typeof getContainer4 === "string") {
|
|
20818
|
+
return document.querySelector(getContainer4);
|
|
20633
20819
|
}
|
|
20634
|
-
if (typeof
|
|
20635
|
-
return
|
|
20820
|
+
if (typeof getContainer4 === "function") {
|
|
20821
|
+
return getContainer4();
|
|
20636
20822
|
}
|
|
20637
|
-
return
|
|
20823
|
+
return getContainer4;
|
|
20638
20824
|
};
|
|
20639
20825
|
var Portal = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
20640
20826
|
const {
|
|
20641
20827
|
open,
|
|
20642
20828
|
autoLock,
|
|
20643
|
-
getContainer:
|
|
20829
|
+
getContainer: getContainer4,
|
|
20644
20830
|
debug,
|
|
20645
20831
|
autoDestroy = true,
|
|
20646
20832
|
children,
|
|
@@ -20656,9 +20842,9 @@ var Portal = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
20656
20842
|
setShouldRender(open);
|
|
20657
20843
|
}
|
|
20658
20844
|
}, [open, autoDestroy]);
|
|
20659
|
-
const [innerContainer, setInnerContainer] = useState(() => getPortalContainer(
|
|
20845
|
+
const [innerContainer, setInnerContainer] = useState(() => getPortalContainer(getContainer4));
|
|
20660
20846
|
useEffect(() => {
|
|
20661
|
-
const customizeContainer = getPortalContainer(
|
|
20847
|
+
const customizeContainer = getPortalContainer(getContainer4);
|
|
20662
20848
|
setInnerContainer(() => (
|
|
20663
20849
|
// React do the state update even the value is the same,
|
|
20664
20850
|
// Use function call to force React to compare update
|
|
@@ -24781,7 +24967,7 @@ var useResetIconStyle_default = useResetIconStyle;
|
|
|
24781
24967
|
|
|
24782
24968
|
// ../../node_modules/.pnpm/antd@6.6.1_luxon@3.7.2_moment@2.30.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/antd/es/config-provider/hooks/useTheme.js
|
|
24783
24969
|
function useTheme(theme2, parentTheme, config2) {
|
|
24784
|
-
const
|
|
24970
|
+
const warning6 = devUseWarning("ConfigProvider");
|
|
24785
24971
|
const themeConfig = theme2 || {};
|
|
24786
24972
|
const parentThemeConfig = themeConfig.inherit === false || !parentTheme ? {
|
|
24787
24973
|
...defaultConfig,
|
|
@@ -24792,7 +24978,7 @@ function useTheme(theme2, parentTheme, config2) {
|
|
|
24792
24978
|
if (true) {
|
|
24793
24979
|
const cssVarEnabled = themeConfig.cssVar || parentThemeConfig.cssVar;
|
|
24794
24980
|
const validKey = !!(isPlainObject2(themeConfig.cssVar) && themeConfig.cssVar?.key || themeKey);
|
|
24795
|
-
true ?
|
|
24981
|
+
true ? warning6(!cssVarEnabled || validKey, "breaking", "Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.") : void 0;
|
|
24796
24982
|
}
|
|
24797
24983
|
return useMemo2(() => {
|
|
24798
24984
|
if (!theme2) {
|
|
@@ -24862,8 +25048,8 @@ var PropWarning = /* @__PURE__ */ memo((props) => {
|
|
|
24862
25048
|
const {
|
|
24863
25049
|
dropdownMatchSelectWidth
|
|
24864
25050
|
} = props;
|
|
24865
|
-
const
|
|
24866
|
-
|
|
25051
|
+
const warning6 = devUseWarning("ConfigProvider");
|
|
25052
|
+
warning6.deprecated(dropdownMatchSelectWidth === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth");
|
|
24867
25053
|
return null;
|
|
24868
25054
|
});
|
|
24869
25055
|
if (true) {
|
|
@@ -25654,14 +25840,14 @@ var wave_default = Wave;
|
|
|
25654
25840
|
var import_CloseCircleFilled = __toESM(require_CloseCircleFilled());
|
|
25655
25841
|
|
|
25656
25842
|
// ../../node_modules/.pnpm/@ant-design+icons@6.3.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/icons/es/cssUtils.js
|
|
25657
|
-
var
|
|
25658
|
-
var
|
|
25659
|
-
var
|
|
25660
|
-
var
|
|
25661
|
-
function
|
|
25843
|
+
var APPEND_ORDER3 = "data-rc-order";
|
|
25844
|
+
var APPEND_PRIORITY3 = "data-rc-priority";
|
|
25845
|
+
var MARK_KEY3 = "rc-util-key";
|
|
25846
|
+
var containerCache3 = /* @__PURE__ */ new Map();
|
|
25847
|
+
function canUseDom3() {
|
|
25662
25848
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
25663
25849
|
}
|
|
25664
|
-
function
|
|
25850
|
+
function contains3(root, node2) {
|
|
25665
25851
|
if (!root || !node2) {
|
|
25666
25852
|
return false;
|
|
25667
25853
|
}
|
|
@@ -25677,32 +25863,32 @@ function contains2(root, node2) {
|
|
|
25677
25863
|
}
|
|
25678
25864
|
return false;
|
|
25679
25865
|
}
|
|
25680
|
-
function
|
|
25866
|
+
function getMark3({
|
|
25681
25867
|
mark
|
|
25682
25868
|
} = {}) {
|
|
25683
25869
|
if (mark) {
|
|
25684
25870
|
return mark.startsWith("data-") ? mark : `data-${mark}`;
|
|
25685
25871
|
}
|
|
25686
|
-
return
|
|
25872
|
+
return MARK_KEY3;
|
|
25687
25873
|
}
|
|
25688
|
-
function
|
|
25874
|
+
function getContainer3(option) {
|
|
25689
25875
|
if (option.attachTo) {
|
|
25690
25876
|
return option.attachTo;
|
|
25691
25877
|
}
|
|
25692
25878
|
const head = document.querySelector("head");
|
|
25693
25879
|
return head || document.body;
|
|
25694
25880
|
}
|
|
25695
|
-
function
|
|
25881
|
+
function getOrder3(prepend) {
|
|
25696
25882
|
if (prepend === "queue") {
|
|
25697
25883
|
return "prependQueue";
|
|
25698
25884
|
}
|
|
25699
25885
|
return prepend ? "prepend" : "append";
|
|
25700
25886
|
}
|
|
25701
|
-
function
|
|
25702
|
-
return Array.from((
|
|
25887
|
+
function findStyles3(container) {
|
|
25888
|
+
return Array.from((containerCache3.get(container) || container).children).filter((node2) => node2.tagName === "STYLE");
|
|
25703
25889
|
}
|
|
25704
|
-
function
|
|
25705
|
-
if (!
|
|
25890
|
+
function injectCSS3(css, option = {}) {
|
|
25891
|
+
if (!canUseDom3()) {
|
|
25706
25892
|
return null;
|
|
25707
25893
|
}
|
|
25708
25894
|
const {
|
|
@@ -25710,28 +25896,28 @@ function injectCSS2(css, option = {}) {
|
|
|
25710
25896
|
prepend,
|
|
25711
25897
|
priority = 0
|
|
25712
25898
|
} = option;
|
|
25713
|
-
const mergedOrder =
|
|
25899
|
+
const mergedOrder = getOrder3(prepend);
|
|
25714
25900
|
const isPrependQueue = mergedOrder === "prependQueue";
|
|
25715
25901
|
const styleNode = document.createElement("style");
|
|
25716
|
-
styleNode.setAttribute(
|
|
25902
|
+
styleNode.setAttribute(APPEND_ORDER3, mergedOrder);
|
|
25717
25903
|
if (isPrependQueue && priority) {
|
|
25718
|
-
styleNode.setAttribute(
|
|
25904
|
+
styleNode.setAttribute(APPEND_PRIORITY3, `${priority}`);
|
|
25719
25905
|
}
|
|
25720
25906
|
if (csp?.nonce) {
|
|
25721
25907
|
styleNode.nonce = csp.nonce;
|
|
25722
25908
|
}
|
|
25723
25909
|
styleNode.innerHTML = css;
|
|
25724
|
-
const container =
|
|
25910
|
+
const container = getContainer3(option);
|
|
25725
25911
|
const {
|
|
25726
25912
|
firstChild
|
|
25727
25913
|
} = container;
|
|
25728
25914
|
if (prepend) {
|
|
25729
25915
|
if (isPrependQueue) {
|
|
25730
|
-
const existStyle = (option.styles ||
|
|
25731
|
-
if (!["prepend", "prependQueue"].includes(node2.getAttribute(
|
|
25916
|
+
const existStyle = (option.styles || findStyles3(container)).filter((node2) => {
|
|
25917
|
+
if (!["prepend", "prependQueue"].includes(node2.getAttribute(APPEND_ORDER3))) {
|
|
25732
25918
|
return false;
|
|
25733
25919
|
}
|
|
25734
|
-
const nodePriority = Number(node2.getAttribute(
|
|
25920
|
+
const nodePriority = Number(node2.getAttribute(APPEND_PRIORITY3) || 0);
|
|
25735
25921
|
return priority >= nodePriority;
|
|
25736
25922
|
});
|
|
25737
25923
|
if (existStyle.length) {
|
|
@@ -25745,39 +25931,39 @@ function injectCSS2(css, option = {}) {
|
|
|
25745
25931
|
}
|
|
25746
25932
|
return styleNode;
|
|
25747
25933
|
}
|
|
25748
|
-
function
|
|
25934
|
+
function findExistNode3(key, option = {}) {
|
|
25749
25935
|
let {
|
|
25750
25936
|
styles
|
|
25751
25937
|
} = option;
|
|
25752
|
-
styles ||=
|
|
25753
|
-
return styles.find((node2) => node2.getAttribute(
|
|
25938
|
+
styles ||= findStyles3(getContainer3(option));
|
|
25939
|
+
return styles.find((node2) => node2.getAttribute(getMark3(option)) === key);
|
|
25754
25940
|
}
|
|
25755
|
-
function
|
|
25756
|
-
const cachedRealContainer =
|
|
25757
|
-
if (!cachedRealContainer || !
|
|
25758
|
-
const placeholderStyle =
|
|
25941
|
+
function syncRealContainer3(container, option) {
|
|
25942
|
+
const cachedRealContainer = containerCache3.get(container);
|
|
25943
|
+
if (!cachedRealContainer || !contains3(document, cachedRealContainer)) {
|
|
25944
|
+
const placeholderStyle = injectCSS3("", option);
|
|
25759
25945
|
if (!placeholderStyle) {
|
|
25760
25946
|
return;
|
|
25761
25947
|
}
|
|
25762
25948
|
const {
|
|
25763
25949
|
parentNode
|
|
25764
25950
|
} = placeholderStyle;
|
|
25765
|
-
|
|
25951
|
+
containerCache3.set(container, parentNode);
|
|
25766
25952
|
container.removeChild(placeholderStyle);
|
|
25767
25953
|
}
|
|
25768
25954
|
}
|
|
25769
|
-
function
|
|
25770
|
-
if (!
|
|
25955
|
+
function updateCSS3(css, key, originOption = {}) {
|
|
25956
|
+
if (!canUseDom3()) {
|
|
25771
25957
|
return null;
|
|
25772
25958
|
}
|
|
25773
|
-
const container =
|
|
25774
|
-
const styles =
|
|
25959
|
+
const container = getContainer3(originOption);
|
|
25960
|
+
const styles = findStyles3(container);
|
|
25775
25961
|
const option = {
|
|
25776
25962
|
...originOption,
|
|
25777
25963
|
styles
|
|
25778
25964
|
};
|
|
25779
|
-
|
|
25780
|
-
const existNode =
|
|
25965
|
+
syncRealContainer3(container, option);
|
|
25966
|
+
const existNode = findExistNode3(key, option);
|
|
25781
25967
|
if (existNode) {
|
|
25782
25968
|
if (option.csp?.nonce && existNode.nonce !== option.csp.nonce) {
|
|
25783
25969
|
existNode.nonce = option.csp.nonce;
|
|
@@ -25787,8 +25973,8 @@ function updateCSS2(css, key, originOption = {}) {
|
|
|
25787
25973
|
}
|
|
25788
25974
|
return existNode;
|
|
25789
25975
|
}
|
|
25790
|
-
const newNode =
|
|
25791
|
-
newNode?.setAttribute(
|
|
25976
|
+
const newNode = injectCSS3(css, option);
|
|
25977
|
+
newNode?.setAttribute(getMark3(option), key);
|
|
25792
25978
|
return newNode;
|
|
25793
25979
|
}
|
|
25794
25980
|
function getRoot2(ele) {
|
|
@@ -25798,23 +25984,23 @@ function getShadowRoot2(ele) {
|
|
|
25798
25984
|
const root = getRoot2(ele);
|
|
25799
25985
|
return typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot ? root : null;
|
|
25800
25986
|
}
|
|
25801
|
-
var
|
|
25802
|
-
function
|
|
25803
|
-
if (valid ||
|
|
25987
|
+
var warned3 = {};
|
|
25988
|
+
function warningOnce3(valid, message) {
|
|
25989
|
+
if (valid || warned3[message]) {
|
|
25804
25990
|
return;
|
|
25805
25991
|
}
|
|
25806
25992
|
if (typeof console !== "undefined") {
|
|
25807
25993
|
console.error(`Warning: ${message}`);
|
|
25808
25994
|
}
|
|
25809
|
-
|
|
25995
|
+
warned3[message] = true;
|
|
25810
25996
|
}
|
|
25811
25997
|
|
|
25812
25998
|
// ../../node_modules/.pnpm/@ant-design+icons@6.3.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/icons/es/renderUtils.js
|
|
25813
25999
|
function camelCase(input) {
|
|
25814
26000
|
return input.replace(/-(.)/g, (match3, g) => g.toUpperCase());
|
|
25815
26001
|
}
|
|
25816
|
-
function
|
|
25817
|
-
|
|
26002
|
+
function warning4(valid, message) {
|
|
26003
|
+
warningOnce3(valid, `[@ant-design/icons] ${message}`);
|
|
25818
26004
|
}
|
|
25819
26005
|
function isIconDefinition(target) {
|
|
25820
26006
|
return typeof target === "object" && typeof target.name === "string" && typeof target.theme === "string" && (typeof target.icon === "object" || typeof target.icon === "function");
|
|
@@ -25924,7 +26110,7 @@ ${mergedStyleStr}
|
|
|
25924
26110
|
}
|
|
25925
26111
|
const ele = eleRef.current;
|
|
25926
26112
|
const shadowRoot = getShadowRoot2(ele);
|
|
25927
|
-
|
|
26113
|
+
updateCSS3(mergedStyleStr, "@ant-design-icons", {
|
|
25928
26114
|
prepend: !layer,
|
|
25929
26115
|
csp,
|
|
25930
26116
|
attachTo: shadowRoot
|
|
@@ -25945,7 +26131,7 @@ var IconBase = (props) => {
|
|
|
25945
26131
|
} = props;
|
|
25946
26132
|
const svgRef = useRef(null);
|
|
25947
26133
|
useInsertStyles(svgRef);
|
|
25948
|
-
|
|
26134
|
+
warning4(isIconDefinition(icon), `icon should be icon definiton, but got ${icon}`);
|
|
25949
26135
|
if (!isIconDefinition(icon)) {
|
|
25950
26136
|
return null;
|
|
25951
26137
|
}
|
|
@@ -26070,8 +26256,8 @@ var useAllowClear = (options) => {
|
|
|
26070
26256
|
componentName
|
|
26071
26257
|
} = options;
|
|
26072
26258
|
if (true) {
|
|
26073
|
-
const
|
|
26074
|
-
|
|
26259
|
+
const warning6 = devUseWarning(componentName);
|
|
26260
|
+
warning6.deprecated(!clearIcon, "clearIcon", "allowClear={{ clearIcon: React.ReactNode }}");
|
|
26075
26261
|
}
|
|
26076
26262
|
return useMemo(() => {
|
|
26077
26263
|
const mergedAllowClear = allowClear ?? contextAllowClear ?? defaultAllowClear;
|
|
@@ -26312,10 +26498,10 @@ var useZIndex = (componentType, customZIndex) => {
|
|
|
26312
26498
|
result = [parentZIndex === void 0 ? customZIndex : zIndex, zIndex];
|
|
26313
26499
|
}
|
|
26314
26500
|
if (true) {
|
|
26315
|
-
const
|
|
26501
|
+
const warning6 = devUseWarning(componentType);
|
|
26316
26502
|
const maxZIndex = token2.zIndexPopupBase + CONTAINER_MAX_OFFSET_WITH_CHILDREN;
|
|
26317
26503
|
const currentZIndex = result[0] || 0;
|
|
26318
|
-
true ?
|
|
26504
|
+
true ? warning6(customZIndex !== void 0 || currentZIndex <= maxZIndex, "usage", "`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.") : void 0;
|
|
26319
26505
|
}
|
|
26320
26506
|
return result;
|
|
26321
26507
|
};
|
|
@@ -26408,8 +26594,8 @@ var Compact = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
26408
26594
|
...restProps
|
|
26409
26595
|
} = props;
|
|
26410
26596
|
if (true) {
|
|
26411
|
-
const
|
|
26412
|
-
|
|
26597
|
+
const warning6 = devUseWarning("Space.Compact");
|
|
26598
|
+
warning6.deprecated(!direction, "direction", "orientation");
|
|
26413
26599
|
}
|
|
26414
26600
|
const [mergedOrientation, mergedVertical] = useOrientation(orientation, vertical, direction);
|
|
26415
26601
|
const mergedSize = useSize_default((ctx) => size ?? ctx);
|
|
@@ -26473,9 +26659,9 @@ var ButtonGroup = (props) => {
|
|
|
26473
26659
|
}
|
|
26474
26660
|
}, [size]);
|
|
26475
26661
|
if (true) {
|
|
26476
|
-
const
|
|
26477
|
-
|
|
26478
|
-
true ?
|
|
26662
|
+
const warning6 = devUseWarning("Button.Group");
|
|
26663
|
+
warning6.deprecated(false, "Button.Group", "Space.Compact");
|
|
26664
|
+
true ? warning6(!size || ["large", "medium", "small"].includes(size), "usage", "Invalid prop `size`.") : void 0;
|
|
26479
26665
|
}
|
|
26480
26666
|
const classes = clsx(prefixCls, {
|
|
26481
26667
|
[`${prefixCls}-${sizeCls}`]: sizeCls,
|
|
@@ -28665,10 +28851,10 @@ var InternalCompoundedButton = /* @__PURE__ */ react_default.forwardRef((props,
|
|
|
28665
28851
|
props.onClick?.("href" in props ? e : e);
|
|
28666
28852
|
}, [props.onClick, innerLoading, mergedDisabled]);
|
|
28667
28853
|
if (true) {
|
|
28668
|
-
const
|
|
28669
|
-
true ?
|
|
28670
|
-
true ?
|
|
28671
|
-
|
|
28854
|
+
const warning6 = devUseWarning("Button");
|
|
28855
|
+
true ? warning6(!(typeof icon === "string" && icon.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${icon}\` at https://ant.design/components/icon`) : void 0;
|
|
28856
|
+
true ? warning6(!(ghost && isUnBorderedButtonVariant(mergedVariant)), "usage", "`link` or `text` button can't be a `ghost` button.") : void 0;
|
|
28857
|
+
warning6.deprecated(!iconPosition, "iconPosition", "iconPlacement");
|
|
28672
28858
|
}
|
|
28673
28859
|
const {
|
|
28674
28860
|
compactSize,
|
|
@@ -29023,10 +29209,10 @@ var messages = newMessages();
|
|
|
29023
29209
|
|
|
29024
29210
|
// ../../node_modules/.pnpm/@rc-component+async-validator@6.0.0/node_modules/@rc-component/async-validator/es/util.js
|
|
29025
29211
|
var formatRegExp = /%[sdj%]/g;
|
|
29026
|
-
var
|
|
29212
|
+
var warning5 = () => {
|
|
29027
29213
|
};
|
|
29028
29214
|
if (typeof process !== "undefined" && process.env && true && typeof window !== "undefined" && typeof document !== "undefined") {
|
|
29029
|
-
|
|
29215
|
+
warning5 = (type3, errors) => {
|
|
29030
29216
|
if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
|
|
29031
29217
|
if (errors.every((e) => typeof e === "string")) {
|
|
29032
29218
|
console.warn(type3, errors);
|
|
@@ -29762,7 +29948,7 @@ var Schema = class _Schema {
|
|
|
29762
29948
|
}
|
|
29763
29949
|
validator_default[type3] = validator;
|
|
29764
29950
|
};
|
|
29765
|
-
static warning =
|
|
29951
|
+
static warning = warning5;
|
|
29766
29952
|
static messages = messages;
|
|
29767
29953
|
static validators = validator_default;
|
|
29768
29954
|
// ======================== Instance ========================
|
|
@@ -32111,8 +32297,8 @@ var Element2 = (props) => {
|
|
|
32111
32297
|
shape
|
|
32112
32298
|
} = props;
|
|
32113
32299
|
if (true) {
|
|
32114
|
-
const
|
|
32115
|
-
|
|
32300
|
+
const warning6 = devUseWarning("Skeleton");
|
|
32301
|
+
warning6.deprecated(size !== "default", 'size="default"', 'size="medium"');
|
|
32116
32302
|
}
|
|
32117
32303
|
const sizeCls = clsx({
|
|
32118
32304
|
[`${prefixCls}-lg`]: size === "large",
|
|
@@ -33367,7 +33553,7 @@ function _extends17() {
|
|
|
33367
33553
|
var DialogWrap = (props) => {
|
|
33368
33554
|
const {
|
|
33369
33555
|
visible,
|
|
33370
|
-
getContainer:
|
|
33556
|
+
getContainer: getContainer4,
|
|
33371
33557
|
forceRender,
|
|
33372
33558
|
destroyOnHidden = false,
|
|
33373
33559
|
afterClose,
|
|
@@ -33409,7 +33595,7 @@ var DialogWrap = (props) => {
|
|
|
33409
33595
|
open: visible || forceRender || animatedVisible,
|
|
33410
33596
|
onEsc,
|
|
33411
33597
|
autoDestroy: false,
|
|
33412
|
-
getContainer:
|
|
33598
|
+
getContainer: getContainer4,
|
|
33413
33599
|
autoLock: scrollLock && (visible || animatedVisible)
|
|
33414
33600
|
}, /* @__PURE__ */ createElement(Dialog_default, _extends17({}, restProps, {
|
|
33415
33601
|
destroyOnHidden,
|
|
@@ -34099,7 +34285,7 @@ var Modal = (props) => {
|
|
|
34099
34285
|
open,
|
|
34100
34286
|
wrapClassName,
|
|
34101
34287
|
centered,
|
|
34102
|
-
getContainer:
|
|
34288
|
+
getContainer: getContainer4,
|
|
34103
34289
|
style: style2,
|
|
34104
34290
|
width = 520,
|
|
34105
34291
|
footer,
|
|
@@ -34171,9 +34357,9 @@ var Modal = (props) => {
|
|
|
34171
34357
|
onClose?.();
|
|
34172
34358
|
};
|
|
34173
34359
|
if (true) {
|
|
34174
|
-
const
|
|
34360
|
+
const warning6 = devUseWarning("Modal");
|
|
34175
34361
|
[["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"], ["destroyOnClose", "destroyOnHidden"], ["autoFocusButton", "focusable.autoFocusButton"], ["focusTriggerAfterClose", "focusable.focusTriggerAfterClose"], ["maskClosable", "mask.closable"]].forEach(([deprecatedName, newName]) => {
|
|
34176
|
-
|
|
34362
|
+
warning6.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
34177
34363
|
});
|
|
34178
34364
|
}
|
|
34179
34365
|
const rootCls = useCSSVarCls_default(prefixCls);
|
|
@@ -34261,7 +34447,7 @@ var Modal = (props) => {
|
|
|
34261
34447
|
width: numWidth,
|
|
34262
34448
|
...restProps,
|
|
34263
34449
|
zIndex,
|
|
34264
|
-
getContainer:
|
|
34450
|
+
getContainer: getContainer4 === void 0 ? getContextPopupContainer : getContainer4,
|
|
34265
34451
|
prefixCls,
|
|
34266
34452
|
rootClassName: clsx(hashId, rootClassName, cssVarCls, rootCls, dialogClassNames.root),
|
|
34267
34453
|
rootStyle: dialogStyles.root,
|
|
@@ -35051,7 +35237,7 @@ function mergeConfig(...objList) {
|
|
|
35051
35237
|
}
|
|
35052
35238
|
function useNotification(rootConfig = {}) {
|
|
35053
35239
|
const {
|
|
35054
|
-
getContainer:
|
|
35240
|
+
getContainer: getContainer4 = defaultGetContainer,
|
|
35055
35241
|
motion,
|
|
35056
35242
|
prefixCls,
|
|
35057
35243
|
placement,
|
|
@@ -35120,7 +35306,7 @@ function useNotification(rootConfig = {}) {
|
|
|
35120
35306
|
}
|
|
35121
35307
|
}), []);
|
|
35122
35308
|
useEffect(() => {
|
|
35123
|
-
setContainer(
|
|
35309
|
+
setContainer(getContainer4());
|
|
35124
35310
|
});
|
|
35125
35311
|
useEffect(() => {
|
|
35126
35312
|
if (notificationsRef.current && taskQueue.length) {
|
|
@@ -36076,14 +36262,14 @@ var Holder = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
36076
36262
|
var keyIndex = 0;
|
|
36077
36263
|
function useInternalMessage(messageConfig) {
|
|
36078
36264
|
const holderRef = useRef(null);
|
|
36079
|
-
const
|
|
36265
|
+
const warning6 = devUseWarning("Message");
|
|
36080
36266
|
const wrapAPI = useMemo(() => {
|
|
36081
36267
|
const close = (key) => {
|
|
36082
36268
|
holderRef.current?.close(key);
|
|
36083
36269
|
};
|
|
36084
36270
|
const open = (config2) => {
|
|
36085
36271
|
if (!holderRef.current) {
|
|
36086
|
-
true ?
|
|
36272
|
+
true ? warning6(false, "usage", "You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.") : void 0;
|
|
36087
36273
|
const fakeResult = () => {
|
|
36088
36274
|
};
|
|
36089
36275
|
fakeResult.then = () => {
|
|
@@ -36486,8 +36672,8 @@ var ConfirmContent = (props) => {
|
|
|
36486
36672
|
warningIcon
|
|
36487
36673
|
} = useComponentConfig("modal");
|
|
36488
36674
|
if (true) {
|
|
36489
|
-
const
|
|
36490
|
-
true ?
|
|
36675
|
+
const warning6 = devUseWarning("Modal");
|
|
36676
|
+
true ? warning6(!(typeof icon === "string" && icon.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${icon}\` at https://ant.design/components/icon`) : void 0;
|
|
36491
36677
|
}
|
|
36492
36678
|
let mergedIcon = icon;
|
|
36493
36679
|
if (icon === void 0) {
|
|
@@ -36583,9 +36769,9 @@ var ConfirmDialog = (props) => {
|
|
|
36583
36769
|
okButtonProps: contextOkButtonProps
|
|
36584
36770
|
} = useComponentConfig("modal");
|
|
36585
36771
|
if (true) {
|
|
36586
|
-
const
|
|
36772
|
+
const warning6 = devUseWarning("Modal");
|
|
36587
36773
|
[["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach(([deprecatedName, newName]) => {
|
|
36588
|
-
|
|
36774
|
+
warning6.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
36589
36775
|
});
|
|
36590
36776
|
}
|
|
36591
36777
|
const confirmPrefixCls = `${prefixCls}-confirm`;
|
|
@@ -36966,14 +37152,14 @@ var Holder2 = /* @__PURE__ */ react_default.forwardRef((props, ref) => {
|
|
|
36966
37152
|
});
|
|
36967
37153
|
function useInternalNotification(notificationConfig) {
|
|
36968
37154
|
const holderRef = react_default.useRef(null);
|
|
36969
|
-
const
|
|
37155
|
+
const warning6 = devUseWarning("Notification");
|
|
36970
37156
|
const {
|
|
36971
37157
|
notification: notificationContext
|
|
36972
37158
|
} = react_default.useContext(ConfigContext);
|
|
36973
37159
|
const wrapAPI = react_default.useMemo(() => {
|
|
36974
37160
|
const open = (config2) => {
|
|
36975
37161
|
if (!holderRef.current) {
|
|
36976
|
-
true ?
|
|
37162
|
+
true ? warning6(false, "usage", "You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.") : void 0;
|
|
36977
37163
|
return;
|
|
36978
37164
|
}
|
|
36979
37165
|
const {
|
|
@@ -37003,7 +37189,7 @@ function useInternalNotification(notificationConfig) {
|
|
|
37003
37189
|
} = config2;
|
|
37004
37190
|
if (true) {
|
|
37005
37191
|
[["btn", "actions"], ["message", "title"]].forEach(([deprecatedName, newName]) => {
|
|
37006
|
-
|
|
37192
|
+
warning6.deprecated(!(deprecatedName in config2), deprecatedName, newName);
|
|
37007
37193
|
});
|
|
37008
37194
|
}
|
|
37009
37195
|
const mergedTitle = title ?? message;
|
|
@@ -37648,11 +37834,11 @@ var Divider = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
37648
37834
|
nativeElement: nativeElementRef.current
|
|
37649
37835
|
}));
|
|
37650
37836
|
if (true) {
|
|
37651
|
-
const
|
|
37652
|
-
true ?
|
|
37653
|
-
true ?
|
|
37837
|
+
const warning6 = devUseWarning("Divider");
|
|
37838
|
+
true ? warning6(!children || !mergedVertical, "usage", "`children` not working in `vertical` mode.") : void 0;
|
|
37839
|
+
true ? warning6(!validTitlePlacement, "usage", "`orientation` is used for direction, please use `titlePlacement` replace this") : void 0;
|
|
37654
37840
|
[["type", "orientation"], ["orientationMargin", "styles.content.margin"]].forEach(([deprecatedName, newName]) => {
|
|
37655
|
-
|
|
37841
|
+
warning6.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
37656
37842
|
});
|
|
37657
37843
|
}
|
|
37658
37844
|
return /* @__PURE__ */ createElement("div", {
|
|
@@ -37930,9 +38116,9 @@ var Empty2 = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
37930
38116
|
imageNode = mergedImage;
|
|
37931
38117
|
}
|
|
37932
38118
|
if (true) {
|
|
37933
|
-
const
|
|
38119
|
+
const warning6 = devUseWarning("Empty");
|
|
37934
38120
|
[["imageStyle", "styles.image"]].forEach(([deprecatedName, newName]) => {
|
|
37935
|
-
|
|
38121
|
+
warning6.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
37936
38122
|
});
|
|
37937
38123
|
}
|
|
37938
38124
|
const nativeElementRef = useRef(null);
|
|
@@ -39106,7 +39292,7 @@ var InternalTooltip = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
39106
39292
|
const mergedGetPopupContainer = getPopupContainer || getContextPopupContainer;
|
|
39107
39293
|
const mergedDestroyOnHidden = destroyOnHidden ?? !!destroyTooltipOnHide;
|
|
39108
39294
|
const inTableMeasureRow = useContext(TableMeasureRowContext_default);
|
|
39109
|
-
const
|
|
39295
|
+
const warning6 = devUseWarning("Tooltip");
|
|
39110
39296
|
const tooltipRef = useRef(null);
|
|
39111
39297
|
const forceAlign = () => {
|
|
39112
39298
|
tooltipRef.current?.forceAlign();
|
|
@@ -39118,9 +39304,9 @@ var InternalTooltip = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
39118
39304
|
}));
|
|
39119
39305
|
if (true) {
|
|
39120
39306
|
[["overlayStyle", "styles.root"], ["overlayInnerStyle", "styles.container"], ["overlayClassName", "classNames.root"], ["destroyTooltipOnHide", "destroyOnHidden"]].forEach(([deprecatedName, newName]) => {
|
|
39121
|
-
|
|
39307
|
+
warning6.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
39122
39308
|
});
|
|
39123
|
-
true ?
|
|
39309
|
+
true ? warning6(!destroyTooltipOnHide || typeof destroyTooltipOnHide === "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.") : void 0;
|
|
39124
39310
|
}
|
|
39125
39311
|
const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open);
|
|
39126
39312
|
const noTitle = !title && !overlay && title !== 0;
|
|
@@ -39533,8 +39719,8 @@ var InternalPopover = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
39533
39719
|
const mergedArrow = useMergedArrow_default(popoverArrow, contextArrow);
|
|
39534
39720
|
const mergedTrigger = trigger || contextTrigger || "hover";
|
|
39535
39721
|
if (true) {
|
|
39536
|
-
const
|
|
39537
|
-
true ?
|
|
39722
|
+
const warning6 = devUseWarning("Popover");
|
|
39723
|
+
true ? warning6(!onOpenChange || onOpenChange.length <= 1, "usage", "The second `onOpenChange` parameter is internal and unsupported. Please lock to a previous version if needed.") : void 0;
|
|
39538
39724
|
}
|
|
39539
39725
|
const mergedProps = {
|
|
39540
39726
|
...props,
|
|
@@ -39962,9 +40148,9 @@ var InternalSpace = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
39962
40148
|
}, child);
|
|
39963
40149
|
});
|
|
39964
40150
|
if (true) {
|
|
39965
|
-
const
|
|
40151
|
+
const warning6 = devUseWarning("Space");
|
|
39966
40152
|
[["direction", "orientation"], ["split", "separator"]].forEach(([deprecatedName, newName]) => {
|
|
39967
|
-
|
|
40153
|
+
warning6.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
39968
40154
|
});
|
|
39969
40155
|
}
|
|
39970
40156
|
const memoizedSpaceContext = useMemo(() => {
|
|
@@ -41981,10 +42167,10 @@ var Input2 = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
41981
42167
|
const inputHasPrefixSuffix = hasPrefixSuffix2(props) || !!hasFeedback;
|
|
41982
42168
|
const prevHasPrefixSuffixRef = useRef(inputHasPrefixSuffix);
|
|
41983
42169
|
if (true) {
|
|
41984
|
-
const
|
|
42170
|
+
const warning6 = devUseWarning("Input");
|
|
41985
42171
|
useEffect(() => {
|
|
41986
42172
|
if (inputHasPrefixSuffix && !prevHasPrefixSuffixRef.current) {
|
|
41987
|
-
true ?
|
|
42173
|
+
true ? warning6(document.activeElement === inputRef.current?.input, "usage", `When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ`) : void 0;
|
|
41988
42174
|
}
|
|
41989
42175
|
prevHasPrefixSuffixRef.current = inputHasPrefixSuffix;
|
|
41990
42176
|
}, [inputHasPrefixSuffix]);
|