@design.estate/dees-wcctools 3.5.1 → 3.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-wcctools",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "private": false,
5
5
  "description": "A set of web component tools for creating element catalogues, enabling the structured development and documentation of custom elements and pages.",
6
6
  "exports": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-wcctools',
6
- version: '3.5.1',
6
+ version: '3.5.2',
7
7
  description: 'A set of web component tools for creating element catalogues, enabling the structured development and documentation of custom elements and pages.'
8
8
  }
@@ -28,7 +28,7 @@ export class WccFrame extends DeesElement {
28
28
  public static styles = [
29
29
  css`
30
30
  :host {
31
- border: 10px solid #ffaeaf;
31
+ border: 10px solid rgba(255, 174, 175, 1);
32
32
  position: absolute;
33
33
  background: ${cssManager.bdTheme('#333', '#000')};
34
34
  right: 0px;
@@ -52,14 +52,14 @@ export class WccFrame extends DeesElement {
52
52
  <style>
53
53
  :host {
54
54
  ${this.isNative ? `
55
- border: none !important;
55
+ border: 0px solid rgba(255, 174, 175, 0) !important;
56
56
  left: 0px !important;
57
57
  right: 0px !important;
58
58
  top: 0px !important;
59
59
  bottom: 0px !important;
60
60
  ` : `
61
61
  bottom: ${this.advancedEditorOpen ? '400px' : '100px'};
62
- border: 10px solid #ffaeaf;
62
+ border: 10px solid rgba(255, 174, 175, 1);
63
63
  left: ${this.sidebarWidth}px;
64
64
  `}
65
65
  transition: ${this.isResizing ? 'none' : 'all 0.3s ease'};
@@ -63,6 +63,10 @@ export class WccProperties extends DeesElement {
63
63
  @state()
64
64
  accessor recordingDuration: number = 0;
65
65
 
66
+ // Delayed hide for native mode transition
67
+ @state()
68
+ accessor isHidden: boolean = false;
69
+
66
70
  public editorHeight: number = 300;
67
71
 
68
72
  public render(): TemplateResult {
@@ -99,7 +103,7 @@ export class WccProperties extends DeesElement {
99
103
  overflow: hidden;
100
104
  background: var(--background);
101
105
  color: var(--foreground);
102
- display: ${this.isNative ? 'none' : 'block'};
106
+ display: ${this.isHidden ? 'none' : 'block'};
103
107
  }
104
108
  .grid {
105
109
  display: grid;
@@ -931,6 +935,19 @@ export class WccProperties extends DeesElement {
931
935
  protected updated(changedProperties: Map<string, unknown>) {
932
936
  super.updated(changedProperties);
933
937
 
938
+ // Handle delayed hide for native mode transition
939
+ if (changedProperties.has('isNative')) {
940
+ if (this.isNative) {
941
+ // Delay hiding until frame animation completes
942
+ setTimeout(() => {
943
+ this.isHidden = true;
944
+ }, 300);
945
+ } else {
946
+ // Show immediately when exiting native mode
947
+ this.isHidden = false;
948
+ }
949
+ }
950
+
934
951
  // Only recreate properties when selectedItem changes
935
952
  if (changedProperties.has('selectedItem')) {
936
953
  this.createProperties().catch(error => {
@@ -44,6 +44,10 @@ export class WccSidebar extends DeesElement {
44
44
  @state()
45
45
  accessor isResizing: boolean = false;
46
46
 
47
+ // Delayed hide for native mode transition
48
+ @state()
49
+ accessor isHidden: boolean = false;
50
+
47
51
  private sectionsInitialized = false;
48
52
 
49
53
  public render(): TemplateResult {
@@ -67,7 +71,7 @@ export class WccSidebar extends DeesElement {
67
71
  --ring: #3b82f6;
68
72
  --radius: 4px;
69
73
 
70
- display: ${this.isNative ? 'none' : 'block'};
74
+ display: ${this.isHidden ? 'none' : 'block'};
71
75
  border-right: 1px solid rgba(255, 255, 255, 0.08);
72
76
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
73
77
  font-size: 14px;
@@ -732,6 +736,19 @@ export class WccSidebar extends DeesElement {
732
736
  protected updated(changedProperties: Map<string, unknown>) {
733
737
  super.updated(changedProperties);
734
738
 
739
+ // Handle delayed hide for native mode transition
740
+ if (changedProperties.has('isNative')) {
741
+ if (this.isNative) {
742
+ // Delay hiding until frame animation completes
743
+ setTimeout(() => {
744
+ this.isHidden = true;
745
+ }, 300);
746
+ } else {
747
+ // Show immediately when exiting native mode
748
+ this.isHidden = false;
749
+ }
750
+ }
751
+
735
752
  // Auto-expand folder when a multi-demo element is selected
736
753
  if (changedProperties.has('selectedItem') && this.selectedItem && this.dashboardRef?.sections) {
737
754
  // Find the element in any section