create-prisma-php-app 5.1.0-alpha.1 → 5.1.0-alpha.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.
@@ -1,4 +1,5 @@
1
1
  import "/js/pp-reactive-v2.js";
2
+
2
3
  const pp = (globalThis).pp;
3
4
 
4
5
  if (document.readyState !== "loading") {
package/dist/ts/main.ts CHANGED
@@ -2,5 +2,26 @@ import "/js/pp-reactive-v2.js";
2
2
 
3
3
  // The following global names have already been declared elsewhere in the project:
4
4
  // - pp: Used for the Reactive Core functionality.
5
- // - store: Handles local storage synchronization with the server.
6
- // - searchParams: Manages URL manipulation and query parameters.
5
+
6
+ // Imports goes here --Start
7
+
8
+ // Uncomment the following line if you need to use the createGlobalSingleton function in this file.
9
+ // import { createGlobalSingleton } from "./global-functions.js";
10
+ // import { myCustomFunction } from "./money.js";
11
+
12
+ // createGlobalSingleton("myCustomFunction", myCustomFunction);
13
+
14
+
15
+ // Imports goes here --End
16
+
17
+ const pp = (globalThis as any).pp;
18
+
19
+ if (document.readyState !== "loading") {
20
+ pp?.mount?.();
21
+ } else {
22
+ document.addEventListener(
23
+ "DOMContentLoaded",
24
+ () => pp?.mount?.(),
25
+ { once: true },
26
+ );
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "5.1.0-alpha.1",
3
+ "version": "5.1.0-alpha.2",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",