@pelcro/react-pelcro-js 4.0.0-alpha.112 → 4.0.0-alpha.114
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.cjs.js +14 -27
- package/dist/index.esm.js +14 -27
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -26493,9 +26493,7 @@ class SelectModal extends React.Component {
|
|
|
26493
26493
|
"data-key": plan.id,
|
|
26494
26494
|
onClick: e => {
|
|
26495
26495
|
this.selectPlan(e, false);
|
|
26496
|
-
|
|
26497
|
-
this.props.setItem(this.state.itemId);
|
|
26498
|
-
}
|
|
26496
|
+
this.props.setItem(this.state.itemId);
|
|
26499
26497
|
}
|
|
26500
26498
|
}, this.locale("buttons.select")), !disableGifting && /*#__PURE__*/React__default['default'].createElement("button", {
|
|
26501
26499
|
className: `plc-flex plc-items-center plc-justify-center plc-text-center plc-py-2 plc-px-4 plc-w-full plc-border-2 plc-rounded-sm plc-border-primary focus:plc-outline-none plc-text-primary plc-bg-white hover:plc-border-primary-600 hover:plc-text-primary-600 hover:plc-shadow-sm plc-transition-all`,
|
|
@@ -44601,7 +44599,7 @@ var followRedirects = wrap({ http: http__default['default'], https: https__defau
|
|
|
44601
44599
|
var wrap_1 = wrap;
|
|
44602
44600
|
followRedirects.wrap = wrap_1;
|
|
44603
44601
|
|
|
44604
|
-
const VERSION = "1.2.
|
|
44602
|
+
const VERSION = "1.2.0";
|
|
44605
44603
|
|
|
44606
44604
|
function parseProtocol(url) {
|
|
44607
44605
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
@@ -44734,7 +44732,7 @@ function speedometer(samplesCount, min) {
|
|
|
44734
44732
|
|
|
44735
44733
|
const passed = startedAt && now - startedAt;
|
|
44736
44734
|
|
|
44737
|
-
return
|
|
44735
|
+
return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
|
|
44738
44736
|
};
|
|
44739
44737
|
}
|
|
44740
44738
|
|
|
@@ -44921,11 +44919,6 @@ class AxiosTransformStream extends stream__default['default'].Transform{
|
|
|
44921
44919
|
}
|
|
44922
44920
|
}
|
|
44923
44921
|
|
|
44924
|
-
const zlibOptions = {
|
|
44925
|
-
flush: zlib__default['default'].constants.Z_SYNC_FLUSH,
|
|
44926
|
-
finishFlush: zlib__default['default'].constants.Z_SYNC_FLUSH
|
|
44927
|
-
};
|
|
44928
|
-
|
|
44929
44922
|
const isBrotliSupported = utils.isFunction(zlib__default['default'].createBrotliDecompress);
|
|
44930
44923
|
|
|
44931
44924
|
const {http: httpFollow, https: httpsFollow} = followRedirects;
|
|
@@ -45166,7 +45159,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45166
45159
|
}
|
|
45167
45160
|
}
|
|
45168
45161
|
|
|
45169
|
-
const contentLength =
|
|
45162
|
+
const contentLength = +headers.getContentLength();
|
|
45170
45163
|
|
|
45171
45164
|
if (utils.isArray(maxRate)) {
|
|
45172
45165
|
maxUploadRate = maxRate[0];
|
|
@@ -45181,7 +45174,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45181
45174
|
}
|
|
45182
45175
|
|
|
45183
45176
|
data = stream__default['default'].pipeline([data, new AxiosTransformStream({
|
|
45184
|
-
length: contentLength,
|
|
45177
|
+
length: utils.toFiniteNumber(contentLength),
|
|
45185
45178
|
maxRate: utils.toFiniteNumber(maxUploadRate)
|
|
45186
45179
|
})], utils.noop);
|
|
45187
45180
|
|
|
@@ -45224,10 +45217,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45224
45217
|
return reject(customErr);
|
|
45225
45218
|
}
|
|
45226
45219
|
|
|
45227
|
-
headers.set(
|
|
45228
|
-
'Accept-Encoding',
|
|
45229
|
-
'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false
|
|
45230
|
-
);
|
|
45220
|
+
headers.set('Accept-Encoding', 'gzip, deflate, br', false);
|
|
45231
45221
|
|
|
45232
45222
|
const options = {
|
|
45233
45223
|
path,
|
|
@@ -45299,17 +45289,17 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45299
45289
|
streams.push(transformStream);
|
|
45300
45290
|
}
|
|
45301
45291
|
|
|
45302
|
-
//
|
|
45292
|
+
// uncompress the response body transparently if required
|
|
45303
45293
|
let responseStream = res;
|
|
45304
45294
|
|
|
45305
45295
|
// return the last request in case of redirects
|
|
45306
45296
|
const lastRequest = res.req || req;
|
|
45307
45297
|
|
|
45308
45298
|
// if decompress disabled we should not decompress
|
|
45309
|
-
if (config.decompress !== false
|
|
45299
|
+
if (config.decompress !== false) {
|
|
45310
45300
|
// if no content, but headers still say that it is encoded,
|
|
45311
45301
|
// remove the header not confuse downstream operations
|
|
45312
|
-
if (
|
|
45302
|
+
if ((!responseLength || res.statusCode === 204) && res.headers['content-encoding']) {
|
|
45313
45303
|
delete res.headers['content-encoding'];
|
|
45314
45304
|
}
|
|
45315
45305
|
|
|
@@ -45319,14 +45309,14 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45319
45309
|
case 'compress':
|
|
45320
45310
|
case 'deflate':
|
|
45321
45311
|
// add the unzipper to the body stream processing pipeline
|
|
45322
|
-
streams.push(zlib__default['default'].createUnzip(
|
|
45312
|
+
streams.push(zlib__default['default'].createUnzip());
|
|
45323
45313
|
|
|
45324
45314
|
// remove the content-encoding in order to not confuse downstream operations
|
|
45325
45315
|
delete res.headers['content-encoding'];
|
|
45326
45316
|
break;
|
|
45327
45317
|
case 'br':
|
|
45328
45318
|
if (isBrotliSupported) {
|
|
45329
|
-
streams.push(zlib__default['default'].createBrotliDecompress(
|
|
45319
|
+
streams.push(zlib__default['default'].createBrotliDecompress());
|
|
45330
45320
|
delete res.headers['content-encoding'];
|
|
45331
45321
|
}
|
|
45332
45322
|
}
|
|
@@ -45544,7 +45534,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
45544
45534
|
}
|
|
45545
45535
|
}
|
|
45546
45536
|
|
|
45547
|
-
if (utils.isFormData(requestData) &&
|
|
45537
|
+
if (utils.isFormData(requestData) && platform.isStandardBrowserEnv) {
|
|
45548
45538
|
requestHeaders.setContentType(false); // Let the browser set it
|
|
45549
45539
|
}
|
|
45550
45540
|
|
|
@@ -45572,7 +45562,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
45572
45562
|
const responseHeaders = AxiosHeaders.from(
|
|
45573
45563
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
45574
45564
|
);
|
|
45575
|
-
const responseData = !responseType || responseType === 'text' ||
|
|
45565
|
+
const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
45576
45566
|
request.responseText : request.response;
|
|
45577
45567
|
const response = {
|
|
45578
45568
|
data: responseData,
|
|
@@ -45786,7 +45776,7 @@ function throwIfCancellationRequested(config) {
|
|
|
45786
45776
|
}
|
|
45787
45777
|
|
|
45788
45778
|
if (config.signal && config.signal.aborted) {
|
|
45789
|
-
throw new CanceledError(
|
|
45779
|
+
throw new CanceledError();
|
|
45790
45780
|
}
|
|
45791
45781
|
}
|
|
45792
45782
|
|
|
@@ -46427,9 +46417,6 @@ axios.spread = spread;
|
|
|
46427
46417
|
// Expose isAxiosError
|
|
46428
46418
|
axios.isAxiosError = isAxiosError;
|
|
46429
46419
|
|
|
46430
|
-
// Expose mergeConfig
|
|
46431
|
-
axios.mergeConfig = mergeConfig;
|
|
46432
|
-
|
|
46433
46420
|
axios.AxiosHeaders = AxiosHeaders;
|
|
46434
46421
|
|
|
46435
46422
|
axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
package/dist/index.esm.js
CHANGED
|
@@ -26451,9 +26451,7 @@ class SelectModal extends Component {
|
|
|
26451
26451
|
"data-key": plan.id,
|
|
26452
26452
|
onClick: e => {
|
|
26453
26453
|
this.selectPlan(e, false);
|
|
26454
|
-
|
|
26455
|
-
this.props.setItem(this.state.itemId);
|
|
26456
|
-
}
|
|
26454
|
+
this.props.setItem(this.state.itemId);
|
|
26457
26455
|
}
|
|
26458
26456
|
}, this.locale("buttons.select")), !disableGifting && /*#__PURE__*/React__default.createElement("button", {
|
|
26459
26457
|
className: `plc-flex plc-items-center plc-justify-center plc-text-center plc-py-2 plc-px-4 plc-w-full plc-border-2 plc-rounded-sm plc-border-primary focus:plc-outline-none plc-text-primary plc-bg-white hover:plc-border-primary-600 hover:plc-text-primary-600 hover:plc-shadow-sm plc-transition-all`,
|
|
@@ -44559,7 +44557,7 @@ var followRedirects = wrap({ http: http, https: https });
|
|
|
44559
44557
|
var wrap_1 = wrap;
|
|
44560
44558
|
followRedirects.wrap = wrap_1;
|
|
44561
44559
|
|
|
44562
|
-
const VERSION = "1.2.
|
|
44560
|
+
const VERSION = "1.2.0";
|
|
44563
44561
|
|
|
44564
44562
|
function parseProtocol(url) {
|
|
44565
44563
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
@@ -44692,7 +44690,7 @@ function speedometer(samplesCount, min) {
|
|
|
44692
44690
|
|
|
44693
44691
|
const passed = startedAt && now - startedAt;
|
|
44694
44692
|
|
|
44695
|
-
return
|
|
44693
|
+
return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
|
|
44696
44694
|
};
|
|
44697
44695
|
}
|
|
44698
44696
|
|
|
@@ -44879,11 +44877,6 @@ class AxiosTransformStream extends stream.Transform{
|
|
|
44879
44877
|
}
|
|
44880
44878
|
}
|
|
44881
44879
|
|
|
44882
|
-
const zlibOptions = {
|
|
44883
|
-
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
44884
|
-
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
44885
|
-
};
|
|
44886
|
-
|
|
44887
44880
|
const isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);
|
|
44888
44881
|
|
|
44889
44882
|
const {http: httpFollow, https: httpsFollow} = followRedirects;
|
|
@@ -45124,7 +45117,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45124
45117
|
}
|
|
45125
45118
|
}
|
|
45126
45119
|
|
|
45127
|
-
const contentLength =
|
|
45120
|
+
const contentLength = +headers.getContentLength();
|
|
45128
45121
|
|
|
45129
45122
|
if (utils.isArray(maxRate)) {
|
|
45130
45123
|
maxUploadRate = maxRate[0];
|
|
@@ -45139,7 +45132,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45139
45132
|
}
|
|
45140
45133
|
|
|
45141
45134
|
data = stream.pipeline([data, new AxiosTransformStream({
|
|
45142
|
-
length: contentLength,
|
|
45135
|
+
length: utils.toFiniteNumber(contentLength),
|
|
45143
45136
|
maxRate: utils.toFiniteNumber(maxUploadRate)
|
|
45144
45137
|
})], utils.noop);
|
|
45145
45138
|
|
|
@@ -45182,10 +45175,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45182
45175
|
return reject(customErr);
|
|
45183
45176
|
}
|
|
45184
45177
|
|
|
45185
|
-
headers.set(
|
|
45186
|
-
'Accept-Encoding',
|
|
45187
|
-
'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false
|
|
45188
|
-
);
|
|
45178
|
+
headers.set('Accept-Encoding', 'gzip, deflate, br', false);
|
|
45189
45179
|
|
|
45190
45180
|
const options = {
|
|
45191
45181
|
path,
|
|
@@ -45257,17 +45247,17 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45257
45247
|
streams.push(transformStream);
|
|
45258
45248
|
}
|
|
45259
45249
|
|
|
45260
|
-
//
|
|
45250
|
+
// uncompress the response body transparently if required
|
|
45261
45251
|
let responseStream = res;
|
|
45262
45252
|
|
|
45263
45253
|
// return the last request in case of redirects
|
|
45264
45254
|
const lastRequest = res.req || req;
|
|
45265
45255
|
|
|
45266
45256
|
// if decompress disabled we should not decompress
|
|
45267
|
-
if (config.decompress !== false
|
|
45257
|
+
if (config.decompress !== false) {
|
|
45268
45258
|
// if no content, but headers still say that it is encoded,
|
|
45269
45259
|
// remove the header not confuse downstream operations
|
|
45270
|
-
if (
|
|
45260
|
+
if ((!responseLength || res.statusCode === 204) && res.headers['content-encoding']) {
|
|
45271
45261
|
delete res.headers['content-encoding'];
|
|
45272
45262
|
}
|
|
45273
45263
|
|
|
@@ -45277,14 +45267,14 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
45277
45267
|
case 'compress':
|
|
45278
45268
|
case 'deflate':
|
|
45279
45269
|
// add the unzipper to the body stream processing pipeline
|
|
45280
|
-
streams.push(zlib.createUnzip(
|
|
45270
|
+
streams.push(zlib.createUnzip());
|
|
45281
45271
|
|
|
45282
45272
|
// remove the content-encoding in order to not confuse downstream operations
|
|
45283
45273
|
delete res.headers['content-encoding'];
|
|
45284
45274
|
break;
|
|
45285
45275
|
case 'br':
|
|
45286
45276
|
if (isBrotliSupported) {
|
|
45287
|
-
streams.push(zlib.createBrotliDecompress(
|
|
45277
|
+
streams.push(zlib.createBrotliDecompress());
|
|
45288
45278
|
delete res.headers['content-encoding'];
|
|
45289
45279
|
}
|
|
45290
45280
|
}
|
|
@@ -45502,7 +45492,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
45502
45492
|
}
|
|
45503
45493
|
}
|
|
45504
45494
|
|
|
45505
|
-
if (utils.isFormData(requestData) &&
|
|
45495
|
+
if (utils.isFormData(requestData) && platform.isStandardBrowserEnv) {
|
|
45506
45496
|
requestHeaders.setContentType(false); // Let the browser set it
|
|
45507
45497
|
}
|
|
45508
45498
|
|
|
@@ -45530,7 +45520,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
45530
45520
|
const responseHeaders = AxiosHeaders.from(
|
|
45531
45521
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
45532
45522
|
);
|
|
45533
|
-
const responseData = !responseType || responseType === 'text' ||
|
|
45523
|
+
const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
45534
45524
|
request.responseText : request.response;
|
|
45535
45525
|
const response = {
|
|
45536
45526
|
data: responseData,
|
|
@@ -45744,7 +45734,7 @@ function throwIfCancellationRequested(config) {
|
|
|
45744
45734
|
}
|
|
45745
45735
|
|
|
45746
45736
|
if (config.signal && config.signal.aborted) {
|
|
45747
|
-
throw new CanceledError(
|
|
45737
|
+
throw new CanceledError();
|
|
45748
45738
|
}
|
|
45749
45739
|
}
|
|
45750
45740
|
|
|
@@ -46385,9 +46375,6 @@ axios.spread = spread;
|
|
|
46385
46375
|
// Expose isAxiosError
|
|
46386
46376
|
axios.isAxiosError = isAxiosError;
|
|
46387
46377
|
|
|
46388
|
-
// Expose mergeConfig
|
|
46389
|
-
axios.mergeConfig = mergeConfig;
|
|
46390
|
-
|
|
46391
46378
|
axios.AxiosHeaders = AxiosHeaders;
|
|
46392
46379
|
|
|
46393
46380
|
axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pelcro/react-pelcro-js",
|
|
3
3
|
"description": "Pelcro's React UI Elements",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.114",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@headlessui/react": "^0.3.0",
|
|
104
104
|
"@stripe/react-stripe-js": "^2.8.1",
|
|
105
105
|
"@stripe/stripe-js": "^3.5.0",
|
|
106
|
-
"axios": "1.2.
|
|
106
|
+
"axios": "1.2.0",
|
|
107
107
|
"gapi-script": "^1.2.0",
|
|
108
108
|
"i18next": "^19.1.0",
|
|
109
109
|
"react-easy-crop": "^3.3.2",
|