igniteui-live-editing 3.4.3 → 3.5.1

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.
@@ -137,7 +137,7 @@ class SampleAssetsGenerator {
137
137
  this._shortenComponentPath(config, appModuleFile);
138
138
  sampleFiles.push(appModuleFile);
139
139
  */
140
- this._modifyImports(sampleFiles.filter(x => x.fileExtension === 'ts' && x.isMain), additionalFiles);
140
+ this._modifyImports(sampleFiles.filter(x => x.fileExtension === 'ts' || x.path.endsWith('.ts')), additionalFiles);
141
141
  sampleFiles.push(new LiveEditingFile_1.LiveEditingFile(LiveEditingFile_1.SAMPLE_APP_FOLDER + "app.component.ts", this._getAppComponentTs(config, sampleFiles)));
142
142
  sampleFiles.push(new LiveEditingFile_1.LiveEditingFile(LiveEditingFile_1.SAMPLE_APP_FOLDER + "app.component.html", this._getAppComponentHtml(componentTsContent, config.appConfig.routesConfig)));
143
143
  sampleFiles.push(new LiveEditingFile_1.LiveEditingFile(`${LiveEditingFile_1.SAMPLE_APP_FOLDER}app.config.ts`, this._getAppConfig(config, configImports, configAdditionalImports), false, 'ts'));
@@ -285,13 +285,12 @@ class SampleAssetsGenerator {
285
285
  }
286
286
  if (appConfig.providers && appConfig.providers.length) {
287
287
  appConfig.providers.forEach(provider => {
288
+ const importName = provider.provider.replace(/\(.*\)$/g, "");
288
289
  if (importMap.has(provider.import)) {
289
- importMap.get(provider.import).push(provider.provider.replace(/\(/g, "").replace(/\)/g, ""));
290
+ importMap.get(provider.import).push(importName);
290
291
  }
291
292
  else {
292
- importMap.set(provider.import, [
293
- provider.provider.replace(/\(/g, "").replace(/\)/g, "")
294
- ]);
293
+ importMap.set(provider.import, [importName]);
295
294
  }
296
295
  });
297
296
  }
@@ -484,6 +483,13 @@ class SampleAssetsGenerator {
484
483
  dependenciesString += `,\n ${replacement}`;
485
484
  }
486
485
  }
486
+ // Update devDependencies in the template from the project's devDependencies
487
+ const devDeps = new DependencyResolver_1.DevDependencyResolver().devDependencies;
488
+ for (const pkg in devDeps) {
489
+ const escapedPkg = pkg.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
490
+ const versionPattern = new RegExp(`"${escapedPkg}": "[^"]*"`, 'g');
491
+ packageJsonFile = packageJsonFile.replace(versionPattern, `"${pkg}": "${devDeps[pkg]}"`);
492
+ }
487
493
  // Add packages without resolved versions
488
494
  for (const dep of dependencies) {
489
495
  if (!withVersions[dep]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-live-editing",
3
- "version": "3.4.3",
3
+ "version": "3.5.1",
4
4
  "description": "This feature helps us to provide each sample as a separate application to external consumers.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -47,12 +47,14 @@ const SHARED_DEV_DEPENDENCIES = {
47
47
  };
48
48
  const DEPENDENCIES_WITH_FIXED_VERSION = {};
49
49
  const SHARED_DEPENDENCIES = [
50
+ "@angular/cdk",
50
51
  "@angular/common",
51
52
  "@angular/compiler",
52
53
  "@angular/core",
53
54
  "@angular/forms",
54
55
  "@angular/platform-browser",
55
56
  "@angular/platform-browser-dynamic",
57
+ "@angular/router",
56
58
  "rxjs",
57
59
  "zone.js",
58
60
  "igniteui-angular",
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "compileOnSave": false,
3
3
  "compilerOptions": {
4
- "baseUrl": "./",
5
4
  "outDir": "./dist/out-tsc",
6
5
  "sourceMap": true,
7
6
  "esModuleInterop": true,
8
7
  "declaration": false,
9
- "experimentalDecorators": true,
10
- "module": "esnext",
8
+ "module": "ES2022",
11
9
  "moduleResolution": "bundler",
12
10
  "importHelpers": true,
13
11
  "target": "ES2022",
@@ -17,9 +15,11 @@
17
15
  "lib": [
18
16
  "es2022",
19
17
  "dom"
20
- ]
21
- },
22
- "angularCompilerOptions": {
23
- "enableIvy": true
18
+ ],
19
+ "skipLibCheck": true,
20
+ "useDefineForClassFields": false,
21
+ "strictPropertyInitialization": false,
22
+ "strictNullChecks": false,
23
+ "noImplicitAny": false
24
24
  }
25
25
  }