@atlassian/clientside-extensions-webpack-plugin 5.1.6-eadeedb5-mltiipai → 6.0.0-m002

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.
@@ -1,5 +1,5 @@
1
1
  import registry from '@atlassian/clientside-extensions-registry';
2
- // eslint-disable-next-line import/no-unresolved
2
+ // eslint-disable-next-line import-x/no-unresolved, node/no-missing-import
3
3
  import plugin from 'REPLACE_WITH_PATHNAME';
4
4
 
5
5
  // we are not in watch mode
@@ -9,7 +9,7 @@ registry.registerExtension('REPLACE_WITH_PLUGIN_ID', plugin, REPLACE_WITH_EXTENS
9
9
  // we are in watch mode
10
10
  if (module.hot) {
11
11
  module.hot.accept('REPLACE_WITH_PATHNAME', () => {
12
- // eslint-disable-next-line global-require,import/no-unresolved,no-undef
12
+ // eslint-disable-next-line global-require,import-x/no-unresolved,node/no-missing-require,no-undef
13
13
  registry.registerExtension('REPLACE_WITH_PLUGIN_ID', require('REPLACE_WITH_PATHNAME').default, REPLACE_WITH_EXTENSION_OPTIONS);
14
14
  });
15
15
  }
@@ -1,7 +1,7 @@
1
- // eslint-disable-next-line node/no-missing-import,import/no-unresolved -- This is a special import directive for webpack plugin
1
+ // eslint-disable-next-line node/no-missing-import,import-x/no-unresolved -- This is a special import directive for webpack plugin
2
2
  import 'wr-dependency!com.atlassian.plugins.atlassian-clientside-extensions-page-bootstrapper:page-bootstrapper';
3
3
 
4
- // eslint-disable-next-line node/no-missing-import,import/no-unresolved
4
+ // eslint-disable-next-line node/no-missing-import,import-x/no-unresolved
5
5
  import plugin from 'REPLACE_WITH_PATHNAME';
6
6
 
7
7
  // We need to trick webpack to skip resolving the runtime AMD module.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getOutputContentAsJson = exports.fileContent = void 0;
4
4
  const fs_1 = require("fs");
5
- // eslint-disable-next-line import/no-extraneous-dependencies,node/no-unpublished-import
5
+ // eslint-disable-next-line node/no-unpublished-import
6
6
  const fast_xml_parser_1 = require("fast-xml-parser");
7
7
  const fileContent = (filePath) => {
8
8
  if (!(0, fs_1.existsSync)(filePath)) {
@@ -1 +1 @@
1
- {"version":3,"file":"test-helper.js","sourceRoot":"","sources":["../../../lib/tests/test-helper.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,wFAAwF;AACxF,qDAAoD;AAE7C,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,EAAE;IAC5C,IAAI,CAAC,IAAA,eAAU,EAAC,QAAQ,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,8BAA8B,QAAQ,kBAAkB,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO,MAAM,CAAC,IAAA,iBAAY,EAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AAChE,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB;AAEK,MAAM,sBAAsB,GAAG,CAAC,OAAe,EAAE,EAAE;IACtD,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACxB,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,eAAe,GAAG;QACpB,SAAS,EAAE,IAAI;QACf,gBAAgB,EAAE,KAAK;QACvB,YAAY,EAAE,OAAO;QACrB,mBAAmB,EAAE,EAAE;KAC1B,CAAC;IAEF,MAAM,IAAI,GAAG,IAAA,uBAAQ,EAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAErC,OAAO,IAAI,CAAC,OAAO,CAAc,CAAC;AACtC,CAAC,CAAC;AAhBW,QAAA,sBAAsB,0BAgBjC","sourcesContent":["import { readFileSync, existsSync } from 'fs';\n// eslint-disable-next-line import/no-extraneous-dependencies,node/no-unpublished-import\nimport { parse as parseXml } from 'fast-xml-parser';\n\nexport const fileContent = (filePath: string) => {\n if (!existsSync(filePath)) {\n throw new Error(`File generated by webpack \"${filePath}\" does not exist`);\n }\n\n return String(readFileSync(filePath, { encoding: 'utf8' }));\n};\n\nexport const getOutputContentAsJson = (content: string) => {\n if (content.trim() === '') {\n return '';\n }\n\n const xmlParseOptions = {\n arrayMode: true,\n ignoreAttributes: false,\n attrNodeName: 'attrs',\n attributeNamePrefix: '',\n };\n\n const root = parseXml(content, xmlParseOptions);\n const rootKey = Object.keys(root)[0];\n\n return root[rootKey] as [unknown];\n};\n"]}
1
+ {"version":3,"file":"test-helper.js","sourceRoot":"","sources":["../../../lib/tests/test-helper.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,sDAAsD;AACtD,qDAAoD;AAE7C,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,EAAE;IAC5C,IAAI,CAAC,IAAA,eAAU,EAAC,QAAQ,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,8BAA8B,QAAQ,kBAAkB,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO,MAAM,CAAC,IAAA,iBAAY,EAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AAChE,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB;AAEK,MAAM,sBAAsB,GAAG,CAAC,OAAe,EAAE,EAAE;IACtD,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACxB,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,eAAe,GAAG;QACpB,SAAS,EAAE,IAAI;QACf,gBAAgB,EAAE,KAAK;QACvB,YAAY,EAAE,OAAO;QACrB,mBAAmB,EAAE,EAAE;KAC1B,CAAC;IAEF,MAAM,IAAI,GAAG,IAAA,uBAAQ,EAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAErC,OAAO,IAAI,CAAC,OAAO,CAAc,CAAC;AACtC,CAAC,CAAC;AAhBW,QAAA,sBAAsB,0BAgBjC","sourcesContent":["import { readFileSync, existsSync } from 'fs';\n// eslint-disable-next-line node/no-unpublished-import\nimport { parse as parseXml } from 'fast-xml-parser';\n\nexport const fileContent = (filePath: string) => {\n if (!existsSync(filePath)) {\n throw new Error(`File generated by webpack \"${filePath}\" does not exist`);\n }\n\n return String(readFileSync(filePath, { encoding: 'utf8' }));\n};\n\nexport const getOutputContentAsJson = (content: string) => {\n if (content.trim() === '') {\n return '';\n }\n\n const xmlParseOptions = {\n arrayMode: true,\n ignoreAttributes: false,\n attrNodeName: 'attrs',\n attributeNamePrefix: '',\n };\n\n const root = parseXml(content, xmlParseOptions);\n const rootKey = Object.keys(root)[0];\n\n return root[rootKey] as [unknown];\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":";;;AAYA,8BAEC;AAED,oDAEC;AAED,4BAKC;AAvBD,qFAAqF;AAC9E,MAAM,WAAW,GAAG,CAAuB,GAAM,EAAE,GAAM,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAAjE,QAAA,WAAW,eAAsD;AAEvE,MAAM,eAAe,GAAG,CAAC,OAAoC,EAAW,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAA9F,QAAA,eAAe,mBAA+E;AAE3G,MAAM,SAAS,GAAG,QAAQ,CAAC;AACpB,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;IACnD,OAAO,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEF,SAAgB,SAAS,CAAI,KAAe;IACxC,OAAO,KAAK,IAAI,IAAI,CAAC;AACzB,CAAC;AAED,SAAgB,oBAAoB,CAAI,KAA2B;IAC/D,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,IAAI,IAAI,CAAC;AAChD,CAAC;AAED,SAAgB,QAAQ,CAAC,OAAe;IACpC,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QACxB,yDAAyD;QACzD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACL,CAAC","sourcesContent":["import type { ClientsideExtensionsOptions } from './types';\n\n// Utility helper that can be used to read property from an object and provide typing\nexport const getKeyValue = <T, K extends keyof T>(obj: T, key: K) => obj[key];\n\nexport const isPageExtension = (options: ClientsideExtensionsOptions): boolean => Boolean(options.pageUrl);\n\nconst KEY_REGEX = /\\$key/g;\nexport const replaceKey = (str: string, key: string) => {\n return str.replace(KEY_REGEX, key);\n};\n\nexport function isNotNull<T>(input: null | T): input is T {\n return input != null;\n}\n\nexport function isNotNullOrUndefined<T>(input: null | undefined | T): input is T {\n return input !== undefined && input != null;\n}\n\nexport function debugLog(message: String): void {\n if (process.env.CSE_DEBUG) {\n // eslint-disable-next-line prefer-rest-params,no-console\n console.debug(message);\n }\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":";;;AAYA,8BAEC;AAED,oDAEC;AAED,4BAKC;AAvBD,qFAAqF;AAC9E,MAAM,WAAW,GAAG,CAAuB,GAAM,EAAE,GAAM,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAAjE,QAAA,WAAW,eAAsD;AAEvE,MAAM,eAAe,GAAG,CAAC,OAAoC,EAAW,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAA9F,QAAA,eAAe,mBAA+E;AAE3G,MAAM,SAAS,GAAG,QAAQ,CAAC;AACpB,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;IACnD,OAAO,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEF,SAAgB,SAAS,CAAI,KAAe;IACxC,OAAO,KAAK,IAAI,IAAI,CAAC;AACzB,CAAC;AAED,SAAgB,oBAAoB,CAAI,KAA2B;IAC/D,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,IAAI,IAAI,CAAC;AAChD,CAAC;AAED,SAAgB,QAAQ,CAAC,OAAe;IACpC,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QACxB,yDAAyD;QACzD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;AACL,CAAC","sourcesContent":["import type { ClientsideExtensionsOptions } from './types';\n\n// Utility helper that can be used to read property from an object and provide typing\nexport const getKeyValue = <T, K extends keyof T>(obj: T, key: K) => obj[key];\n\nexport const isPageExtension = (options: ClientsideExtensionsOptions): boolean => Boolean(options.pageUrl);\n\nconst KEY_REGEX = /\\$key/g;\nexport const replaceKey = (str: string, key: string) => {\n return str.replace(KEY_REGEX, key);\n};\n\nexport function isNotNull<T>(input: null | T): input is T {\n return input != null;\n}\n\nexport function isNotNullOrUndefined<T>(input: null | undefined | T): input is T {\n return input !== undefined && input != null;\n}\n\nexport function debugLog(message: string): void {\n if (process.env.CSE_DEBUG) {\n // eslint-disable-next-line prefer-rest-params,no-console\n console.debug(message);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"default-parser.d.ts","sourceRoot":"","sources":["../../../lib/annotations/default-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEvE,QAAA,MAAM,gBAAgB,GAAI,CAAC,iBAAiB,aAAa,gCAYxD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"default-parser.d.ts","sourceRoot":"","sources":["../../../lib/annotations/default-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEvE,QAAA,MAAM,gBAAgB,GAAI,CAAC,EAAE,eAAe,aAAa,gCAYxD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../../lib/generator/entrypoint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAK5D,eAAO,MAAM,eAAe,qBAAsB,2BAA2B,YAE5E,CAAC;AAQF,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,2BAA2B,UA2BlF"}
1
+ {"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../../lib/generator/entrypoint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAK5D,eAAO,MAAM,eAAe,GAAI,kBAAkB,2BAA2B,YAE5E,CAAC;AAQF,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,2BAA2B,UA2BlF"}
@@ -1 +1 @@
1
- {"version":3,"file":"webpageDescriptor.d.ts","sourceRoot":"","sources":["../../../lib/generator/webpageDescriptor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAG5D,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAE3D,QAAA,MAAM,yBAAyB,YAAa,2BAA2B,KAAG,MAAM,GAAG,IA0ClF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"webpageDescriptor.d.ts","sourceRoot":"","sources":["../../../lib/generator/webpageDescriptor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAG5D,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAE3D,QAAA,MAAM,yBAAyB,GAAI,SAAS,2BAA2B,KAAG,MAAM,GAAG,IA0ClF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../../lib/generator/xml.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AAkBF,eAAO,MAAM,aAAa,SAAU,MAAM,cAAc,UAAU,GAAG,MAAM,GAAG,IAAI,aAAa,MAAM,GAAG,MAAM,EAAE,WAY/G,CAAC;AAEF,KAAK,KAAK,GAAG;IACT,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC5B,CAAC;AAQF,MAAM,MAAM,SAAS,GAAG;IACpB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,KAAK,EAAE,CAAC;CACnB,CAAC;AACF,eAAO,MAAM,eAAe,eAAgB,IAAI,GAAG,SAAS,GAAG,SAAS,EAAE,KAAG,MAmB5E,CAAC"}
1
+ {"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../../lib/generator/xml.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AAkBF,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,YAAY,UAAU,GAAG,MAAM,GAAG,IAAI,EAAE,WAAW,MAAM,GAAG,MAAM,EAAE,WAY/G,CAAC;AAEF,KAAK,KAAK,GAAG;IACT,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC5B,CAAC;AAQF,MAAM,MAAM,SAAS,GAAG;IACpB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,KAAK,EAAE,CAAC;CACnB,CAAC;AACF,eAAO,MAAM,eAAe,GAAI,YAAY,IAAI,GAAG,SAAS,GAAG,SAAS,EAAE,KAAG,MAmB5E,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export declare const fileContent: (filePath: string) => string;
2
- export declare const getOutputContentAsJson: (content: string) => "" | [unknown];
2
+ export declare const getOutputContentAsJson: (content: string) => [unknown] | "";
3
3
  //# sourceMappingURL=test-helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-helper.d.ts","sourceRoot":"","sources":["../../../lib/tests/test-helper.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,aAAc,MAAM,WAM3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,YAAa,MAAM,mBAgBrD,CAAC"}
1
+ {"version":3,"file":"test-helper.d.ts","sourceRoot":"","sources":["../../../lib/tests/test-helper.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,WAM3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,mBAgBrD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transform-comment.d.ts","sourceRoot":"","sources":["../../lib/transform-comment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA0C,cAAc,EAA4B,MAAM,eAAe,CAAC;AAStH;;GAEG;AACH,QAAA,MAAM,gBAAgB,gBAAiB,MAAM,0BAgC5C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"transform-comment.d.ts","sourceRoot":"","sources":["../../lib/transform-comment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA0C,cAAc,EAA4B,MAAM,eAAe,CAAC;AAStH;;GAEG;AACH,QAAA,MAAM,gBAAgB,GAAI,aAAa,MAAM,0BAgC5C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -4,5 +4,5 @@ export declare const isPageExtension: (options: ClientsideExtensionsOptions) =>
4
4
  export declare const replaceKey: (str: string, key: string) => string;
5
5
  export declare function isNotNull<T>(input: null | T): input is T;
6
6
  export declare function isNotNullOrUndefined<T>(input: null | undefined | T): input is T;
7
- export declare function debugLog(message: String): void;
7
+ export declare function debugLog(message: string): void;
8
8
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAG3D,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,SAAa,CAAC;AAE9E,eAAO,MAAM,eAAe,YAAa,2BAA2B,KAAG,OAAmC,CAAC;AAG3G,eAAO,MAAM,UAAU,QAAS,MAAM,OAAO,MAAM,WAElD,CAAC;AAEF,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,GAAG,KAAK,IAAI,CAAC,CAExD;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,KAAK,IAAI,CAAC,CAE/E;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAK9C"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAG3D,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAa,CAAC;AAE9E,eAAO,MAAM,eAAe,GAAI,SAAS,2BAA2B,KAAG,OAAmC,CAAC;AAG3G,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,KAAK,MAAM,WAElD,CAAC;AAEF,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,GAAG,KAAK,IAAI,CAAC,CAExD;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,KAAK,IAAI,CAAC,CAE/E;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAK9C"}
@@ -49,7 +49,7 @@ describe('webpages compilation', () => {
49
49
  minimize: false,
50
50
  // Disable split chunks so the web-resource plugin can generate
51
51
  // a single resource descriptor per each extension entrypoint module
52
- splitChunks: false as false,
52
+ splitChunks: false as const,
53
53
  },
54
54
  };
55
55
 
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  rules: {
3
3
  // Enable importing devDependencies within the testing fixtures
4
- 'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
4
+ 'import-x/no-extraneous-dependencies': ['error', { devDependencies: true }],
5
5
 
6
6
  // We do import files that are not published
7
7
  'node/no-unpublished-import': 'off',
@@ -0,0 +1,40 @@
1
+ declare module 'comment-parser' {
2
+ export interface Tag {
3
+ tag: string;
4
+ name: string;
5
+ type: string;
6
+ optional: boolean;
7
+ description: string;
8
+ problems: unknown[];
9
+ source: Source[];
10
+ }
11
+
12
+ export interface Block {
13
+ description: string;
14
+ tags: Tag[];
15
+ source: Source[];
16
+ problems: unknown[];
17
+ }
18
+
19
+ export interface Source {
20
+ number: number;
21
+ source: string;
22
+ tokens: Tokens;
23
+ }
24
+
25
+ export interface Tokens {
26
+ start: string;
27
+ delimiter: string;
28
+ postDelimiter: string;
29
+ tag: string;
30
+ postTag: string;
31
+ name: string;
32
+ postName: string;
33
+ type: string;
34
+ postType: string;
35
+ description: string;
36
+ end: string;
37
+ }
38
+
39
+ export function parse(source: string, options?: object): Block[];
40
+ }
@@ -2,7 +2,5 @@ declare module 'pretty-data' {
2
2
  interface IPrettyData {
3
3
  xml(rawXmlString: string): string;
4
4
  }
5
-
6
- // eslint-disable-next-line import/prefer-default-export
7
5
  export const pd: IPrettyData;
8
6
  }
@@ -1,5 +1,5 @@
1
1
  import registry from '@atlassian/clientside-extensions-registry';
2
- // eslint-disable-next-line import/no-unresolved
2
+ // eslint-disable-next-line import-x/no-unresolved, node/no-missing-import
3
3
  import plugin from 'REPLACE_WITH_PATHNAME';
4
4
 
5
5
  // we are not in watch mode
@@ -9,7 +9,7 @@ registry.registerExtension('REPLACE_WITH_PLUGIN_ID', plugin, REPLACE_WITH_EXTENS
9
9
  // we are in watch mode
10
10
  if (module.hot) {
11
11
  module.hot.accept('REPLACE_WITH_PATHNAME', () => {
12
- // eslint-disable-next-line global-require,import/no-unresolved,no-undef
12
+ // eslint-disable-next-line global-require,import-x/no-unresolved,node/no-missing-require,no-undef
13
13
  registry.registerExtension('REPLACE_WITH_PLUGIN_ID', require('REPLACE_WITH_PATHNAME').default, REPLACE_WITH_EXTENSION_OPTIONS);
14
14
  });
15
15
  }
@@ -1,7 +1,7 @@
1
- // eslint-disable-next-line node/no-missing-import,import/no-unresolved -- This is a special import directive for webpack plugin
1
+ // eslint-disable-next-line node/no-missing-import,import-x/no-unresolved -- This is a special import directive for webpack plugin
2
2
  import 'wr-dependency!com.atlassian.plugins.atlassian-clientside-extensions-page-bootstrapper:page-bootstrapper';
3
3
 
4
- // eslint-disable-next-line node/no-missing-import,import/no-unresolved
4
+ // eslint-disable-next-line node/no-missing-import,import-x/no-unresolved
5
5
  import plugin from 'REPLACE_WITH_PATHNAME';
6
6
 
7
7
  // We need to trick webpack to skip resolving the runtime AMD module.
@@ -1,5 +1,5 @@
1
1
  import { readFileSync, existsSync } from 'fs';
2
- // eslint-disable-next-line import/no-extraneous-dependencies,node/no-unpublished-import
2
+ // eslint-disable-next-line node/no-unpublished-import
3
3
  import { parse as parseXml } from 'fast-xml-parser';
4
4
 
5
5
  export const fileContent = (filePath: string) => {
package/lib/utils.ts CHANGED
@@ -18,7 +18,7 @@ export function isNotNullOrUndefined<T>(input: null | undefined | T): input is T
18
18
  return input !== undefined && input != null;
19
19
  }
20
20
 
21
- export function debugLog(message: String): void {
21
+ export function debugLog(message: string): void {
22
22
  if (process.env.CSE_DEBUG) {
23
23
  // eslint-disable-next-line prefer-rest-params,no-console
24
24
  console.debug(message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlassian/clientside-extensions-webpack-plugin",
3
- "version": "5.1.6-eadeedb5-mltiipai",
3
+ "version": "6.0.0-m002",
4
4
  "description": "Allows for simple creation of client-side extensions",
5
5
  "main": "./dist/cjs/ClientsideExtensionsWebpackPlugin.js",
6
6
  "types": "./dist/types/ClientsideExtensionsWebpackPlugin.d.ts",
@@ -60,10 +60,10 @@
60
60
  "dependencies": {
61
61
  "comment-parser": "~1.3.0",
62
62
  "glob": "^13.0.3",
63
- "lodash": "~4.17.21",
63
+ "lodash": "~4.17.23",
64
64
  "pretty-data": "~0.40.0",
65
65
  "tslib": "^2.2.0",
66
- "webpack-virtual-modules": "~0.4.2"
66
+ "webpack-virtual-modules": "~0.6.0"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@atlassian/clientside-extensions-registry": "*",
@@ -71,21 +71,21 @@
71
71
  "webpack": "^5.0.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@atlassian/clientside-extensions": "^5.1.6-eadeedb5-mltiipai",
75
- "@atlassian/clientside-extensions-registry": "^5.1.6-eadeedb5-mltiipai",
74
+ "@atlassian/clientside-extensions": "^6.0.0-m002",
75
+ "@atlassian/clientside-extensions-registry": "^6.0.0-m002",
76
76
  "@atlassian/webresource-webpack-plugin": "^7.0.3",
77
77
  "@rspack/core": "1.5.8",
78
- "@types/lodash": "4.14.177",
79
- "@types/webpack": "5.28.0",
78
+ "@types/lodash": "4.17.23",
79
+ "@types/webpack": "5.28.5",
80
80
  "cpy-cli": "3.1.1",
81
81
  "fast-xml-parser": "3.21.1",
82
82
  "jest-mock": "30.0.5",
83
- "ts-jest": "29.4.1",
84
- "webpack": "5.64.4",
85
- "webpack-4": "npm:webpack@4.46.0"
83
+ "ts-jest": "29.4.9",
84
+ "webpack": "5.104.1",
85
+ "webpack-4": "npm:webpack@4.47.0"
86
86
  },
87
87
  "engines": {
88
- "node": ">=20.18.1"
88
+ "node": ">=24.4.0"
89
89
  },
90
- "gitHead": "eadeedb5193db701b870a0bc46664d193ed9d69c"
90
+ "gitHead": "25782eb406fc2c5f22623556534442076c02fcc9"
91
91
  }
package/tsconfig.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "--info about node mapping": "https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping",
3
- "extends": "../tsconfig.json",
3
+ "extends": ["../tsconfig.json", "../../tsconfig.cjs.base.json"],
4
4
  "compilerOptions": {
5
- "module": "CommonJS",
6
5
  "rootDir": "./lib",
7
6
  "outDir": "./dist/cjs",
8
7
  "declarationDir": "./dist/types"