@fluentui-react-native/win32-theme 0.19.2 → 0.20.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,52 @@
2
2
  "name": "@fluentui-react-native/win32-theme",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 28 Jun 2022 16:48:13 GMT",
5
+ "date": "Thu, 14 Jul 2022 18:07:20 GMT",
6
+ "tag": "@fluentui-react-native/win32-theme_v0.20.0",
7
+ "version": "0.20.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "sanajmi@microsoft.com",
12
+ "package": "@fluentui-react-native/win32-theme",
13
+ "commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b",
14
+ "comment": "Update to React Native 0.66"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/win32-theme",
19
+ "comment": "Bump @fluentui-react-native/default-theme to v0.14.0",
20
+ "commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui-react-native/win32-theme",
25
+ "comment": "Bump @fluentui-react-native/theme-tokens to v0.19.0",
26
+ "commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui-react-native/win32-theme",
31
+ "comment": "Bump @fluentui-react-native/theme-types to v0.18.0",
32
+ "commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui-react-native/win32-theme",
37
+ "comment": "Bump @fluentui-react-native/theme to v0.7.0",
38
+ "commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui-react-native/win32-theme",
43
+ "comment": "Bump @fluentui-react-native/theming-utils to v0.14.0",
44
+ "commit": "155145b496a51b06bba73f8f9c6b89dc7b348c4b"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Tue, 28 Jun 2022 16:48:37 GMT",
6
51
  "tag": "@fluentui-react-native/win32-theme_v0.19.2",
7
52
  "version": "0.19.2",
8
53
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,25 @@
1
1
  # Change Log - @fluentui-react-native/win32-theme
2
2
 
3
- This log was last generated on Tue, 28 Jun 2022 16:48:13 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 14 Jul 2022 18:07:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.20.0
8
+
9
+ Thu, 14 Jul 2022 18:07:20 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Update to React Native 0.66 (sanajmi@microsoft.com)
14
+ - Bump @fluentui-react-native/default-theme to v0.14.0
15
+ - Bump @fluentui-react-native/theme-tokens to v0.19.0
16
+ - Bump @fluentui-react-native/theme-types to v0.18.0
17
+ - Bump @fluentui-react-native/theme to v0.7.0
18
+ - Bump @fluentui-react-native/theming-utils to v0.14.0
19
+
7
20
  ## 0.19.2
8
21
 
9
- Tue, 28 Jun 2022 16:48:13 GMT
22
+ Tue, 28 Jun 2022 16:48:37 GMT
10
23
 
11
24
  ### Patches
12
25
 
@@ -1,10 +1,4 @@
1
1
  import { OfficeThemingModule } from './officeThemingModule';
2
2
  import { NativeEventEmitter } from 'react-native';
3
- declare module 'react-native' {
4
- interface ITurboModuleRegistry {
5
- get: (name: 'Theming') => OfficeThemingModule & EventSubscriptionVendor;
6
- }
7
- const TurboModuleRegistry: ITurboModuleRegistry;
8
- }
9
3
  export declare function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | undefined];
10
4
  //# sourceMappingURL=getThemingModule.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,oBAAoB;QAC5B,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,mBAAmB,GAAG,uBAAuB,CAAC;KACzE;IACD,MAAM,mBAAmB,EAAE,oBAAoB,CAAC;CACjD;AAcD,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAUxF"}
1
+ {"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAA6D,MAAM,cAAc,CAAC;AAgB7G,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAUxF"}
@@ -1,11 +1,6 @@
1
1
  import { __assign } from "tslib";
2
- import { NativeEventEmitter } from 'react-native';
2
+ import { NativeEventEmitter, TurboModuleRegistry } from 'react-native';
3
3
  import { fallbackGetPalette, fallbackOfficeModule } from './fallbackOfficeModule';
4
- import { TurboModuleRegistry } from 'react-native';
5
- /**
6
- * If we have a userAgent string, let's assume we're web debugging. __DEV__ is for developer bundles. Currently,
7
- * react-native only polyfills navigator with { product: 'ReactNative', geolocation: NativeModules.Geolocation }
8
- */
9
4
  function disableGetPalette() {
10
5
  var disabled = __DEV__ && navigator && navigator.userAgent !== undefined;
11
6
  disabled && console.warn(console.warn('Web Debugging forces Theming Native Module to fallback to fake color values.'));
@@ -1 +1 @@
1
- {"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,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B,IAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAuB,SAAS,CAAC,CAAC;IACxE,oEAAoE;IACpE,IAAI,MAAM,EAAE;QACV,iFAAiF;QACjF,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,uBAAM,MAAM,KAAE,UAAU,EAAE,kBAAkB,IAAG,CAAC,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;KACvH;IAED,oCAAoC;IACpC,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC"}
@@ -1,10 +1,4 @@
1
1
  import { OfficeThemingModule } from './officeThemingModule';
2
2
  import { NativeEventEmitter } from 'react-native';
3
- declare module 'react-native' {
4
- interface ITurboModuleRegistry {
5
- get: (name: 'Theming') => OfficeThemingModule & EventSubscriptionVendor;
6
- }
7
- const TurboModuleRegistry: ITurboModuleRegistry;
8
- }
9
3
  export declare function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | undefined];
10
4
  //# sourceMappingURL=getThemingModule.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,oBAAoB;QAC5B,GAAG,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,mBAAmB,GAAG,uBAAuB,CAAC;KACzE;IACD,MAAM,mBAAmB,EAAE,oBAAoB,CAAC;CACjD;AAcD,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAUxF"}
1
+ {"version":3,"file":"getThemingModule.native.d.ts","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAA6D,MAAM,cAAc,CAAC;AAgB7G,wBAAgB,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAUxF"}
@@ -4,18 +4,13 @@ exports.getThemingModule = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var react_native_1 = require("react-native");
6
6
  var fallbackOfficeModule_1 = require("./fallbackOfficeModule");
7
- var react_native_2 = require("react-native");
8
- /**
9
- * If we have a userAgent string, let's assume we're web debugging. __DEV__ is for developer bundles. Currently,
10
- * react-native only polyfills navigator with { product: 'ReactNative', geolocation: NativeModules.Geolocation }
11
- */
12
7
  function disableGetPalette() {
13
8
  var disabled = __DEV__ && navigator && navigator.userAgent !== undefined;
14
9
  disabled && console.warn(console.warn('Web Debugging forces Theming Native Module to fallback to fake color values.'));
15
10
  return disabled;
16
11
  }
17
12
  function getThemingModule() {
18
- var module = react_native_2.TurboModuleRegistry.get('Theming');
13
+ var module = react_native_1.TurboModuleRegistry.get('Theming');
19
14
  // if the native module exists return the module + an emitter for it
20
15
  if (module) {
21
16
  // mock getPalette if it should be disabled, otherwise return the module directly
@@ -1 +1 @@
1
- {"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";;;;AACA,6CAAkD;AAClD,+DAAkF;AASlF,6CAAmD;AAEnD;;;GAGG;AACH,SAAS,iBAAiB;IACxB,IAAM,QAAQ,GAAG,OAAO,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC;IAC3E,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC,CAAC;IACvH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAgB,gBAAgB;IAC9B,IAAM,MAAM,GAAG,kCAAmB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAClD,oEAAoE;IACpE,IAAI,MAAM,EAAE;QACV,iFAAiF;QACjF,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,iDAAM,MAAM,KAAE,UAAU,EAAE,yCAAkB,IAAG,CAAC,CAAC,MAAM,EAAE,IAAI,iCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;KACvH;IAED,oCAAoC;IACpC,OAAO,CAAC,2CAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC;AAVD,4CAUC"}
1
+ {"version":3,"file":"getThemingModule.native.js","sourceRoot":"","sources":["../../src/NativeModule/getThemingModule.native.ts"],"names":[],"mappings":";;;;AACA,6CAA6G;AAC7G,+DAAkF;AASlF,SAAS,iBAAiB;IACxB,IAAM,QAAQ,GAAG,OAAO,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,KAAK,SAAS,CAAC;IAC3E,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC,CAAC;IACvH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAgB,gBAAgB;IAC9B,IAAM,MAAM,GAAG,kCAAmB,CAAC,GAAG,CAAuB,SAAS,CAAC,CAAC;IACxE,oEAAoE;IACpE,IAAI,MAAM,EAAE;QACV,iFAAiF;QACjF,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,iDAAM,MAAM,KAAE,UAAU,EAAE,yCAAkB,IAAG,CAAC,CAAC,MAAM,EAAE,IAAI,iCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;KACvH;IAED,oCAAoC;IACpC,OAAO,CAAC,2CAAoB,EAAE,SAAS,CAAC,CAAC;AAC3C,CAAC;AAVD,4CAUC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/win32-theme",
3
- "version": "0.19.2",
3
+ "version": "0.20.0",
4
4
  "description": "Win32 office theme that works with the theming native module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,25 +27,25 @@
27
27
  "author": "",
28
28
  "license": "MIT",
29
29
  "dependencies": {
30
- "@fluentui-react-native/default-theme": ">=0.13.0 <1.0.0",
30
+ "@fluentui-react-native/default-theme": ">=0.14.0 <1.0.0",
31
31
  "@fluentui-react-native/design-tokens-win32": "^0.13.0",
32
32
  "@fluentui-react-native/memo-cache": "^1.1.7",
33
- "@fluentui-react-native/theme-tokens": ">=0.18.0 <1.0.0",
34
- "@fluentui-react-native/theme-types": ">=0.17.0 <1.0.0",
35
- "@fluentui-react-native/theme": ">=0.6.11 <1.0.0",
36
- "@fluentui-react-native/theming-utils": ">=0.13.0 <1.0.0",
33
+ "@fluentui-react-native/theme-tokens": ">=0.19.0 <1.0.0",
34
+ "@fluentui-react-native/theme-types": ">=0.18.0 <1.0.0",
35
+ "@fluentui-react-native/theme": ">=0.7.0 <1.0.0",
36
+ "@fluentui-react-native/theming-utils": ">=0.14.0 <1.0.0",
37
37
  "tslib": "^2.3.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@fluentui-react-native/eslint-config-rules": "^0.1.1",
41
41
  "@types/react": "^17.0.2",
42
- "@types/react-native": "^0.64.0",
42
+ "@types/react-native": "^0.66.0",
43
43
  "@fluentui-react-native/scripts": "^0.1.1",
44
- "react": "17.0.1",
45
- "react-native": "^0.64.3"
44
+ "react": "17.0.2",
45
+ "react-native": "^0.66.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "react": ">=17.0.1",
49
- "react-native": ">=0.64.3"
48
+ "react": ">=17.0.2",
49
+ "react-native": ">=0.66.0"
50
50
  }
51
51
  }
@@ -1,20 +1,14 @@
1
1
  import { OfficeThemingModule } from './officeThemingModule';
2
- import { NativeEventEmitter } from 'react-native';
2
+ import { NativeEventEmitter, TurboModuleRegistry, EventSubscriptionVendor, TurboModule } from 'react-native';
3
3
  import { fallbackGetPalette, fallbackOfficeModule } from './fallbackOfficeModule';
4
4
 
5
- declare module 'react-native' {
6
- interface ITurboModuleRegistry {
7
- get: (name: 'Theming') => OfficeThemingModule & EventSubscriptionVendor;
8
- }
9
- const TurboModuleRegistry: ITurboModuleRegistry;
10
- }
11
-
12
- import { TurboModuleRegistry } from 'react-native';
13
-
14
5
  /**
15
6
  * If we have a userAgent string, let's assume we're web debugging. __DEV__ is for developer bundles. Currently,
16
7
  * react-native only polyfills navigator with { product: 'ReactNative', geolocation: NativeModules.Geolocation }
17
8
  */
9
+
10
+ type ITurboModuleRegistry = TurboModule & OfficeThemingModule & EventSubscriptionVendor;
11
+
18
12
  function disableGetPalette(): boolean {
19
13
  const disabled = __DEV__ && navigator && navigator.userAgent !== undefined;
20
14
  disabled && console.warn(console.warn('Web Debugging forces Theming Native Module to fallback to fake color values.'));
@@ -22,7 +16,7 @@ function disableGetPalette(): boolean {
22
16
  }
23
17
 
24
18
  export function getThemingModule(): [OfficeThemingModule, NativeEventEmitter | undefined] {
25
- const module = TurboModuleRegistry.get('Theming');
19
+ const module = TurboModuleRegistry.get<ITurboModuleRegistry>('Theming');
26
20
  // if the native module exists return the module + an emitter for it
27
21
  if (module) {
28
22
  // mock getPalette if it should be disabled, otherwise return the module directly