@hi-ui/core
Advanced tools
Comparing version 4.0.0-beta.10 to 4.0.0
@@ -5,3 +5,3 @@ /** @LICENSE | ||
* | ||
* Copyright (c) HIUI <mi-hiui@xiaomi.com>. | ||
* Copyright (c) HiUI <mi-hiui@xiaomi.com>. | ||
* | ||
@@ -16,2 +16,5 @@ * This source code is licensed under the MIT license found in the | ||
}); | ||
var localeContext = require('@hi-ui/locale-context'); | ||
var HiBaseAppearanceEnum = { | ||
@@ -26,4 +29,17 @@ LINE: 'line', | ||
LG: 'lg' | ||
}; | ||
}; // 将 core 设为 peer:保证 context 实例引用一致性 | ||
Object.defineProperty(exports, 'LocaleProvider', { | ||
enumerable: true, | ||
get: function get() { | ||
return localeContext.LocaleProvider; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'useLocaleContext', { | ||
enumerable: true, | ||
get: function get() { | ||
return localeContext.useLocaleContext; | ||
} | ||
}); | ||
exports.HiBaseAppearanceEnum = HiBaseAppearanceEnum; | ||
exports.HiBaseSizeEnum = HiBaseSizeEnum; |
@@ -5,3 +5,3 @@ /** @LICENSE | ||
* | ||
* Copyright (c) HIUI <mi-hiui@xiaomi.com>. | ||
* Copyright (c) HiUI <mi-hiui@xiaomi.com>. | ||
* | ||
@@ -11,2 +11,3 @@ * This source code is licensed under the MIT license found in the | ||
*/ | ||
export { LocaleProvider, useLocaleContext } from '@hi-ui/locale-context'; | ||
var HiBaseAppearanceEnum = { | ||
@@ -21,3 +22,4 @@ LINE: 'line', | ||
LG: 'lg' | ||
}; | ||
}; // 将 core 设为 peer:保证 context 实例引用一致性 | ||
export { HiBaseAppearanceEnum, HiBaseSizeEnum }; |
@@ -44,1 +44,3 @@ import React from 'react'; | ||
export declare type HiBaseSizeEnum = ValueOf<typeof HiBaseSizeEnum>; | ||
export { useLocaleContext, LocaleProvider } from '@hi-ui/locale-context'; | ||
export type { UseLocaleContext, LocaleProviderProps } from '@hi-ui/locale-context'; |
{ | ||
"name": "@hi-ui/core", | ||
"version": "4.0.0-beta.10", | ||
"version": "4.0.0", | ||
"description": "A sub-package for @hi-ui/utils.", | ||
"keywords": [], | ||
"author": "HIUI <mi-hiui@xiaomi.com>", | ||
"author": "HiUI <mi-hiui@xiaomi.com>", | ||
"homepage": "https://github.com/XiaoMi/hiui/tree/master/packages/utils/core#readme", | ||
@@ -46,8 +46,9 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@hi-ui/hi-build": "^4.0.0-beta.5" | ||
"@hi-ui/hi-build": "^4.0.0" | ||
}, | ||
"dependencies": { | ||
"@hi-ui/core-css": "^4.0.0-beta.6" | ||
"@hi-ui/core-css": "^4.0.0", | ||
"@hi-ui/locale-context": "^4.0.0" | ||
}, | ||
"gitHead": "43cfc64831263176a31bf951a5add214df340248" | ||
"gitHead": "3530e4f3c0b4394b91d66a4aa749579708ebff84" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5764
104
1
2
+ Added@hi-ui/locale-context@^4.0.0
+ Added@hi-ui/array-utils@4.0.5(transitive)
+ Added@hi-ui/classname@4.0.5(transitive)
+ Added@hi-ui/env@4.0.9(transitive)
+ Added@hi-ui/func-utils@4.0.4(transitive)
+ Added@hi-ui/locale-context@4.0.10(transitive)
+ Added@hi-ui/object-utils@4.0.4(transitive)
+ Added@hi-ui/style-inject@4.0.0(transitive)
+ Added@hi-ui/type-assertion@4.0.4(transitive)
+ Addedclassnames@2.5.1(transitive)
+ Addedinject-head-style@1.0.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
+ Addedstyle-inject@0.3.0(transitive)
Updated@hi-ui/core-css@^4.0.0