@pack/react 3.1.1-rr7-beta.3 → 3.1.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"register-section.d.ts","sourceRoot":"","sources":["../src/register-section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAEtF,eAAO,MAAM,UAAU,EAAE,UAAuC,CAAC;AAEjE,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,QAwCtE"}
1
+ {"version":3,"file":"register-section.d.ts","sourceRoot":"","sources":["../src/register-section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAEtF,eAAO,MAAM,UAAU,EAAE,UAAuC,CAAC;AAEjE,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,QAuCtE"}
@@ -19,16 +19,15 @@ export function registerSection(section, config) {
19
19
  }
20
20
  if (result && !result.success) {
21
21
  const errorParts = [
22
- '\n\x1b[1m\x1b[31m@pack/react Schema Validation Error:\x1b[0m',
23
- '\x1b[31mInvalid schema for section "' + config.name + '"\x1b[0m',
24
- '\n\x1b[33mDetailed Errors:\x1b[0m'
22
+ '\n\x1b[1m\x1b[33m@pack/react Schema Validation Warning:\x1b[0m',
23
+ '\x1b[33mSchema issues found for section "' + config.name + '"\x1b[0m',
24
+ '\n\x1b[33mDetailed Warnings:\x1b[0m'
25
25
  ];
26
26
  result.error.issues.forEach(issue => {
27
27
  errorParts.push(`\x1b[33m- Path:\x1b[0m ${issue.path.join('.')}`);
28
- errorParts.push(` \x1b[31m${issue.message}\x1b[0m`);
28
+ errorParts.push(` \x1b[33m${issue.message}\x1b[0m`);
29
29
  });
30
- console.error(errorParts.join('\n'));
31
- return;
30
+ console.warn(errorParts.join('\n'));
32
31
  }
33
32
  sectionMap.set(config.name, section);
34
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"register-storefront-settings-schema.d.ts","sourceRoot":"","sources":["../src/register-storefront-settings-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4B,MAAM,aAAa,CAAC;AAEpE,eAAO,MAAM,wBAAwB,EAAE,WAAW,EAAO,CAAC;AAE1D,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAsBvE"}
1
+ {"version":3,"file":"register-storefront-settings-schema.d.ts","sourceRoot":"","sources":["../src/register-storefront-settings-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4B,MAAM,aAAa,CAAC;AAEpE,eAAO,MAAM,wBAAwB,EAAE,WAAW,EAAO,CAAC;AAE1D,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAqBvE"}
@@ -5,16 +5,15 @@ export function registerStorefrontSettingsSchema(settings) {
5
5
  const result = SiteSettingsObjectSchema.safeParse(setting);
6
6
  if (result && !result.success) {
7
7
  const errorParts = [
8
- "\n\x1b[1m\x1b[31m@pack/react Schema Validation Error:\x1b[0m",
9
- "\x1b[31mInvalid storefront settings schema\x1b[0m",
10
- "\n\x1b[33mDetailed Errors:\x1b[0m",
8
+ "\n\x1b[1m\x1b[33m@pack/react Schema Validation Warning:\x1b[0m",
9
+ "\x1b[33mSchema issues found in storefront settings\x1b[0m",
10
+ "\n\x1b[33mDetailed Warnings:\x1b[0m",
11
11
  ];
12
12
  result.error.issues.forEach((issue) => {
13
13
  errorParts.push(`\x1b[33m- Path:\x1b[0m ${issue.path.join(".")}`);
14
- errorParts.push(` \x1b[31m${issue.message}\x1b[0m`);
14
+ errorParts.push(` \x1b[33m${issue.message}\x1b[0m`);
15
15
  });
16
- console.error(errorParts.join("\n"));
17
- return;
16
+ console.warn(errorParts.join("\n"));
18
17
  }
19
18
  }
20
19
  storefrontSettingsSchema.push(...settings);
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,EAAE,MAA2B,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,EAAE,MAAgB,CAAC"}
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "3.1.1-rr7-beta.3";
1
+ export const VERSION = "3.1.2";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pack/react",
3
3
  "description": "React",
4
- "version": "3.1.1-rr7-beta.3",
4
+ "version": "3.1.2",
5
5
  "exports": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "engines": {
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@pack/types": "^0.1.3"
25
+ "@pack/types": "^0.1.4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/react": "^18.2.20",