@progress/kendo-typescript-tasks 11.2.1-dev.0 → 11.2.1-dev.1
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/package.json +3 -3
- package/src/api/map-props.js +1 -1
- package/test/api.js +4 -40
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@progress/kendo-typescript-tasks",
|
|
3
3
|
"description": "Kendo UI TypeScript package gulp tasks",
|
|
4
4
|
"main": "gulp-tasks.js",
|
|
5
|
-
"version": "11.2.1-dev.
|
|
5
|
+
"version": "11.2.1-dev.1+8e54770",
|
|
6
6
|
"author": "Telerik",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"typescript": "^4.3.4"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@progress/kendo-common-tasks": "8.0.2-dev.
|
|
21
|
+
"@progress/kendo-common-tasks": "8.0.2-dev.1+8e54770",
|
|
22
22
|
"@typescript-eslint/eslint-plugin": "4.28.2",
|
|
23
23
|
"@typescript-eslint/parser": "4.28.2",
|
|
24
24
|
"core-js": "^3.18.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "8e54770ff3a0deda652b7bc837fd1b0590cacea1"
|
|
52
52
|
}
|
package/src/api/map-props.js
CHANGED
|
@@ -12,7 +12,7 @@ const defaultValue = prop => {
|
|
|
12
12
|
const { comment: { tags = [] } = {} } = prop;
|
|
13
13
|
const { text = '' } = tags.find(t => t.tag === 'default') || {};
|
|
14
14
|
|
|
15
|
-
return text &&
|
|
15
|
+
return text && text.trim();
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
const accessor = signature => (Array.isArray(signature) ? signature[0] : signature);
|
package/test/api.js
CHANGED
|
@@ -124,7 +124,7 @@ describe('API generation', () => {
|
|
|
124
124
|
"tags": [
|
|
125
125
|
{
|
|
126
126
|
"tag": "default",
|
|
127
|
-
"text": "
|
|
127
|
+
"text": "42\n"
|
|
128
128
|
}
|
|
129
129
|
]
|
|
130
130
|
}
|
|
@@ -134,25 +134,7 @@ describe('API generation', () => {
|
|
|
134
134
|
|
|
135
135
|
const page = classPage(meta);
|
|
136
136
|
|
|
137
|
-
expect(page).toContain('
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
it('does not render default value', () => {
|
|
141
|
-
const meta = {
|
|
142
|
-
"name": "Component",
|
|
143
|
-
"children": [
|
|
144
|
-
{
|
|
145
|
-
"name": "foo",
|
|
146
|
-
"flags": {
|
|
147
|
-
"isPublic": true
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
const page = classPage(meta);
|
|
154
|
-
|
|
155
|
-
expect(page).not.toContain('(default: true)');
|
|
137
|
+
expect(page).toContain('42');
|
|
156
138
|
});
|
|
157
139
|
});
|
|
158
140
|
|
|
@@ -224,7 +206,7 @@ describe('API generation', () => {
|
|
|
224
206
|
"tags": [
|
|
225
207
|
{
|
|
226
208
|
"tag": "default",
|
|
227
|
-
"text": "
|
|
209
|
+
"text": "42\n"
|
|
228
210
|
}
|
|
229
211
|
]
|
|
230
212
|
}
|
|
@@ -234,25 +216,7 @@ describe('API generation', () => {
|
|
|
234
216
|
|
|
235
217
|
const page = componentPage(component, packageInfo);
|
|
236
218
|
|
|
237
|
-
expect(page).toContain('
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
it('does not render default value', () => {
|
|
241
|
-
const component = {
|
|
242
|
-
"name": "Component",
|
|
243
|
-
"children": [
|
|
244
|
-
{
|
|
245
|
-
"name": "foo",
|
|
246
|
-
"flags": {
|
|
247
|
-
"isPublic": true
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
const page = componentPage(component, packageInfo);
|
|
254
|
-
|
|
255
|
-
expect(page).not.toContain('(default: true)');
|
|
219
|
+
expect(page).toContain('42');
|
|
256
220
|
});
|
|
257
221
|
});
|
|
258
222
|
|