@nativescript-community/ui-label 1.2.3 → 1.2.4
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.md +11 -0
- package/label-common.js +0 -9
- package/label.android.js +2 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [1.2.4](https://github.com/nativescript-community/ui-label/compare/v1.2.3...v1.2.4) (2022-01-14)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* uglify fix ([f04189f](https://github.com/nativescript-community/ui-label/commit/f04189f9838615d4eb037a6423fd245538860358))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
6
17
|
## [1.2.3](https://github.com/nativescript-community/ui-label/compare/v1.2.2...v1.2.3) (2022-01-13)
|
7
18
|
|
8
19
|
**Note:** Version bump only for package @nativescript-community/ui-label
|
package/label-common.js
CHANGED
@@ -9,15 +9,6 @@ import { layout } from '@nativescript/core/utils/utils';
|
|
9
9
|
// }
|
10
10
|
// init text to ensure font overrides are called
|
11
11
|
init();
|
12
|
-
// const CHILD_SPAN = 'Span';
|
13
|
-
// const CHILD_FORMATTED_TEXT = 'formattedText';
|
14
|
-
// const CHILD_FORMATTED_STRING = 'FormattedString';
|
15
|
-
// FormattedString.prototype.addPropertyChangeHandler = function (span: Span) {
|
16
|
-
// span.on(Observable.propertyChangeEvent, this.onPropertyChange, this);
|
17
|
-
// };
|
18
|
-
// FormattedString.prototype.removePropertyChangeHandler = function (span: Span) {
|
19
|
-
// span.off(Observable.propertyChangeEvent, this.onPropertyChange, this);
|
20
|
-
// };
|
21
12
|
export const needFormattedStringComputation = function (target, propertyKey, descriptor) {
|
22
13
|
const originalMethod = descriptor.value;
|
23
14
|
descriptor.value = function (...args) {
|
package/label.android.js
CHANGED
@@ -12,9 +12,7 @@ export { createNativeAttributedString, enableIOSDTCoreText } from '@nativescript
|
|
12
12
|
export * from './label-common';
|
13
13
|
const sdkVersion = lazy(() => parseInt(Device.sdkVersion, 10));
|
14
14
|
let TextView;
|
15
|
-
const CHILD_SPAN = 'Span';
|
16
15
|
const CHILD_FORMATTED_TEXT = 'formattedText';
|
17
|
-
const CHILD_FORMATTED_STRING = 'FormattedString';
|
18
16
|
const resetSymbol = Symbol('textPropertyDefault');
|
19
17
|
var SuspendType;
|
20
18
|
(function (SuspendType) {
|
@@ -159,7 +157,7 @@ let LabelBase = class LabelBase extends View {
|
|
159
157
|
}
|
160
158
|
}
|
161
159
|
_addChildFromBuilder(name, value) {
|
162
|
-
if (name ===
|
160
|
+
if (name === Span.name) {
|
163
161
|
if (!this.formattedText) {
|
164
162
|
let formattedText;
|
165
163
|
if (overrideSpanAndFormattedStringEnabled) {
|
@@ -176,7 +174,7 @@ let LabelBase = class LabelBase extends View {
|
|
176
174
|
this.formattedText.spans.push(value);
|
177
175
|
}
|
178
176
|
}
|
179
|
-
else if (name === CHILD_FORMATTED_TEXT || name ===
|
177
|
+
else if (name === CHILD_FORMATTED_TEXT || name === FormattedString.name) {
|
180
178
|
this.formattedText = value;
|
181
179
|
value.parent = this;
|
182
180
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/ui-label",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.4",
|
4
4
|
"description": "Alternative to the built-in NativeScript Label but with better performance and additional features such as HTML rendering and more.",
|
5
5
|
"main": "./label",
|
6
6
|
"sideEffects": false,
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"license": "Apache-2.0",
|
33
33
|
"readmeFilename": "README.md",
|
34
34
|
"dependencies": {
|
35
|
-
"@nativescript-community/text": "^1.4.
|
35
|
+
"@nativescript-community/text": "^1.4.32"
|
36
36
|
},
|
37
|
-
"gitHead": "
|
37
|
+
"gitHead": "27522e865296a86d576a68d8adc8973f384c572f"
|
38
38
|
}
|