@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.
- package/dist/components/actions/actions-buttons/action-button.d.ts +13 -0
- package/dist/components/actions/actions-buttons/action-button.d.ts.map +1 -0
- package/dist/components/actions/actions-buttons/actions-buttons.d.ts.map +1 -1
- package/dist/components/cell/components/tooltip/cell-tooltip-hoc.d.ts +1 -1
- package/dist/components/table/components/table-cell/column-tooltip-hoc.d.ts +1 -1
- package/dist/hooks/routing/use-url-query-string.d.ts +3 -3
- package/dist/hooks/{use-scroll.d.ts → use-scroll-ratio.d.ts} +1 -1
- package/dist/hooks/use-scroll-ratio.d.ts.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/michelangelo-core.cjs +105 -105
- package/dist/michelangelo-core.js +7358 -7335
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/string-utils.d.ts +3 -3
- package/dist/utils/time-utils.d.ts +3 -3
- package/package.json +1 -1
- package/dist/hooks/use-scroll.d.ts.map +0 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
31
|
+
* parseIsoString("2024-01-01T12:00:00.000Z")
|
|
32
32
|
* // { date: "2024-01-01", time: "12:00:00" }
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* parseIsoString("invalid") // null
|
|
35
35
|
*/
|
|
36
|
-
export declare function
|
|
36
|
+
export declare function parseIsoString(isoString: string): {
|
|
37
37
|
date: string;
|
|
38
38
|
time: string;
|
|
39
39
|
} | null;
|
package/package.json
CHANGED
|
@@ -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"}
|