@fluentui-react-native/composition 0.11.6 → 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,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/composition",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
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",
|
|
6
21
|
"version": "0.11.6",
|
|
7
22
|
"tag": "@fluentui-react-native/composition_v0.11.6",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/composition
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
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.7
|
|
8
|
+
|
|
9
|
+
Wed, 16 Jul 2025 20:02:37 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- create common framework-base package to share common utiltities more broadly (jasonmo@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.11.6
|
|
8
16
|
|
|
9
|
-
Tue, 15 Jul 2025 23:
|
|
17
|
+
Tue, 15 Jul 2025 23:27:26 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/composeFactory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { immutableMergeCore } from '@fluentui-react-native/
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeFactory.js","sourceRoot":"","sources":["../src/composeFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"composeFactory.js","sourceRoot":"","sources":["../src/composeFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAqCrE;;GAEG;AACH,MAAM,YAAY,GAAiB;IACjC,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,MAAM,UAAU,cAAc,CAC5B,OAA6E,EAC7E,WAAgC,EAChC,IAA6E;IAK7E,gDAAgD;IAChD,MAAM,WAAW,GAAiB,IAAI,EAAE,SAAyB,CAAC;IAClE,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAe,YAAY,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC;IAE9G,iDAAiD;IACjD,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,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
|
|
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,
|
|
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,
|
|
29
|
-
component.compose = (customOptions) => composeFactory((0,
|
|
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,
|
|
1
|
+
{"version":3,"file":"composeFactory.js","sourceRoot":"","sources":["../src/composeFactory.ts"],"names":[],"mappings":";;;AACA,0EAA2E;AAE3E,8DAAkE;AAElE,gEAAiE;AACjE,oEAAqE;AAqCrE;;GAEG;AACH,MAAM,YAAY,GAAiB;IACjC,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,IAAI;CACb,CA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E;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.
|
|
3
|
+
"version": "0.11.7",
|
|
4
4
|
"description": "Composition factories for building HOCs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"author": "",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluentui-react-native/
|
|
39
|
-
"@fluentui-react-native/use-slot": "0.6.
|
|
40
|
-
"@fluentui-react-native/use-slots": "0.10.
|
|
41
|
-
"@fluentui-react-native/use-styling": "0.13.
|
|
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"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/core": "^7.20.0",
|
package/src/composeFactory.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MergeOptions } from '@fluentui-react-native/
|
|
2
|
-
import { immutableMergeCore } from '@fluentui-react-native/
|
|
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';
|