@noodleseed/assistant 1.26.0 → 1.26.1

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.
@@ -4219,6 +4219,10 @@ var AssistantElementPresentationGate = class {
4219
4219
 
4220
4220
  // src/assistant-configuration-schema.ts
4221
4221
  var hexColorSchema = external_exports.string().regex(/^#[0-9A-Fa-f]{6}$/);
4222
+ var resolvedBorderColorSchema = external_exports.union([
4223
+ hexColorSchema,
4224
+ external_exports.string().max(64).refine(isBoundedRgbaColor, "must be a six-digit hex or bounded rgba color")
4225
+ ]);
4222
4226
  var browserAssetUrlSchema = external_exports.string().trim().url().refine(isSecureBrowserAssetUrl, "must use https (http is allowed only for loopback testing)");
4223
4227
  var httpsUrlSchema = external_exports.string().trim().url().refine(isHttpsUrl, "must use https");
4224
4228
  var brandAssetSchema = external_exports.object({
@@ -4235,8 +4239,8 @@ var brandThemeSchema = external_exports.object({
4235
4239
  accent: hexColorSchema.optional(),
4236
4240
  accentText: hexColorSchema.optional(),
4237
4241
  link: hexColorSchema.optional(),
4238
- border: hexColorSchema.optional(),
4239
- borderStrong: hexColorSchema.optional(),
4242
+ border: resolvedBorderColorSchema.optional(),
4243
+ borderStrong: resolvedBorderColorSchema.optional(),
4240
4244
  focus: hexColorSchema.optional(),
4241
4245
  success: hexColorSchema.optional(),
4242
4246
  warning: hexColorSchema.optional(),
@@ -4376,6 +4380,13 @@ function isSecureBrowserAssetUrl(value) {
4376
4380
  return false;
4377
4381
  }
4378
4382
  }
4383
+ function isBoundedRgbaColor(value) {
4384
+ const match = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0(?:\.\d{1,6})?|1(?:\.0{1,6})?)\s*\)$/.exec(
4385
+ value
4386
+ );
4387
+ if (match === null) return false;
4388
+ return match.slice(1, 4).every((channel) => Number(channel) <= 255);
4389
+ }
4379
4390
 
4380
4391
  // src/element-public-configuration-controller.ts
4381
4392
  var AssistantElementPublicConfigurationController = class {
@@ -5899,4 +5910,4 @@ export {
5899
5910
  dompurify/dist/purify.es.mjs:
5900
5911
  (*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE *)
5901
5912
  */
5902
- //# sourceMappingURL=chunk-5PW6PXCI.js.map
5913
+ //# sourceMappingURL=chunk-OZVDL77T.js.map