@skyux/docs-tools 4.9.6 → 4.9.7

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.
@@ -274,7 +274,7 @@ var SkyDocsCodeExamplesEditorService = /** @class */ (function () {
274
274
  };
275
275
  SkyDocsCodeExamplesEditorService.prototype.getPayload = function (codeExample) {
276
276
  var angularVersion = '^9.0.0';
277
- var skyuxVersion = '*';
277
+ var skyuxVersion = '^4';
278
278
  var defaultDependencies = {
279
279
  '@angular/animations': angularVersion,
280
280
  '@angular/common': angularVersion,
@@ -305,6 +305,16 @@ var SkyDocsCodeExamplesEditorService = /** @class */ (function () {
305
305
  'zone.js': '~0.11.4'
306
306
  };
307
307
  var mergedDependencies = Object.assign({}, defaultDependencies, codeExample.packageDependencies);
308
+ // Ensure any @skyux dependencies list the correct version of SKY UX.
309
+ // e.g. `"@skyux/core": "*"` --> `"@skyux/core": "4.0.0"`
310
+ for (var packageName in mergedDependencies) {
311
+ if (mergedDependencies.hasOwnProperty(packageName)) {
312
+ var version = mergedDependencies[packageName];
313
+ if (version === '*' && /^(@blackbaud\/skyux-lib-|@skyux)/.test(packageName)) {
314
+ mergedDependencies[packageName] = skyuxVersion;
315
+ }
316
+ }
317
+ }
308
318
  var files = this.parseStackBlitzFiles(codeExample.sourceCode, mergedDependencies, codeExample.theme);
309
319
  return {
310
320
  files: files,