@trackunit/iris-app-build-utilities 0.0.105 → 0.0.107

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 CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.0.107](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.106...iris-app-build-utilities/0.0.107) (2023-04-11)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `iris-app-api` updated to version `0.0.84`
10
+ ## [0.0.106](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.105...iris-app-build-utilities/0.0.106) (2023-04-11)
11
+
12
+ ### Dependency Updates
13
+
14
+ * `iris-app-api` updated to version `0.0.83`
15
+ * `css-components` updated to version `0.0.309`
5
16
  ## [0.0.105](https://github.com/Trackunit/manager/compare/iris-app-build-utilities/0.0.104...iris-app-build-utilities/0.0.105) (2023-04-11)
6
17
 
7
18
  ### Dependency Updates
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-build-utilities",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "main": "./src/index.js",
7
7
  "types": "./src/index.d.ts",
8
8
  "dependencies": {
9
9
  "tsconfig-paths": "3.14.1",
10
- "@trackunit/iris-app-api": "0.0.82",
11
- "@trackunit/css-components": "0.0.308",
12
- "@trackunit/css-core": "0.0.77",
13
- "@trackunit/ui-design-tokens": "0.0.63",
14
- "@trackunit/tailwind-styled-components": "0.0.54",
10
+ "@trackunit/iris-app-api": "0.0.84",
11
+ "@trackunit/css-components": "0.0.309",
12
+ "@trackunit/css-core": "0.0.78",
13
+ "@trackunit/ui-design-tokens": "0.0.64",
14
+ "@trackunit/tailwind-styled-components": "0.0.55",
15
15
  "react": "18.2.0",
16
16
  "react-use": "17.4.0",
17
17
  "uuid": "8.3.2",
@@ -36,21 +36,21 @@
36
36
  "@react-spring/web": "9.6.0",
37
37
  "moment-timezone": "0.5.39",
38
38
  "react-i18next": "12.1.1",
39
- "@trackunit/react-core-contexts-test": "0.1.40",
39
+ "@trackunit/react-core-contexts-test": "0.1.42",
40
40
  "@apollo/client": "3.7.10",
41
- "@trackunit/react-core-contexts-api": "0.2.22",
42
- "@trackunit/react-core-hooks": "0.2.36",
43
- "@trackunit/iris-app-runtime-core": "0.3.25",
44
- "@trackunit/iris-app-runtime-core-api": "0.3.23",
41
+ "@trackunit/react-core-contexts-api": "0.2.23",
42
+ "@trackunit/react-core-hooks": "0.2.38",
43
+ "@trackunit/iris-app-runtime-core": "0.3.26",
44
+ "@trackunit/iris-app-runtime-core-api": "0.3.24",
45
45
  "graphql": "15.8.0",
46
- "@trackunit/i18n-library-translation": "0.0.35",
46
+ "@trackunit/i18n-library-translation": "0.0.37",
47
47
  "i18next": "21.10.0",
48
48
  "i18next-browser-languagedetector": "6.1.8",
49
49
  "i18next-resources-to-backend": "1.1.0",
50
50
  "@sentry/browser": "7.24.2",
51
- "@trackunit/css-component-tokens": "0.0.23",
51
+ "@trackunit/css-component-tokens": "0.0.24",
52
52
  "csstype": "3.1.1",
53
- "@trackunit/css-tailwind-custom-properties-plugin": "0.0.15",
53
+ "@trackunit/css-tailwind-custom-properties-plugin": "0.0.16",
54
54
  "get-port": "5.1.1",
55
55
  "node-fetch": "2.6.8",
56
56
  "tslib": "2.4.1"
@@ -3,8 +3,9 @@ interface ITSConfigOptions {
3
3
  }
4
4
  /**
5
5
  * This enables webpack typescript file to load projects from the path section in tsconfig file.
6
- * @param options {ITSConfigOptions} The options for the .
7
- * @returns {Exposes} Exposes object for module federation.
6
+ *
7
+ * @param options - The options to enable tsconfig path
8
+ * @returns {import("typescript").ParsedCommandLine} - Returns the parsed command line
8
9
  */
9
10
  export declare const enableTsConfigPath: (options: ITSConfigOptions) => import("typescript").ParsedCommandLine;
10
11
  export {};
@@ -7,8 +7,9 @@ const tsconfig_paths_1 = require("tsconfig-paths");
7
7
  let tsModule;
8
8
  /**
9
9
  * This enables webpack typescript file to load projects from the path section in tsconfig file.
10
- * @param options {ITSConfigOptions} The options for the .
11
- * @returns {Exposes} Exposes object for module federation.
10
+ *
11
+ * @param options - The options to enable tsconfig path
12
+ * @returns {import("typescript").ParsedCommandLine} - Returns the parsed command line
12
13
  */
13
14
  const enableTsConfigPath = (options) => {
14
15
  if (!tsModule) {
@@ -1 +1 @@
1
- {"version":3,"file":"enableTsConfigPath.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/enableTsConfigPath.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAClC,+BAA4B;AAC5B,mDAAiF;AAMjF,IAAI,QAAqC,CAAC;AAE1C;;;;GAIG;AACI,MAAM,kBAAkB,GAAG,CAAC,OAAyB,EAAE,EAAE;IAC9D,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;KAClC;IACD,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,cAAc,EAAE,mBAAmB,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACrH,MAAM,MAAM,GAAG,QAAQ,CAAC,0BAA0B,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5G,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,EAAE,QAAQ;QAC/C,MAAM,KAAK,GAAG,IAAA,iBAAY,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAE9C,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE;YACrD,eAAe,EAAE,UAAU,CAAC,MAAM;SACnC,CAAC,CAAC;QAEH,8DAA8D;QAC7D,CAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC,CAAC;IACF,MAAM,UAAU,GAAG,IAAA,2BAAU,EAAC,OAAO,CAAC,cAAc,CAA8B,CAAC;IACnF,IAAA,yBAAQ,EAAC;QACP,OAAO,EAAE,IAAA,WAAI,EAAC,OAAO,CAAC,cAAc,EAAE,UAAU,CAAC,OAAO,CAAC;QACzD,KAAK,EAAE,UAAU,CAAC,KAAK;KACxB,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAvBW,QAAA,kBAAkB,sBAuB7B","sourcesContent":["import { readFileSync } from \"fs\";\nimport { join } from \"path\";\nimport { ConfigLoaderSuccessResult, loadConfig, register } from \"tsconfig-paths\";\n\ninterface ITSConfigOptions {\n projectRootDir: string;\n}\n\nlet tsModule: typeof import(\"typescript\");\n\n/**\n * This enables webpack typescript file to load projects from the path section in tsconfig file.\n * @param options {ITSConfigOptions} The options for the .\n * @returns {Exposes} Exposes object for module federation.\n */\nexport const enableTsConfigPath = (options: ITSConfigOptions) => {\n if (!tsModule) {\n tsModule = require(\"typescript\");\n }\n const readResult = tsModule.readConfigFile(join(options.projectRootDir, \"tsconfig.app.json\"), tsModule.sys.readFile);\n const result = tsModule.parseJsonConfigFileContent(readResult.config, tsModule.sys, options.projectRootDir);\n\n require.extensions[\".ts\"] = function (m, filename) {\n const input = readFileSync(filename, \"utf-8\");\n\n const { outputText } = tsModule.transpileModule(input, {\n compilerOptions: readResult.config,\n });\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (m as any)._compile(outputText, filename);\n };\n const loadedConf = loadConfig(options.projectRootDir) as ConfigLoaderSuccessResult;\n register({\n baseUrl: join(options.projectRootDir, loadedConf.baseUrl),\n paths: loadedConf.paths,\n });\n return result;\n};\n"]}
1
+ {"version":3,"file":"enableTsConfigPath.js","sourceRoot":"","sources":["../../../../../libs/i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QAAA,kBAAkB,sBAuB7B","sourcesContent":["import { readFileSync } from \"fs\";\nimport { join } from \"path\";\nimport { ConfigLoaderSuccessResult, loadConfig, register } from \"tsconfig-paths\";\n\ninterface ITSConfigOptions {\n projectRootDir: string;\n}\n\nlet tsModule: typeof import(\"typescript\");\n\n/**\n * This enables webpack typescript file to load projects from the path section in tsconfig file.\n *\n * @param options - The options to enable tsconfig path\n * @returns {import(\"typescript\").ParsedCommandLine} - Returns the parsed command line\n */\nexport const enableTsConfigPath = (options: ITSConfigOptions) => {\n if (!tsModule) {\n tsModule = require(\"typescript\");\n }\n const readResult = tsModule.readConfigFile(join(options.projectRootDir, \"tsconfig.app.json\"), tsModule.sys.readFile);\n const result = tsModule.parseJsonConfigFileContent(readResult.config, tsModule.sys, options.projectRootDir);\n\n require.extensions[\".ts\"] = function (m, filename) {\n const input = readFileSync(filename, \"utf-8\");\n\n const { outputText } = tsModule.transpileModule(input, {\n compilerOptions: readResult.config,\n });\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (m as any)._compile(outputText, filename);\n };\n const loadedConf = loadConfig(options.projectRootDir) as ConfigLoaderSuccessResult;\n register({\n baseUrl: join(options.projectRootDir, loadedConf.baseUrl),\n paths: loadedConf.paths,\n });\n return result;\n};\n"]}
@@ -5,6 +5,7 @@ interface IExposedExtensionsOptions {
5
5
  }
6
6
  /**
7
7
  * Generates a list of exposed extensions from a manifest.
8
+ *
8
9
  * @param manifest {Manifest} The manifest to get the exposed extensions from.
9
10
  * @returns {Exposes} Exposes object for module federation.
10
11
  */
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const path = tslib_1.__importStar(require("path"));
6
6
  /**
7
7
  * Generates a list of exposed extensions from a manifest.
8
+ *
8
9
  * @param manifest {Manifest} The manifest to get the exposed extensions from.
9
10
  * @returns {Exposes} Exposes object for module federation.
10
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getExposedExtensions.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getExposedExtensions.ts"],"names":[],"mappings":";;;;AACA,mDAA6B;AAM7B;;;;GAIG;AACI,MAAM,oBAAoB,GAAG,CAAO,OAAkC,EAAoB,EAAE;IACjG,MAAM,MAAM,GAAY,EAAE,CAAC;IAC3B,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE;QAC/B,KAAK,MAAM,SAAS,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE;YACnD,IAAI,SAAS,CAAC,IAAI,KAAK,kBAAkB,EAAE;gBACzC,MAAM,CAAC,KAAK,SAAS,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CACrC,OAAO,CAAC,SAAS,EACjB,SAAS,CAAC,UAAU,EACpB,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAC9C,CAAC;aACH;SACF;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAA,CAAC;AAdW,QAAA,oBAAoB,wBAc/B","sourcesContent":["import { Exposes, IrisAppManifest } from \"@trackunit/iris-app-api\";\nimport * as path from \"path\";\n\ninterface IExposedExtensionsOptions {\n nxRootDir: string;\n manifest: IrisAppManifest;\n}\n/**\n * Generates a list of exposed extensions from a manifest.\n * @param manifest {Manifest} The manifest to get the exposed extensions from.\n * @returns {Exposes} Exposes object for module federation.\n */\nexport const getExposedExtensions = async (options: IExposedExtensionsOptions): Promise<Exposes> => {\n const output: Exposes = {};\n if (options.manifest.extensions) {\n for (const extension of options.manifest.extensions) {\n if (extension.type !== \"REPORT_EXTENSION\") {\n output[`./${extension.id}`] = path.join(\n options.nxRootDir,\n extension.sourceRoot,\n extension.main ? extension.main : \"index.tsx\"\n );\n }\n }\n }\n return output;\n};\n"]}
1
+ {"version":3,"file":"getExposedExtensions.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getExposedExtensions.ts"],"names":[],"mappings":";;;;AACA,mDAA6B;AAM7B;;;;;GAKG;AACI,MAAM,oBAAoB,GAAG,CAAO,OAAkC,EAAoB,EAAE;IACjG,MAAM,MAAM,GAAY,EAAE,CAAC;IAC3B,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE;QAC/B,KAAK,MAAM,SAAS,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE;YACnD,IAAI,SAAS,CAAC,IAAI,KAAK,kBAAkB,EAAE;gBACzC,MAAM,CAAC,KAAK,SAAS,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CACrC,OAAO,CAAC,SAAS,EACjB,SAAS,CAAC,UAAU,EACpB,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAC9C,CAAC;aACH;SACF;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAA,CAAC;AAdW,QAAA,oBAAoB,wBAc/B","sourcesContent":["import { Exposes, IrisAppManifest } from \"@trackunit/iris-app-api\";\nimport * as path from \"path\";\n\ninterface IExposedExtensionsOptions {\n nxRootDir: string;\n manifest: IrisAppManifest;\n}\n/**\n * Generates a list of exposed extensions from a manifest.\n *\n * @param manifest {Manifest} The manifest to get the exposed extensions from.\n * @returns {Exposes} Exposes object for module federation.\n */\nexport const getExposedExtensions = async (options: IExposedExtensionsOptions): Promise<Exposes> => {\n const output: Exposes = {};\n if (options.manifest.extensions) {\n for (const extension of options.manifest.extensions) {\n if (extension.type !== \"REPORT_EXTENSION\") {\n output[`./${extension.id}`] = path.join(\n options.nxRootDir,\n extension.sourceRoot,\n extension.main ? extension.main : \"index.tsx\"\n );\n }\n }\n }\n return output;\n};\n"]}
@@ -3,8 +3,9 @@ interface ISharedDependenciesOptions {
3
3
  manifest: IrisAppManifest;
4
4
  }
5
5
  /**
6
- * Generates the shared dependencies to expose in the the module federation configuration.
7
- * @param manifest {Manifest} The app manifest file
6
+ * Generates a list of shared dependencies for module federation.
7
+ *
8
+ * @param options {ISharedDependenciesOptions} The app manifest file
8
9
  * @returns {Shared} The shared dependencies for module federation
9
10
  */
10
11
  export declare const getSharedDependencies: (options: ISharedDependenciesOptions) => Shared;
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSharedDependencies = void 0;
4
4
  /**
5
- * Generates the shared dependencies to expose in the the module federation configuration.
6
- * @param manifest {Manifest} The app manifest file
5
+ * Generates a list of shared dependencies for module federation.
6
+ *
7
+ * @param options {ISharedDependenciesOptions} The app manifest file
7
8
  * @returns {Shared} The shared dependencies for module federation
8
9
  */
9
10
  const getSharedDependencies = (options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"getSharedDependencies.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getSharedDependencies.ts"],"names":[],"mappings":";;;AAIA;;;;GAIG;AACI,MAAM,qBAAqB,GAAG,CAAC,OAAmC,EAAU,EAAE;IACnF,OAAO;QACL;YACE,KAAK,EAAE;gBACL,SAAS,EAAE,IAAI;gBACf,KAAK,EAAE,IAAI;gBACX,2DAA2D;gBAC3D,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC;aACxD;SACF;QACD;YACE,WAAW,EAAE;gBACX,SAAS,EAAE,IAAI;gBACf,KAAK,EAAE,IAAI;gBACX,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAW,CAAC;aAC5D;SACF;QACD,kBAAkB;KACnB,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,qBAAqB,yBAmBhC","sourcesContent":["import { IrisAppManifest, Shared } from \"@trackunit/iris-app-api\";\ninterface ISharedDependenciesOptions {\n manifest: IrisAppManifest;\n}\n/**\n * Generates the shared dependencies to expose in the the module federation configuration.\n * @param manifest {Manifest} The app manifest file\n * @returns {Shared} The shared dependencies for module federation\n */\nexport const getSharedDependencies = (options: ISharedDependenciesOptions): Shared => {\n return [\n {\n react: {\n singleton: true,\n eager: true,\n // eslint-disable-next-line @typescript-eslint/dot-notation\n requiredVersion: options.manifest.dependencies[\"react\"],\n },\n },\n {\n \"react-dom\": {\n singleton: true,\n eager: true,\n requiredVersion: options.manifest.dependencies[\"react-dom\"],\n },\n },\n \"single-spa-react\",\n ];\n};\n"]}
1
+ {"version":3,"file":"getSharedDependencies.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getSharedDependencies.ts"],"names":[],"mappings":";;;AAIA;;;;;GAKG;AACI,MAAM,qBAAqB,GAAG,CAAC,OAAmC,EAAU,EAAE;IACnF,OAAO;QACL;YACE,KAAK,EAAE;gBACL,SAAS,EAAE,IAAI;gBACf,KAAK,EAAE,IAAI;gBACX,2DAA2D;gBAC3D,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC;aACxD;SACF;QACD;YACE,WAAW,EAAE;gBACX,SAAS,EAAE,IAAI;gBACf,KAAK,EAAE,IAAI;gBACX,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAW,CAAC;aAC5D;SACF;QACD,kBAAkB;KACnB,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,qBAAqB,yBAmBhC","sourcesContent":["import { IrisAppManifest, Shared } from \"@trackunit/iris-app-api\";\ninterface ISharedDependenciesOptions {\n manifest: IrisAppManifest;\n}\n/**\n * Generates a list of shared dependencies for module federation.\n *\n * @param options {ISharedDependenciesOptions} The app manifest file\n * @returns {Shared} The shared dependencies for module federation\n */\nexport const getSharedDependencies = (options: ISharedDependenciesOptions): Shared => {\n return [\n {\n react: {\n singleton: true,\n eager: true,\n // eslint-disable-next-line @typescript-eslint/dot-notation\n requiredVersion: options.manifest.dependencies[\"react\"],\n },\n },\n {\n \"react-dom\": {\n singleton: true,\n eager: true,\n requiredVersion: options.manifest.dependencies[\"react-dom\"],\n },\n },\n \"single-spa-react\",\n ];\n};\n"]}
@@ -17,7 +17,7 @@ export interface ITrackunitTailwindConfigOptions {
17
17
  * Generates a list of exposed extensions from a manifest.
18
18
  *
19
19
  * @param options {ITailwindContentOptions} The options include necessary information to get the dependencies.
20
- * @returns {Exposes} Exposes object for module federation.
20
+ * @returns {string[]} Exposes object for module federation. The list of files to include in the tailwind content.
21
21
  */
22
22
  export declare const getTailwindContentForApp: (options: ITailwindContentOptions) => string[];
23
23
  /**
@@ -10,7 +10,7 @@ const path_1 = require("path");
10
10
  * Generates a list of exposed extensions from a manifest.
11
11
  *
12
12
  * @param options {ITailwindContentOptions} The options include necessary information to get the dependencies.
13
- * @returns {Exposes} Exposes object for module federation.
13
+ * @returns {string[]} Exposes object for module federation. The list of files to include in the tailwind content.
14
14
  */
15
15
  const getTailwindContentForApp = (options) => {
16
16
  const nxRootDir = options.nxRootDir || path.resolve(options.appDir, "../../");
@@ -1 +1 @@
1
- {"version":3,"file":"getTailwindContentForApp.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getTailwindContentForApp.ts"],"names":[],"mappings":";;;;AAAA,mDAAyE;AACzE,2BAAgC;AAChC,mDAA6B;AAC7B,+BAA4B;AA2B5B;;;;;GAKG;AACI,MAAM,wBAAwB,GAAG,CAAC,OAAgC,EAAY,EAAE;IACrF,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE9E,IAAI,CAAC,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC,EAAE;QAC3C,MAAM,IAAI,KAAK,CACb,yIAAyI,CAC1I,CAAC;KACH;IACD,OAAO;QACL,GAAG,IAAA,4CAAiC,EAAC,OAAO,CAAC,MAAM,EAAE,8CAA8C,CAAC;QACpG,SAAS,GAAG,0DAA0D;QACtE,SAAS,GAAG,iEAAiE;KAC9E,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,wBAAwB,4BAanC;AAEF;;;;;GAKG;AACI,MAAM,0BAA0B,GAAG,CAAC,OAAwC,EAAU,EAAE;IAC7F,8DAA8D;IAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,oDAAoD,CAAC,CAAC;IACnF,OAAO;QACL,OAAO,EAAE,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,OAAO,EAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;QACtE,OAAO,EAAE,IAAA,gCAAwB,EAAC,OAAO,CAAC;QAC1C,OAAO,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;KAChD,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,0BAA0B,8BAQrC","sourcesContent":["import { createGlobPatternsForDependencies } from \"@nrwl/react/tailwind\";\nimport { existsSync } from \"fs\";\nimport * as path from \"path\";\nimport { join } from \"path\";\nimport { Config } from \"tailwindcss\";\n\nexport interface ITailwindContentOptions {\n /*\n * Root of the nx repo.\n */\n nxRootDir?: string;\n\n /**\n * The name of the folder in the nx repo this iris app is in.\n */\n appDir: string;\n}\n\nexport interface ITrackunitTailwindConfigOptions {\n /*\n * Root of the nx repo.\n */\n nxRootDir?: string;\n\n /**\n * The name of the folder in the nx repo this iris app is in.\n */\n appDir: string;\n}\n\n/**\n * Generates a list of exposed extensions from a manifest.\n *\n * @param options {ITailwindContentOptions} The options include necessary information to get the dependencies.\n * @returns {Exposes} Exposes object for module federation.\n */\nexport const getTailwindContentForApp = (options: ITailwindContentOptions): string[] => {\n const nxRootDir = options.nxRootDir || path.resolve(options.appDir, \"../../\");\n\n if (!existsSync(join(nxRootDir, \"nx.json\"))) {\n throw new Error(\n \"nx.json not found. Are you sure this is an nx repo, if you have more then 2 levels of nesting you need to pass in the nxRootDir option.\"\n );\n }\n return [\n ...createGlobPatternsForDependencies(options.appDir, \"/**/!(*.stories|*.spec).{tsx,jsx,ts,js,html}\"),\n nxRootDir + \"/node_modules/@trackunit/react-components/index.{js,css}\",\n nxRootDir + \"/node_modules/@trackunit/custom-field-components/index.{js,css}\",\n ];\n};\n\n/**\n * Generates a trackunit tailwind config for use with iris apps.\n *\n * @param options {ITrackunitTailwindConfigOptions} The options include necessary information to get the dependencies.\n * @returns {Config} Tailwind config for the app.\n */\nexport const getTrackunitTailwindConfig = (options: ITrackunitTailwindConfigOptions): Config => {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const tailwindBase = require(\"@trackunit/css-tailwind/tailwind-base.generated.js\");\n return {\n presets: [tailwindBase?.default ? tailwindBase.default : tailwindBase],\n content: getTailwindContentForApp(options),\n plugins: [require(\"@trackunit/css-components\")],\n };\n};\n"]}
1
+ {"version":3,"file":"getTailwindContentForApp.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getTailwindContentForApp.ts"],"names":[],"mappings":";;;;AAAA,mDAAyE;AACzE,2BAAgC;AAChC,mDAA6B;AAC7B,+BAA4B;AA2B5B;;;;;GAKG;AACI,MAAM,wBAAwB,GAAG,CAAC,OAAgC,EAAY,EAAE;IACrF,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE9E,IAAI,CAAC,IAAA,eAAU,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC,EAAE;QAC3C,MAAM,IAAI,KAAK,CACb,yIAAyI,CAC1I,CAAC;KACH;IACD,OAAO;QACL,GAAG,IAAA,4CAAiC,EAAC,OAAO,CAAC,MAAM,EAAE,8CAA8C,CAAC;QACpG,SAAS,GAAG,0DAA0D;QACtE,SAAS,GAAG,iEAAiE;KAC9E,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,wBAAwB,4BAanC;AAEF;;;;;GAKG;AACI,MAAM,0BAA0B,GAAG,CAAC,OAAwC,EAAU,EAAE;IAC7F,8DAA8D;IAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,oDAAoD,CAAC,CAAC;IACnF,OAAO;QACL,OAAO,EAAE,CAAC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,OAAO,EAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;QACtE,OAAO,EAAE,IAAA,gCAAwB,EAAC,OAAO,CAAC;QAC1C,OAAO,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;KAChD,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,0BAA0B,8BAQrC","sourcesContent":["import { createGlobPatternsForDependencies } from \"@nrwl/react/tailwind\";\nimport { existsSync } from \"fs\";\nimport * as path from \"path\";\nimport { join } from \"path\";\nimport { Config } from \"tailwindcss\";\n\nexport interface ITailwindContentOptions {\n /*\n * Root of the nx repo.\n */\n nxRootDir?: string;\n\n /**\n * The name of the folder in the nx repo this iris app is in.\n */\n appDir: string;\n}\n\nexport interface ITrackunitTailwindConfigOptions {\n /*\n * Root of the nx repo.\n */\n nxRootDir?: string;\n\n /**\n * The name of the folder in the nx repo this iris app is in.\n */\n appDir: string;\n}\n\n/**\n * Generates a list of exposed extensions from a manifest.\n *\n * @param options {ITailwindContentOptions} The options include necessary information to get the dependencies.\n * @returns {string[]} Exposes object for module federation. The list of files to include in the tailwind content.\n */\nexport const getTailwindContentForApp = (options: ITailwindContentOptions): string[] => {\n const nxRootDir = options.nxRootDir || path.resolve(options.appDir, \"../../\");\n\n if (!existsSync(join(nxRootDir, \"nx.json\"))) {\n throw new Error(\n \"nx.json not found. Are you sure this is an nx repo, if you have more then 2 levels of nesting you need to pass in the nxRootDir option.\"\n );\n }\n return [\n ...createGlobPatternsForDependencies(options.appDir, \"/**/!(*.stories|*.spec).{tsx,jsx,ts,js,html}\"),\n nxRootDir + \"/node_modules/@trackunit/react-components/index.{js,css}\",\n nxRootDir + \"/node_modules/@trackunit/custom-field-components/index.{js,css}\",\n ];\n};\n\n/**\n * Generates a trackunit tailwind config for use with iris apps.\n *\n * @param options {ITrackunitTailwindConfigOptions} The options include necessary information to get the dependencies.\n * @returns {Config} Tailwind config for the app.\n */\nexport const getTrackunitTailwindConfig = (options: ITrackunitTailwindConfigOptions): Config => {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const tailwindBase = require(\"@trackunit/css-tailwind/tailwind-base.generated.js\");\n return {\n presets: [tailwindBase?.default ? tailwindBase.default : tailwindBase],\n content: getTailwindContentForApp(options),\n plugins: [require(\"@trackunit/css-components\")],\n };\n};\n"]}
@@ -1,6 +1,7 @@
1
1
  import { Configuration } from "webpack-dev-server";
2
2
  /**
3
3
  * Generates a dev server configuration for webpack configuration.
4
+ *
4
5
  * @param webpackDevServerConfiguration The configuration to extend.
5
6
  * @returns {Configuration} The dev server for tiles.
6
7
  */
@@ -6,6 +6,7 @@ const getPort = require("get-port");
6
6
  const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
7
7
  /**
8
8
  * Generates a dev server configuration for webpack configuration.
9
+ *
9
10
  * @param webpackDevServerConfiguration The configuration to extend.
10
11
  * @returns {Configuration} The dev server for tiles.
11
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getTileWebpackDevServer.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getTileWebpackDevServer.ts"],"names":[],"mappings":";;;;AAAA,oCAAqC;AACrC,oEAA+B;AAG/B;;;;GAIG;AACI,MAAM,uBAAuB,GAAG,CACrC,gCAA+C,EAAE,EACzB,EAAE;IAC1B,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAC7G,uBACE,IAAI,EACJ,kBAAkB,EAAE,IAAI,EACxB,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EAAC,oBAAoB,IAAI,gBAAgB,CAAC,CAAC;oBACnE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;oBAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;iBACnC;gBAAC,OAAO,CAAC,EAAE;oBACV,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;oBAC5B,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;oBACrB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;iBAClB;YACH,CAAC,CAAA,CAAC,CAAC;YACH,OAAO,WAAW,CAAC;QACrB,CAAC,IACE,6BAA6B,EAChC;AACJ,CAAC,CAAA,CAAC;AAtDW,QAAA,uBAAuB,2BAsDlC","sourcesContent":["import getPort = require(\"get-port\");\nimport fetch from \"node-fetch\";\nimport Server, { Configuration, Middleware, Request, Response } from \"webpack-dev-server\";\n\n/**\n * Generates a dev server configuration for webpack configuration.\n * @param webpackDevServerConfiguration The configuration to extend.\n * @returns {Configuration} The dev server for tiles.\n */\nexport const getTileWebpackDevServer = async (\n webpackDevServerConfiguration: Configuration = {}\n): Promise<Configuration> => {\n const port = await getPort({ port: [22220, 22221, 22222, 22223, 22224, 22225, 22226, 22227, 22228, 22229] });\n return {\n port,\n historyApiFallback: true,\n headers: {\n \"Access-Control-Allow-Credentials\": \"true\",\n \"Access-Control-Max-Age\": \"3600\",\n \"Access-Control-Allow-Methods\": \"GET, POST, PUT, DELETE, OPTIONS\",\n \"Access-Control-Allow-Headers\":\n \"X-Requested-With, baggage, content-type, Authorization, sentry-trace, session-id, x-trackunitappversion\",\n },\n open: {\n target: [\"https://dev.manager.trackunit.com/iris-sdk-portal/main#runLocal\"],\n },\n onListening: (server: Server) => {},\n setupMiddlewares: (middlewares: Middleware[], devServer: Server) => {\n middlewares.push({\n name: \"cors-preflight\",\n path: \"/\",\n middleware: (req: Request, res: Response, next: () => void) => {\n if (req.method === \"GET\") {\n next();\n } else {\n res.send(\"GET, HEAD\");\n }\n },\n });\n devServer.app?.use(\"/\", (request, response, next) => {\n response.header(\"Access-Control-Allow-Origin\", request.headers.origin || \"https://dev.manager.trackunit.com\");\n next();\n });\n devServer.app?.use(\"/manifestAndToken\", async (request, response, next) => {\n response.header(\"Access-Control-Allow-Origin\", request.headers.origin || \"https://dev.manager.trackunit.com\");\n response.header(\n \"Access-Control-Allow-Headers\",\n \"X-Requested-With, baggage, content-type, Authorization, sentry-trace, session-id, x-trackunitappversion\"\n );\n try {\n const resp = await fetch(`http://localhost:${port}/manifest.json`);\n const body = await resp.json();\n response.send({ manifest: body });\n } catch (e) {\n console.error(\"ERROR: \", e);\n response.status(500);\n response.send(e);\n }\n });\n return middlewares;\n },\n ...webpackDevServerConfiguration,\n };\n};\n"]}
1
+ {"version":3,"file":"getTileWebpackDevServer.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/getTileWebpackDevServer.ts"],"names":[],"mappings":";;;;AAAA,oCAAqC;AACrC,oEAA+B;AAG/B;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CACrC,gCAA+C,EAAE,EACzB,EAAE;IAC1B,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAC7G,uBACE,IAAI,EACJ,kBAAkB,EAAE,IAAI,EACxB,OAAO,EAAE;YACP,kCAAkC,EAAE,MAAM;YAC1C,wBAAwB,EAAE,MAAM;YAChC,8BAA8B,EAAE,iCAAiC;YACjE,8BAA8B,EAC5B,yGAAyG;SAC5G,EACD,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,iEAAiE,CAAC;SAC5E,EACD,WAAW,EAAE,CAAC,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,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;oBAC5B,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;oBACrB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;iBAClB;YACH,CAAC,CAAA,CAAC,CAAC;YACH,OAAO,WAAW,CAAC;QACrB,CAAC,IACE,6BAA6B,EAChC;AACJ,CAAC,CAAA,CAAC;AAtDW,QAAA,uBAAuB,2BAsDlC","sourcesContent":["import getPort = require(\"get-port\");\nimport fetch from \"node-fetch\";\nimport Server, { Configuration, Middleware, Request, Response } from \"webpack-dev-server\";\n\n/**\n * Generates a dev server configuration for webpack configuration.\n *\n * @param webpackDevServerConfiguration The configuration to extend.\n * @returns {Configuration} The dev server for tiles.\n */\nexport const getTileWebpackDevServer = async (\n webpackDevServerConfiguration: Configuration = {}\n): Promise<Configuration> => {\n const port = await getPort({ port: [22220, 22221, 22222, 22223, 22224, 22225, 22226, 22227, 22228, 22229] });\n return {\n port,\n historyApiFallback: true,\n headers: {\n \"Access-Control-Allow-Credentials\": \"true\",\n \"Access-Control-Max-Age\": \"3600\",\n \"Access-Control-Allow-Methods\": \"GET, POST, PUT, DELETE, OPTIONS\",\n \"Access-Control-Allow-Headers\":\n \"X-Requested-With, baggage, content-type, Authorization, sentry-trace, session-id, x-trackunitappversion\",\n },\n open: {\n target: [\"https://dev.manager.trackunit.com/iris-sdk-portal/main#runLocal\"],\n },\n onListening: (server: Server) => {},\n setupMiddlewares: (middlewares: Middleware[], devServer: Server) => {\n middlewares.push({\n name: \"cors-preflight\",\n path: \"/\",\n middleware: (req: Request, res: Response, next: () => void) => {\n if (req.method === \"GET\") {\n next();\n } else {\n res.send(\"GET, HEAD\");\n }\n },\n });\n devServer.app?.use(\"/\", (request, response, next) => {\n response.header(\"Access-Control-Allow-Origin\", request.headers.origin || \"https://dev.manager.trackunit.com\");\n next();\n });\n devServer.app?.use(\"/manifestAndToken\", async (request, response, next) => {\n response.header(\"Access-Control-Allow-Origin\", request.headers.origin || \"https://dev.manager.trackunit.com\");\n response.header(\n \"Access-Control-Allow-Headers\",\n \"X-Requested-With, baggage, content-type, Authorization, sentry-trace, session-id, x-trackunitappversion\"\n );\n try {\n const resp = await fetch(`http://localhost:${port}/manifest.json`);\n const body = await resp.json();\n response.send({ manifest: body });\n } catch (e) {\n console.error(\"ERROR: \", e);\n response.status(500);\n response.send(e);\n }\n });\n return middlewares;\n },\n ...webpackDevServerConfiguration,\n };\n};\n"]}