@fluentui-react-native/composition 0.7.2 → 0.7.3
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 +36 -3
- package/CHANGELOG.md +13 -2
- package/lib/composeFactory.test.js.map +1 -1
- package/lib-commonjs/composeFactory.js +7 -6
- package/lib-commonjs/composeFactory.js.map +1 -1
- package/lib-commonjs/composeFactory.test.js +19 -7
- package/lib-commonjs/composeFactory.test.js.map +1 -1
- package/lib-commonjs/index.js +11 -4
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,40 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/composition",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 18 Dec 2021 04:11:32 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/composition_v0.7.3",
|
|
7
|
+
"version": "0.7.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/composition",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/immutable-merge to v1.1.5",
|
|
14
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/composition",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/use-slot to v0.2.3",
|
|
20
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/composition",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/use-slots to v0.6.3",
|
|
26
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/composition",
|
|
31
|
+
"comment": "Bump @fluentui-react-native/use-styling to v0.8.1",
|
|
32
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"date": "Fri, 17 Dec 2021 22:06:58 GMT",
|
|
6
39
|
"tag": "@fluentui-react-native/composition_v0.7.2",
|
|
7
40
|
"version": "0.7.2",
|
|
8
41
|
"comments": {
|
|
@@ -11,13 +44,13 @@
|
|
|
11
44
|
"author": "beachball",
|
|
12
45
|
"package": "@fluentui-react-native/composition",
|
|
13
46
|
"comment": "Bump @fluentui-react-native/use-slot to v0.2.2",
|
|
14
|
-
"commit": "
|
|
47
|
+
"commit": "9dc61df83605c035822518c18cc46fb5503dff70"
|
|
15
48
|
},
|
|
16
49
|
{
|
|
17
50
|
"author": "beachball",
|
|
18
51
|
"package": "@fluentui-react-native/composition",
|
|
19
52
|
"comment": "Bump @fluentui-react-native/use-slots to v0.6.2",
|
|
20
|
-
"commit": "
|
|
53
|
+
"commit": "9dc61df83605c035822518c18cc46fb5503dff70"
|
|
21
54
|
}
|
|
22
55
|
]
|
|
23
56
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/composition
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 18 Dec 2021 04:11:32 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.7.3
|
|
8
|
+
|
|
9
|
+
Sat, 18 Dec 2021 04:11:32 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/immutable-merge to v1.1.5
|
|
14
|
+
- Bump @fluentui-react-native/use-slot to v0.2.3
|
|
15
|
+
- Bump @fluentui-react-native/use-slots to v0.6.3
|
|
16
|
+
- Bump @fluentui-react-native/use-styling to v0.8.1
|
|
17
|
+
|
|
7
18
|
## 0.7.2
|
|
8
19
|
|
|
9
|
-
Fri, 17 Dec 2021 22:
|
|
20
|
+
Fri, 17 Dec 2021 22:06:58 GMT
|
|
10
21
|
|
|
11
22
|
### Patches
|
|
12
23
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeFactory.test.js","sourceRoot":"","sources":["../src/composeFactory.test.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,qBAAqB;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAa,IAAI,EAAE,IAAI,EAAyB,MAAM,cAAc,CAAC;AAa5E,IAAM,KAAK,GAAU;IACnB,MAAM,EAAE;QACN,eAAe,EAAE,OAAO;QACxB,KAAK,EAAE,OAAO;KACf;IACD,UAAU,EAAE,EAAE;CACf,CAAC;AAYF,IAAM,WAAW,GAAuB;IACtC,QAAQ,EAAE,cAAM,OAAA,KAAK,EAAL,CAAK;IACrB,gBAAgB,EAAE,UAAC,KAAY,EAAE,IAAY;;QAC3C,
|
|
1
|
+
{"version":3,"file":"composeFactory.test.js","sourceRoot":"","sources":["../src/composeFactory.test.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,qBAAqB;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAa,IAAI,EAAE,IAAI,EAAyB,MAAM,cAAc,CAAC;AAa5E,IAAM,KAAK,GAAU;IACnB,MAAM,E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AAK,CAAC,OAAO,gBAAsB,CACxB,CACf,EAJ4B,CAI5B,CAAC;IACJ,CAAC;CACF,EACD,WAAW,CACZ,CAAC;AAEF,IAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC;AAE/D,IAAM,UAAU,GAAG;IACjB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,CAAC;CACf,CAAC;AAEF,QAAQ,CAAC,2BAA2B,EAAE;IACpC,EAAE,CAAC,uBAAuB,EAAE;QAC1B,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,UAAC,IAAI,IAAC,KAAK,EAAE,UAAU,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QACnE,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uBAAuB,EAAE;QAC1B,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,UAAC,UAAU,IAAC,KAAK,EAAE,UAAU,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QACzE,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.composeFactory = void 0;
|
|
14
15
|
var use_styling_1 = require("@fluentui-react-native/use-styling");
|
|
15
16
|
var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
16
17
|
var use_slots_1 = require("@fluentui-react-native/use-slots");
|
|
@@ -25,13 +26,13 @@ var mergeOptions = {
|
|
|
25
26
|
function composeFactory(options, themeHelper, base) {
|
|
26
27
|
// merge options together if a base is specified
|
|
27
28
|
var baseOptions = base === null || base === void 0 ? void 0 : base.__options;
|
|
28
|
-
options = baseOptions ? immutable_merge_1.immutableMergeCore(mergeOptions, baseOptions, options) : __assign({}, options);
|
|
29
|
+
options = baseOptions ? (0, immutable_merge_1.immutableMergeCore)(mergeOptions, baseOptions, options) : __assign({}, options);
|
|
29
30
|
// build styling if styling options are specified
|
|
30
|
-
options.useStyling = options.slotProps || options.tokens ? use_styling_1.buildUseStyling(options, themeHelper) : function () { return ({}); };
|
|
31
|
+
options.useStyling = options.slotProps || options.tokens ? (0, use_styling_1.buildUseStyling)(options, themeHelper) : function () { return ({}); };
|
|
31
32
|
// build the slots hook, which will use the styling hook if it has been built
|
|
32
|
-
var useSlots = use_slots_1.buildUseSlots(options);
|
|
33
|
+
var useSlots = (0, use_slots_1.buildUseSlots)(options);
|
|
33
34
|
// build the staged component
|
|
34
|
-
var component = use_slot_1.stagedComponent(function (props) { return options.render(props, useSlots); });
|
|
35
|
+
var component = (0, use_slot_1.stagedComponent)(function (props) { return options.render(props, useSlots); });
|
|
35
36
|
// attach additional props to the returned component
|
|
36
37
|
component.displayName = options.displayName;
|
|
37
38
|
component.__options = options;
|
|
@@ -40,10 +41,10 @@ function composeFactory(options, themeHelper, base) {
|
|
|
40
41
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
41
42
|
tokens[_i] = arguments[_i];
|
|
42
43
|
}
|
|
43
|
-
return composeFactory(immutable_merge_1.immutableMergeCore(mergeOptions, options, { tokens: tokens }), themeHelper);
|
|
44
|
+
return composeFactory((0, immutable_merge_1.immutableMergeCore)(mergeOptions, options, { tokens: tokens }), themeHelper);
|
|
44
45
|
};
|
|
45
46
|
component.compose = function (customOptions) {
|
|
46
|
-
return composeFactory(immutable_merge_1.immutableMergeCore(mergeOptions, options, customOptions), themeHelper);
|
|
47
|
+
return composeFactory((0, immutable_merge_1.immutableMergeCore)(mergeOptions, options, customOptions), themeHelper);
|
|
47
48
|
};
|
|
48
49
|
// attach statics if specified
|
|
49
50
|
if (options.statics) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeFactory.js","sourceRoot":"","sources":["../src/composeFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"composeFactory.js","sourceRoot":"","sources":["../src/composeFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kEAA8H;AAC9H,4DAAsF;AACtF,8DAAwF;AACxF,0EAA0F;AAoC1F;;GAEG;AACH,IAAM,YAAY,GAAiB;IACjC,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,SAAgB,cAAc,CAC5B,OAA6E,EAC7E,WAAgC,EAChC,IAA6E;IAK7E,gDAAgD;IAChD,IAAM,WAAW,GAAiB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAyB,CAAC;IAClE,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,IAAA,oCAAkB,EAAe,YAAY,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,cAAM,OAAO,CAAE,CAAC;IAE9G,iDAAiD;IACjD,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,6BAAe,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,cAAM,OAAA,CAAC,EAAiB,CAAA,EAAlB,CAAkB,CAAC;IAE5H,6EAA6E;IAC7E,IAAM,QAAQ,GAAG,IAAA,yBAAa,EAAC,OAAO,CAAuC,CAAC;IAE9E,6BAA6B;IAC7B,IAAM,SAAS,GAAG,IAAA,0BAAe,EAAS,UAAC,KAAK,IAAK,OAAA,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,EAA/B,CAA+B,CAAmB,CAAC;IAExG,oDAAoD;IACpD,SAAS,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAC5C,SAAS,CAAC,SAAS,GAAG,OAAO,CAAC;IAC9B,SAAS,CAAC,SAAS,GAAG;QAAC,gBAAiC;aAAjC,UAAiC,EAAjC,qBAAiC,EAAjC,IAAiC;YAAjC,2BAAiC;;QACtD,OAAA,cAAc,CACZ,IAAA,oCAAkB,EAAC,YAAY,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAkB,CAAC,EAC7E,WAAW,CACZ;IAHD,CAGC,CAAC;IAEJ,SAAS,CAAC,OAAO,GAAG,UAAC,aAAoC;QACvD,OAAA,cAAc,CACZ,IAAA,oCAAkB,EAAC,YAAY,EAAE,OAAO,EAAE,aAAa,CAAiB,EACxE,WAAW,CACZ;IAHD,CAGC,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"}
|
|
@@ -10,11 +10,23 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
13
25
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
14
26
|
if (mod && mod.__esModule) return mod;
|
|
15
27
|
var result = {};
|
|
16
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
17
|
-
result
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
18
30
|
return result;
|
|
19
31
|
};
|
|
20
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -40,7 +52,7 @@ var themeHelper = {
|
|
|
40
52
|
function mergeProps(p1, p2) {
|
|
41
53
|
return __assign(__assign({}, p1), p2);
|
|
42
54
|
}
|
|
43
|
-
var Base = composeFactory_1.composeFactory({
|
|
55
|
+
var Base = (0, composeFactory_1.composeFactory)({
|
|
44
56
|
tokens: [
|
|
45
57
|
function (t) { return ({
|
|
46
58
|
backgroundColor: t.values.backgroundColor,
|
|
@@ -57,8 +69,8 @@ var Base = composeFactory_1.composeFactory({
|
|
|
57
69
|
},
|
|
58
70
|
render: function (props, useSlots) {
|
|
59
71
|
var Slots = useSlots(props);
|
|
60
|
-
return function (extra) { return (use_slot_1.withSlots(Slots.outer, __assign({}, mergeProps(props, extra)),
|
|
61
|
-
use_slot_1.withSlots(Slots.content, null, "Hello"))); };
|
|
72
|
+
return function (extra) { return ((0, use_slot_1.withSlots)(Slots.outer, __assign({}, mergeProps(props, extra)),
|
|
73
|
+
(0, use_slot_1.withSlots)(Slots.content, null, "Hello"))); };
|
|
62
74
|
},
|
|
63
75
|
}, themeHelper);
|
|
64
76
|
var Customized = Base.customize({ backgroundColor: 'pink' });
|
|
@@ -70,11 +82,11 @@ var mixinStyle = {
|
|
|
70
82
|
};
|
|
71
83
|
describe('composeFactory test suite', function () {
|
|
72
84
|
it('Base component render', function () {
|
|
73
|
-
var tree = renderer.create(use_slot_1.withSlots(Base, { style: mixinStyle })).toJSON();
|
|
85
|
+
var tree = renderer.create((0, use_slot_1.withSlots)(Base, { style: mixinStyle })).toJSON();
|
|
74
86
|
expect(tree).toMatchSnapshot();
|
|
75
87
|
});
|
|
76
88
|
it('Base component render', function () {
|
|
77
|
-
var tree = renderer.create(use_slot_1.withSlots(Customized, { style: mixinStyle })).toJSON();
|
|
89
|
+
var tree = renderer.create((0, use_slot_1.withSlots)(Customized, { style: mixinStyle })).toJSON();
|
|
78
90
|
expect(tree).toMatchSnapshot();
|
|
79
91
|
});
|
|
80
92
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeFactory.test.js","sourceRoot":"","sources":["../src/composeFactory.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"composeFactory.test.js","sourceRoot":"","sources":["../src/composeFactory.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,4DAA4D;AAC5D,4DAAgD;AAChD,mDAAkE;AAClE,6CAA4E;AAa5E,IAAM,KAAK,GAAU;IACnB,MAAM,EAAE;QACN,eAAe,EAAE,OAAO;QACxB,KAAK,EAAE,OAAO;KACf;IACD,UAAU,EAAE,EAAE;CACf,CAAC;AAYF,IAAM,WAAW,GAAuB;IACtC,QAAQ,EAAE,cAAM,OAAA,KAAK,EAAL,CAAK;IACrB,gBAAgB,EAAE,UAAC,KAAY,EAAE,IAAY;;QAC3C,OAAO,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,mCAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;CACF,CAAC;AAEF,SAAS,UAAU,CAAI,EAAK,EAAE,EAAK;IACjC,6BAAY,EAAE,GAAK,EAAE,EAAG;AAC1B,CAAC;AAED,IAAM,IAAI,GAAG,IAAA,+BAAc,EACzB;IACE,MAAM,EAAE;QACN,UAAC,CAAC,IAAK,OAAA,CAAC;YACN,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,eAAe;YACzC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK;SACtB,CAAC,EAHK,C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AI,GAAG,QAAQ,CAAC,MAAM,CAAC,0BAAC,UAAU,IAAC,KAAK,EAAE,UAAU,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QACzE,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
13
|
+
__exportStar(require("./composeFactory"), exports);
|
|
7
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAiC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/composition",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "Composition factories for building HOCs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"author": "",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@fluentui-react-native/immutable-merge": "^1.1.
|
|
32
|
-
"@fluentui-react-native/use-slot": ">=0.2.
|
|
33
|
-
"@fluentui-react-native/use-slots": ">=0.6.
|
|
34
|
-
"@fluentui-react-native/use-styling": ">=0.8.
|
|
31
|
+
"@fluentui-react-native/immutable-merge": "^1.1.5",
|
|
32
|
+
"@fluentui-react-native/use-slot": ">=0.2.3 <1.0.0",
|
|
33
|
+
"@fluentui-react-native/use-slots": ">=0.6.3 <1.0.0",
|
|
34
|
+
"@fluentui-react-native/use-styling": ">=0.8.1 <1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/react-native": "^0.64.0",
|