@sitecore-content-sdk/analytics-core 2.1.2 → 2.2.0-beta.atoms.20260824102129

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.
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/sitecore/content-sdk/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@sitecore-content-sdk/core": "^2.1.3",
10
+ "@sitecore-content-sdk/core": "2.2.0-beta.atoms.20260824102129",
11
11
  "debug": "^4.4.3",
12
12
  "isbot": "^5.1.39"
13
13
  },
@@ -37,19 +37,19 @@
37
37
  "types": "types/src/index.d.ts",
38
38
  "exports": {
39
39
  ".": {
40
- "types": "./types/src/index.d.ts",
41
40
  "import": "./dist/esm/src/index.js",
42
- "require": "./dist/cjs/src/index.js"
41
+ "require": "./dist/cjs/src/index.js",
42
+ "types": "./types/src/index.d.ts"
43
43
  },
44
44
  "./internal": {
45
- "types": "./types/src/internal.d.ts",
46
45
  "import": "./dist/esm/src/internal.js",
47
- "require": "./dist/cjs/src/internal.js"
46
+ "require": "./dist/cjs/src/internal.js",
47
+ "types": "./types/src/internal.d.ts"
48
48
  },
49
49
  "./utils": {
50
- "types": "./types/src/utils.d.ts",
51
50
  "import": "./dist/esm/src/utils.js",
52
- "require": "./dist/cjs/src/utils.js"
51
+ "require": "./dist/cjs/src/utils.js",
52
+ "types": "./types/src/utils.d.ts"
53
53
  }
54
54
  },
55
55
  "files": [
@@ -75,5 +75,5 @@
75
75
  "api-extractor": "npm run build && api-extractor run --local --verbose",
76
76
  "api-extractor:verify": "api-extractor run"
77
77
  },
78
- "version": "2.1.2"
78
+ "version": "2.2.0-beta.atoms.20260824102129"
79
79
  }
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isValidISODateAndTimeString = isValidISODateAndTimeString;
3
+ exports.isShortISODateString = isShortISODateString;
4
4
  /**
5
- * Checks if the provided string matches the shortened date and time ISO 8601 format (`YYYY-MM-DDThh:mm`).
5
+ * Checks if the provided string matches the shortened ISO 8601 format (`YYYY-MM-DDThh:mm`).
6
6
  * @param {string} date The date string to validate.
7
7
  * @returns {boolean} True when the value conforms to the shortened ISO format.
8
8
  * @internal
9
9
  */
10
- function isValidISODateAndTimeString(date) {
10
+ function isShortISODateString(date) {
11
11
  try {
12
12
  const dateString = date + 'Z';
13
13
  const convertedDate = new Date(dateString).toISOString().substring(0, 16);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.appendScriptWithAttributes = exports.generateV4UUID = exports.isValidEmail = exports.isValidISODateOnlyString = exports.isValidISODateAndTimeString = exports.flattenObject = exports.cookieExists = exports.getCookieServerSide = exports.getCookie = exports.getCookieValueClientSide = exports.createCookieString = void 0;
3
+ exports.appendScriptWithAttributes = exports.generateV4UUID = exports.isValidEmail = exports.isShortISODateString = exports.flattenObject = exports.cookieExists = exports.getCookieServerSide = exports.getCookie = exports.getCookieValueClientSide = exports.createCookieString = void 0;
4
4
  var create_cookie_string_1 = require("./utils/cookies/create-cookie-string");
5
5
  Object.defineProperty(exports, "createCookieString", { enumerable: true, get: function () { return create_cookie_string_1.createCookieString; } });
6
6
  var get_cookie_value_client_side_1 = require("./utils/cookies/get-cookie-value-client-side");
@@ -13,10 +13,8 @@ var cookie_exists_1 = require("./utils/cookies/cookie-exists");
13
13
  Object.defineProperty(exports, "cookieExists", { enumerable: true, get: function () { return cookie_exists_1.cookieExists; } });
14
14
  var flatten_object_1 = require("./utils/converters/flatten-object");
15
15
  Object.defineProperty(exports, "flattenObject", { enumerable: true, get: function () { return flatten_object_1.flattenObject; } });
16
- var is_valid_iso_date_and_time_string_1 = require("./utils/validators/is-valid-iso-date-and-time-string");
17
- Object.defineProperty(exports, "isValidISODateAndTimeString", { enumerable: true, get: function () { return is_valid_iso_date_and_time_string_1.isValidISODateAndTimeString; } });
18
- var is_valid_iso_date_only_string_1 = require("./utils/validators/is-valid-iso-date-only-string");
19
- Object.defineProperty(exports, "isValidISODateOnlyString", { enumerable: true, get: function () { return is_valid_iso_date_only_string_1.isValidISODateOnlyString; } });
16
+ var is_short_iso_date_string_1 = require("./utils/validators/is-short-iso-date-string");
17
+ Object.defineProperty(exports, "isShortISODateString", { enumerable: true, get: function () { return is_short_iso_date_string_1.isShortISODateString; } });
20
18
  var is_valid_email_1 = require("./utils/validators/is-valid-email");
21
19
  Object.defineProperty(exports, "isValidEmail", { enumerable: true, get: function () { return is_valid_email_1.isValidEmail; } });
22
20
  var generate_v4_uuid_1 = require("./utils/generators/generate-v4-uuid");
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/sitecore/content-sdk/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@sitecore-content-sdk/core": "^2.1.3",
10
+ "@sitecore-content-sdk/core": "2.2.0-beta.atoms.20260824102129",
11
11
  "debug": "^4.4.3",
12
12
  "isbot": "^5.1.39"
13
13
  },
@@ -37,19 +37,19 @@
37
37
  "types": "types/src/index.d.ts",
38
38
  "exports": {
39
39
  ".": {
40
- "types": "./types/src/index.d.ts",
41
40
  "import": "./dist/esm/src/index.js",
42
- "require": "./dist/cjs/src/index.js"
41
+ "require": "./dist/cjs/src/index.js",
42
+ "types": "./types/src/index.d.ts"
43
43
  },
44
44
  "./internal": {
45
- "types": "./types/src/internal.d.ts",
46
45
  "import": "./dist/esm/src/internal.js",
47
- "require": "./dist/cjs/src/internal.js"
46
+ "require": "./dist/cjs/src/internal.js",
47
+ "types": "./types/src/internal.d.ts"
48
48
  },
49
49
  "./utils": {
50
- "types": "./types/src/utils.d.ts",
51
50
  "import": "./dist/esm/src/utils.js",
52
- "require": "./dist/cjs/src/utils.js"
51
+ "require": "./dist/cjs/src/utils.js",
52
+ "types": "./types/src/utils.d.ts"
53
53
  }
54
54
  },
55
55
  "files": [
@@ -75,5 +75,5 @@
75
75
  "api-extractor": "npm run build && api-extractor run --local --verbose",
76
76
  "api-extractor:verify": "api-extractor run"
77
77
  },
78
- "version": "2.1.2"
78
+ "version": "2.2.0-beta.atoms.20260824102129"
79
79
  }
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Checks if the provided string matches the shortened date and time ISO 8601 format (`YYYY-MM-DDThh:mm`).
2
+ * Checks if the provided string matches the shortened ISO 8601 format (`YYYY-MM-DDThh:mm`).
3
3
  * @param {string} date The date string to validate.
4
4
  * @returns {boolean} True when the value conforms to the shortened ISO format.
5
5
  * @internal
6
6
  */
7
- export function isValidISODateAndTimeString(date) {
7
+ export function isShortISODateString(date) {
8
8
  try {
9
9
  const dateString = date + 'Z';
10
10
  const convertedDate = new Date(dateString).toISOString().substring(0, 16);
@@ -4,8 +4,7 @@ export { getCookie } from './utils/cookies/get-cookie';
4
4
  export { getCookieServerSide } from './utils/cookies/get-cookie-server-side';
5
5
  export { cookieExists } from './utils/cookies/cookie-exists';
6
6
  export { flattenObject } from './utils/converters/flatten-object';
7
- export { isValidISODateAndTimeString } from './utils/validators/is-valid-iso-date-and-time-string';
8
- export { isValidISODateOnlyString } from './utils/validators/is-valid-iso-date-only-string';
7
+ export { isShortISODateString } from './utils/validators/is-short-iso-date-string';
9
8
  export { isValidEmail } from './utils/validators/is-valid-email';
10
9
  export { generateV4UUID } from './utils/generators/generate-v4-uuid';
11
10
  export { appendScriptWithAttributes, } from './utils/browser/appendScriptWithAttributes';
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/sitecore/content-sdk/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@sitecore-content-sdk/core": "^2.1.3",
10
+ "@sitecore-content-sdk/core": "2.2.0-beta.atoms.20260824102129",
11
11
  "debug": "^4.4.3",
12
12
  "isbot": "^5.1.39"
13
13
  },
@@ -37,19 +37,19 @@
37
37
  "types": "types/src/index.d.ts",
38
38
  "exports": {
39
39
  ".": {
40
- "types": "./types/src/index.d.ts",
41
40
  "import": "./dist/esm/src/index.js",
42
- "require": "./dist/cjs/src/index.js"
41
+ "require": "./dist/cjs/src/index.js",
42
+ "types": "./types/src/index.d.ts"
43
43
  },
44
44
  "./internal": {
45
- "types": "./types/src/internal.d.ts",
46
45
  "import": "./dist/esm/src/internal.js",
47
- "require": "./dist/cjs/src/internal.js"
46
+ "require": "./dist/cjs/src/internal.js",
47
+ "types": "./types/src/internal.d.ts"
48
48
  },
49
49
  "./utils": {
50
- "types": "./types/src/utils.d.ts",
51
50
  "import": "./dist/esm/src/utils.js",
52
- "require": "./dist/cjs/src/utils.js"
51
+ "require": "./dist/cjs/src/utils.js",
52
+ "types": "./types/src/utils.d.ts"
53
53
  }
54
54
  },
55
55
  "files": [
@@ -75,5 +75,5 @@
75
75
  "api-extractor": "npm run build && api-extractor run --local --verbose",
76
76
  "api-extractor:verify": "api-extractor run"
77
77
  },
78
- "version": "2.1.2"
78
+ "version": "2.2.0-beta.atoms.20260824102129"
79
79
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Checks if the provided string matches the shortened ISO 8601 format (`YYYY-MM-DDThh:mm`).
3
+ * @param {string} date The date string to validate.
4
+ * @returns {boolean} True when the value conforms to the shortened ISO format.
5
+ * @internal
6
+ */
7
+ export declare function isShortISODateString(date: string): boolean;
8
+ //# sourceMappingURL=is-short-iso-date-string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-short-iso-date-string.d.ts","sourceRoot":"","sources":["../../../../src/utils/validators/is-short-iso-date-string.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAU1D"}
@@ -4,8 +4,7 @@ export { getCookie } from './utils/cookies/get-cookie';
4
4
  export { getCookieServerSide } from './utils/cookies/get-cookie-server-side';
5
5
  export { cookieExists } from './utils/cookies/cookie-exists';
6
6
  export { flattenObject, FlattenObjectDataParameters } from './utils/converters/flatten-object';
7
- export { isValidISODateAndTimeString } from './utils/validators/is-valid-iso-date-and-time-string';
8
- export { isValidISODateOnlyString } from './utils/validators/is-valid-iso-date-only-string';
7
+ export { isShortISODateString } from './utils/validators/is-short-iso-date-string';
9
8
  export { isValidEmail } from './utils/validators/is-valid-email';
10
9
  export { generateV4UUID } from './utils/generators/generate-v4-uuid';
11
10
  export { appendScriptWithAttributes, type ScriptAttributes, } from './utils/browser/appendScriptWithAttributes';
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAC1B,KAAK,gBAAgB,GACtB,MAAM,4CAA4C,CAAC;AAEpD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAC1B,KAAK,gBAAgB,GACtB,MAAM,4CAA4C,CAAC;AAEpD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isValidISODateOnlyString = isValidISODateOnlyString;
4
- /**
5
- * Checks if the provided string matches the shortened date only ISO 8601 format (`YYYY-MM-DD`).
6
- * @param {string} date The date string to validate.
7
- * @returns {boolean} True when the value conforms to the shortened ISO format.
8
- * @internal
9
- */
10
- function isValidISODateOnlyString(date) {
11
- try {
12
- const convertedDate = new Date(date).toISOString().substring(0, 10);
13
- return convertedDate === date;
14
- // eslint-disable-next-line no-unused-vars
15
- }
16
- catch (error) {
17
- return false;
18
- }
19
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * Checks if the provided string matches the shortened date only ISO 8601 format (`YYYY-MM-DD`).
3
- * @param {string} date The date string to validate.
4
- * @returns {boolean} True when the value conforms to the shortened ISO format.
5
- * @internal
6
- */
7
- export function isValidISODateOnlyString(date) {
8
- try {
9
- const convertedDate = new Date(date).toISOString().substring(0, 10);
10
- return convertedDate === date;
11
- // eslint-disable-next-line no-unused-vars
12
- }
13
- catch (error) {
14
- return false;
15
- }
16
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * Checks if the provided string matches the shortened date and time ISO 8601 format (`YYYY-MM-DDThh:mm`).
3
- * @param {string} date The date string to validate.
4
- * @returns {boolean} True when the value conforms to the shortened ISO format.
5
- * @internal
6
- */
7
- export declare function isValidISODateAndTimeString(date: string): boolean;
8
- //# sourceMappingURL=is-valid-iso-date-and-time-string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-valid-iso-date-and-time-string.d.ts","sourceRoot":"","sources":["../../../../src/utils/validators/is-valid-iso-date-and-time-string.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAUjE"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Checks if the provided string matches the shortened date only ISO 8601 format (`YYYY-MM-DD`).
3
- * @param {string} date The date string to validate.
4
- * @returns {boolean} True when the value conforms to the shortened ISO format.
5
- * @internal
6
- */
7
- export declare function isValidISODateOnlyString(date: string): boolean;
8
- //# sourceMappingURL=is-valid-iso-date-only-string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-valid-iso-date-only-string.d.ts","sourceRoot":"","sources":["../../../../src/utils/validators/is-valid-iso-date-only-string.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAS9D"}