mozrest-sdk-react-dev 0.1.3 → 0.1.4
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/mozrest-sdk.es.js +28 -27
- package/package.json +3 -3
package/mozrest-sdk.es.js
CHANGED
|
@@ -15011,7 +15011,7 @@ var enUS$1 = {
|
|
|
15011
15011
|
next_3: "Next 3 Pages",
|
|
15012
15012
|
page_size: "Page Size"
|
|
15013
15013
|
};
|
|
15014
|
-
var locale$
|
|
15014
|
+
var locale$5 = {
|
|
15015
15015
|
locale: "en_US",
|
|
15016
15016
|
today: "Today",
|
|
15017
15017
|
now: "Now",
|
|
@@ -15040,12 +15040,12 @@ var locale$6 = {
|
|
|
15040
15040
|
previousCentury: "Last century",
|
|
15041
15041
|
nextCentury: "Next century"
|
|
15042
15042
|
};
|
|
15043
|
-
var locale$
|
|
15043
|
+
var locale$4 = {
|
|
15044
15044
|
placeholder: "Select time",
|
|
15045
15045
|
rangePlaceholder: ["Start time", "End time"]
|
|
15046
15046
|
};
|
|
15047
|
-
var TimePicker = locale$
|
|
15048
|
-
var locale$
|
|
15047
|
+
var TimePicker = locale$4;
|
|
15048
|
+
var locale$3 = {
|
|
15049
15049
|
lang: _extends$O({
|
|
15050
15050
|
placeholder: "Select date",
|
|
15051
15051
|
yearPlaceholder: "Select year",
|
|
@@ -15057,10 +15057,10 @@ var locale$4 = {
|
|
|
15057
15057
|
rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
|
|
15058
15058
|
rangeMonthPlaceholder: ["Start month", "End month"],
|
|
15059
15059
|
rangeWeekPlaceholder: ["Start week", "End week"]
|
|
15060
|
-
}, locale$
|
|
15060
|
+
}, locale$5),
|
|
15061
15061
|
timePickerLocale: _extends$O({}, TimePicker)
|
|
15062
15062
|
};
|
|
15063
|
-
var enUS = locale$
|
|
15063
|
+
var enUS = locale$3;
|
|
15064
15064
|
var typeTemplate = "${label} is not a valid ${type}";
|
|
15065
15065
|
var localeValues = {
|
|
15066
15066
|
locale: "en",
|
|
@@ -25665,7 +25665,7 @@ function to(time2, withoutSuffix) {
|
|
|
25665
25665
|
function toNow(withoutSuffix) {
|
|
25666
25666
|
return this.to(createLocal(), withoutSuffix);
|
|
25667
25667
|
}
|
|
25668
|
-
function locale$
|
|
25668
|
+
function locale$2(key2) {
|
|
25669
25669
|
var newLocaleData;
|
|
25670
25670
|
if (key2 === void 0) {
|
|
25671
25671
|
return this._locale._abbr;
|
|
@@ -26231,7 +26231,7 @@ proto.isSameOrAfter = isSameOrAfter;
|
|
|
26231
26231
|
proto.isSameOrBefore = isSameOrBefore;
|
|
26232
26232
|
proto.isValid = isValid$2;
|
|
26233
26233
|
proto.lang = lang;
|
|
26234
|
-
proto.locale = locale$
|
|
26234
|
+
proto.locale = locale$2;
|
|
26235
26235
|
proto.localeData = localeData;
|
|
26236
26236
|
proto.max = prototypeMax;
|
|
26237
26237
|
proto.min = prototypeMin;
|
|
@@ -26683,7 +26683,7 @@ proto$2.humanize = humanize;
|
|
|
26683
26683
|
proto$2.toISOString = toISOString$1;
|
|
26684
26684
|
proto$2.toString = toISOString$1;
|
|
26685
26685
|
proto$2.toJSON = toISOString$1;
|
|
26686
|
-
proto$2.locale = locale$
|
|
26686
|
+
proto$2.locale = locale$2;
|
|
26687
26687
|
proto$2.localeData = localeData;
|
|
26688
26688
|
proto$2.toIsoString = deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", toISOString$1);
|
|
26689
26689
|
proto$2.lang = lang;
|
|
@@ -55285,11 +55285,10 @@ const findLanguage = ({
|
|
|
55285
55285
|
languageOptions,
|
|
55286
55286
|
locale: locale2
|
|
55287
55287
|
}) => {
|
|
55288
|
-
console.log("locale languageOptions", languageOptions);
|
|
55289
55288
|
if (languageOptions.length === 0) {
|
|
55290
55289
|
return void 0;
|
|
55291
55290
|
}
|
|
55292
|
-
const getLocale2 = (locale22) => locale22 === "en" ? "gb" : locale22
|
|
55291
|
+
const getLocale2 = (locale22) => locale22 === "en" ? "gb" : locale22;
|
|
55293
55292
|
const languageOption = languageOptions.find(({ value: value2 }) => value2 == getLocale2(locale2));
|
|
55294
55293
|
return languageOption || { id: "en", value: "gb", label: t$3("English") };
|
|
55295
55294
|
};
|
|
@@ -55437,6 +55436,7 @@ const DetailMobile = ({
|
|
|
55437
55436
|
platform: platform2,
|
|
55438
55437
|
createdAt,
|
|
55439
55438
|
locationName,
|
|
55439
|
+
locale: locale2,
|
|
55440
55440
|
onReload,
|
|
55441
55441
|
openForm,
|
|
55442
55442
|
onClick
|
|
@@ -55463,9 +55463,9 @@ const DetailMobile = ({
|
|
|
55463
55463
|
alt: platform2,
|
|
55464
55464
|
src: platformImages[platform2],
|
|
55465
55465
|
className: styles$A.platform
|
|
55466
|
-
})), /* @__PURE__ */ React__default.createElement("div", null, createdAt)), /* @__PURE__ */ React__default.createElement("strong", null, reviewer.name, " ", " ",
|
|
55467
|
-
alt:
|
|
55468
|
-
src: `https://countryflagsapi.com/png/${
|
|
55466
|
+
})), /* @__PURE__ */ React__default.createElement("div", null, createdAt)), /* @__PURE__ */ React__default.createElement("strong", null, reviewer.name, " ", " ", locale2 && /* @__PURE__ */ React__default.createElement("img", {
|
|
55467
|
+
alt: locale2,
|
|
55468
|
+
src: `https://countryflagsapi.com/png/${locale2 === "en" ? "gb" : locale2}`,
|
|
55469
55469
|
className: styles$A.flag
|
|
55470
55470
|
})), /* @__PURE__ */ React__default.createElement(StartScore, {
|
|
55471
55471
|
score: rating
|
|
@@ -55803,6 +55803,7 @@ const Templates = () => {
|
|
|
55803
55803
|
setSelectedTemplate((current) => current === id ? "" : id);
|
|
55804
55804
|
};
|
|
55805
55805
|
useEffect(() => {
|
|
55806
|
+
console.log("effect");
|
|
55806
55807
|
if (review && typeOptions) {
|
|
55807
55808
|
setTemplateType(findTemplateByRating({
|
|
55808
55809
|
options: typeOptions,
|
|
@@ -55813,7 +55814,7 @@ const Templates = () => {
|
|
|
55813
55814
|
locale: review.locale
|
|
55814
55815
|
}));
|
|
55815
55816
|
}
|
|
55816
|
-
}, [review
|
|
55817
|
+
}, [review]);
|
|
55817
55818
|
return /* @__PURE__ */ React__default.createElement(Card, {
|
|
55818
55819
|
header: /* @__PURE__ */ React__default.createElement(Header$3, {
|
|
55819
55820
|
title: t2("REPLYTEMPLATES")
|
|
@@ -69624,7 +69625,7 @@ function formatLocale$1(locale2) {
|
|
|
69624
69625
|
formatPrefix: formatPrefix2
|
|
69625
69626
|
};
|
|
69626
69627
|
}
|
|
69627
|
-
var locale$
|
|
69628
|
+
var locale$1;
|
|
69628
69629
|
var format2;
|
|
69629
69630
|
var formatPrefix;
|
|
69630
69631
|
defaultLocale$1({
|
|
@@ -69633,10 +69634,10 @@ defaultLocale$1({
|
|
|
69633
69634
|
currency: ["$", ""]
|
|
69634
69635
|
});
|
|
69635
69636
|
function defaultLocale$1(definition) {
|
|
69636
|
-
locale$
|
|
69637
|
-
format2 = locale$
|
|
69638
|
-
formatPrefix = locale$
|
|
69639
|
-
return locale$
|
|
69637
|
+
locale$1 = formatLocale$1(definition);
|
|
69638
|
+
format2 = locale$1.format;
|
|
69639
|
+
formatPrefix = locale$1.formatPrefix;
|
|
69640
|
+
return locale$1;
|
|
69640
69641
|
}
|
|
69641
69642
|
function precisionFixed(step2) {
|
|
69642
69643
|
return Math.max(0, -exponent(Math.abs(step2)));
|
|
@@ -70946,7 +70947,7 @@ function formatUnixTimestamp(d2) {
|
|
|
70946
70947
|
function formatUnixTimestampSeconds(d2) {
|
|
70947
70948
|
return Math.floor(+d2 / 1e3);
|
|
70948
70949
|
}
|
|
70949
|
-
var locale
|
|
70950
|
+
var locale;
|
|
70950
70951
|
var timeFormat;
|
|
70951
70952
|
var utcFormat;
|
|
70952
70953
|
defaultLocale({
|
|
@@ -70960,12 +70961,12 @@ defaultLocale({
|
|
|
70960
70961
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
70961
70962
|
});
|
|
70962
70963
|
function defaultLocale(definition) {
|
|
70963
|
-
locale
|
|
70964
|
-
timeFormat = locale
|
|
70965
|
-
locale
|
|
70966
|
-
utcFormat = locale
|
|
70967
|
-
locale
|
|
70968
|
-
return locale
|
|
70964
|
+
locale = formatLocale(definition);
|
|
70965
|
+
timeFormat = locale.format;
|
|
70966
|
+
locale.parse;
|
|
70967
|
+
utcFormat = locale.utcFormat;
|
|
70968
|
+
locale.utcParse;
|
|
70969
|
+
return locale;
|
|
70969
70970
|
}
|
|
70970
70971
|
function date3(t2) {
|
|
70971
70972
|
return new Date(t2);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mozrest-sdk-react-dev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"main": "mozrest-sdk.es.js",
|
|
5
5
|
"keywords": ["mozrest"],
|
|
6
6
|
"author": {
|
|
7
|
-
"name": "
|
|
8
|
-
"email": "
|
|
7
|
+
"name": "Alberto Lopez",
|
|
8
|
+
"email": "alberto@mozrest.com"
|
|
9
9
|
},
|
|
10
10
|
"repository": "https://github.com/mozrest/mozrest-sdk-js.git",
|
|
11
11
|
"license": "UNLICENSED",
|