@praxisjs/devtools 0.1.0 → 0.2.0

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/index.d.ts +5 -7
  3. package/dist/index.js +1035 -860
  4. package/package.json +8 -7
  5. package/src/decorators/debug.ts +102 -77
  6. package/src/decorators/trace.ts +15 -11
  7. package/src/icons/ellipsis-vertical.tsx +25 -19
  8. package/src/icons/panel-bottom.tsx +24 -18
  9. package/src/icons/panel-left.tsx +24 -18
  10. package/src/icons/panel-right.tsx +24 -18
  11. package/src/icons/panel-top.tsx +24 -18
  12. package/src/icons/x.tsx +24 -18
  13. package/src/plugins/components/components/component-detail.tsx +59 -54
  14. package/src/plugins/components/components/component-row.tsx +36 -33
  15. package/src/plugins/components/components/detail-row.tsx +21 -18
  16. package/src/plugins/components/components/detail-section.tsx +14 -12
  17. package/src/plugins/components/components/status-dot.tsx +20 -11
  18. package/src/plugins/components/components-tab.tsx +66 -61
  19. package/src/plugins/signals/components/signal-detail.tsx +35 -27
  20. package/src/plugins/signals/components/signal-row.tsx +32 -28
  21. package/src/plugins/signals/signals-tab.tsx +92 -79
  22. package/src/plugins/timeline/components/badge.tsx +15 -9
  23. package/src/plugins/timeline/components/timeline-row.tsx +52 -45
  24. package/src/plugins/timeline/timeline-tab.tsx +90 -77
  25. package/src/plugins/types.ts +2 -2
  26. package/src/ui/dev-tools.tsx +45 -39
  27. package/src/ui/panel.tsx +152 -146
  28. package/src/ui/shared/empty-state.tsx +17 -11
  29. package/src/ui/shared/icon-button.tsx +28 -25
  30. package/src/ui/shared/panel-section.tsx +14 -12
  31. package/src/ui/shared/search-input.tsx +19 -15
  32. package/src/ui/shared/side-panel.tsx +16 -13
  33. package/vite.config.ts +3 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @praxisjs/devtools
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bb0d4f8: **Refactor decorator system and component architecture across PraxisJS packages**
8
+
9
+ - Replaced legacy decorator signatures (`constructor`, `target`, `propertyKey`, method descriptor) with the standard TC39 decorator context API (`ClassDecoratorContext`, `ClassFieldDecoratorContext`, `ClassMethodDecoratorContext`) across `@praxisjs/decorators`, `@praxisjs/store`, `@praxisjs/concurrent`, `@praxisjs/router`, `@praxisjs/motion`, `@praxisjs/di`, and `@praxisjs/fsm`.
10
+ - Introduced `StatefulComponent` and `StatelessComponent` as the new base classes, replacing the deprecated `BaseComponent`/`Function Component` pattern, across `@praxisjs/core`, `@praxisjs/runtime`, `@praxisjs/devtools`, and templates.
11
+ - Implemented core rendering functionality in `@praxisjs/runtime` (`mountChildren`, `mountComponent`, reactive scope management) and removed the deprecated `renderer.ts`.
12
+ - Refactored `@praxisjs/jsx` to delegate rendering to `@praxisjs/runtime` and improved type safety with `flattenChildren` and `isComponent` utilities.
13
+ - Updated internal module structure with new `internal` exports in `package.json` files for shared utilities and types.
14
+ - Removed `experimentalDecorators`/`emitDecoratorMetadata` from `tsconfig.json` in favor of native decorator support.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [bb0d4f8]
19
+ - @praxisjs/decorators@0.3.0
20
+ - @praxisjs/runtime@0.2.0
21
+ - @praxisjs/core@0.3.0
22
+ - @praxisjs/jsx@0.2.0
23
+ - @praxisjs/shared@0.2.0
24
+
25
+ ## 0.1.1
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [f48dbc4]
30
+ - @praxisjs/core@0.2.0
31
+ - @praxisjs/runtime@0.1.1
32
+
3
33
  ## 0.1.0
4
34
 
5
35
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from '@praxisjs/shared';
1
+ import { ComponentElement } from '@praxisjs/shared';
2
2
 
3
3
  declare type AnyConstructor = new (...args: any[]) => any;
4
4
 
@@ -29,7 +29,7 @@ export declare const ComponentsPlugin: DevtoolsPlugin;
29
29
  * @Debug()
30
30
  * increment() { ... }
31
31
  */
32
- export declare function Debug(options?: DebugOptions): (target: object, key: string, descriptor?: PropertyDescriptor) => void;
32
+ export declare function Debug(options?: DebugOptions): (value: unknown, context: ClassMethodDecoratorContext | ClassFieldDecoratorContext) => ((this: object, ...args: unknown[]) => unknown) | undefined;
33
33
 
34
34
  export declare interface DebugOptions {
35
35
  label?: string;
@@ -53,9 +53,7 @@ export declare interface DevtoolsPlugin {
53
53
  id: string;
54
54
  label: string;
55
55
  setup?: (registry: Registry) => void;
56
- component: FunctionComponent<{
57
- registry: Registry;
58
- }>;
56
+ component: ComponentElement;
59
57
  }
60
58
 
61
59
  declare class EventBus {
@@ -128,8 +126,8 @@ export declare const TimelinePlugin: DevtoolsPlugin;
128
126
  *
129
127
  * @Trace()
130
128
  * @Component()
131
- * class MyComponent extends BaseComponent { ... }
129
+ * class MyComponent extends StatefulComponent { ... }
132
130
  */
133
- export declare function Trace(): <T extends AnyConstructor>(constructor: T) => T;
131
+ export declare function Trace(): <T extends AnyConstructor>(constructor: T, _context: ClassDecoratorContext) => T;
134
132
 
135
133
  export { }