@nice2dev/ui-core 1.0.30 → 1.1.6
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/CHANGELOG.md +47 -0
- package/dist/core/NiceFieldStatus.d.ts +0 -1
- package/dist/core/NiceInlineHelp.d.ts +0 -1
- package/dist/core/NiceThemeProvider.d.ts +0 -1
- package/dist/core/NiceThemeVariants.d.ts +2 -3
- package/dist/core/NiceThemeVariants.d.ts.map +1 -1
- package/dist/core/NiceUserPreferences.d.ts +2 -3
- package/dist/core/NiceUserPreferences.d.ts.map +1 -1
- package/dist/core/a11y-advanced.d.ts +1 -2
- package/dist/core/a11y.d.ts +1 -2
- package/dist/core/a11y.d.ts.map +1 -1
- package/dist/core/access-control.d.ts +0 -1
- package/dist/core/adapters.d.ts +0 -1
- package/dist/core/adapters.d.ts.map +1 -1
- package/dist/core/ai.d.ts +0 -1
- package/dist/core/animations.d.ts +0 -1
- package/dist/core/colorBlind.d.ts +0 -1
- package/dist/core/datasource-advanced.d.ts +0 -1
- package/dist/core/datasource-aggregation.d.ts +0 -1
- package/dist/core/datasource-aggregation.d.ts.map +1 -1
- package/dist/core/datasource-hooks.d.ts +0 -1
- package/dist/core/datasource-offline.d.ts +0 -1
- package/dist/core/datasource.d.ts +0 -1
- package/dist/core/deprecation.d.ts +0 -1
- package/dist/core/displayMode.d.ts +0 -1
- package/dist/core/displayStyle.d.ts +0 -1
- package/dist/core/filterToSql.d.ts +0 -1
- package/dist/core/helpContext.d.ts +0 -1
- package/dist/core/hooks.d.ts +0 -1
- package/dist/core/i18n.d.ts +0 -1
- package/dist/core/i18nDictionaries.d.ts +0 -1
- package/dist/core/icons.d.ts +0 -1
- package/dist/core/icuMessageFormat.d.ts +0 -1
- package/dist/core/leak-detector.d.ts +0 -1
- package/dist/core/omniverkTypes.d.ts +0 -1
- package/dist/core/pluginSystem.d.ts +0 -1
- package/dist/core/profiling.d.ts +0 -1
- package/dist/core/responsive.d.ts +0 -1
- package/dist/core/rtl.d.ts +0 -1
- package/dist/core/sanitizeHtml.d.ts +0 -1
- package/dist/core/spatialNav.d.ts +0 -1
- package/dist/core/standardProps.d.ts +0 -1
- package/dist/core/testing.d.ts +0 -1
- package/dist/core/theme.d.ts +0 -1
- package/dist/core/themeGallery.d.ts +0 -1
- package/dist/core/themePacks.d.ts +0 -1
- package/dist/core/themePacksExtended.d.ts +0 -1
- package/dist/core/themePresets.d.ts +0 -1
- package/dist/core/themeVariants.d.ts +0 -1
- package/dist/core/touch.d.ts +0 -1
- package/dist/core/touch.d.ts.map +1 -1
- package/dist/core/traceless.d.ts +0 -1
- package/dist/core/tutorials.d.ts +0 -1
- package/dist/core/types.d.ts +0 -1
- package/dist/core/useControllableState.d.ts +0 -1
- package/dist/core/useGamepad.d.ts +0 -1
- package/dist/core/useThemeIsDark.d.ts +0 -1
- package/dist/core/validation.d.ts +0 -1
- package/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +18 -11
- package/dist/index.mjs.map +1 -1
- package/dist/performance/concurrent.d.ts +0 -1
- package/dist/performance/images.d.ts +2 -3
- package/dist/performance/index.d.ts +0 -1
- package/dist/performance/memory.d.ts +1 -2
- package/dist/performance/virtualization.d.ts +0 -1
- package/dist/performance/workers.d.ts +0 -1
- package/dist/viewSchema.d.ts +0 -1
- package/package.json +11 -10
|
@@ -117,7 +117,7 @@ export declare function useProgressiveImage(config: LazyImageConfig & {
|
|
|
117
117
|
isInView: boolean;
|
|
118
118
|
/** Error if any */
|
|
119
119
|
error: Error | null;
|
|
120
|
-
ref: import("react").RefObject<HTMLImageElement>;
|
|
120
|
+
ref: import("react").RefObject<HTMLImageElement | null>;
|
|
121
121
|
};
|
|
122
122
|
/**
|
|
123
123
|
* Preload images in the background
|
|
@@ -158,7 +158,7 @@ export declare function createImageObserver(options?: IntersectionObserverInit):
|
|
|
158
158
|
* Hook for using shared image observer
|
|
159
159
|
*/
|
|
160
160
|
export declare function useSharedImageObserver(observer: ReturnType<typeof createImageObserver>, onIntersect: () => void): {
|
|
161
|
-
ref: import("react").RefObject<HTMLImageElement>;
|
|
161
|
+
ref: import("react").RefObject<HTMLImageElement | null>;
|
|
162
162
|
isInView: boolean;
|
|
163
163
|
};
|
|
164
164
|
/**
|
|
@@ -186,4 +186,3 @@ export declare const ImageOptimization: {
|
|
|
186
186
|
generateGradientPlaceholder: typeof generateGradientPlaceholder;
|
|
187
187
|
};
|
|
188
188
|
export {};
|
|
189
|
-
//# sourceMappingURL=images.d.ts.map
|
|
@@ -186,7 +186,7 @@ export interface LazyImageOptions {
|
|
|
186
186
|
export declare function useLazyImage(options: LazyImageOptions & {
|
|
187
187
|
src: string;
|
|
188
188
|
}): {
|
|
189
|
-
ref: import("react").RefObject<HTMLImageElement>;
|
|
189
|
+
ref: import("react").RefObject<HTMLImageElement | null>;
|
|
190
190
|
isInView: boolean;
|
|
191
191
|
isLoaded: boolean;
|
|
192
192
|
currentSrc: string;
|
|
@@ -220,4 +220,3 @@ export declare function createObjectPool<T>(options: {
|
|
|
220
220
|
clear: () => void;
|
|
221
221
|
size: () => number;
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=memory.d.ts.map
|
package/dist/viewSchema.d.ts
CHANGED
|
@@ -78,4 +78,3 @@ export type NiceViewComponentType = (typeof NICE_VIEW_COMPONENT_TYPES)[number];
|
|
|
78
78
|
export declare function validateViewDocument(doc: NiceViewDocument): string[];
|
|
79
79
|
/** Evaluate a condition against a context map. */
|
|
80
80
|
export declare function evaluateCondition(condition: NiceViewCondition, context: Record<string, unknown>): boolean;
|
|
81
|
-
//# sourceMappingURL=viewSchema.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Nice2Dev UI Core — Types, hooks, i18n, a11y, datasource, theme, animations, icons and responsive utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
"react-dom": ">=17.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@nice2dev/i18n": "^1.
|
|
37
|
-
"@types/react": "^
|
|
38
|
-
"@types/react-dom": "^
|
|
39
|
-
"@vitejs/plugin-react": "^4.
|
|
40
|
-
"react": "^
|
|
41
|
-
"react-dom": "^
|
|
42
|
-
"rimraf": "^6.
|
|
43
|
-
"typescript": "^5.3
|
|
44
|
-
"vite": "^6.4.
|
|
36
|
+
"@nice2dev/i18n": "^1.1.6",
|
|
37
|
+
"@types/react": "^19.2.18",
|
|
38
|
+
"@types/react-dom": "^19.2.7",
|
|
39
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
40
|
+
"react": "^19.2.8",
|
|
41
|
+
"react-dom": "^19.2.8",
|
|
42
|
+
"rimraf": "^6.1.3",
|
|
43
|
+
"typescript": "^5.9.3",
|
|
44
|
+
"vite": "^6.4.1",
|
|
45
|
+
"vitest": "^4.1.11"
|
|
45
46
|
},
|
|
46
47
|
"author": "NiceToDev <contact@nicetodev.com>",
|
|
47
48
|
"license": "SEE LICENSE IN LICENSE",
|