@fluentui-react-native/use-slots 0.10.6 → 0.10.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 +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/useSlots.samples.test.js +1 -1
- package/lib/useSlots.samples.test.js.map +1 -1
- package/lib-commonjs/useSlots.samples.test.js +7 -7
- package/lib-commonjs/useSlots.samples.test.js.map +1 -1
- package/package.json +3 -3
- package/src/useSlots.samples.test.tsx +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/use-slots",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 16 Jul 2025 20:02:38 GMT",
|
|
6
|
+
"version": "0.10.7",
|
|
7
|
+
"tag": "@fluentui-react-native/use-slots_v0.10.7",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "jasonmo@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/use-slots",
|
|
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:26:53 GMT",
|
|
6
21
|
"version": "0.10.6",
|
|
7
22
|
"tag": "@fluentui-react-native/use-slots_v0.10.6",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
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 Wed, 16 Jul 2025 20:02:38 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.10.7
|
|
8
|
+
|
|
9
|
+
Wed, 16 Jul 2025 20:02:38 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- create common framework-base package to share common utiltities more broadly (jasonmo@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.10.6
|
|
8
16
|
|
|
9
|
-
Tue, 15 Jul 2025 23:
|
|
17
|
+
Tue, 15 Jul 2025 23:26:53 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeProps } from '@fluentui-react-native/
|
|
1
|
+
import { mergeProps } from '@fluentui-react-native/framework-base';
|
|
2
2
|
import { withSlots, stagedComponent } from '@fluentui-react-native/use-slot';
|
|
3
3
|
import * as renderer from 'react-test-renderer';
|
|
4
4
|
import { buildUseSlots } from './buildUseSlots';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSlots.samples.test.js","sourceRoot":"","sources":["../src/useSlots.samples.test.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSlots.samples.test.js","sourceRoot":"","sources":["../src/useSlots.samples.test.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQhD;;;GAGG;AAEH,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C;;;OAGG;IAEH;;;;;OAKG;IAEH,MAAM,aAAa,GAAc,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC;IAEhE;;OAEG;IACH,MAAM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AAK,EAAE,YAAY,EAAE,WAAW,EAAC,cAAc,8BAE9C;YACxB,8EAAgE;YAChE,UAAC,uBAAuB,IAAC,KAAK,EAAE,YAAY,EAAE,WAAW,EAAC,cAAc,EAAC,YAAY,EAAC,QAAQ,EAAC,WAAW,EAAC,KAAK,mDAEtF;YAC1B,UAAC,qBAAqB,IAAC,KAAK,EAAE,YAAY,EAAE,WAAW,EAAC,cAAc,EAAC,YAAY,EAAC,QAAQ,EAAC,WAAW,EAAC,KAAK,iDAEtF,CACpB,CACP;aACA,MAAM,EAAE,CAAC;QACZ,MAAM,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const
|
|
26
|
+
const framework_base_1 = require("@fluentui-react-native/framework-base");
|
|
27
27
|
const use_slot_1 = require("@fluentui-react-native/use-slot");
|
|
28
28
|
const renderer = __importStar(require("react-test-renderer"));
|
|
29
29
|
const buildUseSlots_1 = require("./buildUseSlots");
|
|
@@ -55,7 +55,7 @@ describe('useSlots sample code test suite', () => {
|
|
|
55
55
|
* Now render the text, merging the baseProps with the style updates with the rest param. Note that this leverages the fact
|
|
56
56
|
* that mergeProps will reliably produce style objects with the same reference, given the same inputs.
|
|
57
57
|
*/
|
|
58
|
-
return (0, use_slot_1.withSlots)("span", { ...(0,
|
|
58
|
+
return (0, use_slot_1.withSlots)("span", { ...(0, framework_base_1.mergeProps)(boldBaseProps, rest) }, children);
|
|
59
59
|
};
|
|
60
60
|
BoldTextStandard.displayName = 'BoldTextStandard';
|
|
61
61
|
/**
|
|
@@ -74,7 +74,7 @@ describe('useSlots sample code test suite', () => {
|
|
|
74
74
|
* extra are additional props that may be filled in by a higher order component. They should not include styling and are only props the
|
|
75
75
|
* enclosing component are passing to the JSX elements
|
|
76
76
|
*/
|
|
77
|
-
return (0, use_slot_1.withSlots)("span", { ...(0,
|
|
77
|
+
return (0, use_slot_1.withSlots)("span", { ...(0, framework_base_1.mergeProps)(boldBaseProps, props, extra) }, children);
|
|
78
78
|
};
|
|
79
79
|
});
|
|
80
80
|
BoldTextStaged.displayName = 'BoldTextStaged';
|
|
@@ -105,7 +105,7 @@ describe('useSlots sample code test suite', () => {
|
|
|
105
105
|
*/
|
|
106
106
|
const HeaderStandard = (props) => {
|
|
107
107
|
const { children, ...rest } = props;
|
|
108
|
-
return (0, use_slot_1.withSlots)(BoldTextStandard, { ...(0,
|
|
108
|
+
return (0, use_slot_1.withSlots)(BoldTextStandard, { ...(0, framework_base_1.mergeProps)(headerBaseProps, rest) }, children);
|
|
109
109
|
};
|
|
110
110
|
HeaderStandard.displayName = 'HeaderStandard';
|
|
111
111
|
/**
|
|
@@ -138,7 +138,7 @@ describe('useSlots sample code test suite', () => {
|
|
|
138
138
|
* NOTE: this requires using the withSlots helper via the jsx directive. This knows how to pick apart the entries and just call the second
|
|
139
139
|
* part of the function
|
|
140
140
|
*/
|
|
141
|
-
return (0, use_slot_1.withSlots)(BoldText, { ...(0,
|
|
141
|
+
return (0, use_slot_1.withSlots)(BoldText, { ...(0, framework_base_1.mergeProps)(headerBaseProps, props, extra) }, children);
|
|
142
142
|
};
|
|
143
143
|
});
|
|
144
144
|
HeaderStaged.displayName = 'HeaderStaged';
|
|
@@ -179,7 +179,7 @@ describe('useSlots sample code test suite', () => {
|
|
|
179
179
|
const { headerColor, captionColor, captionText, children, ...rest } = props;
|
|
180
180
|
const headerColorProps = getColorProps(headerColor);
|
|
181
181
|
const captionColorProps = getColorProps(captionColor);
|
|
182
|
-
return ((0, use_slot_1.withSlots)("div", { ...(0,
|
|
182
|
+
return ((0, use_slot_1.withSlots)("div", { ...(0, framework_base_1.mergeProps)(containerProps, rest) },
|
|
183
183
|
(0, use_slot_1.withSlots)(HeaderStandard, { ...headerColorProps }, children),
|
|
184
184
|
captionText && (0, use_slot_1.withSlots)(BoldTextStandard, { ...captionColorProps }, captionText)));
|
|
185
185
|
};
|
|
@@ -211,7 +211,7 @@ describe('useSlots sample code test suite', () => {
|
|
|
211
211
|
const Slots = useCaptionedHeaderSlots(props);
|
|
212
212
|
return (extra, children) => {
|
|
213
213
|
// merge the props together, picking out the caption text and clearing any custom values we don't want forwarded to the view
|
|
214
|
-
const { captionText, ...rest } = (0,
|
|
214
|
+
const { captionText, ...rest } = (0, framework_base_1.mergeProps)(props, extra, clearCustomProps);
|
|
215
215
|
// now render using the slots. Any values passed in via JSX will be merged with values from the slot hook above
|
|
216
216
|
return ((0, use_slot_1.withSlots)(Slots.container, { ...rest },
|
|
217
217
|
(0, use_slot_1.withSlots)(Slots.header, null, children),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSlots.samples.test.js","sourceRoot":"","sources":["../src/useSlots.samples.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,
|
|
1
|
+
{"version":3,"file":"useSlots.samples.test.js","sourceRoot":"","sources":["../src/useSlots.samples.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,0EAAmE;AACnE,8DAA6E;AAC7E,8DAAgD;AAEhD,mDAAgD;AAQhD;;;GAGG;AAEH,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C;;;OAGG;IAEH;;;;;OAKG;IAEH,MAAM,aAAa,GAAc,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC;IAEhE;;OAEG;IACH,MAAM,gBAAgB,GAAgE,CAAC,KAAyC,EAAE,EAAE;QAClI;;WAEG;QACH,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;QAEpC;;;WAGG;QACH,OAAO,uCAAU,IAAA,2BAAU,EAAC,aAAa,EAAE,IAAI,CAAC,IA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YAAY,EAAE,WAAW,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;aACA,MAAM,EAAE,CAAC;QACZ,MAAM,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,CAAC;IACpC,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.10.
|
|
3
|
+
"version": "0.10.7",
|
|
4
4
|
"description": "Hook function to return styled slots",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"author": "",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluentui-react-native/use-slot": "0.6.
|
|
38
|
+
"@fluentui-react-native/use-slot": "0.6.7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.20.0",
|
|
42
|
-
"@fluentui-react-native/
|
|
42
|
+
"@fluentui-react-native/framework-base": "0.1.1",
|
|
43
43
|
"@fluentui-react-native/scripts": "0.1.1",
|
|
44
44
|
"@react-native/babel-preset": "^0.74.0",
|
|
45
45
|
"@react-native/metro-config": "^0.74.0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @jsx withSlots */
|
|
3
3
|
import type { CSSProperties } from 'react';
|
|
4
4
|
|
|
5
|
-
import { mergeProps } from '@fluentui-react-native/
|
|
5
|
+
import { mergeProps } from '@fluentui-react-native/framework-base';
|
|
6
6
|
import { withSlots, stagedComponent } from '@fluentui-react-native/use-slot';
|
|
7
7
|
import * as renderer from 'react-test-renderer';
|
|
8
8
|
|