@uifabricshared/theming-react-native 0.20.20 → 0.21.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +97 -3
  2. package/README.md +1 -1
  3. package/etc/theming-react-native.api.md +12 -11
  4. package/lib/BaselinePlatformDefaults.d.ts +1 -1
  5. package/lib/BaselinePlatformDefaults.js +2 -2
  6. package/lib/BaselinePlatformDefaults.js.map +1 -1
  7. package/lib/Global.d.ts +1 -1
  8. package/lib/Global.js +11 -11
  9. package/lib/Global.js.map +1 -1
  10. package/lib/NativeModule/ThemingModule.d.ts +2 -2
  11. package/lib/NativeModule/ThemingModule.js +1 -1
  12. package/lib/NativeModule/ThemingModule.types.d.ts +13 -13
  13. package/lib/NativeModule/ThemingModule.types.js +1 -1
  14. package/lib/NativeModule/ThemingModuleHelpers.d.ts +8 -3
  15. package/lib/NativeModule/ThemingModuleHelpers.d.ts.map +1 -1
  16. package/lib/NativeModule/ThemingModuleHelpers.js +36 -36
  17. package/lib/NativeModule/ThemingModuleHelpers.js.map +1 -1
  18. package/lib/NativeModule/getHostSettings.d.ts +1 -1
  19. package/lib/NativeModule/getHostSettings.js +2 -2
  20. package/lib/NativeModule/getHostSettings.js.map +1 -1
  21. package/lib/NativeModule/index.d.ts +1 -1
  22. package/lib/NativeModule/index.js +1 -1
  23. package/lib/Theme.types.d.ts +1 -1
  24. package/lib/Theme.types.js +1 -1
  25. package/lib/ThemeContext.d.ts +1 -1
  26. package/lib/ThemeContext.js +1 -1
  27. package/lib/ThemeLayer.d.ts +25 -24
  28. package/lib/ThemeLayer.d.ts.map +1 -1
  29. package/lib/ThemeLayer.js +42 -39
  30. package/lib/ThemeLayer.js.map +1 -1
  31. package/lib/ThemeProvider.d.ts +1 -1
  32. package/lib/ThemeProvider.js +21 -20
  33. package/lib/ThemeProvider.js.map +1 -1
  34. package/lib/ThemeProvider.types.d.ts +3 -3
  35. package/lib/ThemeProvider.types.js +1 -1
  36. package/lib/index.d.ts +1 -1
  37. package/lib/index.js +1 -1
  38. package/lib/platform/PlatformDefaults.d.ts +8 -2
  39. package/lib/platform/PlatformDefaults.d.ts.map +1 -1
  40. package/lib/platform/PlatformDefaults.js +2 -2
  41. package/lib/platform/PlatformDefaults.js.map +1 -1
  42. package/lib/platform/PlatformDefaults.native.d.ts +8 -2
  43. package/lib/platform/PlatformDefaults.native.d.ts.map +1 -1
  44. package/lib/platform/PlatformDefaults.native.js +6 -6
  45. package/lib/platform/PlatformDefaults.native.js.map +1 -1
  46. package/lib/platform/index.d.ts +1 -1
  47. package/lib/platform/index.js +1 -1
  48. package/lib-commonjs/BaselinePlatformDefaults.d.ts +1 -1
  49. package/lib-commonjs/BaselinePlatformDefaults.js +6 -7
  50. package/lib-commonjs/BaselinePlatformDefaults.js.map +1 -1
  51. package/lib-commonjs/Global.d.ts +1 -1
  52. package/lib-commonjs/Global.js +21 -22
  53. package/lib-commonjs/Global.js.map +1 -1
  54. package/lib-commonjs/NativeModule/ThemingModule.d.ts +2 -2
  55. package/lib-commonjs/NativeModule/ThemingModule.js +5 -5
  56. package/lib-commonjs/NativeModule/ThemingModule.types.d.ts +13 -13
  57. package/lib-commonjs/NativeModule/ThemingModule.types.js +3 -3
  58. package/lib-commonjs/NativeModule/ThemingModuleHelpers.d.ts +8 -3
  59. package/lib-commonjs/NativeModule/ThemingModuleHelpers.js +46 -44
  60. package/lib-commonjs/NativeModule/ThemingModuleHelpers.js.map +1 -1
  61. package/lib-commonjs/NativeModule/getHostSettings.d.ts +1 -1
  62. package/lib-commonjs/NativeModule/getHostSettings.js +5 -6
  63. package/lib-commonjs/NativeModule/getHostSettings.js.map +1 -1
  64. package/lib-commonjs/NativeModule/index.d.ts +1 -1
  65. package/lib-commonjs/NativeModule/index.js +17 -7
  66. package/lib-commonjs/NativeModule/index.js.map +1 -1
  67. package/lib-commonjs/Theme.types.d.ts +1 -1
  68. package/lib-commonjs/Theme.types.js +3 -3
  69. package/lib-commonjs/ThemeContext.d.ts +1 -1
  70. package/lib-commonjs/ThemeContext.js +67 -30
  71. package/lib-commonjs/ThemeContext.js.map +1 -1
  72. package/lib-commonjs/ThemeLayer.d.ts +25 -24
  73. package/lib-commonjs/ThemeLayer.d.ts.map +1 -1
  74. package/lib-commonjs/ThemeLayer.js +97 -67
  75. package/lib-commonjs/ThemeLayer.js.map +1 -1
  76. package/lib-commonjs/ThemeProvider.d.ts +1 -1
  77. package/lib-commonjs/ThemeProvider.js +79 -49
  78. package/lib-commonjs/ThemeProvider.js.map +1 -1
  79. package/lib-commonjs/ThemeProvider.types.d.ts +3 -3
  80. package/lib-commonjs/ThemeProvider.types.js +3 -3
  81. package/lib-commonjs/index.d.ts +1 -1
  82. package/lib-commonjs/index.js +108 -24
  83. package/lib-commonjs/index.js.map +1 -1
  84. package/lib-commonjs/platform/PlatformDefaults.d.ts +8 -2
  85. package/lib-commonjs/platform/PlatformDefaults.js +11 -9
  86. package/lib-commonjs/platform/PlatformDefaults.js.map +1 -1
  87. package/lib-commonjs/platform/PlatformDefaults.native.d.ts +8 -2
  88. package/lib-commonjs/platform/PlatformDefaults.native.js +15 -13
  89. package/lib-commonjs/platform/PlatformDefaults.native.js.map +1 -1
  90. package/lib-commonjs/platform/index.d.ts +1 -1
  91. package/lib-commonjs/platform/index.js +29 -18
  92. package/package.json +58 -62
  93. package/src/ThemeLayer.tsx +3 -2
  94. package/babel.config.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Change Log - @uifabricshared/theming-react-native
2
2
 
3
+ ## 0.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d7adbdd: # Migration from Beachball to Changesets
8
+
9
+ This changeset represents the migration from Beachball to Changesets for version management and consolidates all changes from 440+ beachball change files that were in the `change/` directory.
10
+
11
+ All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
12
+
13
+ ## What Changed
14
+
15
+ Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
16
+
17
+ - ❌ 440+ beachball change files from `change/` directory
18
+ - ❌ `beachball` package dependency
19
+ - ❌ Beachball scripts from `package.json`
20
+ - ❌ `beachball.config.js` configuration file
21
+ - ❌ Beachball publish steps from Azure Pipelines
22
+
23
+ ## New Workflow
24
+
25
+ ✅ **Create changes**: Run `yarn changeset` to document changes
26
+ ✅ **Version bump PRs**: Automatically created by GitHub Actions
27
+ ✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
28
+ ✅ **Validation**: CI validates changesets and blocks major version bumps
29
+
30
+ For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
31
+
32
+ ### Patch Changes
33
+
34
+ - d1d8c26: We were pinning @types/react and react-native-macos via resolutions. This fixes that which uncovered a bunch of type inconsistencies that needed to be addressed.
35
+ - Updated dependencies [d7adbdd]
36
+ - Updated dependencies [d1d8c26]
37
+ - @fluentui-react-native/default-theme@0.27.0
38
+ - @fluentui-react-native/win32-theme@0.39.0
39
+ - @uifabricshared/theme-registry@0.13.0
40
+ - @uifabricshared/theming-ramp@0.21.0
41
+
3
42
  <!-- This log was last generated on Tue, 05 Aug 2025 18:50:40 GMT and should not be manually modified. -->
4
43
 
5
44
  <!-- Start content -->
@@ -1444,7 +1483,7 @@ Fri, 24 Apr 2020 17:13:37 GMT
1444
1483
 
1445
1484
  ### Patches
1446
1485
 
1447
- - Dont import * from react-native (acoates@microsoft.com)
1486
+ - Dont import \* from react-native (acoates@microsoft.com)
1448
1487
 
1449
1488
  ## 0.7.0
1450
1489
 
@@ -1487,170 +1526,225 @@ Thu, 16 Apr 2020 23:57:38 GMT
1487
1526
  - publish with correct main/module references (jasonmo@microsoft.com)
1488
1527
 
1489
1528
  ## 0.5.0
1529
+
1490
1530
  Mon, 13 Apr 2020 22:48:23 GMT
1491
1531
 
1492
1532
  ### Minor changes
1493
1533
 
1494
1534
  - Add variants and fluent typeramp to text (krsiler@microsoft.com)
1535
+
1495
1536
  ## 0.4.10
1537
+
1496
1538
  Thu, 09 Apr 2020 20:23:08 GMT
1497
1539
 
1498
1540
  ### Patches
1499
1541
 
1500
1542
  - 🐛 Make ThemingModule not crash on Mac (email not defined)
1543
+
1501
1544
  ## 0.4.9
1545
+
1502
1546
  Thu, 09 Apr 2020 18:39:15 GMT
1503
1547
 
1504
1548
  ### Patches
1505
1549
 
1506
1550
  - merge conflicts (ppatboyd@outlook.com)
1551
+
1507
1552
  ## 0.4.7
1553
+
1508
1554
  Fri, 03 Apr 2020 20:40:51 GMT
1509
1555
 
1510
1556
  ### Patches
1511
1557
 
1512
1558
  - switch the bin name from just-script to fluent-scripts to disambiguate names (jasonmo@microsoft.com)
1559
+
1513
1560
  ## 0.4.6
1561
+
1514
1562
  Tue, 31 Mar 2020 18:01:09 GMT
1515
1563
 
1516
1564
  ### Patches
1517
1565
 
1518
1566
  - Merge branch 'sammy/checkboxV1' of https://github.com/samuelfreiberg/fluentui-react-native into sammy/checkboxV1 (safreibe@microsoft.com)
1567
+
1519
1568
  ## 0.4.5
1569
+
1520
1570
  Mon, 30 Mar 2020 16:27:00 GMT
1521
1571
 
1522
1572
  ### Patches
1523
1573
 
1524
1574
  - Update main attribute to specify TypeScript index file. (kinhln@microsoft.com)
1575
+
1525
1576
  ## 0.4.3
1577
+
1526
1578
  Wed, 11 Mar 2020 17:57:52 GMT
1527
1579
 
1528
1580
  ### Patches
1529
1581
 
1530
1582
  - 🎨 Add the ability to respond to host theme change (adrum@microsoft.com)
1583
+
1531
1584
  ## 0.4.2
1585
+
1532
1586
  Wed, 11 Mar 2020 00:02:33 GMT
1533
1587
 
1534
1588
  ### Patches
1535
1589
 
1536
1590
  - Add host to theme object typing (adrum@microsoft.com)
1591
+
1537
1592
  ## 0.4.0
1593
+
1538
1594
  Fri, 06 Mar 2020 19:46:35 GMT
1539
1595
 
1540
1596
  ### Minor changes
1541
1597
 
1542
1598
  - 🎨 Create host settings in theme object for direct access to native colors (adrum@microsoft.com)
1599
+
1543
1600
  ## 0.3.4
1601
+
1544
1602
  Fri, 28 Feb 2020 00:04:18 GMT
1545
1603
 
1546
1604
  ### Patches
1547
1605
 
1548
1606
  - fix builds with moved packages (jasonmo@microsoft.com)
1607
+
1549
1608
  ## 0.3.3
1609
+
1550
1610
  Thu, 20 Feb 2020 01:36:35 GMT
1551
1611
 
1552
1612
  ### Patches
1553
1613
 
1554
1614
  - restructure directories in project (jasonmo@microsoft.com)
1615
+
1555
1616
  ## 0.3.2
1617
+
1556
1618
  Fri, 07 Feb 2020 00:29:25 GMT
1557
1619
 
1558
1620
  ### Patches
1559
1621
 
1560
1622
  - clean up just tasks and remove unnecessary webpack configs (jasonmo@microsoft.com)
1623
+
1561
1624
  ## 0.3.1
1625
+
1562
1626
  Thu, 06 Feb 2020 01:00:13 GMT
1563
1627
 
1564
1628
  ### Patches
1565
1629
 
1566
1630
  - Get RNTester test app launch for uifabric package. (kinhln@microsoft.com)
1567
1631
  - clean up just tasks and remove unnecessary webpack configs (jasonmo@microsoft.com)
1632
+
1568
1633
  ## 0.3.0
1634
+
1569
1635
  Fri, 13 Dec 2019 21:50:31 GMT
1570
1636
 
1571
1637
  ### Minor changes
1572
1638
 
1573
1639
  - ♻ rename theme.settings -> theme.components for better alignment (adrum@microsoft.com)
1640
+
1574
1641
  ## 0.2.5
1642
+
1575
1643
  Fri, 06 Dec 2019 01:37:51 GMT
1576
1644
 
1577
1645
  ### Patches
1578
1646
 
1579
- - 🐛 Fix web/native bundles to use __DEV__ as appropriate (adrum@microsoft.com)
1647
+ - 🐛 Fix web/native bundles to use **DEV** as appropriate (adrum@microsoft.com)
1648
+
1580
1649
  ## 0.2.4
1650
+
1581
1651
  Thu, 05 Dec 2019 23:11:01 GMT
1582
1652
 
1583
1653
  ### Patches
1584
1654
 
1585
- - fix error on web where __DEV__ is undefined (jasonmo360@gmail.com)
1655
+ - fix error on web where **DEV** is undefined (jasonmo360@gmail.com)
1656
+
1586
1657
  ## 0.2.3
1658
+
1587
1659
  Thu, 05 Dec 2019 01:37:57 GMT
1588
1660
 
1589
1661
  ### Patches
1590
1662
 
1591
1663
  - 🐛 DEV bundles break theming module (adrum@microsoft.com)
1664
+
1592
1665
  ## 0.2.2
1666
+
1593
1667
  Wed, 04 Dec 2019 21:00:39 GMT
1594
1668
 
1595
1669
  ### Patches
1596
1670
 
1597
1671
  - ✅ Add better jest mocks for consuming packages (adrum@microsoft.com)
1672
+
1598
1673
  ## 0.2.1
1674
+
1599
1675
  Fri, 22 Nov 2019 23:33:23 GMT
1600
1676
 
1601
1677
  ### Patches
1602
1678
 
1603
1679
  - 🐛 Fix Theming Module web debugging/debug bundles (adrum@microsoft.com)
1604
1680
  - ♻ rename props & typings (adrum@microsoft.com)
1681
+
1605
1682
  ## 0.2.0
1683
+
1606
1684
  Wed, 20 Nov 2019 19:37:06 GMT
1607
1685
 
1608
1686
  ### Minor changes
1609
1687
 
1610
1688
  - 📦 fix package entrypoints to distinguish CJS/ES6 (adrum@microsoft.com)
1689
+
1611
1690
  ## 0.1.9
1691
+
1612
1692
  Wed, 20 Nov 2019 00:19:04 GMT
1613
1693
 
1614
1694
  ### Patches
1615
1695
 
1616
1696
  - Fix Web Debug for ThemingModule consumers (adrum@microsoft.com)
1697
+
1617
1698
  ## 0.1.8
1699
+
1618
1700
  Fri, 15 Nov 2019 19:30:39 GMT
1619
1701
 
1620
1702
  ### Patches
1621
1703
 
1622
1704
  - Add Theming Module, Theme Provider, and Theme Context hooks (adrum@microsoft.com)
1705
+
1623
1706
  ## 0.1.7
1707
+
1624
1708
  Fri, 01 Nov 2019 16:51:54 GMT
1625
1709
 
1626
1710
  ### Patches
1627
1711
 
1628
1712
  - fix version references for packages (jasonmo@microsoft.com)
1713
+
1629
1714
  ## 0.1.6
1715
+
1630
1716
  Tue, 15 Oct 2019 02:11:41 GMT
1631
1717
 
1632
1718
  ### Patches
1633
1719
 
1634
1720
  - api-extractor setup (taamireh@microsoft.com)
1721
+
1635
1722
  ## 0.1.5
1723
+
1636
1724
  Wed, 25 Sep 2019 23:15:41 GMT
1637
1725
 
1638
1726
  ### Patches
1639
1727
 
1640
1728
  - Get new compose infrastructure working (jasonmo@microsoft.com)
1729
+
1641
1730
  ## 0.1.4
1731
+
1642
1732
  Thu, 19 Sep 2019 23:21:48 GMT
1643
1733
 
1644
1734
  ### Patches
1645
1735
 
1646
1736
  - force publish (taamireh@microsoft.com)
1737
+
1647
1738
  ## 0.1.3
1739
+
1648
1740
  Thu, 19 Sep 2019 00:21:30 GMT
1649
1741
 
1650
1742
  ### Patches
1651
1743
 
1652
1744
  - change scope names (taamireh@microsoft.com)
1745
+
1653
1746
  ## 0.1.2
1747
+
1654
1748
  Sat, 14 Sep 2019 01:56:36 GMT
1655
1749
 
1656
1750
  ### Patches
package/README.md CHANGED
@@ -64,7 +64,7 @@ import * as React from 'react';
64
64
  import { ThemeContext, ITheme } from '@uifabricshared/theming-react-native';
65
65
 
66
66
  export class OtherComponent extends React.Component {
67
- public render(): JSX.Element {
67
+ public render(): React.JSX.Element {
68
68
  return (
69
69
  <ThemeContext.Consumer>
70
70
  {(theme: ITheme) => {
@@ -3,7 +3,6 @@
3
3
  > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
4
 
5
5
  ```ts
6
-
7
6
  import { IPartialTheme } from '@uifabricshared/theming-ramp';
8
7
  import { IProcessTheme } from '@uifabricshared/theme-registry';
9
8
  import { ITheme } from '@uifabricshared/theming-ramp';
@@ -30,28 +29,30 @@ export type INativeThemeDefinition = IPartialTheme;
30
29
 
31
30
  // @public
32
31
  export interface IThemeLayerProps {
33
- children: (theme: INativeTheme) => JSX.Element | null;
34
- themeName?: string;
32
+ children: (theme: INativeTheme) => React.JSX.Element | null;
33
+ themeName?: string;
35
34
  }
36
35
 
37
36
  // @public
38
37
  export function removeThemeRegistryListener(listener: IThemeEventListener): void;
39
38
 
40
39
  // @public
41
- export function setTheme(definition: INativeThemeDefinition | IProcessTheme<INativeTheme, INativeThemeDefinition>, name?: string, parent?: string): void;
40
+ export function setTheme(
41
+ definition: INativeThemeDefinition | IProcessTheme<INativeTheme, INativeThemeDefinition>,
42
+ name?: string,
43
+ parent?: string,
44
+ ): void;
42
45
 
43
46
  // @public (undocumented)
44
- export const ThemeContext: React.Context<import("@uifabricshared/theming-ramp").ITheme>;
47
+ export const ThemeContext: React.Context<import('@uifabricshared/theming-ramp').ITheme>;
45
48
 
46
49
  // @public
47
50
  export class ThemeLayer extends React.Component<IThemeLayerProps> {
48
- componentWillUnmount(): void;
49
- onInvalidate: IThemeEventListener['onInvalidate'];
50
- // (undocumented)
51
- render(): JSX.Element;
51
+ componentWillUnmount(): void;
52
+ onInvalidate: IThemeEventListener['onInvalidate'];
53
+ // (undocumented)
54
+ render(): React.JSX.Element;
52
55
  }
53
56
 
54
-
55
57
  // (No @packageDocumentation comment for this package)
56
-
57
58
  ```
@@ -3,4 +3,4 @@ import type { ITheme } from '@uifabricshared/theming-ramp';
3
3
  * @deprecated
4
4
  */
5
5
  export declare function getBaselinePlatformTheme(): ITheme;
6
- //# sourceMappingURL=BaselinePlatformDefaults.d.ts.map
6
+ //# sourceMappingURL=BaselinePlatformDefaults.d.ts.map
@@ -3,6 +3,6 @@ import { defaultFluentTheme } from '@fluentui-react-native/default-theme';
3
3
  * @deprecated
4
4
  */
5
5
  export function getBaselinePlatformTheme() {
6
- return defaultFluentTheme;
6
+ return defaultFluentTheme;
7
7
  }
8
- //# sourceMappingURL=BaselinePlatformDefaults.js.map
8
+ //# sourceMappingURL=BaselinePlatformDefaults.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E;;GAEG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
1
+ {"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E;;GAEG;AACH,MAAM,UAAU,wBAAwB,GAAW;IACjD,OAAO,kBAAkB,CAAC;AAAA,CAC3B"}
package/lib/Global.d.ts CHANGED
@@ -53,4 +53,4 @@ export declare function getTheme(name?: string): ITheme;
53
53
  * @deprecated
54
54
  */
55
55
  export declare function augmentPlatformTheme(definition: IPartialTheme): void;
56
- //# sourceMappingURL=Global.d.ts.map
56
+ //# sourceMappingURL=Global.d.ts.map
package/lib/Global.js CHANGED
@@ -6,10 +6,10 @@ let _registry;
6
6
  * @deprecated
7
7
  */
8
8
  export function getThemeRegistry() {
9
- if (!_registry) {
10
- _registry = createPlatformThemeRegistry();
11
- }
12
- return _registry;
9
+ if (!_registry) {
10
+ _registry = createPlatformThemeRegistry();
11
+ }
12
+ return _registry;
13
13
  }
14
14
  /**
15
15
  * Set the global theme registry.
@@ -23,7 +23,7 @@ export function getThemeRegistry() {
23
23
  * @deprecated
24
24
  */
25
25
  export function setThemeRegistry(registry) {
26
- _registry = registry;
26
+ _registry = registry;
27
27
  }
28
28
  /**
29
29
  * Create or update a theme definition
@@ -33,7 +33,7 @@ export function setThemeRegistry(registry) {
33
33
  * @deprecated
34
34
  */
35
35
  export function setTheme(definition, name, parent) {
36
- return getThemeRegistry().setTheme(definition, name, parent);
36
+ return getThemeRegistry().setTheme(definition, name, parent);
37
37
  }
38
38
  /**
39
39
  * Register a theme event listener
@@ -41,7 +41,7 @@ export function setTheme(definition, name, parent) {
41
41
  * @deprecated
42
42
  */
43
43
  export function addThemeRegistryListener(listener) {
44
- return getThemeRegistry().addEventListener(listener);
44
+ return getThemeRegistry().addEventListener(listener);
45
45
  }
46
46
  /**
47
47
  * Unregister a theme event listener
@@ -49,7 +49,7 @@ export function addThemeRegistryListener(listener) {
49
49
  * @deprecated
50
50
  */
51
51
  export function removeThemeRegistryListener(listener) {
52
- return getThemeRegistry().removeEventListener(listener);
52
+ return getThemeRegistry().removeEventListener(listener);
53
53
  }
54
54
  /**
55
55
  * Get a theme by name
@@ -57,7 +57,7 @@ export function removeThemeRegistryListener(listener) {
57
57
  * @deprecated
58
58
  */
59
59
  export function getTheme(name) {
60
- return getThemeRegistry().getTheme(name);
60
+ return getThemeRegistry().getTheme(name);
61
61
  }
62
62
  /**
63
63
  * This will update the platform theme. This is primarily exposed for clients to add custom lookup values to palettes or to
@@ -68,6 +68,6 @@ export function getTheme(name) {
68
68
  * @deprecated
69
69
  */
70
70
  export function augmentPlatformTheme(definition) {
71
- getThemeRegistry().updatePlatformDefaults(definition);
71
+ getThemeRegistry().updatePlatformDefaults(definition);
72
72
  }
73
- //# sourceMappingURL=Global.js.map
73
+ //# sourceMappingURL=Global.js.map
package/lib/Global.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Global.js","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAGzD,IAAI,SAAwB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,UAAU,gBAAgB;IAC9B,IAAI,CAAC,SAAS,EAAE;QACd,SAAS,GAAG,2BAA2B,EAAE,CAAC;KAC3C;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAuB;IACtD,SAAS,GAAG,QAAQ,CAAC;AACvB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,UAAgE,EAAE,IAAa,EAAE,MAAe;IACvH,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC/D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,QAA6B;IACpE,OAAO,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AACvD,CAAC;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AC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAAA,CACzD;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAa,EAAU;IAC9C,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAAA,CAC1C;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAyB,EAAQ;IACpE,gBAAgB,EAAE,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;AAAA,CACvD"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * @deprecated
3
3
  */
4
- export declare const ThemingModuleHelper: import("./ThemingModule.types").IThemingModuleHelper;
5
- //# sourceMappingURL=ThemingModule.d.ts.map
4
+ export declare const ThemingModuleHelper: import('./ThemingModule.types').IThemingModuleHelper;
5
+ //# sourceMappingURL=ThemingModule.d.ts.map
@@ -4,4 +4,4 @@ import { createThemingModuleHelper } from './ThemingModuleHelpers';
4
4
  * @deprecated
5
5
  */
6
6
  export const ThemingModuleHelper = createThemingModuleHelper(...getThemingModule());
7
- //# sourceMappingURL=ThemingModule.js.map
7
+ //# sourceMappingURL=ThemingModule.js.map
@@ -5,7 +5,7 @@ import type { ITheme, IPartialTheme, OfficePalette as IOfficePalette } from '@ui
5
5
  * @deprecated
6
6
  */
7
7
  export interface IEventEmitter {
8
- addListener: (event: string, PlatformDefaultsChangedCallback: any) => void;
8
+ addListener: (event: string, PlatformDefaultsChangedCallback: any) => void;
9
9
  }
10
10
  /**
11
11
  * @deprecated
@@ -15,21 +15,21 @@ export type IPlatformThemeDefinition = IPartialTheme | IProcessTheme<ITheme, IPa
15
15
  * @deprecated
16
16
  */
17
17
  export interface IThemingModuleHelper {
18
- /**
19
- * Gets a complete platform theme suitable for using with a Theme Registry
20
- */
21
- getPlatformDefaults: (themeId?: string) => ITheme;
22
- /**
23
- * Gets a theme definition to register with a Theme Registry & use with the theme context to create a subtree with the
24
- * look & feel of a platform theme.
25
- */
26
- getPlatformThemeDefinition: (themeId?: string) => IPlatformThemeDefinition;
27
- addListener: (listener: PlatformDefaultsChangedCallback) => void;
18
+ /**
19
+ * Gets a complete platform theme suitable for using with a Theme Registry
20
+ */
21
+ getPlatformDefaults: (themeId?: string) => ITheme;
22
+ /**
23
+ * Gets a theme definition to register with a Theme Registry & use with the theme context to create a subtree with the
24
+ * look & feel of a platform theme.
25
+ */
26
+ getPlatformThemeDefinition: (themeId?: string) => IPlatformThemeDefinition;
27
+ addListener: (listener: PlatformDefaultsChangedCallback) => void;
28
28
  }
29
29
  /**
30
30
  * @deprecated
31
31
  */
32
32
  export type IHostSettingsWin32 = {
33
- palette: IOfficePalette;
33
+ palette: IOfficePalette;
34
34
  };
35
- //# sourceMappingURL=ThemingModule.types.d.ts.map
35
+ //# sourceMappingURL=ThemingModule.types.d.ts.map
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=ThemingModule.types.js.map
2
+ //# sourceMappingURL=ThemingModule.types.js.map
@@ -2,15 +2,20 @@ import type { OfficeThemingModule } from '@fluentui-react-native/win32-theme';
2
2
  import type { OfficePalette } from '@uifabricshared/theming-ramp';
3
3
  import type { IThemingModuleHelper, IEventEmitter } from './ThemingModule.types';
4
4
  type PaletteCache = {
5
- [key: string]: OfficePalette;
5
+ [key: string]: OfficePalette;
6
6
  };
7
7
  /**
8
8
  * @deprecated
9
9
  */
10
- export declare function translateOfficeTheme(module: OfficeThemingModule, cache: PaletteCache, id?: string, themeName?: string): import("@uifabricshared/theming-ramp").IPartialTheme;
10
+ export declare function translateOfficeTheme(
11
+ module: OfficeThemingModule,
12
+ cache: PaletteCache,
13
+ id?: string,
14
+ themeName?: string,
15
+ ): import('@fluentui-react-native/theme-types').PartialTheme;
11
16
  /**
12
17
  * @deprecated
13
18
  */
14
19
  export declare function createThemingModuleHelper(themingModule?: OfficeThemingModule, emitter?: IEventEmitter): IThemingModuleHelper;
15
20
  export {};
16
- //# sourceMappingURL=ThemingModuleHelpers.d.ts.map
21
+ //# sourceMappingURL=ThemingModuleHelpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemingModuleHelpers.d.ts","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAU,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGjF,KAAK,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,CAAC;AAyBrD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,wDAGrH;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,CAAC,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,oBAAoB,CAuB5H"}
1
+ {"version":3,"file":"ThemingModuleHelpers.d.ts","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAU,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGjF,KAAK,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,CAAC;AAyBrD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,6DAGrH;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,CAAC,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,oBAAoB,CAuB5H"}
@@ -2,56 +2,56 @@ import { createPartialOfficeTheme } from '@fluentui-react-native/win32-theme';
2
2
  import { resolvePartialTheme } from '@uifabricshared/theming-ramp';
3
3
  import { getBaselinePlatformTheme } from '../BaselinePlatformDefaults';
4
4
  function isException(palette) {
5
- return palette.message !== undefined;
5
+ return palette.message !== undefined;
6
6
  }
7
7
  function updatePaletteInCache(module, cache, palette) {
8
- const paletteValue = module.getPalette(palette);
9
- if (!isException(paletteValue)) {
10
- cache[palette] = paletteValue;
11
- }
8
+ const paletteValue = module.getPalette(palette);
9
+ if (!isException(paletteValue)) {
10
+ cache[palette] = paletteValue;
11
+ }
12
12
  }
13
13
  const getPaletteCacheKey = (palette) => {
14
- return palette || 'WhiteColors';
14
+ return palette || 'WhiteColors';
15
15
  };
16
16
  function ensurePalette(module, paletteCache, palette) {
17
- const key = getPaletteCacheKey(palette);
18
- if (!paletteCache[key]) {
19
- updatePaletteInCache(module, paletteCache, key);
20
- }
21
- return paletteCache[key] || {};
17
+ const key = getPaletteCacheKey(palette);
18
+ if (!paletteCache[key]) {
19
+ updatePaletteInCache(module, paletteCache, key);
20
+ }
21
+ return paletteCache[key] || {};
22
22
  }
23
23
  /**
24
24
  * @deprecated
25
25
  */
26
26
  export function translateOfficeTheme(module, cache, id, themeName) {
27
- const palette = ensurePalette(module, cache, id);
28
- return createPartialOfficeTheme(module, themeName, palette);
27
+ const palette = ensurePalette(module, cache, id);
28
+ return createPartialOfficeTheme(module, themeName, palette);
29
29
  }
30
30
  /**
31
31
  * @deprecated
32
32
  */
33
33
  export function createThemingModuleHelper(themingModule, emitter) {
34
- themingModule || console.error('No NativeModule for Theming found');
35
- const paletteCache = {};
36
- let _hostTheme = themingModule.getConstants().initialHostThemeSetting || '';
37
- emitter &&
38
- emitter.addListener('onPlatformDefaultsChanged', (args) => {
39
- _hostTheme = (args && args.hostThemeSetting) || _hostTheme;
40
- Object.keys(paletteCache).forEach((key) => delete paletteCache[key]);
41
- });
42
- return {
43
- getPlatformDefaults: (themeId) => {
44
- return resolvePartialTheme(getBaselinePlatformTheme(), translateOfficeTheme(themingModule, paletteCache, themeId, _hostTheme));
45
- },
46
- getPlatformThemeDefinition: (themeId) => {
47
- return (_parent) => {
48
- updatePaletteInCache(themingModule, paletteCache, themeId);
49
- return translateOfficeTheme(themingModule, paletteCache, themeId);
50
- };
51
- },
52
- addListener: (callback) => {
53
- emitter && emitter.addListener('onPlatformDefaultsChanged', callback);
54
- },
55
- };
34
+ themingModule || console.error('No NativeModule for Theming found');
35
+ const paletteCache = {};
36
+ let _hostTheme = themingModule.getConstants().initialHostThemeSetting || '';
37
+ emitter &&
38
+ emitter.addListener('onPlatformDefaultsChanged', (args) => {
39
+ _hostTheme = (args && args.hostThemeSetting) || _hostTheme;
40
+ Object.keys(paletteCache).forEach((key) => delete paletteCache[key]);
41
+ });
42
+ return {
43
+ getPlatformDefaults: (themeId) => {
44
+ return resolvePartialTheme(getBaselinePlatformTheme(), translateOfficeTheme(themingModule, paletteCache, themeId, _hostTheme));
45
+ },
46
+ getPlatformThemeDefinition: (themeId) => {
47
+ return (_parent) => {
48
+ updatePaletteInCache(themingModule, paletteCache, themeId);
49
+ return translateOfficeTheme(themingModule, paletteCache, themeId);
50
+ };
51
+ },
52
+ addListener: (callback) => {
53
+ emitter && emitter.addListener('onPlatformDefaultsChanged', callback);
54
+ },
55
+ };
56
56
  }
57
- //# sourceMappingURL=ThemingModuleHelpers.js.map
57
+ //# sourceMappingURL=ThemingModuleHelpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemingModuleHelpers.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EA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ACtC,IAAI,UAAU,GAAG,aAAa,CAAC,YAAY,EAAE,CAAC,uBAAuB,IAAI,EAAE,CAAC;IAC5E,OAAO;QACL,OAAO,CAAC,WAAW,CAAC,2BAA2B,EAAE,CAAC,IAAiC,EAAE,EAAE,CAAC;YACtF,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,UAAU,CAAC;YAC3D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;QAAA,CAC9E,CAAC,CAAC;IACL,OAAO;QACL,mBAAmB,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC;YACzC,OAAO,mBAAmB,CAAC,wBAAwB,EAAE,EAAE,oBAAoB,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;QAAA,CAChI;QACD,0BAA0B,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC;YAChD,OAAO,CAAC,OAAe,EAAE,EAAE,CAAC;gBAC1B,oBAAoB,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;gBAC3D,OAAO,oBAAoB,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;YAAA,CACnE,CAAC;QAAA,CACH;QACD,WAAW,EAAE,CAAC,QAAyC,EAAE,EAAE,CAAC;YAC1D,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,2BAA2B,EAAE,QAAQ,CAAC,CAAC;QAAA,CACvE;KACF,CAAC;AAAA,CACH"}
@@ -3,4 +3,4 @@ import type { ITheme } from '../Theme.types';
3
3
  * @deprecated
4
4
  */
5
5
  export declare function getHostSettingsWin32(theme: ITheme): ITheme['host'] | undefined;
6
- //# sourceMappingURL=getHostSettings.d.ts.map
6
+ //# sourceMappingURL=getHostSettings.d.ts.map
@@ -2,6 +2,6 @@
2
2
  * @deprecated
3
3
  */
4
4
  export function getHostSettingsWin32(theme) {
5
- return theme.host?.palette ? theme.host : undefined;
5
+ return theme.host?.palette ? theme.host : undefined;
6
6
  }
7
- //# sourceMappingURL=getHostSettings.js.map
7
+ //# sourceMappingURL=getHostSettings.js.map