@c8y/hybrid 1021.81.0 → 1022.4.2

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 type { ConfigurationOptions } from '@c8y/devkit';
2
- import { author, description, version, name } from './package.json';
2
+ import { author, description, version, name, license } from './package.json';
3
3
 
4
4
  export default {
5
5
  runTime: {
@@ -8,6 +8,7 @@ export default {
8
8
  version,
9
9
  name,
10
10
  tabsHorizontal: true,
11
+ license,
11
12
  upgrade: true,
12
13
  rightDrawer: true,
13
14
  contentSecurityPolicy:
package/package.json CHANGED
@@ -1,25 +1,26 @@
1
1
  {
2
2
  "name": "@c8y/hybrid",
3
- "version": "1021.81.0",
3
+ "version": "1022.4.2",
4
4
  "description": "",
5
5
  "dependencies": {
6
- "@c8y/style": "1021.81.0",
7
- "@c8y/ng1-modules": "1021.81.0",
8
- "@c8y/ngx-components": "1021.81.0",
9
- "@c8y/client": "1021.81.0",
10
- "@c8y/bootstrap": "1021.81.0",
11
- "@angular/cdk": "^18.2.14",
12
- "@angular/upgrade": "^18.2.13",
6
+ "@c8y/style": "1022.4.2",
7
+ "@c8y/ng1-modules": "1022.4.2",
8
+ "@c8y/ngx-components": "1022.4.2",
9
+ "@c8y/client": "1022.4.2",
10
+ "@c8y/bootstrap": "1022.4.2",
11
+ "@angular/cdk": "^19.2.18",
12
+ "@angular/upgrade": "^19.2.14",
13
13
  "angular": "1.8.3",
14
- "ngx-bootstrap": "18.0.0",
15
- "rxjs": "^7.8.1"
14
+ "ngx-bootstrap": "19.0.2",
15
+ "rxjs": "7.8.1"
16
16
  },
17
17
  "devDependencies": {
18
- "@c8y/options": "1021.81.0",
19
- "@c8y/devkit": "1021.81.0"
18
+ "@c8y/options": "1022.4.2",
19
+ "@c8y/devkit": "1022.4.2"
20
20
  },
21
21
  "peerDependencies": {
22
- "@angular/common": ">=18 <19"
22
+ "@angular/common": ">=19 <20"
23
23
  },
24
- "author": "Cumulocity GmbH"
24
+ "author": "Cumulocity GmbH",
25
+ "license": "Apache-2.0"
25
26
  }
package/src/bootstrap.ts CHANGED
@@ -4,14 +4,16 @@ import './ng1';
4
4
  import { enableProdMode } from '@angular/core';
5
5
  import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
6
6
  import { AppModule } from './app/app.module';
7
+ import { provideBootstrapMetadata } from '@c8y/ngx-components';
8
+ import { BootstrapMetaData } from '@c8y/bootstrap';
7
9
 
8
10
  declare const __MODE__: string;
9
11
  if (__MODE__ === 'production') {
10
12
  enableProdMode();
11
13
  }
12
14
 
13
- export function bootstrap() {
14
- return platformBrowserDynamic()
15
+ export function bootstrap(metadata: BootstrapMetaData) {
16
+ return platformBrowserDynamic(provideBootstrapMetadata(metadata))
15
17
  .bootstrapModule(AppModule)
16
18
  .catch(err => console.log(err));
17
19
  }
package/src/main.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import './i18n';
2
- import { applyOptions, loadOptions } from '@c8y/bootstrap';
3
2
 
4
3
  const barHolder: HTMLElement | null = document.querySelector('body > .init-load');
5
4
  export const removeProgress = () => barHolder?.parentNode?.removeChild(barHolder);
@@ -7,14 +6,12 @@ export const removeProgress = () => barHolder?.parentNode?.removeChild(barHolder
7
6
  applicationSetup();
8
7
 
9
8
  async function applicationSetup() {
10
- await applyOptions({
11
- ...(await loadOptions())
12
- });
9
+ const { loadMetaDataAndPerformBootstrap } = await import('@c8y/bootstrap');
10
+ const loadBootstrapModule = () =>
11
+ import(
12
+ /* webpackPreload: true */
13
+ './bootstrap'
14
+ );
13
15
 
14
- const mod = await import(
15
- /* webpackPreload: true */
16
- './bootstrap'
17
- );
18
- const bootstrapApp = mod.bootstrap;
19
- return bootstrapApp().then(removeProgress);
16
+ loadMetaDataAndPerformBootstrap(loadBootstrapModule).then(removeProgress);
20
17
  }