@c8y/devkit 1019.4.11 → 1019.5.6

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,4 @@
1
1
  import { IApplication, VersioningMatrix } from '@c8y/client';
2
- import type { PluginsExports } from './EnvironmentOptions';
3
2
  import type { Pattern } from 'copy-webpack-plugin';
4
3
  export interface ApplicationOptions {
5
4
  /** Application name (saved to the server). */
@@ -310,6 +309,54 @@ export interface RemotePlugins {
310
309
  */
311
310
  [key: string]: string[];
312
311
  }
312
+ export interface PluginsExports {
313
+ /**
314
+ * The name of the plugin.
315
+ */
316
+ name: string;
317
+ /**
318
+ * The name of the Angular module class.
319
+ */
320
+ module: string;
321
+ /**
322
+ * The file path to the module typescript file.
323
+ */
324
+ path: string;
325
+ /**
326
+ * An short description about what the module does.
327
+ */
328
+ description?: string;
329
+ /**
330
+ * Allows to scope the plugin to certain applications.
331
+ * Default is undefined, which means every application can import this plugin.
332
+ * - Use `self` to limit the plugin to the current application.
333
+ * - The `global` is atm not used, but planned for allowing this plugin to all applications at the same time.
334
+ * - The `self-optional` is used to add it as a possible plugin to the current application, without it being imported by default.
335
+ */
336
+ scope?: (typeof PluginsExportScopes)[keyof typeof PluginsExportScopes];
337
+ }
338
+ /**
339
+ * Tells how a plugin is scoped.
340
+ */
341
+ export declare enum PluginsExportScopes {
342
+ /**
343
+ * Limit the plugin to the current application. It is imported by default.
344
+ */
345
+ SELF = "self",
346
+ /**
347
+ * Allows to add the plugin to a global scope, meaning it is imported to all applications at the same time.
348
+ * This is not used at the moment but planned to be implemented in the new branding editor.
349
+ */
350
+ GLOBAL = "global",
351
+ /**
352
+ * Limit the plugin to the current application. The plugin is not imported by default.
353
+ */
354
+ SELF_OPTIONAL = "self-optional",
355
+ /**
356
+ * Like undefined the plugin is available for any private application.
357
+ */
358
+ DEFAULT = ""
359
+ }
313
360
  export interface CookieBannerConfiguration {
314
361
  /** Here you can set the title of Cookie Banner */
315
362
  cookieBannerTitle?: string;
@@ -1,3 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PluginsExportScopes = void 0;
4
+ /**
5
+ * Tells how a plugin is scoped.
6
+ */
7
+ var PluginsExportScopes;
8
+ (function (PluginsExportScopes) {
9
+ /**
10
+ * Limit the plugin to the current application. It is imported by default.
11
+ */
12
+ PluginsExportScopes["SELF"] = "self";
13
+ /**
14
+ * Allows to add the plugin to a global scope, meaning it is imported to all applications at the same time.
15
+ * This is not used at the moment but planned to be implemented in the new branding editor.
16
+ */
17
+ PluginsExportScopes["GLOBAL"] = "global";
18
+ /**
19
+ * Limit the plugin to the current application. The plugin is not imported by default.
20
+ */
21
+ PluginsExportScopes["SELF_OPTIONAL"] = "self-optional";
22
+ /**
23
+ * Like undefined the plugin is available for any private application.
24
+ */
25
+ PluginsExportScopes["DEFAULT"] = "";
26
+ })(PluginsExportScopes = exports.PluginsExportScopes || (exports.PluginsExportScopes = {}));
3
27
  //# sourceMappingURL=ApplicationOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationOptions.js","sourceRoot":"","sources":["../../../src/webpack/ApplicationOptions.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"ApplicationOptions.js","sourceRoot":"","sources":["../../../src/webpack/ApplicationOptions.ts"],"names":[],"mappings":";;;AA8VA;;GAEG;AACH,IAAY,mBAkBX;AAlBD,WAAY,mBAAmB;IAC7B;;OAEG;IACH,oCAAa,CAAA;IACb;;;OAGG;IACH,wCAAiB,CAAA;IACjB;;OAEG;IACH,sDAA+B,CAAA;IAC/B;;OAEG;IACH,mCAAY,CAAA;AACd,CAAC,EAlBW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAkB9B"}
@@ -109,30 +109,4 @@ export declare class WebpackOptions {
109
109
  [key: string]: string;
110
110
  } | string[];
111
111
  }
112
- export interface PluginsExports {
113
- /**
114
- * The name of the plugin.
115
- */
116
- name: string;
117
- /**
118
- * The name of the Angular module class.
119
- */
120
- module: string;
121
- /**
122
- * The file path to the module typescript file.
123
- */
124
- path: string;
125
- /**
126
- * An short description about what the module does.
127
- */
128
- description?: string;
129
- /**
130
- * Allows to scope the plugin to certain applications. E.g. if you
131
- * add here 'cockpit', the plugin can only be installed into an
132
- * application on the contextPath `apps/cockpit`. You can use comma
133
- * separated values, asterisk (default) to allow all applications or
134
- * `self` to limit the plugin to the current solution.
135
- */
136
- scope?: '*' | 'self' | string;
137
- }
138
112
  export {};
@@ -34,7 +34,12 @@ function config(env, c8yWebpackConfig) {
34
34
  use: [styleLoader(), cssLoader(false, 0), postcssLoader()].filter(Boolean)
35
35
  },
36
36
  {
37
- include: /node_modules/,
37
+ include: [
38
+ /selectize\.bootstrap3\.css/,
39
+ /angular-cron-jobs\.css/,
40
+ /jquery\.minicolors\.css/,
41
+ /ng1-modules/
42
+ ],
38
43
  use: [styleLoader(), cssLoader(true, 0), postcssLoader()].filter(Boolean)
39
44
  }
40
45
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/webpack/config/styles.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAC7C,gEAAgE;AAGhE,SAAgB,MAAM,CAAC,GAAuB,EAAE,gBAA+B;IAC7E,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,KAAK,YAAY,CAAC;IACvD,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;IAEzD,MAAM,SAAS,GAAG,CAAC,GAAY,EAAE,aAAqB,EAAE,EAAE,CAAC,CAAC;QAC1D,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE;YACP,aAAa,EAAE,aAAa,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAChD,SAAS;YACT,GAAG;SACJ;KACF,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,GAAG,EAAE,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EAAE,YAAY;QACpB,OAAO,EAAE;YACP,aAAa,EAAE,aAAa,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAChD,SAAS;YACT,GAAG;SACJ;KACF,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,GAAG,EAAE,CACzB,CAAC,OAAO,IAAI;QACV,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE;YACP,SAAS;YACT,cAAc,EAAE;gBACd,OAAO,EAAE,CAAC,YAAY,EAAE,CAAC;aAC1B;SACF;KACF,CAAC;IACJ,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACnF,MAAM,KAAK,GAAkB;QAC3B;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,kBAAkB;oBAC1B,OAAO,EAAE,cAAc;oBACvB,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAa;iBACvF;gBACD;oBACE,OAAO,EAAE;wBACP,4BAA4B;wBAC5B,wBAAwB;wBACxB,yBAAyB;wBACzB,aAAa;qBACd;oBACD,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAa;iBACtF;aACF;SACF;KACF,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,EAAE,KAAK,EAAE;KAClB,CAAC;AACJ,CAAC;AAhDD,wBAgDC"}
@@ -93,7 +93,7 @@ export declare class CumulocityPlugin {
93
93
  cookiePreferences?: import("../ApplicationOptions").CookiePreferencesConfiguration | undefined;
94
94
  gainsightKey?: string | undefined;
95
95
  disableTracking?: boolean | undefined;
96
- exports?: import("../EnvironmentOptions").PluginsExports[] | undefined;
96
+ exports?: import("../ApplicationOptions").PluginsExports[] | undefined;
97
97
  remotes?: import("../ApplicationOptions").RemotePlugins | undefined;
98
98
  isPackage?: boolean | undefined;
99
99
  package?: "plugin" | "blueprint" | undefined;
@@ -160,7 +160,7 @@ export declare class CumulocityPlugin {
160
160
  cookiePreferences?: import("../ApplicationOptions").CookiePreferencesConfiguration | undefined;
161
161
  gainsightKey?: string | undefined;
162
162
  disableTracking?: boolean | undefined;
163
- exports?: import("../EnvironmentOptions").PluginsExports[] | undefined;
163
+ exports?: import("../ApplicationOptions").PluginsExports[] | undefined;
164
164
  remotes?: import("../ApplicationOptions").RemotePlugins | undefined;
165
165
  isPackage?: boolean | undefined;
166
166
  package?: "plugin" | "blueprint" | undefined;
@@ -231,7 +231,7 @@ export declare class CumulocityPlugin {
231
231
  cookiePreferences?: import("../ApplicationOptions").CookiePreferencesConfiguration | undefined;
232
232
  gainsightKey?: string | undefined;
233
233
  disableTracking?: boolean | undefined;
234
- exports?: import("../EnvironmentOptions").PluginsExports[] | undefined;
234
+ exports?: import("../ApplicationOptions").PluginsExports[] | undefined;
235
235
  remotes?: import("../ApplicationOptions").RemotePlugins | undefined;
236
236
  isPackage?: boolean | undefined;
237
237
  package?: "plugin" | "blueprint" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/devkit",
3
- "version": "1019.4.11",
3
+ "version": "1019.5.6",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "Cumulocity Webpack Build Facade",
@@ -44,7 +44,7 @@
44
44
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
45
45
  "@babel/plugin-transform-async-to-generator": "^7.18.6",
46
46
  "@babel/preset-env": "^7.23.8",
47
- "@c8y/client": "1019.4.11",
47
+ "@c8y/client": "1019.5.6",
48
48
  "@schematics/angular": "^15.2.6",
49
49
  "angular-gettext-tools": "2.5.3",
50
50
  "babel-eslint": "10.0.1",