@atlassian/clientside-extensions-webpack-plugin 2.4.1 → 2.5.0-84fa90d-kwd5ix2w

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.
Files changed (57) hide show
  1. package/dist/cjs/ClientsideExtensionsWebpackPlugin.js +21 -20
  2. package/dist/cjs/ClientsideExtensionsWebpackPlugin.js.map +1 -1
  3. package/dist/cjs/annotations/index.js +2 -2
  4. package/dist/cjs/annotations/index.js.map +1 -1
  5. package/dist/cjs/annotations/key.js +1 -1
  6. package/dist/cjs/annotations/key.js.map +1 -1
  7. package/dist/cjs/annotations/label.js +2 -2
  8. package/dist/cjs/annotations/label.js.map +1 -1
  9. package/dist/cjs/annotations/link.js +2 -2
  10. package/dist/cjs/annotations/link.js.map +1 -1
  11. package/dist/cjs/annotations/parsers.js +14 -10
  12. package/dist/cjs/annotations/parsers.js.map +1 -1
  13. package/dist/cjs/generator/conditions.js +2 -2
  14. package/dist/cjs/generator/conditions.js.map +1 -1
  15. package/dist/cjs/generator/entrypoint.js +5 -4
  16. package/dist/cjs/generator/entrypoint.js.map +1 -1
  17. package/dist/cjs/generator/webfragmentDescriptor.js +7 -7
  18. package/dist/cjs/generator/webfragmentDescriptor.js.map +1 -1
  19. package/dist/cjs/generator/webpageDescriptor.js +6 -6
  20. package/dist/cjs/generator/webpageDescriptor.js.map +1 -1
  21. package/dist/cjs/generator/xml.js +7 -5
  22. package/dist/cjs/generator/xml.js.map +1 -1
  23. package/dist/cjs/tests/test-helper.js +8 -6
  24. package/dist/cjs/tests/test-helper.js.map +1 -1
  25. package/dist/cjs/transform-comment.js +4 -4
  26. package/dist/cjs/transform-comment.js.map +1 -1
  27. package/dist/cjs/utils.js +6 -3
  28. package/dist/cjs/utils.js.map +1 -1
  29. package/dist/types/ClientsideExtensionsWebpackPlugin.d.ts +21 -24
  30. package/dist/types/ClientsideExtensionsWebpackPlugin.d.ts.map +1 -1
  31. package/lib/ClientsideExtensionsWebpackPlugin.basic.test.ts +30 -17
  32. package/lib/ClientsideExtensionsWebpackPlugin.conditions.test.ts +20 -14
  33. package/lib/ClientsideExtensionsWebpackPlugin.metadata.test.ts +9 -4
  34. package/lib/ClientsideExtensionsWebpackPlugin.ts +4 -2
  35. package/lib/ClientsideExtensionsWebpackPlugin.webpages.test.ts +35 -22
  36. package/lib/generator/xml.ts +1 -1
  37. package/lib/tests/test-helper.ts +1 -1
  38. package/lib/transform-comment.ts +2 -2
  39. package/package.json +12 -11
  40. package/tsconfig.all.json +6 -0
  41. package/tsconfig.json +5 -1
  42. package/dist/cjs/ClientsideExtensionsWebpackPlugin.basic.test.js +0 -75
  43. package/dist/cjs/ClientsideExtensionsWebpackPlugin.basic.test.js.map +0 -1
  44. package/dist/cjs/ClientsideExtensionsWebpackPlugin.conditions.test.js +0 -201
  45. package/dist/cjs/ClientsideExtensionsWebpackPlugin.conditions.test.js.map +0 -1
  46. package/dist/cjs/ClientsideExtensionsWebpackPlugin.metadata.test.js +0 -62
  47. package/dist/cjs/ClientsideExtensionsWebpackPlugin.metadata.test.js.map +0 -1
  48. package/dist/cjs/ClientsideExtensionsWebpackPlugin.webpages.test.js +0 -442
  49. package/dist/cjs/ClientsideExtensionsWebpackPlugin.webpages.test.js.map +0 -1
  50. package/dist/types/ClientsideExtensionsWebpackPlugin.basic.test.d.ts +0 -2
  51. package/dist/types/ClientsideExtensionsWebpackPlugin.basic.test.d.ts.map +0 -1
  52. package/dist/types/ClientsideExtensionsWebpackPlugin.conditions.test.d.ts +0 -2
  53. package/dist/types/ClientsideExtensionsWebpackPlugin.conditions.test.d.ts.map +0 -1
  54. package/dist/types/ClientsideExtensionsWebpackPlugin.metadata.test.d.ts +0 -2
  55. package/dist/types/ClientsideExtensionsWebpackPlugin.metadata.test.d.ts.map +0 -1
  56. package/dist/types/ClientsideExtensionsWebpackPlugin.webpages.test.d.ts +0 -2
  57. package/dist/types/ClientsideExtensionsWebpackPlugin.webpages.test.d.ts.map +0 -1
@@ -1,442 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const util_1 = require("util");
5
- const path_1 = require("path");
6
- const atlassian_webresource_webpack_plugin_1 = tslib_1.__importDefault(require("atlassian-webresource-webpack-plugin"));
7
- const utils_1 = require("ts-jest/utils");
8
- // eslint-disable-next-line import/order
9
- const test_helper_1 = require("./tests/test-helper");
10
- const path = require("path");
11
- const webpack = require("webpack");
12
- const Plugin = require("./ClientsideExtensionsWebpackPlugin");
13
- const { PAGE_DATA_PROVIDER_DATA_KEY } = require('./generator/webpageDescriptor');
14
- beforeAll(() => {
15
- // Silent-down the webpack compilation errors
16
- jest.spyOn(console, 'error').mockImplementation();
17
- jest.spyOn(console, 'warn').mockImplementation();
18
- });
19
- afterAll(() => {
20
- utils_1.mocked(console.error).mockRestore();
21
- utils_1.mocked(console.warn).mockRestore();
22
- });
23
- const PLUGIN_KEY = 'a.fake.plugin.key';
24
- describe('webpages compilation', () => {
25
- const inputDir = path.resolve(__dirname, '__fixtures__/webpages/');
26
- const outputDir = path.resolve(__dirname, '__fixtures__/target/');
27
- const wrmXmlOutputFilename = 'wrm-generated-webpages.xml';
28
- const cseXmlOutputFilename = 'cse-generated-webpages.xml';
29
- const basicWrmPlugin = new atlassian_webresource_webpack_plugin_1.default({
30
- pluginKey: PLUGIN_KEY,
31
- xmlDescriptors: path_1.resolve(outputDir, wrmXmlOutputFilename),
32
- });
33
- const csePlugin = new Plugin({
34
- cwd: inputDir,
35
- pattern: '**/*.extension.js',
36
- xmlDescriptors: path_1.resolve(outputDir, cseXmlOutputFilename),
37
- });
38
- // base config for all tests
39
- const baseWebpackConfig = {
40
- entry: csePlugin.generateEntrypoints(),
41
- plugins: [basicWrmPlugin, csePlugin],
42
- output: {
43
- path: outputDir,
44
- },
45
- optimization: {
46
- minimize: false,
47
- // Disable split chunks so the web-resource plugin can generate
48
- // a single resource descriptor per each extension entrypoint module
49
- splitChunks: false,
50
- },
51
- };
52
- const getWrmOutputContentAsJson = () => test_helper_1.getOutputContentAsJson(test_helper_1.fileContent(path_1.join(outputDir, wrmXmlOutputFilename)));
53
- const getCseOutputContentAsJson = () => test_helper_1.getOutputContentAsJson(test_helper_1.fileContent(path_1.join(outputDir, cseXmlOutputFilename)));
54
- beforeAll(async () => {
55
- const compiler = webpack(baseWebpackConfig);
56
- const run = util_1.promisify(compiler.run.bind(compiler));
57
- await run();
58
- });
59
- it('should generate the web-item and a matching web-page descriptor when using @page-url annotation', () => {
60
- const expectedExtensionPoint = 'foo.bar';
61
- const expectedWebItemKey = 'webpage-with-url__extension__js';
62
- const expectedWebPageKey = 'webpage-webpage-with-url__extension__js';
63
- const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;
64
- const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-url-extension-js`;
65
- const expectedWebItemDeclarationShape = expect.objectContaining({
66
- 'web-item': expect.arrayContaining([
67
- {
68
- attrs: {
69
- key: expectedWebItemKey,
70
- section: expectedExtensionPoint,
71
- weight: '',
72
- },
73
- label: expect.any(Array),
74
- link: '/plugins/servlet/my-url',
75
- },
76
- ]),
77
- });
78
- const expectedWebPageDeclarationShape = expect.objectContaining({
79
- 'web-page': expect.arrayContaining([
80
- {
81
- attrs: {
82
- key: expectedWebPageKey,
83
- 'extension-point': expectedExtensionPoint,
84
- 'extension-key': expectedFullExtensionKey,
85
- },
86
- 'url-pattern': '/my-url',
87
- dependency: expectedWebResourceKey,
88
- },
89
- ]),
90
- });
91
- const outputJson = getCseOutputContentAsJson();
92
- expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);
93
- expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);
94
- });
95
- it('should allow to provide a custom link value when using both @page-url and @link annotations', () => {
96
- const expectedLinkUrl = '/my-custom-link-url';
97
- const expectedPageUrl = '/my-page-url';
98
- const expectedExtensionPoint = 'biz.baz';
99
- const expectedWebItemKey = 'webpage-with-url-and-custom-link__extension__js';
100
- const expectedWebPageKey = 'webpage-webpage-with-url-and-custom-link__extension__js';
101
- const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;
102
- const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-url-and-custom-link-extension-js`;
103
- const expectedWebItemDeclarationShape = expect.objectContaining({
104
- 'web-item': expect.arrayContaining([
105
- {
106
- attrs: expect.objectContaining({
107
- key: expectedWebItemKey,
108
- section: expectedExtensionPoint,
109
- }),
110
- link: expectedLinkUrl,
111
- label: expect.anything(),
112
- },
113
- ]),
114
- });
115
- const expectedWebPageDeclarationShape = expect.objectContaining({
116
- 'web-page': expect.arrayContaining([
117
- {
118
- attrs: {
119
- key: expectedWebPageKey,
120
- 'extension-point': expectedExtensionPoint,
121
- 'extension-key': expectedFullExtensionKey,
122
- },
123
- 'url-pattern': expectedPageUrl,
124
- dependency: expectedWebResourceKey,
125
- },
126
- ]),
127
- });
128
- const outputJson = getCseOutputContentAsJson();
129
- expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);
130
- expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);
131
- });
132
- it('should allow to provide a custom page decorator using @page-decorator annotation', () => {
133
- const expectedPageUrl = '/my-admin-page-url';
134
- const expectedPageDecorator = 'atl.admin';
135
- const expectedExtensionPoint = 'admin.panel';
136
- const expectedWebItemKey = 'webpage-with-decorator__extension__js';
137
- const expectedWebPageKey = 'webpage-webpage-with-decorator__extension__js';
138
- const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;
139
- const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-decorator-extension-js`;
140
- const expectedWebItemDeclarationShape = expect.objectContaining({
141
- 'web-item': expect.arrayContaining([
142
- {
143
- attrs: expect.objectContaining({
144
- key: expectedWebItemKey,
145
- section: expectedExtensionPoint,
146
- }),
147
- label: expect.anything(),
148
- link: expect.any(String),
149
- },
150
- ]),
151
- });
152
- const expectedWebPageDeclarationShape = expect.objectContaining({
153
- 'web-page': expect.arrayContaining([
154
- {
155
- attrs: {
156
- key: expectedWebPageKey,
157
- 'extension-point': expectedExtensionPoint,
158
- 'extension-key': expectedFullExtensionKey,
159
- 'page-decorator': expectedPageDecorator,
160
- },
161
- 'url-pattern': expectedPageUrl,
162
- dependency: expectedWebResourceKey,
163
- },
164
- ]),
165
- });
166
- const outputJson = getCseOutputContentAsJson();
167
- expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);
168
- expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);
169
- });
170
- it('should allow to provide a custom page title using @page-title annotation and property value', () => {
171
- const expectedPageUrl = '/my-page-with-title';
172
- const expectedPageTitle = 'the.title.of.my.page';
173
- const expectedExtensionPoint = 'my.page.submenu';
174
- const expectedWebItemKey = 'webpage-with-title__extension__js';
175
- const expectedWebPageKey = 'webpage-webpage-with-title__extension__js';
176
- const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;
177
- const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-title-extension-js`;
178
- const expectedWebItemDeclarationShape = expect.objectContaining({
179
- 'web-item': expect.arrayContaining([
180
- {
181
- attrs: expect.objectContaining({
182
- key: expectedWebItemKey,
183
- section: expectedExtensionPoint,
184
- }),
185
- label: expect.anything(),
186
- link: expect.any(String),
187
- },
188
- ]),
189
- });
190
- const expectedWebPageDeclarationShape = expect.objectContaining({
191
- 'web-page': expect.arrayContaining([
192
- {
193
- attrs: {
194
- key: expectedWebPageKey,
195
- 'extension-point': expectedExtensionPoint,
196
- 'extension-key': expectedFullExtensionKey,
197
- },
198
- 'url-pattern': expectedPageUrl,
199
- 'page-title': [
200
- {
201
- attrs: {
202
- key: expectedPageTitle,
203
- },
204
- },
205
- ],
206
- dependency: expectedWebResourceKey,
207
- },
208
- ]),
209
- });
210
- const outputJson = getCseOutputContentAsJson();
211
- expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);
212
- expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);
213
- });
214
- it('should allow to provide a custom page title using @page-title annotation and quoted value', () => {
215
- const expectedPageUrl = '/my-page-with-quoted-title';
216
- const expectedPageTitle = 'The title of my page';
217
- const expectedExtensionPoint = 'my.page.menu';
218
- const expectedWebItemKey = 'webpage-with-quoted-title__extension__js';
219
- const expectedWebPageKey = 'webpage-webpage-with-quoted-title__extension__js';
220
- const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;
221
- const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-quoted-title-extension-js`;
222
- const expectedWebItemDeclarationShape = expect.objectContaining({
223
- 'web-item': expect.arrayContaining([
224
- {
225
- attrs: expect.objectContaining({
226
- key: expectedWebItemKey,
227
- section: expectedExtensionPoint,
228
- }),
229
- label: expect.anything(),
230
- link: expect.any(String),
231
- },
232
- ]),
233
- });
234
- const expectedWebPageDeclarationShape = expect.objectContaining({
235
- 'web-page': expect.arrayContaining([
236
- {
237
- attrs: {
238
- key: expectedWebPageKey,
239
- 'extension-point': expectedExtensionPoint,
240
- 'extension-key': expectedFullExtensionKey,
241
- },
242
- 'url-pattern': expectedPageUrl,
243
- 'page-title': [
244
- {
245
- attrs: {
246
- key: expectedPageTitle,
247
- },
248
- },
249
- ],
250
- dependency: expectedWebResourceKey,
251
- },
252
- ]),
253
- });
254
- const outputJson = getCseOutputContentAsJson();
255
- expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);
256
- expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);
257
- });
258
- it('should allow to configure a data provider when using @page-data-provider annotation', () => {
259
- const expectedPageUrl = '/my-page-with-server-side-data';
260
- const expectedWebResourceKey = 'entrypoint-webpage-with-page-data-provider-extension-js';
261
- const expectedFullWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-page-data-provider-extension-js`;
262
- const expectedPageDataProviderKey = PAGE_DATA_PROVIDER_DATA_KEY;
263
- const expectedPageDataProviderClass = 'Foo.Bar.moo';
264
- const expectedPageDataProviderFullKey = `${expectedFullWebResourceKey}.${expectedPageDataProviderKey}`;
265
- const expectedExtensionPoint = 'webpage-with-page-data-provider';
266
- const expectedWebItemKey = 'webpage-with-page-data-provider__extension__js';
267
- const expectedWebPageKey = 'webpage-webpage-with-page-data-provider__extension__js';
268
- const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;
269
- const expectedWebItemDeclarationShape = expect.objectContaining({
270
- 'web-item': expect.arrayContaining([
271
- {
272
- attrs: expect.objectContaining({
273
- key: expectedWebItemKey,
274
- section: expectedExtensionPoint,
275
- }),
276
- label: expect.anything(),
277
- link: expect.any(String),
278
- },
279
- ]),
280
- });
281
- const expectedWebResourceDeclarationShape = expect.objectContaining({
282
- 'web-resource': expect.arrayContaining([
283
- expect.objectContaining({
284
- attrs: expect.objectContaining({
285
- key: expectedWebResourceKey,
286
- }),
287
- data: expect.arrayContaining([
288
- {
289
- attrs: expect.objectContaining({
290
- key: expectedPageDataProviderKey,
291
- class: expectedPageDataProviderClass,
292
- }),
293
- },
294
- ]),
295
- }),
296
- ]),
297
- });
298
- const expectedWebPageDeclarationShape = expect.objectContaining({
299
- 'web-page': expect.arrayContaining([
300
- {
301
- attrs: {
302
- key: expectedWebPageKey,
303
- 'extension-point': expectedExtensionPoint,
304
- 'extension-key': expectedFullExtensionKey,
305
- 'page-data-provider-key': expectedPageDataProviderFullKey,
306
- },
307
- 'url-pattern': expectedPageUrl,
308
- dependency: expectedFullWebResourceKey,
309
- },
310
- ]),
311
- });
312
- const wrmOutputJson = getWrmOutputContentAsJson();
313
- const cseOutputJson = getCseOutputContentAsJson();
314
- expect(wrmOutputJson).toContainEqual(expectedWebResourceDeclarationShape);
315
- expect(cseOutputJson).toContainEqual(expectedWebItemDeclarationShape);
316
- expect(cseOutputJson).toContainEqual(expectedWebPageDeclarationShape);
317
- });
318
- it('should not generate the condition on the web-resource element when using @condition annotation', () => {
319
- const expectedPageUrl = '/my-page-with-condition';
320
- const expectedWebResourceKey = 'entrypoint-webpage-with-condition-extension-js';
321
- const expectedConditionClass = 'com.example.Foo';
322
- const expectedExtensionPoint = 'webpage-with-condition';
323
- const expectedWebItemKey = 'webpage-with-condition__extension__js';
324
- const expectedWebPageKey = 'webpage-webpage-with-condition__extension__js';
325
- const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;
326
- const expectedFullWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-condition-extension-js`;
327
- const expectedWebItemDeclarationShape = expect.objectContaining({
328
- 'web-item': expect.arrayContaining([
329
- {
330
- attrs: expect.objectContaining({
331
- key: expectedWebItemKey,
332
- section: expectedExtensionPoint,
333
- }),
334
- label: expect.anything(),
335
- link: expect.any(String),
336
- condition: expect.arrayContaining([
337
- {
338
- attrs: expect.objectContaining({
339
- class: expectedConditionClass,
340
- }),
341
- },
342
- ]),
343
- },
344
- ]),
345
- });
346
- const expectedWebResourceDeclarationShape = expect.objectContaining({
347
- 'web-resource': expect.arrayContaining([
348
- // Web-resource without condition should be present
349
- expect.objectContaining({
350
- attrs: expect.objectContaining({
351
- key: expectedWebResourceKey,
352
- }),
353
- }),
354
- // Web-resource with a condition should not be present
355
- expect.not.objectContaining({
356
- attrs: expect.objectContaining({
357
- key: expectedWebResourceKey,
358
- }),
359
- condition: expect.arrayContaining([
360
- {
361
- attrs: expect.objectContaining({
362
- class: expectedConditionClass,
363
- }),
364
- },
365
- ]),
366
- }),
367
- ]),
368
- });
369
- const expectedWebPageDeclarationShape = expect.objectContaining({
370
- 'web-page': expect.arrayContaining([
371
- {
372
- attrs: {
373
- key: expectedWebPageKey,
374
- 'extension-point': expectedExtensionPoint,
375
- 'extension-key': expectedFullExtensionKey,
376
- },
377
- 'url-pattern': expectedPageUrl,
378
- dependency: expectedFullWebResourceKey,
379
- },
380
- ]),
381
- });
382
- const wrmOutputJson = getWrmOutputContentAsJson();
383
- const cseOutputJson = getCseOutputContentAsJson();
384
- expect(wrmOutputJson).toContainEqual(expectedWebResourceDeclarationShape);
385
- expect(cseOutputJson).toContainEqual(expectedWebItemDeclarationShape);
386
- expect(cseOutputJson).toContainEqual(expectedWebPageDeclarationShape);
387
- });
388
- });
389
- describe('webpages compilation errors', () => {
390
- const inputDir = path.resolve(__dirname, '__fixtures__/webpages-errors/');
391
- const outputDir = path.resolve(__dirname, '__fixtures__/target/');
392
- const xmlOutputFilename = 'wr-generated-cse-webpages-errors.xml';
393
- const getWebpackConfig = (csePattern) => {
394
- const basicWrmPlugin = new atlassian_webresource_webpack_plugin_1.default({
395
- pluginKey: PLUGIN_KEY,
396
- xmlDescriptors: path_1.resolve(outputDir, 'wrm.xml'),
397
- });
398
- const csePlugin = new Plugin({
399
- cwd: inputDir,
400
- pattern: csePattern,
401
- xmlDescriptors: path_1.resolve(outputDir, xmlOutputFilename),
402
- });
403
- const webpackConfig = {
404
- entry: csePlugin.generateEntrypoints(),
405
- plugins: [basicWrmPlugin, csePlugin],
406
- optimization: {
407
- minimize: false,
408
- },
409
- output: {
410
- path: outputDir,
411
- },
412
- };
413
- return webpackConfig;
414
- };
415
- const compile = async (config) => {
416
- const compiler = webpack(config);
417
- const run = util_1.promisify(compiler.run.bind(compiler));
418
- return (await run());
419
- };
420
- it('should throw an error when trying to create an extension with @page-url and no @label annotation', async () => {
421
- const errorFile = '**/webpage-without-label.*';
422
- const successFile = '**/webpage-with-label.*';
423
- // error is Sync because it's the plugin that fails, not webpack compilation.
424
- expect(() => compile(getWebpackConfig(errorFile))).toThrowError();
425
- await expect(compile(getWebpackConfig(successFile))).resolves.toBeTruthy();
426
- });
427
- it('should throw an error when trying to create an extension with @page-decorator and no @page-url annotation', async () => {
428
- const errorFile = '**/webpage-decorator-without-url.*';
429
- const successFile = '**/webpage-decorator-with-url.*';
430
- // error is Sync because it's the plugin that fails, not webpack compilation.
431
- expect(() => compile(getWebpackConfig(errorFile))).toThrowError();
432
- await expect(compile(getWebpackConfig(successFile))).resolves.toBeTruthy();
433
- });
434
- it('should throw an error when trying to create an extension with @page-data-provider but without @page-url annotation', async () => {
435
- const errorFile = '**/webpage-data-provider-without-url.*';
436
- const successFile = '**/webpage-data-provider-with-url.*';
437
- // error is Sync because it's the plugin that fails, not webpack compilation.
438
- expect(() => compile(getWebpackConfig(errorFile))).toThrowError();
439
- await expect(compile(getWebpackConfig(successFile))).resolves.toBeTruthy();
440
- });
441
- });
442
- //# sourceMappingURL=ClientsideExtensionsWebpackPlugin.webpages.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientsideExtensionsWebpackPlugin.webpages.test.js","sourceRoot":"","sources":["../../lib/ClientsideExtensionsWebpackPlugin.webpages.test.ts"],"names":[],"mappings":";;;AACA,+BAAiC;AACjC,+BAAqC;AACrC,wHAA6D;AAC7D,yCAAuC;AACvC,wCAAwC;AACxC,qDAA0E;AAE1E,6BAA8B;AAC9B,mCAAoC;AACpC,8DAA+D;AAE/D,MAAM,EAAE,2BAA2B,EAAE,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAEjF,SAAS,CAAC,GAAG,EAAE;IACX,6CAA6C;IAC7C,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,kBAAkB,EAAE,CAAC;IAClD,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACrD,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,GAAG,EAAE;IACV,cAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;IACpC,cAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AACvC,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAEvC,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;IACnE,MAAM,SAAS,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AC,CAAC;IAEH,EAAE,CAAC,oHAAoH,EAAE,KAAK,IAAI,EAAE;QAChI,MAAM,SAAS,GAAG,wCAAwC,CAAC;QAC3D,MAAM,WAAW,GAAG,qCAAqC,CAAC;QAE1D,6EAA6E;QAC7E,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;QAElE,MAAM,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;IAC/E,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["import type { Stats } from 'webpack';\nimport { promisify } from 'util';\nimport { resolve, join } from 'path';\nimport WrmPlugin from 'atlassian-webresource-webpack-plugin';\nimport { mocked } from 'ts-jest/utils';\n// eslint-disable-next-line import/order\nimport { getOutputContentAsJson, fileContent } from './tests/test-helper';\n\nimport path = require('path');\nimport webpack = require('webpack');\nimport Plugin = require('./ClientsideExtensionsWebpackPlugin');\n\nconst { PAGE_DATA_PROVIDER_DATA_KEY } = require('./generator/webpageDescriptor');\n\nbeforeAll(() => {\n // Silent-down the webpack compilation errors\n jest.spyOn(console, 'error').mockImplementation();\n jest.spyOn(console, 'warn').mockImplementation();\n});\n\nafterAll(() => {\n mocked(console.error).mockRestore();\n mocked(console.warn).mockRestore();\n});\n\nconst PLUGIN_KEY = 'a.fake.plugin.key';\n\ndescribe('webpages compilation', () => {\n const inputDir = path.resolve(__dirname, '__fixtures__/webpages/');\n const outputDir = path.resolve(__dirname, '__fixtures__/target/');\n const wrmXmlOutputFilename = 'wrm-generated-webpages.xml';\n const cseXmlOutputFilename = 'cse-generated-webpages.xml';\n\n const basicWrmPlugin = new WrmPlugin({\n pluginKey: PLUGIN_KEY,\n xmlDescriptors: resolve(outputDir, wrmXmlOutputFilename),\n });\n\n const csePlugin = new Plugin({\n cwd: inputDir,\n pattern: '**/*.extension.js',\n xmlDescriptors: resolve(outputDir, cseXmlOutputFilename),\n });\n\n // base config for all tests\n const baseWebpackConfig = {\n entry: csePlugin.generateEntrypoints(),\n plugins: [basicWrmPlugin, csePlugin],\n output: {\n path: outputDir,\n },\n optimization: {\n minimize: false,\n // Disable split chunks so the web-resource plugin can generate\n // a single resource descriptor per each extension entrypoint module\n splitChunks: false as false,\n },\n };\n\n const getWrmOutputContentAsJson = () => getOutputContentAsJson(fileContent(join(outputDir, wrmXmlOutputFilename)));\n const getCseOutputContentAsJson = () => getOutputContentAsJson(fileContent(join(outputDir, cseXmlOutputFilename)));\n\n beforeAll(async () => {\n const compiler = webpack(baseWebpackConfig);\n const run = promisify(compiler.run.bind(compiler));\n await run();\n });\n\n it('should generate the web-item and a matching web-page descriptor when using @page-url annotation', () => {\n const expectedExtensionPoint = 'foo.bar';\n const expectedWebItemKey = 'webpage-with-url__extension__js';\n const expectedWebPageKey = 'webpage-webpage-with-url__extension__js';\n const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;\n const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-url-extension-js`;\n\n const expectedWebItemDeclarationShape = expect.objectContaining({\n 'web-item': expect.arrayContaining([\n {\n attrs: {\n key: expectedWebItemKey,\n section: expectedExtensionPoint,\n weight: '',\n },\n label: expect.any(Array),\n link: '/plugins/servlet/my-url',\n },\n ]),\n });\n\n const expectedWebPageDeclarationShape = expect.objectContaining({\n 'web-page': expect.arrayContaining([\n {\n attrs: {\n key: expectedWebPageKey,\n 'extension-point': expectedExtensionPoint,\n 'extension-key': expectedFullExtensionKey,\n },\n 'url-pattern': '/my-url',\n dependency: expectedWebResourceKey,\n },\n ]),\n });\n\n const outputJson = getCseOutputContentAsJson();\n\n expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);\n expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);\n });\n\n it('should allow to provide a custom link value when using both @page-url and @link annotations', () => {\n const expectedLinkUrl = '/my-custom-link-url';\n const expectedPageUrl = '/my-page-url';\n\n const expectedExtensionPoint = 'biz.baz';\n const expectedWebItemKey = 'webpage-with-url-and-custom-link__extension__js';\n const expectedWebPageKey = 'webpage-webpage-with-url-and-custom-link__extension__js';\n const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;\n const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-url-and-custom-link-extension-js`;\n\n const expectedWebItemDeclarationShape = expect.objectContaining({\n 'web-item': expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n key: expectedWebItemKey,\n section: expectedExtensionPoint,\n }),\n link: expectedLinkUrl,\n label: expect.anything(),\n },\n ]),\n });\n\n const expectedWebPageDeclarationShape = expect.objectContaining({\n 'web-page': expect.arrayContaining([\n {\n attrs: {\n key: expectedWebPageKey,\n 'extension-point': expectedExtensionPoint,\n 'extension-key': expectedFullExtensionKey,\n },\n 'url-pattern': expectedPageUrl,\n dependency: expectedWebResourceKey,\n },\n ]),\n });\n\n const outputJson = getCseOutputContentAsJson();\n\n expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);\n expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);\n });\n\n it('should allow to provide a custom page decorator using @page-decorator annotation', () => {\n const expectedPageUrl = '/my-admin-page-url';\n const expectedPageDecorator = 'atl.admin';\n\n const expectedExtensionPoint = 'admin.panel';\n const expectedWebItemKey = 'webpage-with-decorator__extension__js';\n const expectedWebPageKey = 'webpage-webpage-with-decorator__extension__js';\n const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;\n const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-decorator-extension-js`;\n\n const expectedWebItemDeclarationShape = expect.objectContaining({\n 'web-item': expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n key: expectedWebItemKey,\n section: expectedExtensionPoint,\n }),\n label: expect.anything(),\n link: expect.any(String),\n },\n ]),\n });\n\n const expectedWebPageDeclarationShape = expect.objectContaining({\n 'web-page': expect.arrayContaining([\n {\n attrs: {\n key: expectedWebPageKey,\n 'extension-point': expectedExtensionPoint,\n 'extension-key': expectedFullExtensionKey,\n 'page-decorator': expectedPageDecorator,\n },\n 'url-pattern': expectedPageUrl,\n dependency: expectedWebResourceKey,\n },\n ]),\n });\n\n const outputJson = getCseOutputContentAsJson();\n\n expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);\n expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);\n });\n\n it('should allow to provide a custom page title using @page-title annotation and property value', () => {\n const expectedPageUrl = '/my-page-with-title';\n const expectedPageTitle = 'the.title.of.my.page';\n\n const expectedExtensionPoint = 'my.page.submenu';\n const expectedWebItemKey = 'webpage-with-title__extension__js';\n const expectedWebPageKey = 'webpage-webpage-with-title__extension__js';\n const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;\n const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-title-extension-js`;\n\n const expectedWebItemDeclarationShape = expect.objectContaining({\n 'web-item': expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n key: expectedWebItemKey,\n section: expectedExtensionPoint,\n }),\n label: expect.anything(),\n link: expect.any(String),\n },\n ]),\n });\n\n const expectedWebPageDeclarationShape = expect.objectContaining({\n 'web-page': expect.arrayContaining([\n {\n attrs: {\n key: expectedWebPageKey,\n 'extension-point': expectedExtensionPoint,\n 'extension-key': expectedFullExtensionKey,\n },\n 'url-pattern': expectedPageUrl,\n 'page-title': [\n {\n attrs: {\n key: expectedPageTitle,\n },\n },\n ],\n dependency: expectedWebResourceKey,\n },\n ]),\n });\n\n const outputJson = getCseOutputContentAsJson();\n\n expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);\n expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);\n });\n\n it('should allow to provide a custom page title using @page-title annotation and quoted value', () => {\n const expectedPageUrl = '/my-page-with-quoted-title';\n const expectedPageTitle = 'The title of my page';\n\n const expectedExtensionPoint = 'my.page.menu';\n const expectedWebItemKey = 'webpage-with-quoted-title__extension__js';\n const expectedWebPageKey = 'webpage-webpage-with-quoted-title__extension__js';\n const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;\n const expectedWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-quoted-title-extension-js`;\n\n const expectedWebItemDeclarationShape = expect.objectContaining({\n 'web-item': expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n key: expectedWebItemKey,\n section: expectedExtensionPoint,\n }),\n label: expect.anything(),\n link: expect.any(String),\n },\n ]),\n });\n\n const expectedWebPageDeclarationShape = expect.objectContaining({\n 'web-page': expect.arrayContaining([\n {\n attrs: {\n key: expectedWebPageKey,\n 'extension-point': expectedExtensionPoint,\n 'extension-key': expectedFullExtensionKey,\n },\n 'url-pattern': expectedPageUrl,\n 'page-title': [\n {\n attrs: {\n key: expectedPageTitle,\n },\n },\n ],\n dependency: expectedWebResourceKey,\n },\n ]),\n });\n\n const outputJson = getCseOutputContentAsJson();\n\n expect(outputJson).toContainEqual(expectedWebItemDeclarationShape);\n expect(outputJson).toContainEqual(expectedWebPageDeclarationShape);\n });\n\n it('should allow to configure a data provider when using @page-data-provider annotation', () => {\n const expectedPageUrl = '/my-page-with-server-side-data';\n const expectedWebResourceKey = 'entrypoint-webpage-with-page-data-provider-extension-js';\n const expectedFullWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-page-data-provider-extension-js`;\n\n const expectedPageDataProviderKey = PAGE_DATA_PROVIDER_DATA_KEY;\n const expectedPageDataProviderClass = 'Foo.Bar.moo';\n const expectedPageDataProviderFullKey = `${expectedFullWebResourceKey}.${expectedPageDataProviderKey}`;\n\n const expectedExtensionPoint = 'webpage-with-page-data-provider';\n const expectedWebItemKey = 'webpage-with-page-data-provider__extension__js';\n const expectedWebPageKey = 'webpage-webpage-with-page-data-provider__extension__js';\n const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;\n\n const expectedWebItemDeclarationShape = expect.objectContaining({\n 'web-item': expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n key: expectedWebItemKey,\n section: expectedExtensionPoint,\n }),\n label: expect.anything(),\n link: expect.any(String),\n },\n ]),\n });\n\n const expectedWebResourceDeclarationShape = expect.objectContaining({\n 'web-resource': expect.arrayContaining([\n expect.objectContaining({\n attrs: expect.objectContaining({\n key: expectedWebResourceKey,\n }),\n data: expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n key: expectedPageDataProviderKey,\n class: expectedPageDataProviderClass,\n }),\n },\n ]),\n }),\n ]),\n });\n\n const expectedWebPageDeclarationShape = expect.objectContaining({\n 'web-page': expect.arrayContaining([\n {\n attrs: {\n key: expectedWebPageKey,\n 'extension-point': expectedExtensionPoint,\n 'extension-key': expectedFullExtensionKey,\n 'page-data-provider-key': expectedPageDataProviderFullKey,\n },\n 'url-pattern': expectedPageUrl,\n dependency: expectedFullWebResourceKey,\n },\n ]),\n });\n\n const wrmOutputJson = getWrmOutputContentAsJson();\n const cseOutputJson = getCseOutputContentAsJson();\n\n expect(wrmOutputJson).toContainEqual(expectedWebResourceDeclarationShape);\n expect(cseOutputJson).toContainEqual(expectedWebItemDeclarationShape);\n expect(cseOutputJson).toContainEqual(expectedWebPageDeclarationShape);\n });\n\n it('should not generate the condition on the web-resource element when using @condition annotation', () => {\n const expectedPageUrl = '/my-page-with-condition';\n const expectedWebResourceKey = 'entrypoint-webpage-with-condition-extension-js';\n\n const expectedConditionClass = 'com.example.Foo';\n\n const expectedExtensionPoint = 'webpage-with-condition';\n const expectedWebItemKey = 'webpage-with-condition__extension__js';\n const expectedWebPageKey = 'webpage-webpage-with-condition__extension__js';\n const expectedFullExtensionKey = `${PLUGIN_KEY}:${expectedWebItemKey}`;\n const expectedFullWebResourceKey = `${PLUGIN_KEY}:entrypoint-webpage-with-condition-extension-js`;\n\n const expectedWebItemDeclarationShape = expect.objectContaining({\n 'web-item': expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n key: expectedWebItemKey,\n section: expectedExtensionPoint,\n }),\n label: expect.anything(),\n link: expect.any(String),\n condition: expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n class: expectedConditionClass,\n }),\n },\n ]),\n },\n ]),\n });\n\n const expectedWebResourceDeclarationShape = expect.objectContaining({\n 'web-resource': expect.arrayContaining([\n // Web-resource without condition should be present\n expect.objectContaining({\n attrs: expect.objectContaining({\n key: expectedWebResourceKey,\n }),\n }),\n\n // Web-resource with a condition should not be present\n expect.not.objectContaining({\n attrs: expect.objectContaining({\n key: expectedWebResourceKey,\n }),\n condition: expect.arrayContaining([\n {\n attrs: expect.objectContaining({\n class: expectedConditionClass,\n }),\n },\n ]),\n }),\n ]),\n });\n\n const expectedWebPageDeclarationShape = expect.objectContaining({\n 'web-page': expect.arrayContaining([\n {\n attrs: {\n key: expectedWebPageKey,\n 'extension-point': expectedExtensionPoint,\n 'extension-key': expectedFullExtensionKey,\n },\n 'url-pattern': expectedPageUrl,\n dependency: expectedFullWebResourceKey,\n },\n ]),\n });\n\n const wrmOutputJson = getWrmOutputContentAsJson();\n const cseOutputJson = getCseOutputContentAsJson();\n\n expect(wrmOutputJson).toContainEqual(expectedWebResourceDeclarationShape);\n expect(cseOutputJson).toContainEqual(expectedWebItemDeclarationShape);\n expect(cseOutputJson).toContainEqual(expectedWebPageDeclarationShape);\n });\n});\n\ndescribe('webpages compilation errors', () => {\n const inputDir = path.resolve(__dirname, '__fixtures__/webpages-errors/');\n const outputDir = path.resolve(__dirname, '__fixtures__/target/');\n const xmlOutputFilename = 'wr-generated-cse-webpages-errors.xml';\n\n const getWebpackConfig = (csePattern: string) => {\n const basicWrmPlugin = new WrmPlugin({\n pluginKey: PLUGIN_KEY,\n xmlDescriptors: resolve(outputDir, 'wrm.xml'),\n });\n\n const csePlugin = new Plugin({\n cwd: inputDir,\n pattern: csePattern,\n xmlDescriptors: resolve(outputDir, xmlOutputFilename),\n });\n\n const webpackConfig = {\n entry: csePlugin.generateEntrypoints(),\n plugins: [basicWrmPlugin, csePlugin],\n optimization: {\n minimize: false,\n },\n output: {\n path: outputDir,\n },\n };\n\n return webpackConfig;\n };\n\n const compile = async (config: webpack.Configuration) => {\n const compiler = webpack(config);\n const run = promisify(compiler.run.bind(compiler));\n return (await run()) as Stats;\n };\n\n it('should throw an error when trying to create an extension with @page-url and no @label annotation', async () => {\n const errorFile = '**/webpage-without-label.*';\n const successFile = '**/webpage-with-label.*';\n\n // error is Sync because it's the plugin that fails, not webpack compilation.\n expect(() => compile(getWebpackConfig(errorFile))).toThrowError();\n\n await expect(compile(getWebpackConfig(successFile))).resolves.toBeTruthy();\n });\n\n it('should throw an error when trying to create an extension with @page-decorator and no @page-url annotation', async () => {\n const errorFile = '**/webpage-decorator-without-url.*';\n const successFile = '**/webpage-decorator-with-url.*';\n\n // error is Sync because it's the plugin that fails, not webpack compilation.\n expect(() => compile(getWebpackConfig(errorFile))).toThrowError();\n\n await expect(compile(getWebpackConfig(successFile))).resolves.toBeTruthy();\n });\n\n it('should throw an error when trying to create an extension with @page-data-provider but without @page-url annotation', async () => {\n const errorFile = '**/webpage-data-provider-without-url.*';\n const successFile = '**/webpage-data-provider-with-url.*';\n\n // error is Sync because it's the plugin that fails, not webpack compilation.\n expect(() => compile(getWebpackConfig(errorFile))).toThrowError();\n\n await expect(compile(getWebpackConfig(successFile))).resolves.toBeTruthy();\n });\n});\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ClientsideExtensionsWebpackPlugin.basic.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientsideExtensionsWebpackPlugin.basic.test.d.ts","sourceRoot":"","sources":["../../lib/ClientsideExtensionsWebpackPlugin.basic.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ClientsideExtensionsWebpackPlugin.conditions.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientsideExtensionsWebpackPlugin.conditions.test.d.ts","sourceRoot":"","sources":["../../lib/ClientsideExtensionsWebpackPlugin.conditions.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ClientsideExtensionsWebpackPlugin.metadata.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientsideExtensionsWebpackPlugin.metadata.test.d.ts","sourceRoot":"","sources":["../../lib/ClientsideExtensionsWebpackPlugin.metadata.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ClientsideExtensionsWebpackPlugin.webpages.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientsideExtensionsWebpackPlugin.webpages.test.d.ts","sourceRoot":"","sources":["../../lib/ClientsideExtensionsWebpackPlugin.webpages.test.ts"],"names":[],"mappings":""}