@appcorp/stellar-solutions-modules 0.1.17 → 0.1.22

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.
@@ -133,14 +133,14 @@ var useBranchState = function () {
133
133
  var updateParams = (0, react_1.useMemo)(function () {
134
134
  var _a;
135
135
  return ({
136
- branchAddress: state.branchAddress,
137
- branchName: state.branchName,
136
+ branchAddress: state.branchAddress.trim(),
137
+ branchName: state.branchName.trim(),
138
138
  enabled: state.enabled,
139
139
  id: state.id,
140
140
  isDefault: state.isDefault,
141
- personEmail: state.personEmail,
142
- personName: state.personName,
143
- personPhone: state.personPhone,
141
+ personEmail: state.personEmail.trim(),
142
+ personName: state.personName.trim(),
143
+ personPhone: state.personPhone.trim(),
144
144
  preferenceId: (_a = preferences[0]) === null || _a === void 0 ? void 0 : _a.id,
145
145
  });
146
146
  }, [state, preferences]);
@@ -294,7 +294,7 @@ var useBranchState = function () {
294
294
  validationResult = validate_1.formValidation === null || validate_1.formValidation === void 0 ? void 0 : validate_1.formValidation.safeParse(__assign({}, updateParams));
295
295
  if (validationResult === null || validationResult === void 0 ? void 0 : validationResult.error) {
296
296
  validationErrors_1 = {};
297
- validationResult === null || validationResult === void 0 ? void 0 : validationResult.error.errors.forEach(function (err) {
297
+ validationResult === null || validationResult === void 0 ? void 0 : validationResult.error.issues.forEach(function (err) {
298
298
  validationErrors_1[err.path[0]] = err.message;
299
299
  });
300
300
  dispatch({
@@ -8,23 +8,5 @@ export declare const formValidation: z.ZodObject<{
8
8
  personPhone: z.ZodString;
9
9
  personName: z.ZodString;
10
10
  preferenceId: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- branchAddress: string;
13
- branchName: string;
14
- enabled: boolean;
15
- isDefault: boolean;
16
- personEmail: string;
17
- personName: string;
18
- personPhone: string;
19
- preferenceId: string;
20
- }, {
21
- branchAddress: string;
22
- branchName: string;
23
- enabled: boolean;
24
- isDefault: boolean;
25
- personEmail: string;
26
- personName: string;
27
- personPhone: string;
28
- preferenceId: string;
29
- }>;
11
+ }, z.core.$strip>;
30
12
  export type FormValidate = z.infer<typeof formValidation>;
@@ -137,7 +137,7 @@ var usePaymentModeState = function () {
137
137
  id: state.id,
138
138
  isDefault: state.isDefault,
139
139
  preferenceId: (_a = preferences[0]) === null || _a === void 0 ? void 0 : _a.id,
140
- label: state.label,
140
+ label: state.label.trim(),
141
141
  });
142
142
  }, [state, preferences]);
143
143
  var updateCallback = function (_a) {
@@ -290,7 +290,7 @@ var usePaymentModeState = function () {
290
290
  validationResult = validate_1.formValidation === null || validate_1.formValidation === void 0 ? void 0 : validate_1.formValidation.safeParse(__assign({}, updateParams));
291
291
  if (validationResult === null || validationResult === void 0 ? void 0 : validationResult.error) {
292
292
  validationErrors_1 = {};
293
- validationResult === null || validationResult === void 0 ? void 0 : validationResult.error.errors.forEach(function (err) {
293
+ validationResult === null || validationResult === void 0 ? void 0 : validationResult.error.issues.forEach(function (err) {
294
294
  validationErrors_1[err.path[0]] = err.message;
295
295
  });
296
296
  dispatch({
@@ -4,15 +4,5 @@ export declare const formValidation: z.ZodObject<{
4
4
  enabled: z.ZodBoolean;
5
5
  isDefault: z.ZodBoolean;
6
6
  preferenceId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- enabled: boolean;
9
- isDefault: boolean;
10
- preferenceId: string;
11
- label: string;
12
- }, {
13
- enabled: boolean;
14
- isDefault: boolean;
15
- preferenceId: string;
16
- label: string;
17
- }>;
7
+ }, z.core.$strip>;
18
8
  export type FormValidate = z.infer<typeof formValidation>;
@@ -5,17 +5,5 @@ export declare const formValidation: z.ZodObject<{
5
5
  enabled: z.ZodBoolean;
6
6
  isDefault: z.ZodBoolean;
7
7
  description: z.ZodOptional<z.ZodString>;
8
- }, "strip", z.ZodTypeAny, {
9
- enabled: boolean;
10
- isDefault: boolean;
11
- taxName: string;
12
- taxRate: string;
13
- description?: string | undefined;
14
- }, {
15
- enabled: boolean;
16
- isDefault: boolean;
17
- taxName: string;
18
- taxRate: string;
19
- description?: string | undefined;
20
- }>;
8
+ }, z.core.$strip>;
21
9
  export type FormValidate = z.infer<typeof formValidation>;
@@ -128,8 +128,8 @@ var useTaxState = function () {
128
128
  id: state.id,
129
129
  isDefault: state.isDefault,
130
130
  preferenceId: (_a = preferences[0]) === null || _a === void 0 ? void 0 : _a.id,
131
- taxName: state.taxName,
132
- taxRate: state.taxRate,
131
+ taxName: state.taxName.trim(),
132
+ taxRate: state.taxRate.trim(),
133
133
  });
134
134
  }, [state, preferences]);
135
135
  var updateCallback = function (_a) {
@@ -285,7 +285,7 @@ var useTaxState = function () {
285
285
  validationResult = validate_1.formValidation === null || validate_1.formValidation === void 0 ? void 0 : validate_1.formValidation.safeParse(__assign({}, updateParams));
286
286
  if (validationResult === null || validationResult === void 0 ? void 0 : validationResult.error) {
287
287
  validationErrors_1 = {};
288
- validationResult === null || validationResult === void 0 ? void 0 : validationResult.error.errors.forEach(function (err) {
288
+ validationResult === null || validationResult === void 0 ? void 0 : validationResult.error.issues.forEach(function (err) {
289
289
  validationErrors_1[err.path[0]] = err.message;
290
290
  });
291
291
  dispatch({
@@ -6,19 +6,5 @@ export declare const formValidation: z.ZodObject<{
6
6
  isDefault: z.ZodBoolean;
7
7
  description: z.ZodOptional<z.ZodString>;
8
8
  preferenceId: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- enabled: boolean;
11
- isDefault: boolean;
12
- preferenceId: string;
13
- taxName: string;
14
- taxRate: string;
15
- description?: string | undefined;
16
- }, {
17
- enabled: boolean;
18
- isDefault: boolean;
19
- preferenceId: string;
20
- taxName: string;
21
- taxRate: string;
22
- description?: string | undefined;
23
- }>;
9
+ }, z.core.$strip>;
24
10
  export type FormValidate = z.infer<typeof formValidation>;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@appcorp/stellar-solutions-modules",
3
- "version": "0.1.17",
3
+ "version": "0.1.22",
4
4
  "scripts": {
5
- "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
5
+ "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib && cp yarn.lock lib",
6
6
  "build:next": "next build",
7
7
  "build:ts": "tsc --project tsconfig.build.json",
8
8
  "clean": "yarn rimraf ./lib",
@@ -16,20 +16,19 @@
16
16
  "start": "next start",
17
17
  "upgrade": "ncu -u"
18
18
  },
19
- "dependencies": {},
20
19
  "devDependencies": {
21
- "@appcorp/app-corp-vista": "^0.2.71",
20
+ "@appcorp/app-corp-vista": "^0.2.73",
22
21
  "@eslint/eslintrc": "^3",
23
22
  "@headlessui/react": "^2",
24
23
  "@heroicons/react": "^2",
25
- "@react-pakistan/util-functions": "^1.24.26",
24
+ "@react-pakistan/util-functions": "^1.24.27",
26
25
  "@supabase/supabase-js": "^2",
27
26
  "@tailwindcss/forms": "^0.5.10",
28
27
  "@tailwindcss/postcss": "^4",
29
28
  "@types/node": "^22",
30
29
  "@types/react": "^19",
31
30
  "@types/react-dom": "^19",
32
- "@types/react-slick": "^0.23.13",
31
+ "@types/react-slick": "^0",
33
32
  "dayjs": "^1",
34
33
  "eslint": "^9",
35
34
  "eslint-config-next": "^15",
@@ -48,6 +47,7 @@
48
47
  "tailwindcss": "^4",
49
48
  "typescript": "^5",
50
49
  "uuid": "^11",
51
- "zod": "^3"
52
- }
50
+ "zod": "^4"
51
+ },
52
+ "packageManager": "yarn@4.9.2"
53
53
  }