@lookiero/checkout 8.15.0 → 8.17.0
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/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +1 -4
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.ts +1 -8
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const isUuid = (value) => {
|
|
3
|
-
return typeof value === "string" && REGEX.test(value);
|
|
4
|
-
};
|
|
1
|
+
import { isUuid } from "@lookiero/sty-psp-uuid";
|
|
5
2
|
const feedbackForReturnQuestion = ({ feedback, returnQuestion, translate, acc = [], }) => {
|
|
6
3
|
const returnQuestionId = Object.keys(feedback).find((id) => id === returnQuestion.id);
|
|
7
4
|
if (returnQuestionId) {
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "8.
|
|
1
|
+
export declare const VERSION = "8.17.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "8.
|
|
1
|
+
export const VERSION = "8.17.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.17.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": "false",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@lookiero/sty-psp-ui": "^0.6",
|
|
32
32
|
"@lookiero/sty-psp-ui-settings": "^0.1",
|
|
33
33
|
"@lookiero/sty-psp-units": "^0.1",
|
|
34
|
-
"@lookiero/sty-psp-uuid": "^0.
|
|
34
|
+
"@lookiero/sty-psp-uuid": "^0.2",
|
|
35
35
|
"@react-native-async-storage/async-storage": "^1.22.3",
|
|
36
36
|
"@react-spring/native": "9.6.1",
|
|
37
37
|
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
package/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
+
import { isUuid } from "@lookiero/sty-psp-uuid";
|
|
1
2
|
import { FeedbackProjection } from "../../../../../../projection/feedback/feedback";
|
|
2
3
|
import { ReturnQuestionProjection } from "../../../../../../projection/returnQuestion/returnQuestion";
|
|
3
4
|
|
|
4
|
-
type Uuid = string;
|
|
5
|
-
|
|
6
|
-
const REGEX =
|
|
7
|
-
/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
8
|
-
const isUuid = (value: string): value is Uuid => {
|
|
9
|
-
return typeof value === "string" && REGEX.test(value);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
5
|
interface RecursiveFeedbackForReturnQuestionFunctionArgs {
|
|
13
6
|
readonly feedback: FeedbackProjection;
|
|
14
7
|
readonly returnQuestion: ReturnQuestionProjection;
|