@epam/ai-dial-builder-form 1.3.0-dev.206 → 1.3.0-dev.209

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/index.js CHANGED
@@ -771,7 +771,7 @@ var U = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
771
771
  })] });
772
772
  }), $ = /* @__PURE__ */ function(e) {
773
773
  return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
774
- }({}), Ce = (e, t) => e.length === t.length && e.every((e, n) => e.id === t[n].id && e.language === t[n].language && e.name === t[n].name && e.description === t[n].description), we = (e, t) => e.name === t.name && e.description === t.description && e.iconUrl === t.iconUrl && e.version === t.version && e.topics.length === t.topics.length && e.topics.every((e, n) => e === t.topics[n]) && Ce(e.otherLocales, t.otherLocales), Te = (e) => Object.values(e).every((e) => e == null), Ee = /^[a-zA-Z0-9 _.-]+$/, De = /^[a-zA-Z0-9._-]+$/, Oe = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/, ke = "1.0.0", Ae = (n, r = {}) => {
774
+ }({}), Ce = (e, t) => e.length === t.length && e.every((e, n) => e.id === t[n].id && e.language === t[n].language && e.name === t[n].name && e.description === t[n].description), we = (e, t) => e.name === t.name && e.description === t.description && e.iconUrl === t.iconUrl && e.version === t.version && e.topics.length === t.topics.length && e.topics.every((e, n) => e === t.topics[n]) && Ce(e.otherLocales, t.otherLocales), Te = (e) => Object.values(e).every((e) => e == null), Ee = /^[a-zA-Z0-9 _.-]+$/, De = /^[a-zA-Z0-9._-]+$/, Oe = /^\d+(\.\d+)*$/, ke = "1.0.0", Ae = (n, r = {}) => {
775
775
  let i = {}, s = n.name.trim();
776
776
  s ? a(s, t) ? i.name = $.TooLong : r.validateNamePattern && !Ee.test(s) ? i.name = $.InvalidFormat : o(s) && (i.name = $.ControlCharacters) : i.name = $.Required, a(n.description, e) && (i.description = $.TooLong);
777
777
  let c = n.version.trim();
@@ -26,7 +26,7 @@ export interface DeploymentCreationFormValidationOptions {
26
26
  * Whether to reject a non-empty version that doesn't match a pattern.
27
27
  * `true` checks against the default `VERSION_PATTERN`; passing a `RegExp`
28
28
  * checks against that pattern instead (e.g. `SEMVER_VERSION_PATTERN` for a
29
- * host that requires a SemVer 2.0.0 version).
29
+ * host that requires a strict dot-separated numeric version).
30
30
  */
31
31
  validateVersionPattern?: boolean | RegExp;
32
32
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-builder-form",
3
3
  "description": "Presentational builder form shells, editor layouts, and shared deployment field sets for composing and editing DIAL entities",
4
- "version": "1.3.0-dev.206",
4
+ "version": "1.3.0-dev.209",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,7 +20,7 @@
20
20
  "@tabler/icons-react": "^3.44.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@epam/ai-dial-chat-shared": "1.3.0-dev.206",
23
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.209",
24
24
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.45",
25
25
  "react": "^19.2.8"
26
26
  },
@@ -4,12 +4,7 @@ import { DeploymentCreationFormErrorCodes, DeploymentCreationFormValidationOptio
4
4
  export declare const NAME_PATTERN: RegExp;
5
5
  /** Allowed characters for the version field: letters, digits, dots, underscores, dashes. */
6
6
  export declare const VERSION_PATTERN: RegExp;
7
- /**
8
- * SemVer 2.0.0 version (https://semver.org): `MAJOR.MINOR.PATCH` without
9
- * leading zeros, with an optional pre-release (`-beta.1`) and build metadata
10
- * (`+build.5`). DIAL Admin checks versions with `semver.valid()`, so a value
11
- * accepted here is accepted when the same entity is edited there.
12
- */
7
+ /** Stricter version shape: one or more dot-separated numeric segments (e.g. `0.0.1`). */
13
8
  export declare const SEMVER_VERSION_PATTERN: RegExp;
14
9
  /** Version a new deployment's create form opens with; a SemVer 2.0.0 value the host seeds into its create-mode metadata. */
15
10
  export declare const DEFAULT_DEPLOYMENT_VERSION = "1.0.0";
@@ -1 +1 @@
1
- {"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QACgJ,CAAC;AAEpL,4HAA4H;AAC5H,eAAO,MAAM,0BAA0B,UAAU,CAAC;AAElD,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCA8BF,CAAC"}
1
+ {"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,QAAkB,CAAC;AAEtD,4HAA4H;AAC5H,eAAO,MAAM,0BAA0B,UAAU,CAAC;AAElD,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCA8BF,CAAC"}