@praxisjs/devtools 0.2.4 → 0.2.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @praxisjs/devtools
2
2
 
3
+ ## 0.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 4d15755: Refactor `@Debug` and `@Trace` internals to use the new decorator factory helpers from `@praxisjs/decorators` (`createFieldDecorator`, `createMethodDecorator`, `createGetterObserverDecorator`, `createClassDecorator`). No changes to public API or behavior.
8
+ - Updated dependencies [3372878]
9
+ - Updated dependencies [feaa478]
10
+ - @praxisjs/core@1.0.0
11
+ - @praxisjs/decorators@0.5.0
12
+ - @praxisjs/runtime@0.2.5
13
+ - @praxisjs/jsx@0.3.4
14
+
15
+ ## 0.2.5
16
+
17
+ ### Patch Changes
18
+
19
+ - 00119ca: Regenerate UnoCSS bundle
20
+ - Updated dependencies [ea59035]
21
+ - Updated dependencies [d11a10a]
22
+ - @praxisjs/decorators@0.4.3
23
+ - @praxisjs/core@0.4.2
24
+ - @praxisjs/runtime@0.2.4
25
+ - @praxisjs/jsx@0.3.3
26
+
3
27
  ## 0.2.4
4
28
 
5
29
  ### Patch Changes
@@ -65,12 +65,14 @@
65
65
  .h-\[2px\]{height:2px;}
66
66
  .h-\[32px\]{height:32px;}
67
67
  .h-\[6px\]{height:6px;}
68
- .h-1{height:0.25rem;}
68
+ .h-1,
69
+ .h1{height:0.25rem;}
69
70
  .h-10{height:2.5rem;}
70
71
  .h-3{height:0.75rem;}
71
72
  .h-7{height:1.75rem;}
72
73
  .h-full{height:100%;}
73
74
  .h-screen{height:100vh;}
75
+ .h2{height:0.5rem;}
74
76
  .max-w-\[200px\]{max-width:200px;}
75
77
  .min-w-0{min-width:0;}
76
78
  .w-\[13px\]{width:13px;}
@@ -108,6 +110,7 @@
108
110
  .overflow-hidden{overflow:hidden;}
109
111
  .overflow-y-auto{overflow-y:auto;}
110
112
  .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
113
+ .b,
111
114
  .border{border-width:1px;}
112
115
  .border-b{border-bottom-width:1px;}
113
116
  .border-l{border-left-width:1px;}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ComponentElement } from '@praxisjs/shared';
2
-
3
- declare type AnyConstructor = new (...args: any[]) => any;
2
+ import { RootComponent } from '@praxisjs/core/internal';
4
3
 
5
4
  export declare interface ComponentEntry {
6
5
  id: string;
@@ -16,24 +15,12 @@ export declare const ComponentsPlugin: DevtoolsPlugin;
16
15
 
17
16
  /**
18
17
  * Tracks state, computed values, and methods in the devtools panel.
19
- *
20
- * On @State() properties (stacked):
21
- * @Debug()
22
- * @State() count = 0;
23
- *
24
- * On @Computed() getters (stacked):
25
- * @Debug({ label: "doubled" })
26
- * @Computed()
27
- * get doubled() { return this.count * 2; }
28
- *
29
- * On methods:
30
- * @Debug()
31
- * increment() { ... }
18
+ * Supports @State() fields, @Computed() getters, and methods.
32
19
  */
33
20
  export declare function Debug(options?: DebugOptions): DebugDecorator;
34
21
 
35
22
  declare interface DebugDecorator {
36
- (value: (...args: unknown[]) => unknown, context: ClassMethodDecoratorContext): (...args: unknown[]) => unknown;
23
+ (value: (...args: unknown[]) => unknown, context: ClassMethodDecoratorContext): void;
37
24
  (value: unknown, context: ClassGetterDecoratorContext): void;
38
25
  (value: undefined, context: ClassFieldDecoratorContext): void;
39
26
  }
@@ -127,14 +114,6 @@ export declare type TimelineEventType = 'signal:change' | 'component:render' | '
127
114
 
128
115
  export declare const TimelinePlugin: DevtoolsPlugin;
129
116
 
130
- /**
131
- * Instruments a component class to report renders and lifecycle events
132
- * to the devtools panel.
133
- *
134
- * @Trace()
135
- * @Component()
136
- * class MyComponent extends StatefulComponent { ... }
137
- */
138
- export declare function Trace(): <T extends AnyConstructor>(constructor: T, _context: ClassDecoratorContext) => T;
117
+ export declare function Trace(): <T extends new (...args: any[]) => RootComponent<Record<string, any>>>(constructor: T, _context: ClassDecoratorContext) => T;
139
118
 
140
119
  export { }