@fluentui-react-native/use-slots 0.6.2 → 0.6.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 +23 -2
- package/CHANGELOG.md +11 -2
- package/lib/buildUseSlots.js.map +1 -1
- package/lib/useSlots.samples.test.js.map +1 -1
- package/lib-commonjs/buildUseSlots.js +2 -1
- package/lib-commonjs/buildUseSlots.js.map +1 -1
- package/lib-commonjs/buildUseSlots.test.js +20 -8
- package/lib-commonjs/buildUseSlots.test.js.map +1 -1
- package/lib-commonjs/index.js +11 -4
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/useSlots.samples.test.js +35 -35
- package/lib-commonjs/useSlots.samples.test.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/use-slots",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 18 Dec 2021 04:11:32 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/use-slots_v0.6.3",
|
|
7
|
+
"version": "0.6.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/use-slots",
|
|
13
|
+
"comment": "Bump @fluentui-react-native/use-slot to v0.2.3",
|
|
14
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/use-slots",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/merge-props to v0.4.1",
|
|
20
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Fri, 17 Dec 2021 22:06:58 GMT",
|
|
6
27
|
"tag": "@fluentui-react-native/use-slots_v0.6.2",
|
|
7
28
|
"version": "0.6.2",
|
|
8
29
|
"comments": {
|
|
@@ -11,7 +32,7 @@
|
|
|
11
32
|
"author": "beachball",
|
|
12
33
|
"package": "@fluentui-react-native/use-slots",
|
|
13
34
|
"comment": "Bump @fluentui-react-native/use-slot to v0.2.2",
|
|
14
|
-
"commit": "
|
|
35
|
+
"commit": "9dc61df83605c035822518c18cc46fb5503dff70"
|
|
15
36
|
}
|
|
16
37
|
]
|
|
17
38
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/use-slots
|
|
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.6.3
|
|
8
|
+
|
|
9
|
+
Sat, 18 Dec 2021 04:11:32 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/use-slot to v0.2.3
|
|
14
|
+
- Bump @fluentui-react-native/merge-props to v0.4.1
|
|
15
|
+
|
|
7
16
|
## 0.6.2
|
|
8
17
|
|
|
9
|
-
Fri, 17 Dec 2021 22:
|
|
18
|
+
Fri, 17 Dec 2021 22:06:58 GMT
|
|
10
19
|
|
|
11
20
|
### Patches
|
|
12
21
|
|
package/lib/buildUseSlots.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA+C,MAAM,iCAAiC,CAAC;AAgBvG,MAAM,UAAU,aAAa,CAAa,OAAmC;IACnE,IAAA,
|
|
1
|
+
{"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA+C,MAAM,iCAAiC,CAAC;AAgBvG,MAAM,UAAU,aAAa,CAAa,OAAmC;IACnE,IAAA,KAAK,GAA+B,OAAO,MAAtC,EAAE,KAA6B,OAAO,QAAxB,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,UAAU,GAAK,OAAO,WAAZ,CAAa;IACpD,OAAO;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACpB,uDAAuD;QACvD,IAAM,SAAS,GAAe,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAuB,eAAI,IAAI,EAAE,CAAC,CAAE,CAAC,UAAU,IAAI,EAAE,CAAgB,CAAC;QAExI,2DAA2D;QAC3D,IAAM,UAAU,GAAsB,EAAuB,CAAC;QAE9D,mGAAmG;QACnG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YAClC,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1F,CAAC,CAAC,CAAC;QAEH,qFAAqF;QACrF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSlots.samples.test.js","sourceRoot":"","sources":["../src/useSlots.samples.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,MAAM,MAA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CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildUseSlots = void 0;
|
|
3
4
|
var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
4
5
|
function buildUseSlots(options) {
|
|
5
6
|
var slots = options.slots, _a = options.filters, filters = _a === void 0 ? {} : _a, useStyling = options.useStyling;
|
|
@@ -14,7 +15,7 @@ function buildUseSlots(options) {
|
|
|
14
15
|
var builtSlots = {};
|
|
15
16
|
// for each slot go through and either cache the slot props or call part one render if it is staged
|
|
16
17
|
Object.keys(slots).forEach(function (slotName) {
|
|
17
|
-
builtSlots[slotName] = use_slot_1.useSlot(slots[slotName], slotProps[slotName], filters[slotName]);
|
|
18
|
+
builtSlots[slotName] = (0, use_slot_1.useSlot)(slots[slotName], slotProps[slotName], filters[slotName]);
|
|
18
19
|
});
|
|
19
20
|
// return the prebuilt closures, these will have internal references to state.results
|
|
20
21
|
return builtSlots;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":";;;AAAA,4DAAuG;AAgBvG,SAAgB,aAAa,CAAa,OAAmC;IACnE,IAAA,KAAK,GAA+B,OAAO,MAAtC,EAAE,KAA6B,OAAO,QAAxB,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,UAAU,GAAK,OAAO,WAAZ,CAAa;IACpD,OAAO;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACpB,uDAAuD;QACvD,IAAM,SAAS,GAAe,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAuB,eAAI,IAAI,EAAE,CAAC,CAAE,CAAC,UAAU,IAAI,EAAE,CAAgB,CAAC;QAExI,2DAA2D;QAC3D,IAAM,UAAU,GAAsB,EAAuB,CAAC;QAE9D,mGAAmG;QACnG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YAClC,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAA,kBAAO,EAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1F,CAAC,CAAC,CAAC;QAEH,qFAAqF;QACrF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AAjBD,sCAiBC"}
|
|
@@ -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 });
|
|
@@ -23,25 +35,25 @@ var use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
|
23
35
|
var renderer = __importStar(require("react-test-renderer"));
|
|
24
36
|
var buildUseSlots_1 = require("./buildUseSlots");
|
|
25
37
|
var react_native_1 = require("react-native");
|
|
26
|
-
var useSlotsBase = buildUseSlots_1.buildUseSlots({
|
|
38
|
+
var useSlotsBase = (0, buildUseSlots_1.buildUseSlots)({
|
|
27
39
|
slots: {
|
|
28
40
|
outer: react_native_1.View,
|
|
29
41
|
inner: react_native_1.View,
|
|
30
42
|
content: react_native_1.Text,
|
|
31
43
|
},
|
|
32
44
|
});
|
|
33
|
-
var CompBase = use_slot_1.stagedComponent(function (props) {
|
|
45
|
+
var CompBase = (0, use_slot_1.stagedComponent)(function (props) {
|
|
34
46
|
var Slots = useSlotsBase(props);
|
|
35
47
|
return function (extra) {
|
|
36
48
|
var merged = __assign(__assign({}, props), extra);
|
|
37
|
-
return (use_slot_1.withSlots(Slots.outer, __assign({}, merged),
|
|
38
|
-
use_slot_1.withSlots(Slots.inner, { style: { backgroundColor: 'blue', width: 20, height: 10 } },
|
|
39
|
-
use_slot_1.withSlots(Slots.content, null, "Hello"))));
|
|
49
|
+
return ((0, use_slot_1.withSlots)(Slots.outer, __assign({}, merged),
|
|
50
|
+
(0, use_slot_1.withSlots)(Slots.inner, { style: { backgroundColor: 'blue', width: 20, height: 10 } },
|
|
51
|
+
(0, use_slot_1.withSlots)(Slots.content, null, "Hello"))));
|
|
40
52
|
};
|
|
41
53
|
});
|
|
42
54
|
describe('buildUseSlots test suite', function () {
|
|
43
55
|
it('Simple component render', function () {
|
|
44
|
-
var tree = renderer.create(use_slot_1.withSlots(CompBase, { style: { width: 30, height: 20, borderColor: 'green', borderWidth: 1 } })).toJSON();
|
|
56
|
+
var tree = renderer.create((0, use_slot_1.withSlots)(CompBase, { style: { width: 30, height: 20, borderColor: 'green', borderWidth: 1 } })).toJSON();
|
|
45
57
|
expect(tree).toMatchSnapshot();
|
|
46
58
|
});
|
|
47
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildUseSlots.test.js","sourceRoot":"","sources":["../src/buildUseSlots.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildUseSlots.test.js","sourceRoot":"","sources":["../src/buildUseSlots.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,4DAA6E;AAC7E,4DAAgD;AAChD,iDAAgD;AAChD,6CAAgE;AAQhE,IAAM,YAAY,GAAG,IAAA,6BAAa,EAAa;IAC7C,KAAK,EAAE;QACL,KAAK,EAAE,mBAAI;QACX,KAAK,EAAE,mBAAI;QACX,OAAO,EAAE,mBAAI;KACd;CACF,CAAC,CAAC;AAEH,IAAM,QAAQ,GAAG,IAAA,0BAAe,EAAC,UAAC,KAAgB;IAChD,IAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAClC,OAAO,UAAC,KAAgB;QACtB,IAAM,MAAM,yBAAQ,KAAK,GAAK,KAAK,CAAE,CAAC;QACtC,OAAO,CACL,0BAAC,KAAK,CAAC,KAAK,eAAK,MAAM;YACrB,0BAAC,KAAK,CAAC,KAAK,IAAC,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;gBACpE,0BAAC,KAAK,CAAC,OAAO,gBAAsB,CACxB,CACF,CACf,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,0BAA0B,EAAE;IACnC,EAAE,CAAC,yBAAyB,EAAE;QAC5B,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,0BAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QAC5H,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("./buildUseSlots"), 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,kDAAgC"}
|
|
@@ -59,7 +59,7 @@ describe('useSlots sample code test suite', function () {
|
|
|
59
59
|
* Now render the text, merging the baseProps with the style updates with the rest param. Note that this leverages the fact
|
|
60
60
|
* that mergeProps will reliably produce style objects with the same reference, given the same inputs.
|
|
61
61
|
*/
|
|
62
|
-
return use_slot_1.withSlots("span", __assign({}, merge_props_1.mergeProps(boldBaseProps, rest)), children);
|
|
62
|
+
return (0, use_slot_1.withSlots)("span", __assign({}, (0, merge_props_1.mergeProps)(boldBaseProps, rest)), children);
|
|
63
63
|
};
|
|
64
64
|
BoldTextStandard.displayName = 'BoldTextStandard';
|
|
65
65
|
/**
|
|
@@ -68,7 +68,7 @@ describe('useSlots sample code test suite', function () {
|
|
|
68
68
|
*
|
|
69
69
|
* The stagedComponent function takes an input function of this form and wraps it in a function component that react knows how to render
|
|
70
70
|
*/
|
|
71
|
-
var BoldTextStaged = use_slot_1.stagedComponent(function (props) {
|
|
71
|
+
var BoldTextStaged = (0, use_slot_1.stagedComponent)(function (props) {
|
|
72
72
|
/**
|
|
73
73
|
* This section would be where hook/styling code would go, props here would include everything coming in from the base react tree with the
|
|
74
74
|
* exception of children, which will be passed in stage 2.
|
|
@@ -78,7 +78,7 @@ describe('useSlots sample code test suite', function () {
|
|
|
78
78
|
* extra are additional props that may be filled in by a higher order component. They should not include styling and are only props the
|
|
79
79
|
* enclosing component are passing to the JSX elements
|
|
80
80
|
*/
|
|
81
|
-
return use_slot_1.withSlots("span", __assign({}, merge_props_1.mergeProps(boldBaseProps, props, extra)), children);
|
|
81
|
+
return (0, use_slot_1.withSlots)("span", __assign({}, (0, merge_props_1.mergeProps)(boldBaseProps, props, extra)), children);
|
|
82
82
|
};
|
|
83
83
|
});
|
|
84
84
|
BoldTextStaged.displayName = 'BoldTextStaged';
|
|
@@ -91,10 +91,10 @@ describe('useSlots sample code test suite', function () {
|
|
|
91
91
|
/**
|
|
92
92
|
* First render the staged component. This invokes the wrapper that was built by the stagedComponent function
|
|
93
93
|
*/
|
|
94
|
-
var wrapper = enzyme_1.mount(use_slot_1.withSlots("div", null,
|
|
95
|
-
use_slot_1.withSlots(BoldTextStaged, { style: styleToMerge }, "Staged component at one level"),
|
|
96
|
-
use_slot_1.withSlots(BoldTextStandard, { style: styleToMerge }, "Standard component of a single level")));
|
|
97
|
-
expect(enzyme_to_json_1.default(wrapper)).toMatchSnapshot();
|
|
94
|
+
var wrapper = (0, enzyme_1.mount)((0, use_slot_1.withSlots)("div", null,
|
|
95
|
+
(0, use_slot_1.withSlots)(BoldTextStaged, { style: styleToMerge }, "Staged component at one level"),
|
|
96
|
+
(0, use_slot_1.withSlots)(BoldTextStandard, { style: styleToMerge }, "Standard component of a single level")));
|
|
97
|
+
expect((0, enzyme_to_json_1.default)(wrapper)).toMatchSnapshot();
|
|
98
98
|
});
|
|
99
99
|
/**
|
|
100
100
|
* Example #2 - Simple component containing another simple component -------------------------------------
|
|
@@ -111,7 +111,7 @@ describe('useSlots sample code test suite', function () {
|
|
|
111
111
|
*/
|
|
112
112
|
var HeaderStandard = function (props) {
|
|
113
113
|
var children = props.children, rest = __rest(props, ["children"]);
|
|
114
|
-
return use_slot_1.withSlots(BoldTextStandard, __assign({}, merge_props_1.mergeProps(headerBaseProps, rest)), children);
|
|
114
|
+
return (0, use_slot_1.withSlots)(BoldTextStandard, __assign({}, (0, merge_props_1.mergeProps)(headerBaseProps, rest)), children);
|
|
115
115
|
};
|
|
116
116
|
HeaderStandard.displayName = 'HeaderStandard';
|
|
117
117
|
/**
|
|
@@ -121,11 +121,11 @@ describe('useSlots sample code test suite', function () {
|
|
|
121
121
|
*
|
|
122
122
|
* This should be built once, and consumed by the component, not built on the fly inside
|
|
123
123
|
*/
|
|
124
|
-
var useHeaderSlots = buildUseSlots_1.buildUseSlots({ slots: { text: BoldTextStaged } });
|
|
124
|
+
var useHeaderSlots = (0, buildUseSlots_1.buildUseSlots)({ slots: { text: BoldTextStaged } });
|
|
125
125
|
/**
|
|
126
126
|
* Now author the staged component using the slot hook
|
|
127
127
|
*/
|
|
128
|
-
var HeaderStaged = use_slot_1.stagedComponent(function (props) {
|
|
128
|
+
var HeaderStaged = (0, use_slot_1.stagedComponent)(function (props) {
|
|
129
129
|
/**
|
|
130
130
|
* Call the slots hook (or any hook) outside of the inner closure. The useSlots hook will return an object with each slot as a renderable
|
|
131
131
|
* function. The hooks for sub-components will be called as part of this call. Props passed in at this point will be the props that appear
|
|
@@ -144,7 +144,7 @@ describe('useSlots sample code test suite', function () {
|
|
|
144
144
|
* NOTE: this requires using the withSlots helper via the jsx directive. This knows how to pick apart the entries and just call the second
|
|
145
145
|
* part of the function
|
|
146
146
|
*/
|
|
147
|
-
return use_slot_1.withSlots(BoldText, __assign({}, merge_props_1.mergeProps(headerBaseProps, props, extra)), children);
|
|
147
|
+
return (0, use_slot_1.withSlots)(BoldText, __assign({}, (0, merge_props_1.mergeProps)(headerBaseProps, props, extra)), children);
|
|
148
148
|
};
|
|
149
149
|
});
|
|
150
150
|
HeaderStaged.displayName = 'HeaderStaged';
|
|
@@ -157,10 +157,10 @@ describe('useSlots sample code test suite', function () {
|
|
|
157
157
|
/**
|
|
158
158
|
* First render the staged component. This invokes the wrapper that was built by the stagedComponent function
|
|
159
159
|
*/
|
|
160
|
-
var wrapper = enzyme_1.mount(use_slot_1.withSlots("div", null,
|
|
161
|
-
use_slot_1.withSlots(HeaderStaged, { style: styleToMerge }, "Staged component with two levels"),
|
|
162
|
-
use_slot_1.withSlots(HeaderStandard, { style: styleToMerge }, "Standard component with two levels")));
|
|
163
|
-
expect(enzyme_to_json_1.default(wrapper)).toMatchSnapshot();
|
|
160
|
+
var wrapper = (0, enzyme_1.mount)((0, use_slot_1.withSlots)("div", null,
|
|
161
|
+
(0, use_slot_1.withSlots)(HeaderStaged, { style: styleToMerge }, "Staged component with two levels"),
|
|
162
|
+
(0, use_slot_1.withSlots)(HeaderStandard, { style: styleToMerge }, "Standard component with two levels")));
|
|
163
|
+
expect((0, enzyme_to_json_1.default)(wrapper)).toMatchSnapshot();
|
|
164
164
|
});
|
|
165
165
|
/** standard props for the container */
|
|
166
166
|
var containerProps = { style: { display: 'flex', flexDirection: 'column' } };
|
|
@@ -183,15 +183,15 @@ describe('useSlots sample code test suite', function () {
|
|
|
183
183
|
var headerColor = props.headerColor, captionColor = props.captionColor, captionText = props.captionText, children = props.children, rest = __rest(props, ["headerColor", "captionColor", "captionText", "children"]);
|
|
184
184
|
var headerColorProps = getColorProps(headerColor);
|
|
185
185
|
var captionColorProps = getColorProps(captionColor);
|
|
186
|
-
return (use_slot_1.withSlots("div", __assign({}, merge_props_1.mergeProps(containerProps, rest)),
|
|
187
|
-
use_slot_1.withSlots(HeaderStandard, __assign({}, headerColorProps), children),
|
|
188
|
-
captionText && use_slot_1.withSlots(BoldTextStandard, __assign({}, captionColorProps), captionText)));
|
|
186
|
+
return ((0, use_slot_1.withSlots)("div", __assign({}, (0, merge_props_1.mergeProps)(containerProps, rest)),
|
|
187
|
+
(0, use_slot_1.withSlots)(HeaderStandard, __assign({}, headerColorProps), children),
|
|
188
|
+
captionText && (0, use_slot_1.withSlots)(BoldTextStandard, __assign({}, captionColorProps), captionText)));
|
|
189
189
|
};
|
|
190
190
|
CaptionedHeaderStandard.displayName = "CaptionedHeaderStandard';";
|
|
191
191
|
/**
|
|
192
192
|
* now build the same component using slots hook. This will also add use of the style injection pattern
|
|
193
193
|
*/
|
|
194
|
-
var useCaptionedHeaderSlots = buildUseSlots_1.buildUseSlots({
|
|
194
|
+
var useCaptionedHeaderSlots = (0, buildUseSlots_1.buildUseSlots)({
|
|
195
195
|
/** Slots are just like above, this component will have three sub-components */
|
|
196
196
|
slots: {
|
|
197
197
|
container: 'div',
|
|
@@ -210,16 +210,16 @@ describe('useSlots sample code test suite', function () {
|
|
|
210
210
|
/**
|
|
211
211
|
* now use the hook to implement it as a staged component
|
|
212
212
|
*/
|
|
213
|
-
var CaptionedHeaderStaged = use_slot_1.stagedComponent(function (props) {
|
|
213
|
+
var CaptionedHeaderStaged = (0, use_slot_1.stagedComponent)(function (props) {
|
|
214
214
|
// At the point where this is called the slots are initialized with the initial prop values from useStyling above
|
|
215
215
|
var Slots = useCaptionedHeaderSlots(props);
|
|
216
216
|
return function (extra, children) {
|
|
217
217
|
// merge the props together, picking out the caption text and clearing any custom values we don't want forwarded to the view
|
|
218
|
-
var _a = merge_props_1.mergeProps(props, extra, clearCustomProps), captionText = _a.captionText, rest = __rest(_a, ["captionText"]);
|
|
218
|
+
var _a = (0, merge_props_1.mergeProps)(props, extra, clearCustomProps), captionText = _a.captionText, rest = __rest(_a, ["captionText"]);
|
|
219
219
|
// now render using the slots. Any values passed in via JSX will be merged with values from the slot hook above
|
|
220
|
-
return (use_slot_1.withSlots(Slots.container, __assign({}, rest),
|
|
221
|
-
use_slot_1.withSlots(Slots.header, null, children),
|
|
222
|
-
captionText && use_slot_1.withSlots(Slots.caption, null, captionText)));
|
|
220
|
+
return ((0, use_slot_1.withSlots)(Slots.container, __assign({}, rest),
|
|
221
|
+
(0, use_slot_1.withSlots)(Slots.header, null, children),
|
|
222
|
+
captionText && (0, use_slot_1.withSlots)(Slots.caption, null, captionText)));
|
|
223
223
|
};
|
|
224
224
|
});
|
|
225
225
|
CaptionedHeaderStaged.displayName = 'CaptionedHeaderStaged';
|
|
@@ -232,17 +232,17 @@ describe('useSlots sample code test suite', function () {
|
|
|
232
232
|
* Render the two sets of components. Note in the snapshots how the render tree layers for the standard approach are starting
|
|
233
233
|
* to add up.
|
|
234
234
|
*/
|
|
235
|
-
var wrapper = enzyme_1.mount(use_slot_1.withSlots("div", null,
|
|
236
|
-
use_slot_1.withSlots("span", null, "--- SIMPLE USAGE COMPARISON ---"),
|
|
237
|
-
use_slot_1.withSlots(CaptionedHeaderStandard, { style: styleToMerge }, "Standard HOC"),
|
|
238
|
-
use_slot_1.withSlots(CaptionedHeaderStaged, { style: styleToMerge }, "Staged HOC"),
|
|
239
|
-
use_slot_1.withSlots("span", null, "--- COMPARISON WITH CAPTIONS ---"),
|
|
240
|
-
use_slot_1.withSlots(CaptionedHeaderStandard, { style: styleToMerge, captionText: "Caption text" }, "Standard HOC with Caption"),
|
|
241
|
-
use_slot_1.withSlots(CaptionedHeaderStaged, { style: styleToMerge, captionText: "Caption text" }, "Staged HOC with Caption"),
|
|
242
|
-
use_slot_1.withSlots("span", null, "--- COMPARISON WITH CAPTIONS AND CUSTOMIZATIONS ---"),
|
|
243
|
-
use_slot_1.withSlots(CaptionedHeaderStandard, { style: styleToMerge, captionText: "Caption text", captionColor: "yellow", headerColor: "red" }, "Standard HOC with caption and customizations"),
|
|
244
|
-
use_slot_1.withSlots(CaptionedHeaderStaged, { style: styleToMerge, captionText: "Caption text", captionColor: "yellow", headerColor: "red" }, "Staged HOC with caption and customizations")));
|
|
245
|
-
expect(enzyme_to_json_1.default(wrapper)).toMatchSnapshot();
|
|
235
|
+
var wrapper = (0, enzyme_1.mount)((0, use_slot_1.withSlots)("div", null,
|
|
236
|
+
(0, use_slot_1.withSlots)("span", null, "--- SIMPLE USAGE COMPARISON ---"),
|
|
237
|
+
(0, use_slot_1.withSlots)(CaptionedHeaderStandard, { style: styleToMerge }, "Standard HOC"),
|
|
238
|
+
(0, use_slot_1.withSlots)(CaptionedHeaderStaged, { style: styleToMerge }, "Staged HOC"),
|
|
239
|
+
(0, use_slot_1.withSlots)("span", null, "--- COMPARISON WITH CAPTIONS ---"),
|
|
240
|
+
(0, use_slot_1.withSlots)(CaptionedHeaderStandard, { style: styleToMerge, captionText: "Caption text" }, "Standard HOC with Caption"),
|
|
241
|
+
(0, use_slot_1.withSlots)(CaptionedHeaderStaged, { style: styleToMerge, captionText: "Caption text" }, "Staged HOC with Caption"),
|
|
242
|
+
(0, use_slot_1.withSlots)("span", null, "--- COMPARISON WITH CAPTIONS AND CUSTOMIZATIONS ---"),
|
|
243
|
+
(0, use_slot_1.withSlots)(CaptionedHeaderStandard, { style: styleToMerge, captionText: "Caption text", captionColor: "yellow", headerColor: "red" }, "Standard HOC with caption and customizations"),
|
|
244
|
+
(0, use_slot_1.withSlots)(CaptionedHeaderStaged, { style: styleToMerge, captionText: "Caption text", captionColor: "yellow", headerColor: "red" }, "Staged HOC with caption and customizations")));
|
|
245
|
+
expect((0, enzyme_to_json_1.default)(wrapper)).toMatchSnapshot();
|
|
246
246
|
});
|
|
247
247
|
});
|
|
248
248
|
//# sourceMappingURL=useSlots.samples.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSlots.samples.test.js","sourceRoot":"","sources":["../src/useSlots.samples.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,4DAA6E;AAC7E,kEAAgE;AAChE,iDAAgD;AAChD,kEAAoC;AACpC,iCAA+B;AAS/B;;;GAGG;AAEH,QAAQ,CAAC,iCAAiC,EAAE;IAC1C;;;OAGG;IAEH;;;;;OAKG;IAEH,IAAM,aAAa,GAAc,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC;IAEhE;;OAEG;IACH,IAAM,gBAAgB,GAAuC,UAAC,KAAyC;QACrG;;WAEG;QACK,IAAA,
|
|
1
|
+
{"version":3,"file":"useSlots.samples.test.js","sourceRoot":"","sources":["../src/useSlots.samples.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,4DAA6E;AAC7E,kEAAgE;AAChE,iDAAgD;AAChD,kEAAoC;AACpC,iCAA+B;AAS/B;;;GAGG;AAEH,QAAQ,CAAC,iCAAiC,EAAE;IAC1C;;;OAGG;IAEH;;;;;OAKG;IAEH,IAAM,aAAa,GAAc,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC;IAEhE;;OAEG;IACH,IAAM,gBAAgB,GAAuC,UAAC,KAAyC;QACrG;;WAEG;QACK,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,UAAK,KAAK,EAA7B,YAAqB,CAAF,CAAW;QAEpC;;;WAGG;QACH,OAAO,+CAAU,IAAA,wBAAU,EAAC,aAAa,EAAE,IAAI,CAAC,GAAG,QAAQ,CAAQ,CAAC;IACtE,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W,EAAC,cAAc,EAAC,YAAY,EAAC,QAAQ,EAAC,WAAW,EAAC,KAAK,mDAEtF;YAC1B,0BAAC,qBAAqB,IAAC,KAAK,EAAE,YAAY,EAAE,WAAW,EAAC,cAAc,EAAC,YAAY,EAAC,QAAQ,EAAC,WAAW,EAAC,KAAK,iDAEtF,CACpB,CACP,CAAC;QACF,MAAM,CAAC,IAAA,wBAAM,EAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/use-slots",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Hook function to return styled slots",
|
|
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/use-slot": ">=0.2.
|
|
31
|
+
"@fluentui-react-native/use-slot": ">=0.2.3 <1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@fluentui-react-native/merge-props": ">=0.4.
|
|
34
|
+
"@fluentui-react-native/merge-props": ">=0.4.1 <1.0.0",
|
|
35
35
|
"@uifabricshared/build-native": "^0.1.1",
|
|
36
36
|
"react": "17.0.1",
|
|
37
37
|
"react-native": "^0.64.3"
|