@michelangelo-ai/core 0.3.0 → 0.3.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.
@@ -2,17 +2,17 @@ export declare const capitalizeFirstLetter: (str: string) => string;
2
2
  /**
3
3
  * Checks for absolute URLs, including localhost values without a public TLD.
4
4
  */
5
- export declare const isAbsoluteURL: (value: string) => boolean;
5
+ export declare const isAbsoluteUrl: (value: string) => boolean;
6
6
  /**
7
7
  * Checks whether a value is a navigable URL — either an absolute URL or a
8
8
  * root-relative path. Use this to decide whether to render a value as a link.
9
9
  *
10
- * Distinct from {@link isAbsoluteURL}, which rejects relative paths and is
10
+ * Distinct from {@link isAbsoluteUrl}, which rejects relative paths and is
11
11
  * appropriate for validation (e.g., requiring a fully-qualified URL in a form
12
12
  * field). This function is appropriate for display logic where internal
13
13
  * navigation paths like `/{namespace}/models/foo` are valid link targets.
14
14
  */
15
- export declare const isNavigableURL: (value: string) => boolean;
15
+ export declare const isNavigableUrl: (value: string) => boolean;
16
16
  /**
17
17
  * @description
18
18
  * Transforms a string value into a sentence case format. Special handling for
@@ -28,12 +28,12 @@ export declare function getEpochSecondsFromDate(date: Date): number;
28
28
  * @returns Object with compact date and time strings, or null if invalid
29
29
  *
30
30
  * @example
31
- * parseISOString("2024-01-01T12:00:00.000Z")
31
+ * parseIsoString("2024-01-01T12:00:00.000Z")
32
32
  * // { date: "2024-01-01", time: "12:00:00" }
33
33
  *
34
- * parseISOString("invalid") // null
34
+ * parseIsoString("invalid") // null
35
35
  */
36
- export declare function parseISOString(isoString: string): {
36
+ export declare function parseIsoString(isoString: string): {
37
37
  date: string;
38
38
  time: string;
39
39
  } | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@michelangelo-ai/core",
3
3
  "license": "Apache-2.0",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "main": "./dist/michelangelo-core.js",
7
7
  "module": "./dist/michelangelo-core.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-scroll.d.ts","sourceRoot":"","sources":["../../hooks/use-scroll.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC9C,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACrC,CA+BA"}