@dreamtree-org/twreact-ui 1.1.10 → 1.1.11
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/index.esm.js +117 -142
- package/dist/index.js +117 -142
- package/package.json +25 -25
package/dist/index.esm.js
CHANGED
|
@@ -22144,10 +22144,11 @@ const trim = (str) => str.trim ?
|
|
|
22144
22144
|
* If 'obj' is an Object callback will be called passing
|
|
22145
22145
|
* the value, key, and complete object for each property.
|
|
22146
22146
|
*
|
|
22147
|
-
* @param {Object|Array} obj The object to iterate
|
|
22147
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
22148
22148
|
* @param {Function} fn The callback to invoke for each item
|
|
22149
22149
|
*
|
|
22150
|
-
* @param {
|
|
22150
|
+
* @param {Object} [options]
|
|
22151
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
22151
22152
|
* @returns {any}
|
|
22152
22153
|
*/
|
|
22153
22154
|
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
@@ -22224,7 +22225,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
22224
22225
|
* Example:
|
|
22225
22226
|
*
|
|
22226
22227
|
* ```js
|
|
22227
|
-
*
|
|
22228
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
22228
22229
|
* console.log(result.foo); // outputs 456
|
|
22229
22230
|
* ```
|
|
22230
22231
|
*
|
|
@@ -22261,15 +22262,26 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
22261
22262
|
* @param {Object} b The object to copy properties from
|
|
22262
22263
|
* @param {Object} thisArg The object to bind function to
|
|
22263
22264
|
*
|
|
22264
|
-
* @param {
|
|
22265
|
+
* @param {Object} [options]
|
|
22266
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
22265
22267
|
* @returns {Object} The resulting value of object a
|
|
22266
22268
|
*/
|
|
22267
22269
|
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
22268
22270
|
forEach(b, (val, key) => {
|
|
22269
22271
|
if (thisArg && isFunction$1(val)) {
|
|
22270
|
-
a
|
|
22272
|
+
Object.defineProperty(a, key, {
|
|
22273
|
+
value: bind(val, thisArg),
|
|
22274
|
+
writable: true,
|
|
22275
|
+
enumerable: true,
|
|
22276
|
+
configurable: true
|
|
22277
|
+
});
|
|
22271
22278
|
} else {
|
|
22272
|
-
a
|
|
22279
|
+
Object.defineProperty(a, key, {
|
|
22280
|
+
value: val,
|
|
22281
|
+
writable: true,
|
|
22282
|
+
enumerable: true,
|
|
22283
|
+
configurable: true
|
|
22284
|
+
});
|
|
22273
22285
|
}
|
|
22274
22286
|
}, {allOwnKeys});
|
|
22275
22287
|
return a;
|
|
@@ -22300,7 +22312,12 @@ const stripBOM = (content) => {
|
|
|
22300
22312
|
*/
|
|
22301
22313
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
22302
22314
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
22303
|
-
constructor.prototype
|
|
22315
|
+
Object.defineProperty(constructor.prototype, 'constructor', {
|
|
22316
|
+
value: constructor,
|
|
22317
|
+
writable: true,
|
|
22318
|
+
enumerable: false,
|
|
22319
|
+
configurable: true
|
|
22320
|
+
});
|
|
22304
22321
|
Object.defineProperty(constructor, 'super', {
|
|
22305
22322
|
value: superConstructor.prototype
|
|
22306
22323
|
});
|
|
@@ -22673,111 +22690,74 @@ var utils$1 = {
|
|
|
22673
22690
|
isIterable
|
|
22674
22691
|
};
|
|
22675
22692
|
|
|
22676
|
-
|
|
22677
|
-
|
|
22678
|
-
|
|
22679
|
-
|
|
22680
|
-
|
|
22681
|
-
|
|
22682
|
-
|
|
22683
|
-
|
|
22684
|
-
*
|
|
22685
|
-
* @returns {Error} The created error.
|
|
22686
|
-
*/
|
|
22687
|
-
function AxiosError$1(message, code, config, request, response) {
|
|
22688
|
-
Error.call(this);
|
|
22689
|
-
|
|
22690
|
-
if (Error.captureStackTrace) {
|
|
22691
|
-
Error.captureStackTrace(this, this.constructor);
|
|
22692
|
-
} else {
|
|
22693
|
-
this.stack = (new Error()).stack;
|
|
22694
|
-
}
|
|
22695
|
-
|
|
22696
|
-
this.message = message;
|
|
22697
|
-
this.name = 'AxiosError';
|
|
22698
|
-
code && (this.code = code);
|
|
22699
|
-
config && (this.config = config);
|
|
22700
|
-
request && (this.request = request);
|
|
22701
|
-
if (response) {
|
|
22702
|
-
this.response = response;
|
|
22703
|
-
this.status = response.status ? response.status : null;
|
|
22704
|
-
}
|
|
22705
|
-
}
|
|
22706
|
-
|
|
22707
|
-
utils$1.inherits(AxiosError$1, Error, {
|
|
22708
|
-
toJSON: function toJSON() {
|
|
22709
|
-
return {
|
|
22710
|
-
// Standard
|
|
22711
|
-
message: this.message,
|
|
22712
|
-
name: this.name,
|
|
22713
|
-
// Microsoft
|
|
22714
|
-
description: this.description,
|
|
22715
|
-
number: this.number,
|
|
22716
|
-
// Mozilla
|
|
22717
|
-
fileName: this.fileName,
|
|
22718
|
-
lineNumber: this.lineNumber,
|
|
22719
|
-
columnNumber: this.columnNumber,
|
|
22720
|
-
stack: this.stack,
|
|
22721
|
-
// Axios
|
|
22722
|
-
config: utils$1.toJSONObject(this.config),
|
|
22723
|
-
code: this.code,
|
|
22724
|
-
status: this.status
|
|
22725
|
-
};
|
|
22726
|
-
}
|
|
22727
|
-
});
|
|
22728
|
-
|
|
22729
|
-
const prototype$1 = AxiosError$1.prototype;
|
|
22730
|
-
const descriptors = {};
|
|
22731
|
-
|
|
22732
|
-
[
|
|
22733
|
-
'ERR_BAD_OPTION_VALUE',
|
|
22734
|
-
'ERR_BAD_OPTION',
|
|
22735
|
-
'ECONNABORTED',
|
|
22736
|
-
'ETIMEDOUT',
|
|
22737
|
-
'ERR_NETWORK',
|
|
22738
|
-
'ERR_FR_TOO_MANY_REDIRECTS',
|
|
22739
|
-
'ERR_DEPRECATED',
|
|
22740
|
-
'ERR_BAD_RESPONSE',
|
|
22741
|
-
'ERR_BAD_REQUEST',
|
|
22742
|
-
'ERR_CANCELED',
|
|
22743
|
-
'ERR_NOT_SUPPORT',
|
|
22744
|
-
'ERR_INVALID_URL'
|
|
22745
|
-
// eslint-disable-next-line func-names
|
|
22746
|
-
].forEach(code => {
|
|
22747
|
-
descriptors[code] = {value: code};
|
|
22748
|
-
});
|
|
22749
|
-
|
|
22750
|
-
Object.defineProperties(AxiosError$1, descriptors);
|
|
22751
|
-
Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
|
|
22752
|
-
|
|
22753
|
-
// eslint-disable-next-line func-names
|
|
22754
|
-
AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
22755
|
-
const axiosError = Object.create(prototype$1);
|
|
22756
|
-
|
|
22757
|
-
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
22758
|
-
return obj !== Error.prototype;
|
|
22759
|
-
}, prop => {
|
|
22760
|
-
return prop !== 'isAxiosError';
|
|
22761
|
-
});
|
|
22762
|
-
|
|
22763
|
-
const msg = error && error.message ? error.message : 'Error';
|
|
22764
|
-
|
|
22765
|
-
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
22766
|
-
const errCode = code == null && error ? error.code : code;
|
|
22767
|
-
AxiosError$1.call(axiosError, msg, errCode, config, request, response);
|
|
22768
|
-
|
|
22769
|
-
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
22770
|
-
if (error && axiosError.cause == null) {
|
|
22771
|
-
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
22772
|
-
}
|
|
22773
|
-
|
|
22774
|
-
axiosError.name = (error && error.name) || 'Error';
|
|
22693
|
+
let AxiosError$1 = class AxiosError extends Error {
|
|
22694
|
+
static from(error, code, config, request, response, customProps) {
|
|
22695
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
22696
|
+
axiosError.cause = error;
|
|
22697
|
+
axiosError.name = error.name;
|
|
22698
|
+
customProps && Object.assign(axiosError, customProps);
|
|
22699
|
+
return axiosError;
|
|
22700
|
+
}
|
|
22775
22701
|
|
|
22776
|
-
|
|
22702
|
+
/**
|
|
22703
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
22704
|
+
*
|
|
22705
|
+
* @param {string} message The error message.
|
|
22706
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
22707
|
+
* @param {Object} [config] The config.
|
|
22708
|
+
* @param {Object} [request] The request.
|
|
22709
|
+
* @param {Object} [response] The response.
|
|
22710
|
+
*
|
|
22711
|
+
* @returns {Error} The created error.
|
|
22712
|
+
*/
|
|
22713
|
+
constructor(message, code, config, request, response) {
|
|
22714
|
+
super(message);
|
|
22715
|
+
this.name = 'AxiosError';
|
|
22716
|
+
this.isAxiosError = true;
|
|
22717
|
+
code && (this.code = code);
|
|
22718
|
+
config && (this.config = config);
|
|
22719
|
+
request && (this.request = request);
|
|
22720
|
+
if (response) {
|
|
22721
|
+
this.response = response;
|
|
22722
|
+
this.status = response.status;
|
|
22723
|
+
}
|
|
22724
|
+
}
|
|
22777
22725
|
|
|
22778
|
-
|
|
22726
|
+
toJSON() {
|
|
22727
|
+
return {
|
|
22728
|
+
// Standard
|
|
22729
|
+
message: this.message,
|
|
22730
|
+
name: this.name,
|
|
22731
|
+
// Microsoft
|
|
22732
|
+
description: this.description,
|
|
22733
|
+
number: this.number,
|
|
22734
|
+
// Mozilla
|
|
22735
|
+
fileName: this.fileName,
|
|
22736
|
+
lineNumber: this.lineNumber,
|
|
22737
|
+
columnNumber: this.columnNumber,
|
|
22738
|
+
stack: this.stack,
|
|
22739
|
+
// Axios
|
|
22740
|
+
config: utils$1.toJSONObject(this.config),
|
|
22741
|
+
code: this.code,
|
|
22742
|
+
status: this.status,
|
|
22743
|
+
};
|
|
22744
|
+
}
|
|
22779
22745
|
};
|
|
22780
22746
|
|
|
22747
|
+
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
22748
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
22749
|
+
AxiosError$1.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
22750
|
+
AxiosError$1.ECONNABORTED = 'ECONNABORTED';
|
|
22751
|
+
AxiosError$1.ETIMEDOUT = 'ETIMEDOUT';
|
|
22752
|
+
AxiosError$1.ERR_NETWORK = 'ERR_NETWORK';
|
|
22753
|
+
AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
22754
|
+
AxiosError$1.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
22755
|
+
AxiosError$1.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
22756
|
+
AxiosError$1.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
22757
|
+
AxiosError$1.ERR_CANCELED = 'ERR_CANCELED';
|
|
22758
|
+
AxiosError$1.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
22759
|
+
AxiosError$1.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
22760
|
+
|
|
22781
22761
|
// eslint-disable-next-line strict
|
|
22782
22762
|
var httpAdapter = null;
|
|
22783
22763
|
|
|
@@ -23075,29 +23055,26 @@ function encode(val) {
|
|
|
23075
23055
|
* @returns {string} The formatted url
|
|
23076
23056
|
*/
|
|
23077
23057
|
function buildURL(url, params, options) {
|
|
23078
|
-
/*eslint no-param-reassign:0*/
|
|
23079
23058
|
if (!params) {
|
|
23080
23059
|
return url;
|
|
23081
23060
|
}
|
|
23082
|
-
|
|
23061
|
+
|
|
23083
23062
|
const _encode = options && options.encode || encode;
|
|
23084
23063
|
|
|
23085
|
-
|
|
23086
|
-
options
|
|
23087
|
-
|
|
23088
|
-
};
|
|
23089
|
-
}
|
|
23064
|
+
const _options = utils$1.isFunction(options) ? {
|
|
23065
|
+
serialize: options
|
|
23066
|
+
} : options;
|
|
23090
23067
|
|
|
23091
|
-
const serializeFn =
|
|
23068
|
+
const serializeFn = _options && _options.serialize;
|
|
23092
23069
|
|
|
23093
23070
|
let serializedParams;
|
|
23094
23071
|
|
|
23095
23072
|
if (serializeFn) {
|
|
23096
|
-
serializedParams = serializeFn(params,
|
|
23073
|
+
serializedParams = serializeFn(params, _options);
|
|
23097
23074
|
} else {
|
|
23098
23075
|
serializedParams = utils$1.isURLSearchParams(params) ?
|
|
23099
23076
|
params.toString() :
|
|
23100
|
-
new AxiosURLSearchParams(params,
|
|
23077
|
+
new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
23101
23078
|
}
|
|
23102
23079
|
|
|
23103
23080
|
if (serializedParams) {
|
|
@@ -23122,6 +23099,7 @@ class InterceptorManager {
|
|
|
23122
23099
|
*
|
|
23123
23100
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
23124
23101
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
23102
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
23125
23103
|
*
|
|
23126
23104
|
* @return {Number} An ID used to remove interceptor later
|
|
23127
23105
|
*/
|
|
@@ -23899,24 +23877,22 @@ function isCancel$1(value) {
|
|
|
23899
23877
|
return !!(value && value.__CANCEL__);
|
|
23900
23878
|
}
|
|
23901
23879
|
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23907
|
-
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
|
|
23913
|
-
|
|
23914
|
-
|
|
23915
|
-
|
|
23916
|
-
|
|
23917
|
-
|
|
23918
|
-
__CANCEL__: true
|
|
23919
|
-
});
|
|
23880
|
+
let CanceledError$1 = class CanceledError extends AxiosError$1 {
|
|
23881
|
+
/**
|
|
23882
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
23883
|
+
*
|
|
23884
|
+
* @param {string=} message The message.
|
|
23885
|
+
* @param {Object=} config The config.
|
|
23886
|
+
* @param {Object=} request The request.
|
|
23887
|
+
*
|
|
23888
|
+
* @returns {CanceledError} The created error.
|
|
23889
|
+
*/
|
|
23890
|
+
constructor(message, config, request) {
|
|
23891
|
+
super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
23892
|
+
this.name = 'CanceledError';
|
|
23893
|
+
this.__CANCEL__ = true;
|
|
23894
|
+
}
|
|
23895
|
+
};
|
|
23920
23896
|
|
|
23921
23897
|
/**
|
|
23922
23898
|
* Resolve or reject a Promise based on response status.
|
|
@@ -24210,7 +24186,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
24210
24186
|
|
|
24211
24187
|
function getMergedValue(target, source, prop, caseless) {
|
|
24212
24188
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
24213
|
-
return utils$1.merge.call({caseless}, target, source);
|
|
24189
|
+
return utils$1.merge.call({ caseless }, target, source);
|
|
24214
24190
|
} else if (utils$1.isPlainObject(source)) {
|
|
24215
24191
|
return utils$1.merge({}, source);
|
|
24216
24192
|
} else if (utils$1.isArray(source)) {
|
|
@@ -24219,7 +24195,6 @@ function mergeConfig$1(config1, config2) {
|
|
|
24219
24195
|
return source;
|
|
24220
24196
|
}
|
|
24221
24197
|
|
|
24222
|
-
// eslint-disable-next-line consistent-return
|
|
24223
24198
|
function mergeDeepProperties(a, b, prop, caseless) {
|
|
24224
24199
|
if (!utils$1.isUndefined(b)) {
|
|
24225
24200
|
return getMergedValue(a, b, prop, caseless);
|
|
@@ -24285,7 +24260,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
24285
24260
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
24286
24261
|
};
|
|
24287
24262
|
|
|
24288
|
-
utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
24263
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
24289
24264
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
24290
24265
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
24291
24266
|
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
@@ -24555,7 +24530,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
24555
24530
|
|
|
24556
24531
|
let timer = timeout && setTimeout(() => {
|
|
24557
24532
|
timer = null;
|
|
24558
|
-
onabort(new AxiosError$1(`timeout ${timeout}
|
|
24533
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
24559
24534
|
}, timeout);
|
|
24560
24535
|
|
|
24561
24536
|
const unsubscribe = () => {
|
|
@@ -25137,7 +25112,7 @@ function dispatchRequest(config) {
|
|
|
25137
25112
|
});
|
|
25138
25113
|
}
|
|
25139
25114
|
|
|
25140
|
-
const VERSION$1 = "1.13.
|
|
25115
|
+
const VERSION$1 = "1.13.4";
|
|
25141
25116
|
|
|
25142
25117
|
const validators$1 = {};
|
|
25143
25118
|
|
|
@@ -25597,7 +25572,7 @@ let CancelToken$1 = class CancelToken {
|
|
|
25597
25572
|
*
|
|
25598
25573
|
* ```js
|
|
25599
25574
|
* function f(x, y, z) {}
|
|
25600
|
-
*
|
|
25575
|
+
* const args = [1, 2, 3];
|
|
25601
25576
|
* f.apply(null, args);
|
|
25602
25577
|
* ```
|
|
25603
25578
|
*
|
package/dist/index.js
CHANGED
|
@@ -22164,10 +22164,11 @@ const trim = (str) => str.trim ?
|
|
|
22164
22164
|
* If 'obj' is an Object callback will be called passing
|
|
22165
22165
|
* the value, key, and complete object for each property.
|
|
22166
22166
|
*
|
|
22167
|
-
* @param {Object|Array} obj The object to iterate
|
|
22167
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
22168
22168
|
* @param {Function} fn The callback to invoke for each item
|
|
22169
22169
|
*
|
|
22170
|
-
* @param {
|
|
22170
|
+
* @param {Object} [options]
|
|
22171
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
22171
22172
|
* @returns {any}
|
|
22172
22173
|
*/
|
|
22173
22174
|
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
@@ -22244,7 +22245,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
22244
22245
|
* Example:
|
|
22245
22246
|
*
|
|
22246
22247
|
* ```js
|
|
22247
|
-
*
|
|
22248
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
22248
22249
|
* console.log(result.foo); // outputs 456
|
|
22249
22250
|
* ```
|
|
22250
22251
|
*
|
|
@@ -22281,15 +22282,26 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
22281
22282
|
* @param {Object} b The object to copy properties from
|
|
22282
22283
|
* @param {Object} thisArg The object to bind function to
|
|
22283
22284
|
*
|
|
22284
|
-
* @param {
|
|
22285
|
+
* @param {Object} [options]
|
|
22286
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
22285
22287
|
* @returns {Object} The resulting value of object a
|
|
22286
22288
|
*/
|
|
22287
22289
|
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
22288
22290
|
forEach(b, (val, key) => {
|
|
22289
22291
|
if (thisArg && isFunction$1(val)) {
|
|
22290
|
-
a
|
|
22292
|
+
Object.defineProperty(a, key, {
|
|
22293
|
+
value: bind(val, thisArg),
|
|
22294
|
+
writable: true,
|
|
22295
|
+
enumerable: true,
|
|
22296
|
+
configurable: true
|
|
22297
|
+
});
|
|
22291
22298
|
} else {
|
|
22292
|
-
a
|
|
22299
|
+
Object.defineProperty(a, key, {
|
|
22300
|
+
value: val,
|
|
22301
|
+
writable: true,
|
|
22302
|
+
enumerable: true,
|
|
22303
|
+
configurable: true
|
|
22304
|
+
});
|
|
22293
22305
|
}
|
|
22294
22306
|
}, {allOwnKeys});
|
|
22295
22307
|
return a;
|
|
@@ -22320,7 +22332,12 @@ const stripBOM = (content) => {
|
|
|
22320
22332
|
*/
|
|
22321
22333
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
22322
22334
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
22323
|
-
constructor.prototype
|
|
22335
|
+
Object.defineProperty(constructor.prototype, 'constructor', {
|
|
22336
|
+
value: constructor,
|
|
22337
|
+
writable: true,
|
|
22338
|
+
enumerable: false,
|
|
22339
|
+
configurable: true
|
|
22340
|
+
});
|
|
22324
22341
|
Object.defineProperty(constructor, 'super', {
|
|
22325
22342
|
value: superConstructor.prototype
|
|
22326
22343
|
});
|
|
@@ -22693,111 +22710,74 @@ var utils$1 = {
|
|
|
22693
22710
|
isIterable
|
|
22694
22711
|
};
|
|
22695
22712
|
|
|
22696
|
-
|
|
22697
|
-
|
|
22698
|
-
|
|
22699
|
-
|
|
22700
|
-
|
|
22701
|
-
|
|
22702
|
-
|
|
22703
|
-
|
|
22704
|
-
*
|
|
22705
|
-
* @returns {Error} The created error.
|
|
22706
|
-
*/
|
|
22707
|
-
function AxiosError$1(message, code, config, request, response) {
|
|
22708
|
-
Error.call(this);
|
|
22709
|
-
|
|
22710
|
-
if (Error.captureStackTrace) {
|
|
22711
|
-
Error.captureStackTrace(this, this.constructor);
|
|
22712
|
-
} else {
|
|
22713
|
-
this.stack = (new Error()).stack;
|
|
22714
|
-
}
|
|
22715
|
-
|
|
22716
|
-
this.message = message;
|
|
22717
|
-
this.name = 'AxiosError';
|
|
22718
|
-
code && (this.code = code);
|
|
22719
|
-
config && (this.config = config);
|
|
22720
|
-
request && (this.request = request);
|
|
22721
|
-
if (response) {
|
|
22722
|
-
this.response = response;
|
|
22723
|
-
this.status = response.status ? response.status : null;
|
|
22724
|
-
}
|
|
22725
|
-
}
|
|
22726
|
-
|
|
22727
|
-
utils$1.inherits(AxiosError$1, Error, {
|
|
22728
|
-
toJSON: function toJSON() {
|
|
22729
|
-
return {
|
|
22730
|
-
// Standard
|
|
22731
|
-
message: this.message,
|
|
22732
|
-
name: this.name,
|
|
22733
|
-
// Microsoft
|
|
22734
|
-
description: this.description,
|
|
22735
|
-
number: this.number,
|
|
22736
|
-
// Mozilla
|
|
22737
|
-
fileName: this.fileName,
|
|
22738
|
-
lineNumber: this.lineNumber,
|
|
22739
|
-
columnNumber: this.columnNumber,
|
|
22740
|
-
stack: this.stack,
|
|
22741
|
-
// Axios
|
|
22742
|
-
config: utils$1.toJSONObject(this.config),
|
|
22743
|
-
code: this.code,
|
|
22744
|
-
status: this.status
|
|
22745
|
-
};
|
|
22746
|
-
}
|
|
22747
|
-
});
|
|
22748
|
-
|
|
22749
|
-
const prototype$1 = AxiosError$1.prototype;
|
|
22750
|
-
const descriptors = {};
|
|
22751
|
-
|
|
22752
|
-
[
|
|
22753
|
-
'ERR_BAD_OPTION_VALUE',
|
|
22754
|
-
'ERR_BAD_OPTION',
|
|
22755
|
-
'ECONNABORTED',
|
|
22756
|
-
'ETIMEDOUT',
|
|
22757
|
-
'ERR_NETWORK',
|
|
22758
|
-
'ERR_FR_TOO_MANY_REDIRECTS',
|
|
22759
|
-
'ERR_DEPRECATED',
|
|
22760
|
-
'ERR_BAD_RESPONSE',
|
|
22761
|
-
'ERR_BAD_REQUEST',
|
|
22762
|
-
'ERR_CANCELED',
|
|
22763
|
-
'ERR_NOT_SUPPORT',
|
|
22764
|
-
'ERR_INVALID_URL'
|
|
22765
|
-
// eslint-disable-next-line func-names
|
|
22766
|
-
].forEach(code => {
|
|
22767
|
-
descriptors[code] = {value: code};
|
|
22768
|
-
});
|
|
22769
|
-
|
|
22770
|
-
Object.defineProperties(AxiosError$1, descriptors);
|
|
22771
|
-
Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
|
|
22772
|
-
|
|
22773
|
-
// eslint-disable-next-line func-names
|
|
22774
|
-
AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
22775
|
-
const axiosError = Object.create(prototype$1);
|
|
22776
|
-
|
|
22777
|
-
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
22778
|
-
return obj !== Error.prototype;
|
|
22779
|
-
}, prop => {
|
|
22780
|
-
return prop !== 'isAxiosError';
|
|
22781
|
-
});
|
|
22782
|
-
|
|
22783
|
-
const msg = error && error.message ? error.message : 'Error';
|
|
22784
|
-
|
|
22785
|
-
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
22786
|
-
const errCode = code == null && error ? error.code : code;
|
|
22787
|
-
AxiosError$1.call(axiosError, msg, errCode, config, request, response);
|
|
22788
|
-
|
|
22789
|
-
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
22790
|
-
if (error && axiosError.cause == null) {
|
|
22791
|
-
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
22792
|
-
}
|
|
22793
|
-
|
|
22794
|
-
axiosError.name = (error && error.name) || 'Error';
|
|
22713
|
+
let AxiosError$1 = class AxiosError extends Error {
|
|
22714
|
+
static from(error, code, config, request, response, customProps) {
|
|
22715
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
22716
|
+
axiosError.cause = error;
|
|
22717
|
+
axiosError.name = error.name;
|
|
22718
|
+
customProps && Object.assign(axiosError, customProps);
|
|
22719
|
+
return axiosError;
|
|
22720
|
+
}
|
|
22795
22721
|
|
|
22796
|
-
|
|
22722
|
+
/**
|
|
22723
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
22724
|
+
*
|
|
22725
|
+
* @param {string} message The error message.
|
|
22726
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
22727
|
+
* @param {Object} [config] The config.
|
|
22728
|
+
* @param {Object} [request] The request.
|
|
22729
|
+
* @param {Object} [response] The response.
|
|
22730
|
+
*
|
|
22731
|
+
* @returns {Error} The created error.
|
|
22732
|
+
*/
|
|
22733
|
+
constructor(message, code, config, request, response) {
|
|
22734
|
+
super(message);
|
|
22735
|
+
this.name = 'AxiosError';
|
|
22736
|
+
this.isAxiosError = true;
|
|
22737
|
+
code && (this.code = code);
|
|
22738
|
+
config && (this.config = config);
|
|
22739
|
+
request && (this.request = request);
|
|
22740
|
+
if (response) {
|
|
22741
|
+
this.response = response;
|
|
22742
|
+
this.status = response.status;
|
|
22743
|
+
}
|
|
22744
|
+
}
|
|
22797
22745
|
|
|
22798
|
-
|
|
22746
|
+
toJSON() {
|
|
22747
|
+
return {
|
|
22748
|
+
// Standard
|
|
22749
|
+
message: this.message,
|
|
22750
|
+
name: this.name,
|
|
22751
|
+
// Microsoft
|
|
22752
|
+
description: this.description,
|
|
22753
|
+
number: this.number,
|
|
22754
|
+
// Mozilla
|
|
22755
|
+
fileName: this.fileName,
|
|
22756
|
+
lineNumber: this.lineNumber,
|
|
22757
|
+
columnNumber: this.columnNumber,
|
|
22758
|
+
stack: this.stack,
|
|
22759
|
+
// Axios
|
|
22760
|
+
config: utils$1.toJSONObject(this.config),
|
|
22761
|
+
code: this.code,
|
|
22762
|
+
status: this.status,
|
|
22763
|
+
};
|
|
22764
|
+
}
|
|
22799
22765
|
};
|
|
22800
22766
|
|
|
22767
|
+
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
22768
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
22769
|
+
AxiosError$1.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
22770
|
+
AxiosError$1.ECONNABORTED = 'ECONNABORTED';
|
|
22771
|
+
AxiosError$1.ETIMEDOUT = 'ETIMEDOUT';
|
|
22772
|
+
AxiosError$1.ERR_NETWORK = 'ERR_NETWORK';
|
|
22773
|
+
AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
22774
|
+
AxiosError$1.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
22775
|
+
AxiosError$1.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
22776
|
+
AxiosError$1.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
22777
|
+
AxiosError$1.ERR_CANCELED = 'ERR_CANCELED';
|
|
22778
|
+
AxiosError$1.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
22779
|
+
AxiosError$1.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
22780
|
+
|
|
22801
22781
|
// eslint-disable-next-line strict
|
|
22802
22782
|
var httpAdapter = null;
|
|
22803
22783
|
|
|
@@ -23095,29 +23075,26 @@ function encode(val) {
|
|
|
23095
23075
|
* @returns {string} The formatted url
|
|
23096
23076
|
*/
|
|
23097
23077
|
function buildURL(url, params, options) {
|
|
23098
|
-
/*eslint no-param-reassign:0*/
|
|
23099
23078
|
if (!params) {
|
|
23100
23079
|
return url;
|
|
23101
23080
|
}
|
|
23102
|
-
|
|
23081
|
+
|
|
23103
23082
|
const _encode = options && options.encode || encode;
|
|
23104
23083
|
|
|
23105
|
-
|
|
23106
|
-
options
|
|
23107
|
-
|
|
23108
|
-
};
|
|
23109
|
-
}
|
|
23084
|
+
const _options = utils$1.isFunction(options) ? {
|
|
23085
|
+
serialize: options
|
|
23086
|
+
} : options;
|
|
23110
23087
|
|
|
23111
|
-
const serializeFn =
|
|
23088
|
+
const serializeFn = _options && _options.serialize;
|
|
23112
23089
|
|
|
23113
23090
|
let serializedParams;
|
|
23114
23091
|
|
|
23115
23092
|
if (serializeFn) {
|
|
23116
|
-
serializedParams = serializeFn(params,
|
|
23093
|
+
serializedParams = serializeFn(params, _options);
|
|
23117
23094
|
} else {
|
|
23118
23095
|
serializedParams = utils$1.isURLSearchParams(params) ?
|
|
23119
23096
|
params.toString() :
|
|
23120
|
-
new AxiosURLSearchParams(params,
|
|
23097
|
+
new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
23121
23098
|
}
|
|
23122
23099
|
|
|
23123
23100
|
if (serializedParams) {
|
|
@@ -23142,6 +23119,7 @@ class InterceptorManager {
|
|
|
23142
23119
|
*
|
|
23143
23120
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
23144
23121
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
23122
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
23145
23123
|
*
|
|
23146
23124
|
* @return {Number} An ID used to remove interceptor later
|
|
23147
23125
|
*/
|
|
@@ -23919,24 +23897,22 @@ function isCancel$1(value) {
|
|
|
23919
23897
|
return !!(value && value.__CANCEL__);
|
|
23920
23898
|
}
|
|
23921
23899
|
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23927
|
-
|
|
23928
|
-
|
|
23929
|
-
|
|
23930
|
-
|
|
23931
|
-
|
|
23932
|
-
|
|
23933
|
-
|
|
23934
|
-
|
|
23935
|
-
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
__CANCEL__: true
|
|
23939
|
-
});
|
|
23900
|
+
let CanceledError$1 = class CanceledError extends AxiosError$1 {
|
|
23901
|
+
/**
|
|
23902
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
23903
|
+
*
|
|
23904
|
+
* @param {string=} message The message.
|
|
23905
|
+
* @param {Object=} config The config.
|
|
23906
|
+
* @param {Object=} request The request.
|
|
23907
|
+
*
|
|
23908
|
+
* @returns {CanceledError} The created error.
|
|
23909
|
+
*/
|
|
23910
|
+
constructor(message, config, request) {
|
|
23911
|
+
super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
23912
|
+
this.name = 'CanceledError';
|
|
23913
|
+
this.__CANCEL__ = true;
|
|
23914
|
+
}
|
|
23915
|
+
};
|
|
23940
23916
|
|
|
23941
23917
|
/**
|
|
23942
23918
|
* Resolve or reject a Promise based on response status.
|
|
@@ -24230,7 +24206,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
24230
24206
|
|
|
24231
24207
|
function getMergedValue(target, source, prop, caseless) {
|
|
24232
24208
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
24233
|
-
return utils$1.merge.call({caseless}, target, source);
|
|
24209
|
+
return utils$1.merge.call({ caseless }, target, source);
|
|
24234
24210
|
} else if (utils$1.isPlainObject(source)) {
|
|
24235
24211
|
return utils$1.merge({}, source);
|
|
24236
24212
|
} else if (utils$1.isArray(source)) {
|
|
@@ -24239,7 +24215,6 @@ function mergeConfig$1(config1, config2) {
|
|
|
24239
24215
|
return source;
|
|
24240
24216
|
}
|
|
24241
24217
|
|
|
24242
|
-
// eslint-disable-next-line consistent-return
|
|
24243
24218
|
function mergeDeepProperties(a, b, prop, caseless) {
|
|
24244
24219
|
if (!utils$1.isUndefined(b)) {
|
|
24245
24220
|
return getMergedValue(a, b, prop, caseless);
|
|
@@ -24305,7 +24280,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
24305
24280
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
24306
24281
|
};
|
|
24307
24282
|
|
|
24308
|
-
utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
24283
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
24309
24284
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
24310
24285
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
24311
24286
|
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
@@ -24575,7 +24550,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
24575
24550
|
|
|
24576
24551
|
let timer = timeout && setTimeout(() => {
|
|
24577
24552
|
timer = null;
|
|
24578
|
-
onabort(new AxiosError$1(`timeout ${timeout}
|
|
24553
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
24579
24554
|
}, timeout);
|
|
24580
24555
|
|
|
24581
24556
|
const unsubscribe = () => {
|
|
@@ -25157,7 +25132,7 @@ function dispatchRequest(config) {
|
|
|
25157
25132
|
});
|
|
25158
25133
|
}
|
|
25159
25134
|
|
|
25160
|
-
const VERSION$1 = "1.13.
|
|
25135
|
+
const VERSION$1 = "1.13.4";
|
|
25161
25136
|
|
|
25162
25137
|
const validators$1 = {};
|
|
25163
25138
|
|
|
@@ -25617,7 +25592,7 @@ let CancelToken$1 = class CancelToken {
|
|
|
25617
25592
|
*
|
|
25618
25593
|
* ```js
|
|
25619
25594
|
* function f(x, y, z) {}
|
|
25620
|
-
*
|
|
25595
|
+
* const args = [1, 2, 3];
|
|
25621
25596
|
* f.apply(null, args);
|
|
25622
25597
|
* ```
|
|
25623
25598
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamtree-org/twreact-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "A comprehensive React + Tailwind components library for building modern web apps",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Partha Preetham Krishna",
|
|
@@ -56,59 +56,59 @@
|
|
|
56
56
|
},
|
|
57
57
|
"homepage": "https://github.com/preethamkrishnadev/dreamtree-ui#readme",
|
|
58
58
|
"license": "MIT",
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=18.0.0"
|
|
61
|
+
},
|
|
59
62
|
"peerDependencies": {
|
|
60
63
|
"react": "^18.3.1",
|
|
61
64
|
"react-dom": "^18.3.1"
|
|
62
65
|
},
|
|
63
66
|
"dependencies": {
|
|
64
|
-
"@hookform/resolvers": "^3.
|
|
65
|
-
"@reduxjs/toolkit": "^2.
|
|
66
|
-
"axios": "^1.
|
|
67
|
+
"@hookform/resolvers": "^3.10.0",
|
|
68
|
+
"@reduxjs/toolkit": "^2.11.2",
|
|
69
|
+
"axios": "^1.13.4",
|
|
67
70
|
"clsx": "^1.2.1",
|
|
68
71
|
"date-fns": "^2.30.0",
|
|
69
72
|
"lucide-react": "^0.263.1",
|
|
70
|
-
"react-hook-form": "^7.
|
|
73
|
+
"react-hook-form": "^7.71.1",
|
|
71
74
|
"react-redux": "^9.2.0",
|
|
72
75
|
"redux-persist": "^6.0.0",
|
|
73
76
|
"tailwind-merge": "^1.14.0",
|
|
74
77
|
"yup": "^1.7.1"
|
|
75
78
|
},
|
|
76
79
|
"devDependencies": {
|
|
77
|
-
"@babel/plugin-transform-runtime": "^7.28.
|
|
78
|
-
"@babel/preset-env": "^7.28.
|
|
79
|
-
"@babel/preset-react": "^7.
|
|
80
|
-
"@babel/runtime": "^7.28.
|
|
81
|
-
"@rollup/plugin-babel": "^6.0
|
|
82
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
83
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
80
|
+
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
81
|
+
"@babel/preset-env": "^7.28.6",
|
|
82
|
+
"@babel/preset-react": "^7.28.5",
|
|
83
|
+
"@babel/runtime": "^7.28.6",
|
|
84
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
85
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
86
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
84
87
|
"@storybook/addon-essentials": "8.6.15",
|
|
85
|
-
"@storybook/addon-interactions": "8.6.15",
|
|
86
|
-
"@storybook/addon-links": "8.6.15",
|
|
87
88
|
"@storybook/blocks": "8.6.15",
|
|
88
89
|
"@storybook/react": "8.6.15",
|
|
89
90
|
"@storybook/react-vite": "8.6.15",
|
|
90
|
-
"@testing-library/jest-dom": "^6.1
|
|
91
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
91
92
|
"@testing-library/react": "^13.4.0",
|
|
92
|
-
"
|
|
93
|
-
"autoprefixer": "^10.4.16",
|
|
93
|
+
"autoprefixer": "^10.4.23",
|
|
94
94
|
"babel-jest": "^29.7.0",
|
|
95
95
|
"cross-env": "^10.1.0",
|
|
96
|
-
"eslint": "^8.
|
|
97
|
-
"eslint-plugin-react": "^7.
|
|
98
|
-
"eslint-plugin-react-hooks": "^
|
|
96
|
+
"eslint": "^8.57.1",
|
|
97
|
+
"eslint-plugin-react": "^7.37.5",
|
|
98
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
99
99
|
"identity-obj-proxy": "^3.0.0",
|
|
100
100
|
"jest": "^29.7.0",
|
|
101
101
|
"jest-environment-jsdom": "^29.7.0",
|
|
102
102
|
"jest-transform-stub": "^2.0.0",
|
|
103
|
-
"postcss": "^8.
|
|
103
|
+
"postcss": "^8.5.6",
|
|
104
104
|
"react": "^18.3.1",
|
|
105
105
|
"react-dom": "^18.3.1",
|
|
106
|
-
"rollup": "^4.
|
|
106
|
+
"rollup": "^4.57.1",
|
|
107
107
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
108
|
"rollup-plugin-postcss": "^4.0.2",
|
|
109
|
-
"serve": "^14.2.
|
|
109
|
+
"serve": "^14.2.5",
|
|
110
110
|
"storybook": "8.6.15",
|
|
111
|
-
"tailwindcss": "^3.
|
|
112
|
-
"vite": "^6.1
|
|
111
|
+
"tailwindcss": "^3.4.19",
|
|
112
|
+
"vite": "^6.4.1"
|
|
113
113
|
}
|
|
114
114
|
}
|