@fluentui-react-native/composition 0.11.5 → 0.11.7

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,9 +2,24 @@
2
2
  "name": "@fluentui-react-native/composition",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 11 Jul 2025 19:51:00 GMT",
6
- "version": "0.11.5",
7
- "tag": "@fluentui-react-native/composition_v0.11.5",
5
+ "date": "Wed, 16 Jul 2025 20:02:37 GMT",
6
+ "version": "0.11.7",
7
+ "tag": "@fluentui-react-native/composition_v0.11.7",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "jasonmo@microsoft.com",
12
+ "package": "@fluentui-react-native/composition",
13
+ "commit": "6ed0a256caf94e287c6a9120ec5d0458bd5c7bfc",
14
+ "comment": "create common framework-base package to share common utiltities more broadly"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 15 Jul 2025 23:27:26 GMT",
21
+ "version": "0.11.6",
22
+ "tag": "@fluentui-react-native/composition_v0.11.6",
8
23
  "comments": {
9
24
  "none": [
10
25
  {
@@ -30,14 +45,32 @@
30
45
  "package": "@fluentui-react-native/composition",
31
46
  "commit": "a245202877ef7f2be9ab5f0e1356b2270957e693",
32
47
  "comment": "Run bump-versions"
48
+ },
49
+ {
50
+ "author": "jasonmo@microsoft.com",
51
+ "package": "@fluentui-react-native/composition",
52
+ "commit": "3e168e4363d1821818f219819d29532eace8d979",
53
+ "comment": "update scripts package to be fully js, use esm, and validate fully"
33
54
  }
34
55
  ],
35
56
  "patch": [
57
+ {
58
+ "author": "sanajmi@microsoft.com",
59
+ "package": "@fluentui-react-native/composition",
60
+ "commit": "9cbe229ec7f6363d229dcaef506921b8d9f47d7d",
61
+ "comment": "fix: run beachball sync"
62
+ },
36
63
  {
37
64
  "author": "jasonmo@microsoft.com",
38
65
  "package": "@fluentui-react-native/composition",
39
66
  "commit": "479b93cea460a26df70c55b5d3335927ed374713",
40
67
  "comment": "update builds to use node16 settings and modern export maps"
68
+ },
69
+ {
70
+ "author": "jasonmo@microsoft.com",
71
+ "package": "@fluentui-react-native/composition",
72
+ "commit": "6b4d59227b1e9bbbf25cc93a3502015f663b363e",
73
+ "comment": "add react-native entrypoints that ensure metro targets TS files rather than JS files for bundling"
41
74
  }
42
75
  ]
43
76
  }
package/CHANGELOG.md CHANGED
@@ -1,16 +1,26 @@
1
1
  # Change Log - @fluentui-react-native/composition
2
2
 
3
- <!-- This log was last generated on Fri, 11 Jul 2025 19:51:00 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Wed, 16 Jul 2025 20:02:37 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.11.5
7
+ ## 0.11.7
8
8
 
9
- Fri, 11 Jul 2025 19:51:00 GMT
9
+ Wed, 16 Jul 2025 20:02:37 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
+ - create common framework-base package to share common utiltities more broadly (jasonmo@microsoft.com)
14
+
15
+ ## 0.11.6
16
+
17
+ Tue, 15 Jul 2025 23:27:26 GMT
18
+
19
+ ### Patches
20
+
21
+ - fix: run beachball sync (sanajmi@microsoft.com)
13
22
  - update builds to use node16 settings and modern export maps (jasonmo@microsoft.com)
23
+ - add react-native entrypoints that ensure metro targets TS files rather than JS files for bundling (jasonmo@microsoft.com)
14
24
 
15
25
  ## 0.11.3
16
26
 
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
- import { immutableMergeCore } from '@fluentui-react-native/immutable-merge';
1
+ import { immutableMergeCore } from '@fluentui-react-native/framework-base';
2
2
  import { stagedComponent } from '@fluentui-react-native/use-slot';
3
3
  import { buildUseSlots } from '@fluentui-react-native/use-slots';
4
4
  import { buildUseStyling } from '@fluentui-react-native/use-styling';
@@ -1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,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAAiB,CAAA,CAAC;IAE5H,6EAA6E;IAC7E,MAAM,QAAQ,GAAG,aAAa,CAAC,OAAO,CAAuC,CAAC;IAE9E,6BAA6B;IAC7B,MAAM,SAAS,GAAG,eAAe,CAAS,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAmB,CAAC;IAE3G,oDAAoD;IACpD,SAAS,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAC5C,SAAS,CAAC,SAAS,GAAG,OAAO,CAAC;IAC9B,SAAS,CAAC,SAAS,GAAG,CAAC,GAAG,MAA8B,EAAE,EAAE,CAC1D,cAAc,CACZ,kBAAkB,CAAC,YAAY,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAkB,CAAC,EAC7E,WAAW,CACZ,CAAC;IAEJ,SAAS,CAAC,OAAO,GAAG,CAAC,aAAoC,EAAE,EAAE,CAC3D,cAAc,CACZ,kBAAkB,CAAC,YAAY,EAAE,OAAO,EAAE,aAAa,CAAiB,EACxE,WAAW,CACZ,CAAC;IAEJ,8BAA8B;IAC9B,IAAI,OAAO,CAAC,OAAO,EAAE;QACnB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;KAC3C;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.composeFactory = void 0;
4
- const immutable_merge_1 = require("@fluentui-react-native/immutable-merge");
4
+ const framework_base_1 = require("@fluentui-react-native/framework-base");
5
5
  const use_slot_1 = require("@fluentui-react-native/use-slot");
6
6
  const use_slots_1 = require("@fluentui-react-native/use-slots");
7
7
  const use_styling_1 = require("@fluentui-react-native/use-styling");
@@ -15,7 +15,7 @@ const mergeOptions = {
15
15
  function composeFactory(options, themeHelper, base) {
16
16
  // merge options together if a base is specified
17
17
  const baseOptions = base?.__options;
18
- options = baseOptions ? (0, immutable_merge_1.immutableMergeCore)(mergeOptions, baseOptions, options) : { ...options };
18
+ options = baseOptions ? (0, framework_base_1.immutableMergeCore)(mergeOptions, baseOptions, options) : { ...options };
19
19
  // build styling if styling options are specified
20
20
  options.useStyling = options.slotProps || options.tokens ? (0, use_styling_1.buildUseStyling)(options, themeHelper) : () => ({});
21
21
  // build the slots hook, which will use the styling hook if it has been built
@@ -25,8 +25,8 @@ function composeFactory(options, themeHelper, base) {
25
25
  // attach additional props to the returned component
26
26
  component.displayName = options.displayName;
27
27
  component.__options = options;
28
- component.customize = (...tokens) => composeFactory((0, immutable_merge_1.immutableMergeCore)(mergeOptions, options, { tokens: tokens }), themeHelper);
29
- component.compose = (customOptions) => composeFactory((0, immutable_merge_1.immutableMergeCore)(mergeOptions, options, customOptions), themeHelper);
28
+ component.customize = (...tokens) => composeFactory((0, framework_base_1.immutableMergeCore)(mergeOptions, options, { tokens: tokens }), themeHelper);
29
+ component.compose = (customOptions) => composeFactory((0, framework_base_1.immutableMergeCore)(mergeOptions, options, customOptions), themeHelper);
30
30
  // attach statics if specified
31
31
  if (options.statics) {
32
32
  Object.assign(component, options.statics);
@@ -1 +1 @@
1
- {"version":3,"file":"composeFactory.js","sourceRoot":"","sources":["../src/composeFactory.ts"],"names":[],"mappings":";;;AACA,4EAA4E;AAE5E,8DAAkE;AAElE,gEAAiE;AACjE,oEAAqE;AAqCrE;;GAEG;AACH,MAAM,YAAY,GAAiB;IACjC,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,SAAgB,cAAc,CAC5B,OAA6E,EAC7E,WAAgC,EAChC,IAA6E;IAK7E,gDAAgD;IAChD,MAAM,WAAW,GAAiB,IAAI,EAAE,SAAyB,CAAC;IAClE,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,IAAA,oCAAkB,EAAe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AoC,EAAE,EAAE,CAC3D,cAAc,CACZ,IAAA,mCAAkB,EAAC,YAAY,EAAE,OAAO,EAAE,aAAa,CAAiB,EACxE,WAAW,CACZ,CAAC;IAEJ,8BAA8B;IAC9B,IAAI,OAAO,CAAC,OAAO,EAAE;QACnB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;KAC3C;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AA1CD,wCA0CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/composition",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "description": "Composition factories for building HOCs",
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,10 +35,10 @@
34
35
  "author": "",
35
36
  "license": "MIT",
36
37
  "dependencies": {
37
- "@fluentui-react-native/immutable-merge": "1.2.4",
38
- "@fluentui-react-native/use-slot": "0.6.5",
39
- "@fluentui-react-native/use-slots": "0.10.5",
40
- "@fluentui-react-native/use-styling": "0.13.5"
38
+ "@fluentui-react-native/framework-base": "0.1.1",
39
+ "@fluentui-react-native/use-slot": "0.6.7",
40
+ "@fluentui-react-native/use-slots": "0.10.7",
41
+ "@fluentui-react-native/use-styling": "0.13.7"
41
42
  },
42
43
  "devDependencies": {
43
44
  "@babel/core": "^7.20.0",
@@ -1,5 +1,5 @@
1
- import type { MergeOptions } from '@fluentui-react-native/immutable-merge';
2
- import { immutableMergeCore } from '@fluentui-react-native/immutable-merge';
1
+ import type { MergeOptions } from '@fluentui-react-native/framework-base';
2
+ import { immutableMergeCore } from '@fluentui-react-native/framework-base';
3
3
  import type { ComposableFunction } from '@fluentui-react-native/use-slot';
4
4
  import { stagedComponent } from '@fluentui-react-native/use-slot';
5
5
  import type { UseSlotOptions, Slots } from '@fluentui-react-native/use-slots';
package/just.config.js DELETED
@@ -1,3 +0,0 @@
1
- const { preset } = require('@fluentui-react-native/scripts');
2
-
3
- preset();