@storm-software/config-tools 1.45.1 → 1.47.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config-tools",
3
- "version": "1.45.1",
3
+ "version": "1.47.0",
4
4
  "private": false,
5
5
  "description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
6
6
  "repository": {
@@ -16,7 +16,7 @@
16
16
  "chalk": "5.3.0",
17
17
  "cosmiconfig": "9.0.0",
18
18
  "deepmerge": "4.3.1",
19
- "zod": "3.23.4"
19
+ "zod": "3.23.8"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
@@ -7,8 +7,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
8
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
9
  }) : x)(function(x) {
10
- if (typeof require !== "undefined")
11
- return require.apply(this, arguments);
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
11
  throw Error('Dynamic require of "' + x + '" is not supported');
13
12
  });
14
13
  var __commonJS = (cb, mod) => function __require2() {
@@ -1664,7 +1664,7 @@ var getChalk = () => {
1664
1664
  return _chalk;
1665
1665
  };
1666
1666
 
1667
- // node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs
1667
+ // node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
1668
1668
  var util;
1669
1669
  (function(util2) {
1670
1670
  util2.assertEqual = (val) => val;
@@ -2122,19 +2122,14 @@ var isDirty = (x) => x.status === "dirty";
2122
2122
  var isValid = (x) => x.status === "valid";
2123
2123
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
2124
2124
  function __classPrivateFieldGet(receiver, state, kind, f) {
2125
- if (kind === "a" && !f)
2126
- throw new TypeError("Private accessor was defined without a getter");
2127
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
2128
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
2125
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
2126
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2129
2127
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2130
2128
  }
2131
2129
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
2132
- if (kind === "m")
2133
- throw new TypeError("Private method is not writable");
2134
- if (kind === "a" && !f)
2135
- throw new TypeError("Private accessor was defined without a setter");
2136
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
2137
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
2130
+ if (kind === "m") throw new TypeError("Private method is not writable");
2131
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
2132
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2138
2133
  return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
2139
2134
  }
2140
2135
  var errorUtil;
@@ -3853,8 +3848,7 @@ var ZodObject = class _ZodObject extends ZodType {
3853
3848
  });
3854
3849
  status.dirty();
3855
3850
  }
3856
- } else if (unknownKeys === "strip")
3857
- ;
3851
+ } else if (unknownKeys === "strip") ;
3858
3852
  else {
3859
3853
  throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
3860
3854
  }
@@ -5342,10 +5336,13 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
5342
5336
  var ZodReadonly = class extends ZodType {
5343
5337
  _parse(input) {
5344
5338
  const result = this._def.innerType._parse(input);
5345
- if (isValid(result)) {
5346
- result.value = Object.freeze(result.value);
5347
- }
5348
- return result;
5339
+ const freeze = (data) => {
5340
+ if (isValid(data)) {
5341
+ data.value = Object.freeze(data.value);
5342
+ }
5343
+ return data;
5344
+ };
5345
+ return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
5349
5346
  }
5350
5347
  unwrap() {
5351
5348
  return this._def.innerType;
@@ -5584,7 +5581,8 @@ var z = /* @__PURE__ */ Object.freeze({
5584
5581
  // packages/config/src/schema.ts
5585
5582
  var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
5586
5583
  var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
5587
- var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
5584
+ var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
5585
+ var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
5588
5586
  var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
5589
5587
  var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
5590
5588
  var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
@@ -5595,6 +5593,7 @@ var DarkThemeColorConfigSchema = z.object({
5595
5593
  foreground: LightColorSchema,
5596
5594
  background: DarkColorSchema,
5597
5595
  brand: BrandColorSchema,
5596
+ accent: AccentColorSchema,
5598
5597
  help: HelpColorSchema,
5599
5598
  success: SuccessColorSchema,
5600
5599
  info: InfoColorSchema,
@@ -5606,6 +5605,7 @@ var LightThemeColorConfigSchema = z.object({
5606
5605
  foreground: DarkColorSchema,
5607
5606
  background: LightColorSchema,
5608
5607
  brand: BrandColorSchema,
5608
+ accent: AccentColorSchema,
5609
5609
  help: HelpColorSchema,
5610
5610
  success: SuccessColorSchema,
5611
5611
  info: InfoColorSchema,
@@ -5621,6 +5621,7 @@ var SingleThemeColorConfigSchema = z.object({
5621
5621
  dark: DarkColorSchema,
5622
5622
  light: LightColorSchema,
5623
5623
  brand: BrandColorSchema,
5624
+ accent: AccentColorSchema,
5624
5625
  help: HelpColorSchema,
5625
5626
  success: SuccessColorSchema,
5626
5627
  info: InfoColorSchema,
@@ -7,8 +7,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
8
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
9
  }) : x)(function(x) {
10
- if (typeof require !== "undefined")
11
- return require.apply(this, arguments);
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
11
  throw Error('Dynamic require of "' + x + '" is not supported');
13
12
  });
14
13
  var __commonJS = (cb, mod) => function __require2() {
@@ -1649,7 +1648,7 @@ var getChalk = () => {
1649
1648
  return _chalk;
1650
1649
  };
1651
1650
 
1652
- // node_modules/.pnpm/zod@3.23.4/node_modules/zod/lib/index.mjs
1651
+ // node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
1653
1652
  var util;
1654
1653
  (function(util2) {
1655
1654
  util2.assertEqual = (val) => val;
@@ -2107,19 +2106,14 @@ var isDirty = (x) => x.status === "dirty";
2107
2106
  var isValid = (x) => x.status === "valid";
2108
2107
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
2109
2108
  function __classPrivateFieldGet(receiver, state, kind, f) {
2110
- if (kind === "a" && !f)
2111
- throw new TypeError("Private accessor was defined without a getter");
2112
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
2113
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
2109
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
2110
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2114
2111
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
2115
2112
  }
2116
2113
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
2117
- if (kind === "m")
2118
- throw new TypeError("Private method is not writable");
2119
- if (kind === "a" && !f)
2120
- throw new TypeError("Private accessor was defined without a setter");
2121
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
2122
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
2114
+ if (kind === "m") throw new TypeError("Private method is not writable");
2115
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
2116
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2123
2117
  return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
2124
2118
  }
2125
2119
  var errorUtil;
@@ -3838,8 +3832,7 @@ var ZodObject = class _ZodObject extends ZodType {
3838
3832
  });
3839
3833
  status.dirty();
3840
3834
  }
3841
- } else if (unknownKeys === "strip")
3842
- ;
3835
+ } else if (unknownKeys === "strip") ;
3843
3836
  else {
3844
3837
  throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
3845
3838
  }
@@ -5327,10 +5320,13 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
5327
5320
  var ZodReadonly = class extends ZodType {
5328
5321
  _parse(input) {
5329
5322
  const result = this._def.innerType._parse(input);
5330
- if (isValid(result)) {
5331
- result.value = Object.freeze(result.value);
5332
- }
5333
- return result;
5323
+ const freeze = (data) => {
5324
+ if (isValid(data)) {
5325
+ data.value = Object.freeze(data.value);
5326
+ }
5327
+ return data;
5328
+ };
5329
+ return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
5334
5330
  }
5335
5331
  unwrap() {
5336
5332
  return this._def.innerType;
@@ -5569,7 +5565,8 @@ var z = /* @__PURE__ */ Object.freeze({
5569
5565
  // packages/config/src/schema.ts
5570
5566
  var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
5571
5567
  var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
5572
- var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
5568
+ var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
5569
+ var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
5573
5570
  var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
5574
5571
  var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
5575
5572
  var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
@@ -5580,6 +5577,7 @@ var DarkThemeColorConfigSchema = z.object({
5580
5577
  foreground: LightColorSchema,
5581
5578
  background: DarkColorSchema,
5582
5579
  brand: BrandColorSchema,
5580
+ accent: AccentColorSchema,
5583
5581
  help: HelpColorSchema,
5584
5582
  success: SuccessColorSchema,
5585
5583
  info: InfoColorSchema,
@@ -5591,6 +5589,7 @@ var LightThemeColorConfigSchema = z.object({
5591
5589
  foreground: DarkColorSchema,
5592
5590
  background: LightColorSchema,
5593
5591
  brand: BrandColorSchema,
5592
+ accent: AccentColorSchema,
5594
5593
  help: HelpColorSchema,
5595
5594
  success: SuccessColorSchema,
5596
5595
  info: InfoColorSchema,
@@ -5606,6 +5605,7 @@ var SingleThemeColorConfigSchema = z.object({
5606
5605
  dark: DarkColorSchema,
5607
5606
  light: LightColorSchema,
5608
5607
  brand: BrandColorSchema,
5608
+ accent: AccentColorSchema,
5609
5609
  help: HelpColorSchema,
5610
5610
  success: SuccessColorSchema,
5611
5611
  info: InfoColorSchema,