@signature.digital/catalog 1.5.0 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signature.digital/catalog",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "description": "A comprehensive catalog of customizable web components designed for building and managing e-signature applications.",
6
6
  "exports": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@signature.digital/catalog',
6
- version: '1.5.0',
6
+ version: '1.5.1',
7
7
  description: 'A comprehensive catalog of customizable web components designed for building and managing e-signature applications.'
8
8
  }
@@ -1,4 +1,4 @@
1
- import { DeesElement, property, state, html, customElement, type TemplateResult, css } from '@design.estate/dees-element';
1
+ import { DeesElement, property, html, customElement, type TemplateResult, css } from '@design.estate/dees-element';
2
2
  import { icon, type TDensity, type TWorkspaceTheme, type TWorkspaceView } from './sdig-workspace.shared.js';
3
3
  import './sdig-workspace-inbox.js';
4
4
  import './sdig-workspace-compose.js';
@@ -22,11 +22,13 @@ export class SdigWorkspace extends DeesElement {
22
22
  @property({ type: String }) public accessor density: TDensity = 'comfortable';
23
23
  @property({ type: String, reflect: true }) public accessor theme: TWorkspaceTheme = 'dark';
24
24
  @property({ type: String }) public accessor initialView: TWorkspaceView = 'inbox';
25
- @state() private accessor view: TWorkspaceView = 'inbox';
25
+ @property({ type: String, reflect: true }) public accessor view: TWorkspaceView = 'inbox';
26
26
 
27
27
  public connectedCallback = async () => {
28
28
  await super.connectedCallback();
29
- this.view = this.initialView || 'inbox';
29
+ if (this.view === 'inbox' && this.initialView !== 'inbox') {
30
+ this.view = this.initialView;
31
+ }
30
32
  this.addEventListener('workspace-view-request', this.handleViewRequest as EventListener);
31
33
  };
32
34