@fluentui-react-native/text 0.11.2 → 0.11.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 +22 -1
- package/CHANGELOG.md +11 -2
- package/lib-commonjs/Text.js +2 -1
- package/lib-commonjs/Text.js.map +1 -1
- package/lib-commonjs/Text.settings.js +1 -0
- package/lib-commonjs/Text.settings.js.map +1 -1
- package/lib-commonjs/Text.types.js +1 -0
- package/lib-commonjs/Text.types.js.map +1 -1
- package/lib-commonjs/__tests__/Text.test.js +26 -14
- package/lib-commonjs/__tests__/Text.test.js.map +1 -1
- package/lib-commonjs/index.js +12 -5
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/text",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 18 Dec 2021 04:11:32 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/text_v0.11.3",
|
|
7
|
+
"version": "0.11.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui-react-native/text",
|
|
13
|
+
"comment": "Bump @uifabricshared/foundation-compose to v1.11.3",
|
|
14
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/text",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.11.2",
|
|
20
|
+
"commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Fri, 17 Dec 2021 01:26:42 GMT",
|
|
6
27
|
"tag": "@fluentui-react-native/text_v0.11.2",
|
|
7
28
|
"version": "0.11.2",
|
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/text
|
|
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.11.3
|
|
8
|
+
|
|
9
|
+
Sat, 18 Dec 2021 04:11:32 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @uifabricshared/foundation-compose to v1.11.3
|
|
14
|
+
- Bump @fluentui-react-native/tokens to v0.11.2
|
|
15
|
+
|
|
7
16
|
## 0.11.2
|
|
8
17
|
|
|
9
|
-
Fri, 17 Dec 2021 01:
|
|
18
|
+
Fri, 17 Dec 2021 01:26:42 GMT
|
|
10
19
|
|
|
11
20
|
### Patches
|
|
12
21
|
|
package/lib-commonjs/Text.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Text = void 0;
|
|
3
4
|
var Text_types_1 = require("./Text.types");
|
|
4
5
|
var foundation_compose_1 = require("@uifabricshared/foundation-compose");
|
|
5
6
|
var react_native_1 = require("react-native");
|
|
6
7
|
var adapters_1 = require("@fluentui-react-native/adapters");
|
|
7
8
|
var tokens_1 = require("@fluentui-react-native/tokens");
|
|
8
9
|
var Text_settings_1 = require("./Text.settings");
|
|
9
|
-
exports.Text = foundation_compose_1.compose({
|
|
10
|
+
exports.Text = (0, foundation_compose_1.compose)({
|
|
10
11
|
displayName: Text_types_1.textName,
|
|
11
12
|
settings: Text_settings_1.settings,
|
|
12
13
|
slots: {
|
package/lib-commonjs/Text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":";;;AAAA,2CAAmD;AACnD,yEAA6D;AAC7D,6CAA8C;AAC9C,4DAAkE;AAClE,wDAAkF;AAClF,iDAA2C;AAE9B,QAAA,IAAI,GAAG,IAAA,4BAAO,EAAY;IACrC,WAAW,EAAE,qBAAQ;IACrB,QAAQ,0BAAA;IACR,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,mBAAM,EAAE,MAAM,EAAE,0BAAe,EAAE;KACpD;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,mBAAU,EAAE,8BAAqB,CAAC;KAC1C;CACF,CAAC,CAAC;AAEH,kBAAe,YAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.settings.js","sourceRoot":"","sources":["../src/Text.settings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.settings.js","sourceRoot":"","sources":["../src/Text.settings.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AAItC,QAAA,QAAQ,GAAgC;IACnD;QACE,MAAM,EAAE;YACN,OAAO,EAAE,mBAAmB;YAC5B,KAAK,EAAE,UAAU;SAClB;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,MAAM,EAAE,CAAC;aACG;SACf;QACD,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,MAAM,EAAE;oBACN,KAAK,EAAE,cAAc;iBACtB;aACF;SACF;QACD,WAAW,EAAE,CAAC,UAAU,CAAC;KAC1B;IACD,qBAAQ;CACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.types.js","sourceRoot":"","sources":["../src/Text.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.types.js","sourceRoot":"","sources":["../src/Text.types.ts"],"names":[],"mappings":";;;AAGa,QAAA,QAAQ,GAAG,SAAS,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -33,25 +45,25 @@ it('Text all tokens', function () {
|
|
|
33
45
|
expect(tree).toMatchSnapshot();
|
|
34
46
|
});
|
|
35
47
|
it('Text simple rendering does not invalidate styling', function () {
|
|
36
|
-
test_tools_1.checkRenderConsistency(function () { return React.createElement(__1.Text, null, "Default"); });
|
|
37
|
-
test_tools_1.checkRenderConsistency(function () { return React.createElement(__1.Text, { disabled: true }, "Default"); });
|
|
38
|
-
test_tools_1.checkRenderConsistency(function () { return React.createElement(__1.Text, { variant: "headerStandard" }, "Default"); });
|
|
48
|
+
(0, test_tools_1.checkRenderConsistency)(function () { return React.createElement(__1.Text, null, "Default"); });
|
|
49
|
+
(0, test_tools_1.checkRenderConsistency)(function () { return React.createElement(__1.Text, { disabled: true }, "Default"); });
|
|
50
|
+
(0, test_tools_1.checkRenderConsistency)(function () { return React.createElement(__1.Text, { variant: "headerStandard" }, "Default"); });
|
|
39
51
|
});
|
|
40
52
|
it('Text re-renders correctly', function () {
|
|
41
|
-
test_tools_1.checkReRender(function () { return React.createElement(__1.Text, null, "Default"); });
|
|
42
|
-
test_tools_1.checkReRender(function () { return React.createElement(__1.Text, { disabled: true }, "Default"); });
|
|
43
|
-
test_tools_1.checkReRender(function () { return React.createElement(__1.Text, { variant: "headerStandard" }, "Default"); });
|
|
53
|
+
(0, test_tools_1.checkReRender)(function () { return React.createElement(__1.Text, null, "Default"); });
|
|
54
|
+
(0, test_tools_1.checkReRender)(function () { return React.createElement(__1.Text, { disabled: true }, "Default"); });
|
|
55
|
+
(0, test_tools_1.checkReRender)(function () { return React.createElement(__1.Text, { variant: "headerStandard" }, "Default"); });
|
|
44
56
|
});
|
|
45
57
|
it('Text shares produced styles across multiple renders', function () {
|
|
46
58
|
var style = { color: 'black' };
|
|
47
|
-
test_tools_1.checkRenderConsistency(function () { return React.createElement(__1.Text, { style: style }, "Default"); });
|
|
48
|
-
test_tools_1.checkRenderConsistency(function () { return (React.createElement(__1.Text, { style: style, disabled: true }, "Default")); });
|
|
49
|
-
test_tools_1.checkRenderConsistency(function () { return (React.createElement(__1.Text, { style: style, variant: "headerStandard" }, "Default")); });
|
|
59
|
+
(0, test_tools_1.checkRenderConsistency)(function () { return React.createElement(__1.Text, { style: style }, "Default"); });
|
|
60
|
+
(0, test_tools_1.checkRenderConsistency)(function () { return (React.createElement(__1.Text, { style: style, disabled: true }, "Default")); });
|
|
61
|
+
(0, test_tools_1.checkRenderConsistency)(function () { return (React.createElement(__1.Text, { style: style, variant: "headerStandard" }, "Default")); });
|
|
50
62
|
});
|
|
51
63
|
it('Text re-renders correctly with style', function () {
|
|
52
64
|
var style = { color: 'blue' };
|
|
53
|
-
test_tools_1.checkReRender(function () { return React.createElement(__1.Text, { style: style }, "Default"); });
|
|
54
|
-
test_tools_1.checkReRender(function () { return (React.createElement(__1.Text, { style: style, disabled: true }, "Default")); });
|
|
55
|
-
test_tools_1.checkReRender(function () { return (React.createElement(__1.Text, { style: style, variant: "headerStandard" }, "Default")); });
|
|
65
|
+
(0, test_tools_1.checkReRender)(function () { return React.createElement(__1.Text, { style: style }, "Default"); });
|
|
66
|
+
(0, test_tools_1.checkReRender)(function () { return (React.createElement(__1.Text, { style: style, disabled: true }, "Default")); });
|
|
67
|
+
(0, test_tools_1.checkReRender)(function () { return (React.createElement(__1.Text, { style: style, variant: "headerStandard" }, "Default")); });
|
|
56
68
|
});
|
|
57
69
|
//# sourceMappingURL=Text.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.test.js","sourceRoot":"","sources":["../../src/__tests__/Text.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.test.js","sourceRoot":"","sources":["../../src/__tests__/Text.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,wBAA0B;AAC1B,4DAAgD;AAChD,gEAA0F;AAE1F,EAAE,CAAC,cAAc,EAAE;IACjB,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,QAAI,uBAAoB,CAAC,CAAC,MAAM,EAAE,CAAC;IACjE,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,gBAAgB,EAAE;IACnB,IAAM,IAAI,GAAG,QAAQ;SAClB,MAAM,CACL,oBAAC,QAAI,IAAC,QAAQ,QAAC,OAAO,EAAC,cAAc,gBAE9B,CACR;SACA,MAAM,EAAE,CAAC;IACZ,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe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cAAM,OAAA,oBAAC,QAAI,IAAC,KAAK,EAAE,KAAK,cAAgB,EAAlC,CAAkC,CAAC,CAAC;IACjE,IAAA,mCAAsB,EAAC,cAAM,OAAA,CAC3B,oBAAC,QAAI,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,oBAErB,CACR,EAJ4B,CAI5B,CAAC,CAAC;IACH,IAAA,mCAAsB,EAAC,cAAM,OAAA,CAC3B,oBAAC,QAAI,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAC,gBAAgB,cAErC,CACR,EAJ4B,CAI5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,sCAAsC,EAAE;IACzC,IAAM,KAAK,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChC,IAAA,0BAAa,EAAC,cAAM,OAAA,oBAAC,QAAI,IAAC,KAAK,EAAE,KAAK,cAAgB,EAAlC,CAAkC,CAAC,CAAC;IACxD,IAAA,0BAAa,EAAC,cAAM,OAAA,CAClB,oBAAC,QAAI,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,oBAErB,CACR,EAJmB,CAInB,CAAC,CAAC;IACH,IAAA,0BAAa,EAAC,cAAM,OAAA,CAClB,oBAAC,QAAI,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAC,gBAAgB,cAErC,CACR,EAJmB,CAInB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
13
|
+
__exportStar(require("./Text.types"), exports);
|
|
14
|
+
__exportStar(require("./Text"), exports);
|
|
8
15
|
//# 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,+CAA6B;AAC7B,yCAAuB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/text",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "A cross-platform Text component using the Fluent Design System",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"prettier-fix": "fluentui-scripts prettier --fix true"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@uifabricshared/foundation-compose": "^1.11.
|
|
20
|
+
"@uifabricshared/foundation-compose": "^1.11.3",
|
|
21
21
|
"@fluentui-react-native/adapters": ">=0.8.1 <1.0.0",
|
|
22
|
-
"@fluentui-react-native/tokens": ">=0.11.
|
|
22
|
+
"@fluentui-react-native/tokens": ">=0.11.2 <1.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|