@fluentui-react-native/separator 0.18.17 → 0.19.1

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.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # Change Log - @fluentui-react-native/separator
2
2
 
3
+ ## 0.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0d6e9c1: chore: migrate to `oxfmt`
8
+ - ac6e7af: Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering
9
+ - Updated dependencies [0d6e9c1]
10
+ - Updated dependencies [ac6e7af]
11
+ - @fluentui-react-native/use-styling@0.14.1
12
+ - @fluentui-react-native/theme-tokens@0.28.1
13
+ - @fluentui-react-native/framework@0.15.1
14
+
15
+ ## 0.19.0
16
+
17
+ ### Minor Changes
18
+
19
+ - d7adbdd: # Migration from Beachball to Changesets
20
+
21
+ 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.
22
+
23
+ All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
24
+
25
+ ## What Changed
26
+
27
+ Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
28
+
29
+ - ❌ 440+ beachball change files from `change/` directory
30
+ - ❌ `beachball` package dependency
31
+ - ❌ Beachball scripts from `package.json`
32
+ - ❌ `beachball.config.js` configuration file
33
+ - ❌ Beachball publish steps from Azure Pipelines
34
+
35
+ ## New Workflow
36
+
37
+ ✅ **Create changes**: Run `yarn changeset` to document changes
38
+ ✅ **Version bump PRs**: Automatically created by GitHub Actions
39
+ ✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
40
+ ✅ **Validation**: CI validates changesets and blocks major version bumps
41
+
42
+ For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
43
+
44
+ ### Patch Changes
45
+
46
+ - 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.
47
+ - Updated dependencies [d7adbdd]
48
+ - Updated dependencies [d1d8c26]
49
+ - @fluentui-react-native/framework@0.15.0
50
+ - @fluentui-react-native/theme-tokens@0.28.0
51
+ - @fluentui-react-native/use-styling@0.14.0
52
+
3
53
  <!-- This log was last generated on Tue, 05 Aug 2025 18:50:41 GMT and should not be manually modified. -->
4
54
 
5
55
  <!-- Start content -->
@@ -942,7 +992,7 @@ Thu, 16 Dec 2021 19:10:26 GMT
942
992
 
943
993
  ### Patches
944
994
 
945
- - Rename Jest snapshots to be platform agnostic (sanajmi@microsoft.com)
995
+ - Rename Jest snapshots to be platform agnostic (sanajmi@microsoft.com)
946
996
  - Bump @fluentui-react-native/framework to v0.7.1
947
997
 
948
998
  ## 0.11.0
@@ -1434,30 +1484,39 @@ Thu, 16 Apr 2020 23:57:38 GMT
1434
1484
  - publish with correct main/module references (jasonmo@microsoft.com)
1435
1485
 
1436
1486
  ## 0.2.10
1487
+
1437
1488
  Thu, 09 Apr 2020 18:39:15 GMT
1438
1489
 
1439
1490
  ### Patches
1440
1491
 
1441
1492
  - merge conflicts (ppatboyd@outlook.com)
1493
+
1442
1494
  ## 0.2.8
1495
+
1443
1496
  Fri, 03 Apr 2020 20:40:51 GMT
1444
1497
 
1445
1498
  ### Patches
1446
1499
 
1447
1500
  - switch the bin name from just-script to fluent-scripts to disambiguate names (jasonmo@microsoft.com)
1501
+
1448
1502
  ## 0.2.7
1503
+
1449
1504
  Tue, 31 Mar 2020 18:01:09 GMT
1450
1505
 
1451
1506
  ### Patches
1452
1507
 
1453
1508
  - Merge branch 'sammy/checkboxV1' of https://github.com/samuelfreiberg/fluentui-react-native into sammy/checkboxV1 (safreibe@microsoft.com)
1509
+
1454
1510
  ## 0.2.6
1511
+
1455
1512
  Mon, 30 Mar 2020 16:27:00 GMT
1456
1513
 
1457
1514
  ### Patches
1458
1515
 
1459
1516
  - Update main attribute to specify TypeScript index file. (kinhln@microsoft.com)
1517
+
1460
1518
  ## 0.2.0
1519
+
1461
1520
  Mon, 16 Mar 2020 23:03:24 GMT
1462
1521
 
1463
1522
  ### Minor changes
@@ -1,4 +1,4 @@
1
1
  import type { SeparatorProps } from './Separator.types';
2
- export declare const Separator: import("@fluentui-react-native/framework").ComposableComponent<SeparatorProps, import("./Separator.types").SeperatorSlotProps, import("./Separator.types").SeparatorTokens, import("@fluentui-react-native/framework").ObjectBase>;
2
+ export declare const Separator: import("@fluentui-react-native/framework").ComposableComponent<SeparatorProps, import("./Separator.types").SeperatorSlotProps, import("./Separator.types").SeparatorTokens, import("@fluentui-react-native/framework-base").ObjectBase>;
3
3
  export default Separator;
4
4
  //# sourceMappingURL=Separator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,mBAAmB,CAAC;AAKvE,eAAO,MAAM,SAAS,oOAQpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,mBAAmB,CAAC;AAKvE,eAAO,MAAM,SAAS,yOAQpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
package/lib/Separator.js CHANGED
@@ -1,7 +1,7 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ import { jsx as _jsx } from "@fluentui-react-native/framework-base/jsx-runtime";
2
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
3
  import { View } from 'react-native';
4
- import { compose, withSlots, mergeProps } from '@fluentui-react-native/framework';
4
+ import { compose, mergeProps } from '@fluentui-react-native/framework';
5
5
  import { stylingSettings } from './Separator.styling';
6
6
  import { separatorName } from './Separator.types';
7
7
  const propMask = { vertical: undefined };
@@ -11,7 +11,7 @@ export const Separator = compose({
11
11
  slots: { root: View },
12
12
  useRender: (props, useSlots) => {
13
13
  const Root = useSlots(props).root;
14
- return (rest, children) => withSlots(Root, { ...mergeProps(props, rest, propMask) }, children);
14
+ return (rest, children) => _jsx(Root, { ...mergeProps(props, rest, propMask), children: children });
15
15
  },
16
16
  });
17
17
  export default Separator;
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAEzC,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAgB;IAC9C,WAAW,EAAE,aAAa;IAC1B,GAAG,eAAe;IAClB,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IACrB,SAAS,EAAE,CAAC,KAAqB,EAAE,QAAiC,EAAE,EAAE;QACtE,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;QAClC,OAAO,CAAC,IAAoB,EAAE,QAAyB,EAAE,EAAE,CAAC,UAAC,IAAI,OAAK,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAG,QAAQ,CAAQ,CAAC;IAC7H,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO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,EAAE,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC;oBAC7G,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;oBAClD,GAAG,CAAC,QAAQ,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC;iBACtD;aACF,CAAC;QAAA,CACH,EACD,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,CAAC,CACxD;KACF;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SeparatorTokens.android.js","sourceRoot":"","sources":["../src/SeparatorTokens.android.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,MAAM,CAAC,MAAM,sBAAsB,GAA0C,CAAC,CAAQ,EAAE,EAAE,CACxF,CAAC;IACC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IAC9B,cAAc,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO;IAC3C,YAAY,EAAE,CAAC;CACI,CAAA,CAAC"}
1
+ {"version":3,"file":"SeparatorTokens.android.js","sourceRoot":"","sources":["../src/SeparatorTokens.android.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,MAAM,CAAC,MAAM,sBAAsB,GAA0C,CAAC,CAAQ,EAAE,EAAE,CACxF,CAAC;IACC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IAC9B,cAAc,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO;IAC3C,YAAY,EAAE,CAAC;CAChB,CAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SeparatorTokens.js","sourceRoot":"","sources":["../src/SeparatorTokens.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,MAAM,CAAC,MAAM,sBAAsB,GAA0C,GAAG,EAAE,CAChF,CAAC;IACC,cAAc,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO;CACxB,CAAA,CAAC"}
1
+ {"version":3,"file":"SeparatorTokens.js","sourceRoot":"","sources":["../src/SeparatorTokens.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAKnE,MAAM,CAAC,MAAM,sBAAsB,GAA0C,GAAG,EAAE,CAChF,CAAC;IACC,cAAc,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO;CAC5C,CAAoB,CAAC"}
@@ -1,13 +1,20 @@
1
- import * as React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { act } from 'react';
2
3
  import * as renderer from 'react-test-renderer';
3
4
  import { Separator } from '..';
4
5
  it('Separator default', () => {
5
- const tree = renderer.create(React.createElement(Separator, null)).toJSON();
6
- expect(tree).toMatchSnapshot();
6
+ let component;
7
+ act(() => {
8
+ component = renderer.create(_jsx(Separator, {}));
9
+ });
10
+ expect(component.toJSON()).toMatchSnapshot();
7
11
  });
8
12
  it('Separator all props & tokens', () => {
9
13
  const CustomSeparator = Separator.customize({ separatorWidth: 15, color: 'red' });
10
- const tree = renderer.create(React.createElement(CustomSeparator, { vertical: true })).toJSON();
11
- expect(tree).toMatchSnapshot();
14
+ let component;
15
+ act(() => {
16
+ component = renderer.create(_jsx(CustomSeparator, { vertical: true }));
17
+ });
18
+ expect(component.toJSON()).toMatchSnapshot();
12
19
  });
13
20
  //# sourceMappingURL=Separator.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.test.js","sourceRoot":"","sources":["../../src/__tests__/Separator.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,SAAS,E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AE,cAAc,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAClF,IAAI,SAAqC,CAAC;IAC1C,GAAG,CAAC,GAAG,EAAE,CAAC;QACR,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAC,eAAe,IAAC,QAAQ,SAAG,CAAC,CAAC;IAAA,CAC3D,CAAC,CAAC;IACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;AAAA,CAC/C,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,mBAAmB,CAAC;AAKvE,eAAO,MAAM,SAAS,oOAQpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,mBAAmB,CAAC;AAKvE,eAAO,MAAM,SAAS,oOAQpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Separator = void 0;
4
- /** @jsxRuntime classic */
5
- /** @jsx withSlots */
4
+ const jsx_runtime_1 = require("@fluentui-react-native/framework-base/jsx-runtime");
5
+ /** @jsxImportSource @fluentui-react-native/framework-base */
6
6
  const react_native_1 = require("react-native");
7
7
  const framework_1 = require("@fluentui-react-native/framework");
8
8
  const Separator_styling_1 = require("./Separator.styling");
@@ -14,7 +14,7 @@ exports.Separator = (0, framework_1.compose)({
14
14
  slots: { root: react_native_1.View },
15
15
  useRender: (props, useSlots) => {
16
16
  const Root = useSlots(props).root;
17
- return (rest, children) => (0, framework_1.withSlots)(Root, { ...(0, framework_1.mergeProps)(props, rest, propMask) }, children);
17
+ return (rest, children) => jsx_runtime_1.jsx(Root, { ...(0, framework_1.mergeProps)(props, rest, propMask), children: children });
18
18
  },
19
19
  });
20
20
  exports.default = exports.Separator;
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":";;;AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,+CAAoC;AAGpC,gEAAkF;AAElF,2DAAsD;AAEtD,uDAAkD;AAElD,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAE5B,QAAA,SAAS,GAAG,IAAA,mBAAO,EAAgB;IAC9C,WAAW,EAAE,+BAAa;IAC1B,GAAG,mCAAe;IAClB,KAAK,EAAE,EAAE,IAAI,EAAE,mBAAI,EAAE;IACrB,SAAS,EAAE,CAAC,KAAqB,EAAE,QAAiC,EAAE,EAAE;QACtE,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;QAClC,OAAO,CAAC,IAAoB,EAAE,QAAyB,EAAE,EAAE,CAAC,2BAAC,IAAI,OAAK,IAAA,sBAAU,EAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAG,QAAQ,CAAQ,CAAC;IAC7H,CAAC;CACF,CAAC,CAAC;AAEH,kBAAe,iBAAS,CAAC"}
1
+ {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":";;;;AAAA,6DAA6D;AAC7D,+CAAoC;AAGpC,gEAAuE;AAEvE,2DAAsD;AAEtD,uDAAkD;AAElD,MAAM,QAAQ,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAE5B,QAAA,SAAS,GAAG,IAAA,mBAAO,EAAgB;IAC9C,WAAW,EAAE,+BAAa;IAC1B,GAAG,mCAAe;IAClB,KAAK,EAAE,EAAE,IAAI,EAAE,mBAAI,EAAE;IACrB,SAAS,EAAE,CAAC,KAAqB,EAAE,QAAiC,EAAE,E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CAAC,CACxD;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"Separator.styling.js","sourceRoot":"","sources":["../src/Separator.styling.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,gEAA8D;AAG9D,uDAAkD;AAClD,uDAA2D;AAE3D,MAAM,QAAQ,GAAG,uBAAQ,CAAC,EAAE,KAAK,SAAS,IAAI,uBAAQ,CAAC,EAAE,KAAK,KAAK,CAAC;AACpE,MAAM,sBAAsB,GAAkC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;AAC9E,QAAA,eAAe,GAA2E;IACrG,MAAM,EAAE,CAAC,wCAAsB,EAAE,+BAAa,CAAC;IAC/C,sBAAsB;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAA,sBAAU,EACd,CAAC,MAAuB,EAAE,EAAE,CAAC;YAC3B,OAAO;gBACL,KAAK,EAAE;oBACL,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC;oBAC7G,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;oBAClD,GAAG,CAAC,QAAQ,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC;iBACtD;aACF,CAAC;QAAA,CACH,EACD,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,CAAC,CACxD;KACF;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SeparatorTokens.android.js","sourceRoot":"","sources":["../src/SeparatorTokens.android.tsx"],"names":[],"mappings":";;;AACA,sEAAmE;AAK5D,MAAM,sBAAsB,GAA0C,CAAC,CAAQ,EAAE,EAAE,CACxF,CAAC;IACC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IAC9B,cAAc,EAAE,2BAAY,CAAC,MAAM,CAAC,OAAO;IAC3C,YAAY,EAAE,CAAC;CACI,CAAA,CAAC;AALX,QAAA,sBAAsB,0BAKX"}
1
+ {"version":3,"file":"SeparatorTokens.android.js","sourceRoot":"","sources":["../src/SeparatorTokens.android.tsx"],"names":[],"mappings":";;;AACA,sEAAmE;AAK5D,MAAM,sBAAsB,GAA0C,CAAC,CAAQ,EAAE,EAAE,CACxF,CAAC;IACC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc;IAC9B,cAAc,EAAE,2BAAY,CAAC,MAAM,CAAC,OAAO;IAC3C,YAAY,EAAE,CAAC;CAChB,CAAoB,CAAC;AALX,QAAA,sBAAsB,GAAtB,sBAAsB,CAKX"}
@@ -1 +1 @@
1
- {"version":3,"file":"SeparatorTokens.js","sourceRoot":"","sources":["../src/SeparatorTokens.tsx"],"names":[],"mappings":";;;AACA,sEAAmE;AAK5D,MAAM,sBAAsB,GAA0C,GAAG,EAAE,CAChF,CAAC;IACC,cAAc,EAAE,2BAAY,CAAC,MAAM,CAAC,OAAO;CACxB,CAAA,CAAC;AAHX,QAAA,sBAAsB,0BAGX"}
1
+ {"version":3,"file":"SeparatorTokens.js","sourceRoot":"","sources":["../src/SeparatorTokens.tsx"],"names":[],"mappings":";;;AACA,sEAAmE;AAK5D,MAAM,sBAAsB,GAA0C,GAAG,EAAE,CAChF,CAAC;IACC,cAAc,EAAE,2BAAY,CAAC,MAAM,CAAC,OAAO;CAC5C,CAAoB,CAAC;AAHX,QAAA,sBAAsB,GAAtB,sBAAsB,CAGX"}
@@ -15,24 +15,41 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const React = __importStar(require("react"));
36
+ const jsx_runtime_1 = require("react/jsx-runtime");
37
+ const react_1 = require("react");
27
38
  const renderer = __importStar(require("react-test-renderer"));
28
39
  const __1 = require("..");
29
40
  it('Separator default', () => {
30
- const tree = renderer.create(React.createElement(__1.Separator, null)).toJSON();
31
- expect(tree).toMatchSnapshot();
41
+ let component;
42
+ (0, react_1.act)(() => {
43
+ component = renderer.create(jsx_runtime_1.jsx(__1.Separator, {}));
44
+ });
45
+ expect(component.toJSON()).toMatchSnapshot();
32
46
  });
33
47
  it('Separator all props & tokens', () => {
34
48
  const CustomSeparator = __1.Separator.customize({ separatorWidth: 15, color: 'red' });
35
- const tree = renderer.create(React.createElement(CustomSeparator, { vertical: true })).toJSON();
36
- expect(tree).toMatchSnapshot();
49
+ let component;
50
+ (0, react_1.act)(() => {
51
+ component = renderer.create(jsx_runtime_1.jsx(CustomSeparator, { vertical: true }));
52
+ });
53
+ expect(component.toJSON()).toMatchSnapshot();
37
54
  });
38
55
  //# sourceMappingURL=Separator.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.test.js","sourceRoot":"","sources":["../../src/__tests__/Separator.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B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,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAClF,IAAI,SAAqC,CAAC;IAC1C,IAAA,WAAG,EAAC,GAAG,EAAE,CAAC;QACR,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,kBAAC,eAAe,IAAC,QAAQ,SAAG,CAAC,CAAC;IAAA,CAC3D,CAAC,CAAC;IACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;AAAA,CAC/C,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Separator = exports.separatorName = void 0;
4
- var Separator_types_1 = require("./Separator.types");
4
+ const Separator_types_1 = require("./Separator.types");
5
5
  Object.defineProperty(exports, "separatorName", { enumerable: true, get: function () { return Separator_types_1.separatorName; } });
6
- var Separator_1 = require("./Separator");
6
+ const Separator_1 = require("./Separator");
7
7
  Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return Separator_1.Separator; } });
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAAzC,gHAAA,aAAa,OAAA;AACtB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,uDAAkD;AAAzC,gHAAA,aAAa,OAAA;AACtB,2CAAwC;AAA/B,sGAAA,SAAS,OAAA"}
package/package.json CHANGED
@@ -1,79 +1,89 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/separator",
3
- "version": "0.18.17",
3
+ "version": "0.19.1",
4
4
  "description": "A cross-platform Separator component using the Fluent Design System",
5
+ "license": "MIT",
6
+ "author": "",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/microsoft/fluentui-react-native.git",
10
+ "directory": "packages/components/Separator"
11
+ },
5
12
  "main": "lib-commonjs/index.js",
6
13
  "module": "lib/index.js",
7
- "react-native": "src/index.ts",
14
+ "types": "lib/index.d.ts",
8
15
  "exports": {
9
16
  ".": {
17
+ "types": "./lib/index.d.ts",
10
18
  "import": "./lib/index.js",
11
19
  "require": "./lib-commonjs/index.js",
12
- "types": "./lib/index.d.ts"
20
+ "default": "./src/index.ts"
13
21
  }
14
22
  },
15
- "typings": "lib/index.d.ts",
16
23
  "scripts": {
17
24
  "build": "fluentui-scripts build",
18
- "just": "fluentui-scripts",
25
+ "build-cjs": "tsgo --outDir lib-commonjs",
26
+ "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
19
27
  "clean": "fluentui-scripts clean",
20
28
  "depcheck": "fluentui-scripts depcheck",
21
29
  "lint": "fluentui-scripts eslint",
30
+ "lint-package": "fluentui-scripts lint-package",
31
+ "format": "fluentui-scripts format",
22
32
  "test": "fluentui-scripts jest",
23
- "update-snapshots": "fluentui-scripts jest -u",
24
- "prettier": "fluentui-scripts prettier",
25
- "prettier-fix": "fluentui-scripts prettier --fix true"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/microsoft/fluentui-react-native.git",
30
- "directory": "packages/components/Separator"
33
+ "update-snapshots": "fluentui-scripts jest -u"
31
34
  },
32
35
  "dependencies": {
33
- "@fluentui-react-native/framework": "0.14.17",
34
- "@fluentui-react-native/theme-tokens": "0.27.11",
35
- "@fluentui-react-native/use-styling": "0.13.12"
36
+ "@fluentui-react-native/framework": "0.15.1",
37
+ "@fluentui-react-native/theme-tokens": "0.28.1",
38
+ "@fluentui-react-native/use-styling": "0.14.1"
36
39
  },
37
40
  "devDependencies": {
38
41
  "@babel/core": "^7.20.0",
39
42
  "@fluentui-react-native/babel-config": "0.1.1",
40
- "@fluentui-react-native/eslint-config-rules": "0.1.1",
41
- "@fluentui-react-native/jest-config": "0.1.1",
42
- "@fluentui-react-native/scripts": "0.1.1",
43
+ "@fluentui-react-native/eslint-config-rules": "0.1.2",
44
+ "@fluentui-react-native/framework-base": "0.3.1",
45
+ "@fluentui-react-native/jest-config": "0.1.0",
46
+ "@fluentui-react-native/kit-config": "0.1.2",
47
+ "@fluentui-react-native/scripts": "0.1.0",
43
48
  "@office-iss/react-native-win32": "^0.74.0",
44
- "@react-native/babel-preset": "^0.74.0",
45
- "@react-native/metro-config": "^0.74.0",
46
- "@types/react": "~18.2.0",
47
- "@types/react-test-renderer": "^18.2.0",
48
- "react": "18.2.0",
49
- "react-native": "^0.74.0",
50
- "react-native-macos": "^0.74.0",
51
- "react-native-windows": "^0.74.0",
52
- "react-test-renderer": "18.2.0"
49
+ "@react-native-community/cli": "^20.0.0",
50
+ "@react-native-community/cli-platform-android": "^20.0.0",
51
+ "@react-native-community/cli-platform-ios": "^20.0.0",
52
+ "@react-native/babel-preset": "^0.81.0",
53
+ "@react-native/metro-config": "^0.81.0",
54
+ "@types/react": "~19.1.0",
55
+ "@types/react-test-renderer": "^19.1.0",
56
+ "react": "19.1.0",
57
+ "react-native": "^0.81.0",
58
+ "react-native-macos": "^0.81.0",
59
+ "react-native-windows": "^0.81.0",
60
+ "react-test-renderer": "19.1.0"
53
61
  },
54
62
  "peerDependencies": {
55
63
  "@office-iss/react-native-win32": "^0.74.0",
56
- "react": "18.2.0",
57
- "react-native": "^0.73.0 || ^0.74.0",
58
- "react-native-macos": "^0.73.0 || ^0.74.0",
59
- "react-native-windows": "^0.73.0 || ^0.74.0"
64
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
65
+ "react": "18.2.0 || 19.0.0 || 19.1.0",
66
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
67
+ "react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
68
+ "react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "@office-iss/react-native-win32": {
72
+ "optional": true
73
+ },
74
+ "@types/react": {
75
+ "optional": true
76
+ },
77
+ "react-native-macos": {
78
+ "optional": true
79
+ },
80
+ "react-native-windows": {
81
+ "optional": true
82
+ }
60
83
  },
61
- "author": "",
62
- "license": "MIT",
63
84
  "rnx-kit": {
64
85
  "kitType": "library",
65
86
  "alignDeps": {
66
- "presets": [
67
- "microsoft/react-native"
68
- ],
69
- "requirements": {
70
- "development": [
71
- "react-native@0.74"
72
- ],
73
- "production": [
74
- "react-native@0.73 || 0.74"
75
- ]
76
- },
77
87
  "capabilities": [
78
88
  "babel-preset-react-native",
79
89
  "core",
@@ -82,19 +92,11 @@
82
92
  "core-macos",
83
93
  "core-windows",
84
94
  "react",
85
- "react-test-renderer"
95
+ "react-test-renderer",
96
+ "tools-core",
97
+ "tools-jest"
86
98
  ]
87
- }
88
- },
89
- "peerDependenciesMeta": {
90
- "@office-iss/react-native-win32": {
91
- "optional": true
92
99
  },
93
- "react-native-macos": {
94
- "optional": true
95
- },
96
- "react-native-windows": {
97
- "optional": true
98
- }
100
+ "extends": "@fluentui-react-native/kit-config"
99
101
  }
100
- }
102
+ }
package/src/Separator.tsx CHANGED
@@ -1,9 +1,8 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
2
  import { View } from 'react-native';
4
3
 
5
4
  import type { UseSlots } from '@fluentui-react-native/framework';
6
- import { compose, withSlots, mergeProps } from '@fluentui-react-native/framework';
5
+ import { compose, mergeProps } from '@fluentui-react-native/framework';
7
6
 
8
7
  import { stylingSettings } from './Separator.styling';
9
8
  import type { SeparatorProps, SeparatorType } from './Separator.types';
@@ -9,4 +9,4 @@ export const defaultSeparatorTokens: TokenSettings<SeparatorTokens, Theme> = (t:
9
9
  color: t.colors.neutralStroke2,
10
10
  separatorWidth: globalTokens.stroke.width10,
11
11
  insetSpacing: 0,
12
- } as SeparatorTokens);
12
+ }) as SeparatorTokens;
@@ -7,4 +7,4 @@ import type { SeparatorTokens } from './Separator.types';
7
7
  export const defaultSeparatorTokens: TokenSettings<SeparatorTokens, Theme> = () =>
8
8
  ({
9
9
  separatorWidth: globalTokens.stroke.width10,
10
- } as SeparatorTokens);
10
+ }) as SeparatorTokens;
@@ -1,16 +1,22 @@
1
- import * as React from 'react';
1
+ import { act } from 'react';
2
2
 
3
3
  import * as renderer from 'react-test-renderer';
4
4
 
5
5
  import { Separator } from '..';
6
6
 
7
7
  it('Separator default', () => {
8
- const tree = renderer.create(<Separator />).toJSON();
9
- expect(tree).toMatchSnapshot();
8
+ let component: renderer.ReactTestRenderer;
9
+ act(() => {
10
+ component = renderer.create(<Separator />);
11
+ });
12
+ expect(component!.toJSON()).toMatchSnapshot();
10
13
  });
11
14
 
12
15
  it('Separator all props & tokens', () => {
13
16
  const CustomSeparator = Separator.customize({ separatorWidth: 15, color: 'red' });
14
- const tree = renderer.create(<CustomSeparator vertical />).toJSON();
15
- expect(tree).toMatchSnapshot();
17
+ let component: renderer.ReactTestRenderer;
18
+ act(() => {
19
+ component = renderer.create(<CustomSeparator vertical />);
20
+ });
21
+ expect(component!.toJSON()).toMatchSnapshot();
16
22
  });