@fluentui-react-native/win32-theme 0.34.8 → 0.34.9

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,11 +2,29 @@
2
2
  "name": "@fluentui-react-native/win32-theme",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 11 Jul 2025 19:50:40 GMT",
6
- "version": "0.34.8",
7
- "tag": "@fluentui-react-native/win32-theme_v0.34.8",
5
+ "date": "Tue, 15 Jul 2025 23:20:41 GMT",
6
+ "version": "0.34.9",
7
+ "tag": "@fluentui-react-native/win32-theme_v0.34.9",
8
8
  "comments": {
9
9
  "none": [
10
+ {
11
+ "author": "ruaraki@microsoft.com",
12
+ "package": "@fluentui-react-native/win32-theme",
13
+ "commit": "a245202877ef7f2be9ab5f0e1356b2270957e693",
14
+ "comment": "Run bump-versions"
15
+ },
16
+ {
17
+ "author": "jasonmo@microsoft.com",
18
+ "package": "@fluentui-react-native/win32-theme",
19
+ "commit": "54087dca787180bbf34630470cd0d06e88366b30",
20
+ "comment": "update eslint to 9.x and use new flat config format with security rules"
21
+ },
22
+ {
23
+ "author": "jasonmo@microsoft.com",
24
+ "package": "@fluentui-react-native/win32-theme",
25
+ "commit": "3e168e4363d1821818f219819d29532eace8d979",
26
+ "comment": "update scripts package to be fully js, use esm, and validate fully"
27
+ },
10
28
  {
11
29
  "author": "4123478+tido64@users.noreply.github.com",
12
30
  "package": "@fluentui-react-native/win32-theme",
@@ -18,26 +36,32 @@
18
36
  "package": "@fluentui-react-native/win32-theme",
19
37
  "commit": "405ca368dc3f2963bfc252a1952b1e14ff503499",
20
38
  "comment": "fix: run `beachball sync` to sync package versions with NPM"
21
- },
39
+ }
40
+ ],
41
+ "patch": [
22
42
  {
23
- "author": "ruaraki@microsoft.com",
43
+ "author": "jasonmo@microsoft.com",
24
44
  "package": "@fluentui-react-native/win32-theme",
25
- "commit": "a245202877ef7f2be9ab5f0e1356b2270957e693",
26
- "comment": "Run bump-versions"
45
+ "commit": "479b93cea460a26df70c55b5d3335927ed374713",
46
+ "comment": "update builds to use node16 settings and modern export maps"
27
47
  },
28
48
  {
29
49
  "author": "jasonmo@microsoft.com",
30
50
  "package": "@fluentui-react-native/win32-theme",
31
- "commit": "54087dca787180bbf34630470cd0d06e88366b30",
32
- "comment": "update eslint to 9.x and use new flat config format with security rules"
33
- }
34
- ],
35
- "patch": [
51
+ "commit": "3d36cc95620fdb938221cbe2c5ce002264108a50",
52
+ "comment": "fix repo linting with new configs and version, fixing linting errors as well"
53
+ },
36
54
  {
37
55
  "author": "jasonmo@microsoft.com",
38
56
  "package": "@fluentui-react-native/win32-theme",
39
- "commit": "479b93cea460a26df70c55b5d3335927ed374713",
40
- "comment": "update builds to use node16 settings and modern export maps"
57
+ "commit": "6b4d59227b1e9bbbf25cc93a3502015f663b363e",
58
+ "comment": "add react-native entrypoints that ensure metro targets TS files rather than JS files for bundling"
59
+ },
60
+ {
61
+ "author": "sanajmi@microsoft.com",
62
+ "package": "@fluentui-react-native/win32-theme",
63
+ "commit": "9cbe229ec7f6363d229dcaef506921b8d9f47d7d",
64
+ "comment": "fix: run beachball sync"
41
65
  }
42
66
  ]
43
67
  }
package/CHANGELOG.md CHANGED
@@ -1,16 +1,19 @@
1
1
  # Change Log - @fluentui-react-native/win32-theme
2
2
 
3
- <!-- This log was last generated on Fri, 11 Jul 2025 19:50:40 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 15 Jul 2025 23:20:41 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.34.8
7
+ ## 0.34.9
8
8
 
9
- Fri, 11 Jul 2025 19:50:40 GMT
9
+ Tue, 15 Jul 2025 23:20:41 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
13
  - update builds to use node16 settings and modern export maps (jasonmo@microsoft.com)
14
+ - fix repo linting with new configs and version, fixing linting errors as well (jasonmo@microsoft.com)
15
+ - add react-native entrypoints that ensure metro targets TS files rather than JS files for bundling (jasonmo@microsoft.com)
16
+ - fix: run beachball sync (sanajmi@microsoft.com)
14
17
 
15
18
  ## 0.34.6
16
19
 
package/babel.config.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('@fluentui-react-native/scripts/babel.config');
1
+ module.exports = require('@fluentui-react-native/scripts/configs/babel.config');
@@ -1,4 +1,4 @@
1
- export * from './fallbackOfficeModule';
2
- export * from './getThemingModule';
3
- export * from './officeThemingModule';
1
+ export { fallbackOfficeModule, fallbackGetPalette } from './fallbackOfficeModule';
2
+ export { getThemingModule } from './getThemingModule';
3
+ export type { PlatformDefaultsChangedArgs, PlatformDefaultsChangedCallback, CxxException, NativeColorRamps, NativeColorNames, OfficeThemingModule, IEventEmitter, } from './officeThemingModule';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,GACd,MAAM,uBAAuB,CAAC"}
@@ -1,4 +1,3 @@
1
- export * from './fallbackOfficeModule';
2
- export * from './getThemingModule';
3
- export * from './officeThemingModule';
1
+ export { fallbackOfficeModule, fallbackGetPalette } from './fallbackOfficeModule';
2
+ export { getThemingModule } from './getThemingModule';
4
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { NativeModule, ColorValue } from 'react-native';
2
2
  import type { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
3
+ type ObjectBase = {};
3
4
  export type PlatformDefaultsChangedArgs = {
4
5
  hostThemeSetting: string;
5
6
  };
@@ -23,7 +24,7 @@ export interface NativeColorNames {
23
24
  export interface OfficeThemingModule extends NativeModule {
24
25
  getPalette(palette?: string): OfficePalette | CxxException;
25
26
  getConstants(): {
26
- typography: object;
27
+ typography: ObjectBase;
27
28
  fluentTypography: Typography;
28
29
  ramps: NativeColorRamps;
29
30
  rampNames: NativeColorNames;
@@ -33,4 +34,5 @@ export interface OfficeThemingModule extends NativeModule {
33
34
  export interface IEventEmitter {
34
35
  addListener: (event: string, PlatformDefaultsChangedCallback: any) => void;
35
36
  }
37
+ export {};
36
38
  //# sourceMappingURL=officeThemingModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"officeThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/officeThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEpF,MAAM,MAAM,2BAA2B,GAAG;IAAE,gBAAgB,EAAE,MAAM,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,+BAA+B,GAAG,CAAC,IAAI,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IAAE,gBAAgB,EAAE,MAAM,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,+BAA+B,GAAG,CAAC,IAAI,CAAC,EAAE,2BAA2B,KAAK,IAAI,CAAC;AAE3F,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,GAAG,EAAE,UAAU,EAAE,CAAC;IAClB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,YAAY,CAAC;IAC3D,YAAY,IAAI;QACd,UAAU,EAAE,UAAU,CAAC;QACvB,gBAAgB,EAAE,UAAU,CAAC;QAC7B,KAAK,EAAE,gBAAgB,CAAC;QACxB,SAAS,EAAE,gBAAgB,CAAC;QAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;KAClC,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,KAAA,KAAK,IAAI,CAAC;CACvE"}
@@ -7,6 +7,7 @@ function processAliasTokens(aliasTokens) {
7
7
  const entry = aliasTokens[key][innerKey];
8
8
  if (typeof entry === 'string' && entry.includes('PlatformColor')) {
9
9
  const color = entry.substring(14, entry.length - 1);
10
+ // eslint-disable-next-line @react-native/platform-colors
10
11
  aliasTokens[key][innerKey] = PlatformColor(color);
11
12
  }
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,WAAW,MAAM,mEAAmE,CAAC;AAE5F,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB;IAC1C,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE;QAC7B,KAAK,MAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;YACvC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;YACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAChE,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACpD,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;aACnD;SACF;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,WAAW,MAAM,mEAAmE,CAAC;AAE5F,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB;IAC1C,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE;QAC7B,KAAK,MAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;YACvC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;YACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAChE,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACpD,yDAAyD;gBACzD,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;aACnD;SACF;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -1,4 +1,4 @@
1
- export * from './fallbackOfficeModule';
2
- export * from './getThemingModule';
3
- export * from './officeThemingModule';
1
+ export { fallbackOfficeModule, fallbackGetPalette } from './fallbackOfficeModule';
2
+ export { getThemingModule } from './getThemingModule';
3
+ export type { PlatformDefaultsChangedArgs, PlatformDefaultsChangedCallback, CxxException, NativeColorRamps, NativeColorNames, OfficeThemingModule, IEventEmitter, } from './officeThemingModule';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,GACd,MAAM,uBAAuB,CAAC"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./fallbackOfficeModule"), exports);
5
- tslib_1.__exportStar(require("./getThemingModule"), exports);
6
- tslib_1.__exportStar(require("./officeThemingModule"), exports);
3
+ exports.getThemingModule = exports.fallbackGetPalette = exports.fallbackOfficeModule = void 0;
4
+ var fallbackOfficeModule_1 = require("./fallbackOfficeModule");
5
+ Object.defineProperty(exports, "fallbackOfficeModule", { enumerable: true, get: function () { return fallbackOfficeModule_1.fallbackOfficeModule; } });
6
+ Object.defineProperty(exports, "fallbackGetPalette", { enumerable: true, get: function () { return fallbackOfficeModule_1.fallbackGetPalette; } });
7
+ var getThemingModule_1 = require("./getThemingModule");
8
+ Object.defineProperty(exports, "getThemingModule", { enumerable: true, get: function () { return getThemingModule_1.getThemingModule; } });
7
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,6DAAmC;AACnC,gEAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/NativeModule/index.ts"],"names":[],"mappings":";;;AAAA,+DAAkF;AAAzE,4HAAA,oBAAoB,OAAA;AAAE,0HAAA,kBAAkB,OAAA;AACjD,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA"}
@@ -1,5 +1,6 @@
1
1
  import type { NativeModule, ColorValue } from 'react-native';
2
2
  import type { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
3
+ type ObjectBase = {};
3
4
  export type PlatformDefaultsChangedArgs = {
4
5
  hostThemeSetting: string;
5
6
  };
@@ -23,7 +24,7 @@ export interface NativeColorNames {
23
24
  export interface OfficeThemingModule extends NativeModule {
24
25
  getPalette(palette?: string): OfficePalette | CxxException;
25
26
  getConstants(): {
26
- typography: object;
27
+ typography: ObjectBase;
27
28
  fluentTypography: Typography;
28
29
  ramps: NativeColorRamps;
29
30
  rampNames: NativeColorNames;
@@ -33,4 +34,5 @@ export interface OfficeThemingModule extends NativeModule {
33
34
  export interface IEventEmitter {
34
35
  addListener: (event: string, PlatformDefaultsChangedCallback: any) => void;
35
36
  }
37
+ export {};
36
38
  //# sourceMappingURL=officeThemingModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"officeThemingModule.d.ts","sourceRoot":"","sources":["../../src/NativeModule/officeThemingModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEpF,MAAM,MAAM,2BAA2B,GAAG;IAAE,gBAAgB,EAAE,MAAM,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,+BAA+B,GAAG,CAAC,IAAI,CAAC,EAAE,2BAA2B,KAAK,IAAI,CAAC;AAE3F,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,GAAG,EAAE,UAAU,EAAE,CAAC;IAClB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,YAAY,CAAC;IAC3D,YAAY,IAAI;QACd,UAAU,EAAE,MAAM,CAAC;QACnB,gBAAgB,EAAE,UAAU,CAAC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AY,CAAC;IAC3D,YAAY,IAAI;QACd,UAAU,EAAE,UAAU,CAAC;QACvB,gBAAgB,EAAE,UAAU,CAAC;QAC7B,KAAK,EAAE,gBAAgB,CAAC;QACxB,SAAS,EAAE,gBAAgB,CAAC;QAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;KAClC,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,KAAA,KAAK,IAAI,CAAC;CACvE"}
@@ -11,6 +11,7 @@ function processAliasTokens(aliasTokens) {
11
11
  const entry = aliasTokens[key][innerKey];
12
12
  if (typeof entry === 'string' && entry.includes('PlatformColor')) {
13
13
  const color = entry.substring(14, entry.length - 1);
14
+ // eslint-disable-next-line @react-native/platform-colors
14
15
  aliasTokens[key][innerKey] = (0, react_native_1.PlatformColor)(color);
15
16
  }
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":";;;;AAAA,+CAA6C;AAE7C,oIAA4F;AAE/E,QAAA,aAAa,GAAG,kBAAkB,CAAC,6BAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB;IAC1C,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE;QAC7B,KAAK,MAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;YACvC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;YACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAChE,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACpD,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAA,4BAAa,EAAC,KAAK,CAAC,CAAC;aACnD;SACF;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"tokens-alias.js","sourceRoot":"","sources":["../../src/highContrast/tokens-alias.ts"],"names":[],"mappings":";;;;AAAA,+CAA6C;AAE7C,oIAA4F;AAE/E,QAAA,aAAa,GAAG,kBAAkB,CAAC,6BAAW,CAAC,CAAC;AAE7D,SAAS,kBAAkB,CAAC,WAAgB;IAC1C,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE;QAC7B,KAAK,MAAM,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;YACvC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;YACzC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAChE,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACpD,yDAAyD;gBACzD,WAAW,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAA,4BAAa,EAAC,KAAK,CAAC,CAAC;aACnD;SACF;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/win32-theme",
3
- "version": "0.34.8",
3
+ "version": "0.34.9",
4
4
  "description": "Win32 office theme that works with the theming native module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,6 +9,7 @@
9
9
  },
10
10
  "main": "lib-commonjs/index.js",
11
11
  "module": "lib/index.js",
12
+ "react-native": "src/index.ts",
12
13
  "exports": {
13
14
  ".": {
14
15
  "import": "./lib/index.js",
@@ -34,13 +35,13 @@
34
35
  "author": "",
35
36
  "license": "MIT",
36
37
  "dependencies": {
37
- "@fluentui-react-native/default-theme": "0.26.5",
38
+ "@fluentui-react-native/default-theme": "0.26.6",
38
39
  "@fluentui-react-native/design-tokens-win32": "^0.53.0",
39
- "@fluentui-react-native/memo-cache": "1.3.5",
40
- "@fluentui-react-native/theme": "0.11.4",
41
- "@fluentui-react-native/theme-tokens": "0.27.4",
42
- "@fluentui-react-native/theme-types": "0.39.4",
43
- "@fluentui-react-native/theming-utils": "0.26.4",
40
+ "@fluentui-react-native/memo-cache": "1.3.6",
41
+ "@fluentui-react-native/theme": "0.11.5",
42
+ "@fluentui-react-native/theme-tokens": "0.27.5",
43
+ "@fluentui-react-native/theme-types": "0.39.5",
44
+ "@fluentui-react-native/theming-utils": "0.26.5",
44
45
  "tslib": "^2.3.1"
45
46
  },
46
47
  "devDependencies": {
@@ -1,3 +1,11 @@
1
- export * from './fallbackOfficeModule';
2
- export * from './getThemingModule';
3
- export * from './officeThemingModule';
1
+ export { fallbackOfficeModule, fallbackGetPalette } from './fallbackOfficeModule';
2
+ export { getThemingModule } from './getThemingModule';
3
+ export type {
4
+ PlatformDefaultsChangedArgs,
5
+ PlatformDefaultsChangedCallback,
6
+ CxxException,
7
+ NativeColorRamps,
8
+ NativeColorNames,
9
+ OfficeThemingModule,
10
+ IEventEmitter,
11
+ } from './officeThemingModule';
@@ -2,6 +2,9 @@ import type { NativeModule, ColorValue } from 'react-native';
2
2
 
3
3
  import type { OfficePalette, Typography } from '@fluentui-react-native/theme-types';
4
4
 
5
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
6
+ type ObjectBase = {};
7
+
5
8
  export type PlatformDefaultsChangedArgs = { hostThemeSetting: string };
6
9
  export type PlatformDefaultsChangedCallback = (args?: PlatformDefaultsChangedArgs) => void;
7
10
 
@@ -27,7 +30,7 @@ export interface NativeColorNames {
27
30
  export interface OfficeThemingModule extends NativeModule {
28
31
  getPalette(palette?: string): OfficePalette | CxxException;
29
32
  getConstants(): {
30
- typography: object; // eslint-disable-line @typescript-eslint/ban-types
33
+ typography: ObjectBase; // TODO: figure out why this is not a real type
31
34
  fluentTypography: Typography;
32
35
  ramps: NativeColorRamps;
33
36
  rampNames: NativeColorNames;
@@ -10,6 +10,7 @@ function processAliasTokens(aliasTokens: any) {
10
10
  const entry = aliasTokens[key][innerKey];
11
11
  if (typeof entry === 'string' && entry.includes('PlatformColor')) {
12
12
  const color = entry.substring(14, entry.length - 1);
13
+ // eslint-disable-next-line @react-native/platform-colors
13
14
  aliasTokens[key][innerKey] = PlatformColor(color);
14
15
  }
15
16
  }
package/just.config.js DELETED
@@ -1,3 +0,0 @@
1
- const { preset } = require('@fluentui-react-native/scripts');
2
-
3
- preset();