@fluentui-react-native/framework 0.10.0 → 0.11.0

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 CHANGED
@@ -2,7 +2,70 @@
2
2
  "name": "@fluentui-react-native/framework",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 05 Jun 2023 19:19:49 GMT",
5
+ "date": "Mon, 12 Jun 2023 17:42:46 GMT",
6
+ "tag": "@fluentui-react-native/framework_v0.11.0",
7
+ "version": "0.11.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "ayushsinghs@yahoo.in",
12
+ "package": "@fluentui-react-native/framework",
13
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77",
14
+ "comment": "Changes for treeshake to work"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/framework",
19
+ "comment": "Bump @fluentui-react-native/composition to v0.9.1",
20
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui-react-native/framework",
25
+ "comment": "Bump @fluentui-react-native/default-theme to v0.19.1",
26
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui-react-native/framework",
31
+ "comment": "Bump @fluentui-react-native/merge-props to v0.7.0",
32
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui-react-native/framework",
37
+ "comment": "Bump @fluentui-react-native/use-styling to v0.11.0",
38
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui-react-native/framework",
43
+ "comment": "Bump @fluentui-react-native/use-slot to v0.4.1",
44
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui-react-native/framework",
49
+ "comment": "Bump @fluentui-react-native/use-slots to v0.8.1",
50
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui-react-native/framework",
55
+ "comment": "Bump @fluentui-react-native/use-tokens to v0.4.1",
56
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui-react-native/framework",
61
+ "comment": "Bump @fluentui-react-native/memo-cache to v1.3.0",
62
+ "commit": "60d243e2af9f727a0265bf6a0aed49e687305f77"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "date": "Mon, 05 Jun 2023 19:26:23 GMT",
6
69
  "tag": "@fluentui-react-native/framework_v0.10.0",
7
70
  "version": "0.10.0",
8
71
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @fluentui-react-native/framework
2
2
 
3
- This log was last generated on Mon, 05 Jun 2023 19:19:49 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 12 Jun 2023 17:42:46 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.11.0
8
+
9
+ Mon, 12 Jun 2023 17:42:46 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Changes for treeshake to work (ayushsinghs@yahoo.in)
14
+ - Bump @fluentui-react-native/composition to v0.9.1
15
+ - Bump @fluentui-react-native/default-theme to v0.19.1
16
+ - Bump @fluentui-react-native/merge-props to v0.7.0
17
+ - Bump @fluentui-react-native/use-styling to v0.11.0
18
+ - Bump @fluentui-react-native/use-slot to v0.4.1
19
+ - Bump @fluentui-react-native/use-slots to v0.8.1
20
+ - Bump @fluentui-react-native/use-tokens to v0.4.1
21
+ - Bump @fluentui-react-native/memo-cache to v1.3.0
22
+
7
23
  ## 0.10.0
8
24
 
9
- Mon, 05 Jun 2023 19:19:49 GMT
25
+ Mon, 05 Jun 2023 19:26:23 GMT
10
26
 
11
27
  ### Minor changes
12
28
 
package/lib/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- export { GetMemoValue, getMemoCache, memoize } from '@fluentui-react-native/memo-cache';
2
- export { StyleProp, mergeProps, mergeStyles } from '@fluentui-react-native/merge-props';
1
+ export type { GetMemoValue } from '@fluentui-react-native/memo-cache';
2
+ export { getMemoCache, memoize } from '@fluentui-react-native/memo-cache';
3
+ export type { StyleProp } from '@fluentui-react-native/merge-props';
4
+ export { mergeProps, mergeStyles } from '@fluentui-react-native/merge-props';
3
5
  export { backgroundColorTokens, borderStyles, borderTokens, colorTokens, fontStyles, foregroundColorTokens, getPaletteFromTheme, layoutStyles, layoutTokens, shadowStyles, shadowTokens, textTokens, tokenBuilder, } from '@fluentui-react-native/tokens';
4
6
  export type { FontStyleTokens, FontTokens, FontVariantTokens, IBackgroundColorTokens, IBorderTokens, IColorTokens, IForegroundColorTokens, IShadowTokens, LayoutTokens, TokenBuilder, } from '@fluentui-react-native/tokens';
5
7
  export { renderSlot, stagedComponent, useSlot, withSlots } from '@fluentui-react-native/use-slot';
@@ -14,7 +16,8 @@ export { compose } from './compose';
14
16
  export type { ComposableComponent, ComposeOptions, ComposeType, ExtractProps, ExtractSlotProps, ExtractStatics, ExtractTokens, UseSlots, } from './compose';
15
17
  export { compressible } from './compressible';
16
18
  export { useFluentTheme } from './useFluentTheme';
17
- export { HasLayer, TokensThatAreAlsoProps, UseStyling, buildProps, buildUseStyling } from './useStyling';
19
+ export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling';
20
+ export { buildProps, buildUseStyling } from './useStyling';
18
21
  export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling';
19
22
  export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
20
23
  export type { UseTokens } from './useTokens';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","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rB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,GACb,MAAM,+BAA+B,CAAC;AAcvC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAGlG,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAS9G,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAkC5E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * Many of the types from use-styling take a theme as a type parameter. This re-exports them in such a way
3
3
  * as to be dependent on the core theme type
4
4
  */
5
- export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
5
+ export type { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
6
6
  import type { Theme } from '@fluentui-react-native/theme-types';
7
7
  import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
8
8
  export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
@@ -1,5 +1,7 @@
1
- export { GetMemoValue, getMemoCache, memoize } from '@fluentui-react-native/memo-cache';
2
- export { StyleProp, mergeProps, mergeStyles } from '@fluentui-react-native/merge-props';
1
+ export type { GetMemoValue } from '@fluentui-react-native/memo-cache';
2
+ export { getMemoCache, memoize } from '@fluentui-react-native/memo-cache';
3
+ export type { StyleProp } from '@fluentui-react-native/merge-props';
4
+ export { mergeProps, mergeStyles } from '@fluentui-react-native/merge-props';
3
5
  export { backgroundColorTokens, borderStyles, borderTokens, colorTokens, fontStyles, foregroundColorTokens, getPaletteFromTheme, layoutStyles, layoutTokens, shadowStyles, shadowTokens, textTokens, tokenBuilder, } from '@fluentui-react-native/tokens';
4
6
  export type { FontStyleTokens, FontTokens, FontVariantTokens, IBackgroundColorTokens, IBorderTokens, IColorTokens, IForegroundColorTokens, IShadowTokens, LayoutTokens, TokenBuilder, } from '@fluentui-react-native/tokens';
5
7
  export { renderSlot, stagedComponent, useSlot, withSlots } from '@fluentui-react-native/use-slot';
@@ -14,7 +16,8 @@ export { compose } from './compose';
14
16
  export type { ComposableComponent, ComposeOptions, ComposeType, ExtractProps, ExtractSlotProps, ExtractStatics, ExtractTokens, UseSlots, } from './compose';
15
17
  export { compressible } from './compressible';
16
18
  export { useFluentTheme } from './useFluentTheme';
17
- export { HasLayer, TokensThatAreAlsoProps, UseStyling, buildProps, buildUseStyling } from './useStyling';
19
+ export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling';
20
+ export { buildProps, buildUseStyling } from './useStyling';
18
21
  export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling';
19
22
  export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
20
23
  export type { UseTokens } from './useTokens';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gEAAwF;AAAjE,0GAAA,YAAY,OAAA;AAAE,qGAAA,OAAO,OAAA;AAE5C,kEAAwF;AAApE,yGAAA,UAAU,OAAA;AAAE,0GAAA,WAAW,OAAA;AAE3C,wDAcuC;AAbrC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B,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,qGAAA,WAAW,OAAA;AACX,oGAAA,UAAU,OAAA;AACV,+GAAA,qBAAqB,OAAA;AACrB,6GAAA,mBAAmB,OAAA;AACnB,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,oGAAA,UAAU,OAAA;AACV,sGAAA,YAAY,OAAA;AAed,4DAAkG;AAAzF,sGAAA,UAAU,OAAA;AAAE,2GAAA,eAAe,OAAA;AAAE,mGAAA,OAAO,OAAA;AAAE,qGAAA,SAAS,OAAA;AAGxD,8DAAiE;AAAxD,0GAAA,aAAa,OAAA;AAGtB,0EAA8G;AAArG,iHAAA,cAAc,OAAA;AAAE,qHAAA,kBAAkB,OAAA;AAAE,mHAAA,gBAAgB,OAAA;AAS7D,kEAA4E;AAAnE,2GAAA,YAAY,OAAA;AAAE,uGAAA,QAAQ,OAAA;AAkC/B,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAWhB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AAEvB,2CAA2D;AAAlD,wGAAA,UAAU,OAAA;AAAE,6GAAA,eAAe,OAAA;AAEpC,yCAA8G;AAArG,+GAAA,kBAAkB,OAAA;AAAE,6GAAA,gBAAgB,OAAA;AAAE,2GAAA,cAAc,OAAA;AAAE,yGAAA,YAAY,OAAA;AAAE,wGAAA,WAAW,OAAA"}
@@ -2,7 +2,7 @@
2
2
  * Many of the types from use-styling take a theme as a type parameter. This re-exports them in such a way
3
3
  * as to be dependent on the core theme type
4
4
  */
5
- export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
5
+ export type { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
6
6
  import type { Theme } from '@fluentui-react-native/theme-types';
7
7
  import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
8
8
  export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/framework",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Component framework used by fluentui react native controls",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -24,16 +24,16 @@
24
24
  "directory": "packages/framework/framework"
25
25
  },
26
26
  "dependencies": {
27
- "@fluentui-react-native/composition": ">=0.9.0 <1.0.0",
28
- "@fluentui-react-native/default-theme": ">=0.19.0 <1.0.0",
27
+ "@fluentui-react-native/composition": ">=0.9.1 <1.0.0",
28
+ "@fluentui-react-native/default-theme": ">=0.19.1 <1.0.0",
29
29
  "@fluentui-react-native/immutable-merge": "^1.2.0",
30
- "@fluentui-react-native/merge-props": ">=0.6.0 <1.0.0",
30
+ "@fluentui-react-native/merge-props": ">=0.7.0 <1.0.0",
31
31
  "@fluentui-react-native/theme-types": ">=0.32.0 <1.0.0",
32
- "@fluentui-react-native/use-styling": ">=0.10.0 <1.0.0",
33
- "@fluentui-react-native/use-slot": ">=0.4.0 <1.0.0",
34
- "@fluentui-react-native/use-slots": ">=0.8.0 <1.0.0",
35
- "@fluentui-react-native/use-tokens": ">=0.4.0 <1.0.0",
36
- "@fluentui-react-native/memo-cache": "^1.2.0",
32
+ "@fluentui-react-native/use-styling": ">=0.11.0 <1.0.0",
33
+ "@fluentui-react-native/use-slot": ">=0.4.1 <1.0.0",
34
+ "@fluentui-react-native/use-slots": ">=0.8.1 <1.0.0",
35
+ "@fluentui-react-native/use-tokens": ">=0.4.1 <1.0.0",
36
+ "@fluentui-react-native/memo-cache": "^1.3.0",
37
37
  "@fluentui-react-native/tokens": ">=0.21.0 <1.0.0",
38
38
  "tslib": "^2.3.1"
39
39
  },
package/src/index.ts CHANGED
@@ -1,6 +1,8 @@
1
- export { GetMemoValue, getMemoCache, memoize } from '@fluentui-react-native/memo-cache';
1
+ export type { GetMemoValue } from '@fluentui-react-native/memo-cache';
2
+ export { getMemoCache, memoize } from '@fluentui-react-native/memo-cache';
2
3
 
3
- export { StyleProp, mergeProps, mergeStyles } from '@fluentui-react-native/merge-props';
4
+ export type { StyleProp } from '@fluentui-react-native/merge-props';
5
+ export { mergeProps, mergeStyles } from '@fluentui-react-native/merge-props';
4
6
 
5
7
  export {
6
8
  backgroundColorTokens,
@@ -92,7 +94,8 @@ export type {
92
94
  } from './compose';
93
95
  export { compressible } from './compressible';
94
96
  export { useFluentTheme } from './useFluentTheme';
95
- export { HasLayer, TokensThatAreAlsoProps, UseStyling, buildProps, buildUseStyling } from './useStyling';
97
+ export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling';
98
+ export { buildProps, buildUseStyling } from './useStyling';
96
99
  export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling';
97
100
  export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
98
101
  export type { UseTokens } from './useTokens';
package/src/useStyling.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Many of the types from use-styling take a theme as a type parameter. This re-exports them in such a way
3
3
  * as to be dependent on the core theme type
4
4
  */
5
- export { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
5
+ export type { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
6
6
  import type { Theme } from '@fluentui-react-native/theme-types';
7
7
  import type {
8
8
  TokensFromTheme as TokensFromThemeBase,