fusee-framework 1.1.0 → 1.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 (39) hide show
  1. package/README.md +2 -2
  2. package/app/components/Card.js +32 -0
  3. package/app/components/Card.ts +41 -0
  4. package/app/components/Counter.js +4 -5
  5. package/app/components/Counter.ts +2 -5
  6. package/app/components/CounterSection.js +10 -4
  7. package/app/components/CounterSection.ts +0 -1
  8. package/app/components/EmitTest.js +77 -0
  9. package/app/components/EmitTest.ts +90 -0
  10. package/app/components/UserForm.js +1 -0
  11. package/app/components/UserForm.ts +0 -2
  12. package/app/main.ts +3 -1
  13. package/app/providers/ChildComponent.js +44 -0
  14. package/app/providers/ChildComponent.ts +47 -0
  15. package/app/providers/GrandchildComponent.js +41 -0
  16. package/app/providers/GrandchildComponent.ts +48 -0
  17. package/app/providers/ParentComponent.js +48 -0
  18. package/app/providers/ParentComponent.ts +53 -0
  19. package/app/providers/index.js +3 -0
  20. package/app/providers/index.ts +3 -0
  21. package/app/routes/About.js +1 -0
  22. package/app/routes/About.ts +1 -1
  23. package/app/routes/Home.js +46 -2
  24. package/app/routes/Home.ts +0 -1
  25. package/app/routes/TestFor.js +1 -0
  26. package/app/routes/TestFor.ts +0 -2
  27. package/auto-imports.d.ts +12 -1
  28. package/framework/auto-import-preset.js +2 -2
  29. package/framework/bin/create-fusee.js +1 -3
  30. package/framework/core/compiler.js +100 -56
  31. package/framework/core/component.js +85 -3
  32. package/framework/core/evaluator.js +4 -1
  33. package/framework/core/signal.js +20 -0
  34. package/framework/index.js +6 -2
  35. package/framework/types/component.d.ts +31 -3
  36. package/framework/types/index.d.ts +7 -0
  37. package/framework/types/signal.d.ts +1 -0
  38. package/index.html +0 -4
  39. package/package.json +1 -1
@@ -4,6 +4,13 @@
4
4
  export * from './signal'
5
5
  export * from './component'
6
6
  export * from './router'
7
+ export * from './compiler'
8
+
9
+ declare global {
10
+ type Signal<T = any> = import('./signal').Signal<T>
11
+ type Computed<T = any> = import('./signal').Computed<T>
12
+ type SignalAccessor<T> = import('./signal').SignalAccessor<T>
13
+ }
7
14
 
8
15
  // Re-export as namespace for convenience
9
16
  export as namespace Fusee
@@ -25,6 +25,7 @@ export declare function effect(fn: () => void): () => void
25
25
  export declare function computed<T>(fn: () => T): Computed<T>
26
26
  export declare function batch<T>(fn: () => T): T
27
27
  export declare function untrack<T>(fn: () => T): T
28
+ export declare function inspect(...args: any[]): (() => void) | void
28
29
 
29
30
  declare function setEffectHook(fn: (eff: any) => void): void
30
31
 
package/index.html CHANGED
@@ -31,7 +31,6 @@
31
31
 
32
32
  nav a {
33
33
  color: #ff3333;
34
- /* Link-urile sunt acum roșii */
35
34
  text-decoration: none;
36
35
  font-weight: 500;
37
36
  }
@@ -172,9 +171,6 @@
172
171
  </nav>
173
172
  <div id="app"></div>
174
173
  <script type="module" src="./app/main.js"></script>
175
- <!-- For TypeScript: compile with `npx tsc` then change to: -->
176
- <!-- <script type="module" src="./dist/app/main.js"></script> -->
177
-
178
174
  </body>
179
175
 
180
176
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fusee-framework",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Fusée - Signals-first JS Framework | Peak Performance",
5
5
  "main": "framework/index.js",
6
6
  "types": "framework/types/index.d.ts",