@sprucelabs/spruce-heartwood-utils 9.1.0 → 9.2.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.
@@ -61,7 +61,7 @@ export default class RemoteViewControllerFactory {
61
61
  });
62
62
  this.vcFactory.importControllers(skillViews);
63
63
  if (theme) {
64
- this.themesByNamespace[namespace] = Object.assign(Object.assign({}, theme), { namespace, name: namespace });
64
+ this.themesByNamespace[namespace] = Object.assign(Object.assign({}, theme), { slug: namespace, name: namespace });
65
65
  }
66
66
  }
67
67
  });
@@ -3,7 +3,7 @@ import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
3
3
  declare type Theme = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme;
4
4
  export declare type SkillTheme = Theme & {
5
5
  name: string;
6
- namespace: string;
6
+ slug: string;
7
7
  };
8
8
  export declare const heartwoodTheme: SkillTheme;
9
9
  export declare class ThemeManagerImpl implements ThemeManager {
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  export const heartwoodTheme = {
11
11
  name: 'Heartwood',
12
- namespace: 'heartwood',
12
+ slug: 'heartwood',
13
13
  props: {
14
14
  color1: '#ffffff',
15
15
  color1Inverse: '#0f4c8a',
@@ -69,7 +69,7 @@ export class ThemeManagerImpl {
69
69
  }
70
70
  reset() {
71
71
  return __awaiter(this, void 0, void 0, function* () {
72
- if (this.currentTheme.namespace !== 'heartwood') {
72
+ if (this.currentTheme.slug !== 'heartwood') {
73
73
  yield this.setTheme(heartwoodTheme);
74
74
  }
75
75
  });
@@ -49,7 +49,7 @@ class RemoteViewControllerFactory {
49
49
  });
50
50
  this.vcFactory.importControllers(skillViews);
51
51
  if (theme) {
52
- this.themesByNamespace[namespace] = Object.assign(Object.assign({}, theme), { namespace, name: namespace });
52
+ this.themesByNamespace[namespace] = Object.assign(Object.assign({}, theme), { slug: namespace, name: namespace });
53
53
  }
54
54
  }
55
55
  }
@@ -3,7 +3,7 @@ import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
3
3
  declare type Theme = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme;
4
4
  export declare type SkillTheme = Theme & {
5
5
  name: string;
6
- namespace: string;
6
+ slug: string;
7
7
  };
8
8
  export declare const heartwoodTheme: SkillTheme;
9
9
  export declare class ThemeManagerImpl implements ThemeManager {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ThemeManagerImpl = exports.heartwoodTheme = void 0;
4
4
  exports.heartwoodTheme = {
5
5
  name: 'Heartwood',
6
- namespace: 'heartwood',
6
+ slug: 'heartwood',
7
7
  props: {
8
8
  color1: '#ffffff',
9
9
  color1Inverse: '#0f4c8a',
@@ -60,7 +60,7 @@ class ThemeManagerImpl {
60
60
  .querySelector('meta[name="theme-color"]')) === null || _a === void 0 ? void 0 : _a.setAttribute('content', (_b = theme.props.color1Inverse) !== null && _b !== void 0 ? _b : 'white');
61
61
  }
62
62
  async reset() {
63
- if (this.currentTheme.namespace !== 'heartwood') {
63
+ if (this.currentTheme.slug !== 'heartwood') {
64
64
  await this.setTheme(exports.heartwoodTheme);
65
65
  }
66
66
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "9.1.0",
4
+ "version": "9.2.1",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },