@fluentui-react-native/framework 0.8.28 → 0.8.30
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.json +43 -1
- package/CHANGELOG.md +20 -2
- package/lib/compressible.d.ts +7 -0
- package/lib/compressible.js +7 -0
- package/lib/compressible.js.map +1 -1
- package/lib/useTokens.js.map +1 -1
- package/lib-commonjs/compressible.d.ts +7 -0
- package/lib-commonjs/compressible.js +7 -0
- package/lib-commonjs/compressible.js.map +1 -1
- package/lib-commonjs/useTokens.js.map +1 -1
- package/package.json +4 -4
- package/src/compressible.ts +8 -1
- package/src/useTokens.ts +1 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,49 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 30 Dec 2022 16:07:32 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/framework_v0.8.30",
|
|
7
|
+
"version": "0.8.30",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "sanajmi@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/framework",
|
|
13
|
+
"commit": "8aefb1921c84f220ddf5c5def669c5ab9a036219",
|
|
14
|
+
"comment": "Update Compressible documentation"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 29 Dec 2022 03:47:47 GMT",
|
|
21
|
+
"tag": "@fluentui-react-native/framework_v0.8.29",
|
|
22
|
+
"version": "0.8.29",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "beachball",
|
|
27
|
+
"package": "@fluentui-react-native/framework",
|
|
28
|
+
"comment": "Bump @fluentui-react-native/default-theme to v0.16.20",
|
|
29
|
+
"commit": "6d8afaea8495b16c2acd8aa4d1de62036110968c"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@fluentui-react-native/framework",
|
|
34
|
+
"comment": "Bump @fluentui-react-native/theme-types to v0.28.0",
|
|
35
|
+
"commit": "6d8afaea8495b16c2acd8aa4d1de62036110968c"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@fluentui-react-native/framework",
|
|
40
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.20.2",
|
|
41
|
+
"commit": "6d8afaea8495b16c2acd8aa4d1de62036110968c"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"date": "Tue, 27 Dec 2022 22:21:15 GMT",
|
|
6
48
|
"tag": "@fluentui-react-native/framework_v0.8.28",
|
|
7
49
|
"version": "0.8.28",
|
|
8
50
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/framework
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 30 Dec 2022 16:07:32 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.8.30
|
|
8
|
+
|
|
9
|
+
Fri, 30 Dec 2022 16:07:32 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Update Compressible documentation (sanajmi@microsoft.com)
|
|
14
|
+
|
|
15
|
+
## 0.8.29
|
|
16
|
+
|
|
17
|
+
Thu, 29 Dec 2022 03:47:47 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Bump @fluentui-react-native/default-theme to v0.16.20
|
|
22
|
+
- Bump @fluentui-react-native/theme-types to v0.28.0
|
|
23
|
+
- Bump @fluentui-react-native/tokens to v0.20.2
|
|
24
|
+
|
|
7
25
|
## 0.8.28
|
|
8
26
|
|
|
9
|
-
Tue, 27 Dec 2022 22:
|
|
27
|
+
Tue, 27 Dec 2022 22:21:15 GMT
|
|
10
28
|
|
|
11
29
|
### Patches
|
|
12
30
|
|
package/lib/compressible.d.ts
CHANGED
|
@@ -2,4 +2,11 @@ import { Theme } from '@fluentui-react-native/theme-types';
|
|
|
2
2
|
import { StagedRender } from '@fluentui-react-native/use-slot';
|
|
3
3
|
import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
4
4
|
import { UseTokens } from './useTokens';
|
|
5
|
+
/**
|
|
6
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
7
|
+
* and also have customize functionality.
|
|
8
|
+
* @param fn StagedRender function that defines your component
|
|
9
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
10
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
11
|
+
*/
|
|
5
12
|
export declare function compressible<TProps, TTokens>(fn: StagedRender<TProps>, useTokens: UseTokens<TTokens>): CustomizableComponent<TProps, TTokens, Theme>;
|
package/lib/compressible.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { stagedComponent } from '@fluentui-react-native/use-slot';
|
|
2
|
+
/**
|
|
3
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
4
|
+
* and also have customize functionality.
|
|
5
|
+
* @param fn StagedRender function that defines your component
|
|
6
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
7
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
8
|
+
*/
|
|
2
9
|
export function compressible(fn, useTokens) {
|
|
3
10
|
var injectedWrapper = function (props) { return fn(props, useTokens); };
|
|
4
11
|
var component = stagedComponent(injectedWrapper);
|
package/lib/compressible.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAgB,MAAM,iCAAiC,CAAC;AAKhF,MAAM,UAAU,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAgB,MAAM,iCAAiC,CAAC;AAKhF;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/lib/useTokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAA8B,MAAM,mCAAmC,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAA8B,MAAM,mCAAmC,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAKpH,MAAM,UAAU,cAAc;IAAU,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IACzE,OAAO,kBAAkB,8BAAC,WAAW,CAAC,gBAAgB,GAAK,MAAM,UAAE;AACrE,CAAC"}
|
|
@@ -2,4 +2,11 @@ import { Theme } from '@fluentui-react-native/theme-types';
|
|
|
2
2
|
import { StagedRender } from '@fluentui-react-native/use-slot';
|
|
3
3
|
import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
4
4
|
import { UseTokens } from './useTokens';
|
|
5
|
+
/**
|
|
6
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
7
|
+
* and also have customize functionality.
|
|
8
|
+
* @param fn StagedRender function that defines your component
|
|
9
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
10
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
11
|
+
*/
|
|
5
12
|
export declare function compressible<TProps, TTokens>(fn: StagedRender<TProps>, useTokens: UseTokens<TTokens>): CustomizableComponent<TProps, TTokens, Theme>;
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.compressible = void 0;
|
|
4
4
|
var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
5
|
+
/**
|
|
6
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
7
|
+
* and also have customize functionality.
|
|
8
|
+
* @param fn StagedRender function that defines your component
|
|
9
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
10
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
11
|
+
*/
|
|
5
12
|
function compressible(fn, useTokens) {
|
|
6
13
|
var injectedWrapper = function (props) { return fn(props, useTokens); };
|
|
7
14
|
var component = (0, use_slot_1.stagedComponent)(injectedWrapper);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":";;;AACA,4DAAgF;AAKhF,SAAgB,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,IAAA,0BAAe,EAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAfD,oCAeC"}
|
|
1
|
+
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":";;;AACA,4DAAgF;AAKhF;;;;;;GAMG;AACH,SAAgB,YAAY,CAC1B,EAAwB,EACxB,SAA6B;IAI7B,IAAM,eAAe,GAAG,UAAC,KAAa,IAAK,OAAA,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAApB,CAAoB,CAAC;IAChE,IAAM,SAAS,GAAG,IAAA,0BAAe,EAAC,eAAe,CAAkB,CAAC;IAEpE,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAmC;aAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;YAAnC,2BAAmC;;QACxD,IAAM,YAAY,GAAG,SAAS,CAAC,SAAS,OAAnB,SAAS,EAAc,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAfD,oCAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";;;;AAAA,gEAAqH;AACrH,6CAA4C;AAI5C,gEAAoH;AAA3G,8GAAA,gBAAgB,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,yGAAA,WAAW,OAAA;
|
|
1
|
+
{"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";;;;AAAA,gEAAqH;AACrH,6CAA4C;AAI5C,gEAAoH;AAA3G,8GAAA,gBAAgB,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,yGAAA,WAAW,OAAA;AAKxE,SAAgB,cAAc;IAAU,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IACzE,OAAO,2BAAkB,2CAAC,yBAAW,CAAC,gBAAgB,GAAK,MAAM,UAAE;AACrE,CAAC;AAFD,wCAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/framework",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.30",
|
|
4
4
|
"description": "Component framework used by fluentui react native controls",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@fluentui-react-native/composition": ">=0.8.1 <1.0.0",
|
|
28
|
-
"@fluentui-react-native/default-theme": ">=0.16.
|
|
28
|
+
"@fluentui-react-native/default-theme": ">=0.16.20 <1.0.0",
|
|
29
29
|
"@fluentui-react-native/immutable-merge": "^1.1.7",
|
|
30
30
|
"@fluentui-react-native/merge-props": ">=0.5.1 <1.0.0",
|
|
31
|
-
"@fluentui-react-native/theme-types": ">=0.
|
|
31
|
+
"@fluentui-react-native/theme-types": ">=0.28.0 <1.0.0",
|
|
32
32
|
"@fluentui-react-native/use-styling": ">=0.9.1 <1.0.0",
|
|
33
33
|
"@fluentui-react-native/use-slot": ">=0.3.1 <1.0.0",
|
|
34
34
|
"@fluentui-react-native/use-slots": ">=0.7.1 <1.0.0",
|
|
35
35
|
"@fluentui-react-native/use-tokens": ">=0.3.1 <1.0.0",
|
|
36
36
|
"@fluentui-react-native/memo-cache": "^1.1.7",
|
|
37
|
-
"@fluentui-react-native/tokens": ">=0.20.
|
|
37
|
+
"@fluentui-react-native/tokens": ">=0.20.2 <1.0.0",
|
|
38
38
|
"tslib": "^2.3.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
package/src/compressible.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { Theme } from '@fluentui-react-native/theme-types';
|
|
2
2
|
import { stagedComponent, StagedRender } from '@fluentui-react-native/use-slot';
|
|
3
3
|
import { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
4
|
-
import { UseTokens } from './useTokens';
|
|
5
4
|
import { TokenSettings } from './useStyling';
|
|
5
|
+
import { UseTokens } from './useTokens';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
9
|
+
* and also have customize functionality.
|
|
10
|
+
* @param fn StagedRender function that defines your component
|
|
11
|
+
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
12
|
+
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
13
|
+
*/
|
|
7
14
|
export function compressible<TProps, TTokens>(
|
|
8
15
|
fn: StagedRender<TProps>,
|
|
9
16
|
useTokens: UseTokens<TTokens>,
|
package/src/useTokens.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { TokenSettings } from './useStyling';
|
|
|
5
5
|
|
|
6
6
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
7
7
|
|
|
8
|
+
// A hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
8
9
|
export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
|
|
9
10
|
|
|
10
11
|
export function buildUseTokens<TTokens>(...tokens: TokenSettings<TTokens>[]): UseTokens<TTokens> {
|