create-prisma-php-app 5.1.0-alpha.13 → 5.1.0-alpha.14

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.
@@ -15,7 +15,7 @@ MainLayout::$description = !empty(MainLayout::$description) ? MainLayout::$descr
15
15
  <!-- Dynamic Header Scripts -->
16
16
  </head>
17
17
 
18
- <body pp-spa="true" style="opacity:0;pointer-events:none;user-select:none;transition:opacity .18s ease-out;">
18
+ <body style="opacity:0;pointer-events:none;user-select:none;transition:opacity .18s ease-out;">
19
19
  <?= MainLayout::$children; ?>
20
20
  <!-- Dynamic Footer Scripts -->
21
21
  </body>
package/dist/ts/main.ts CHANGED
@@ -11,17 +11,14 @@ import "/js/pp-reactive-v2.js";
11
11
 
12
12
  // createGlobalSingleton("myCustomFunction", myCustomFunction);
13
13
 
14
-
15
14
  // Imports goes here --End
16
15
 
17
16
  const pp = (globalThis as any).pp;
18
17
 
19
18
  if (document.readyState !== "loading") {
20
- pp?.mount?.();
19
+ pp?.mount?.();
21
20
  } else {
22
- document.addEventListener(
23
- "DOMContentLoaded",
24
- () => pp?.mount?.(),
25
- { once: true },
26
- );
27
- }
21
+ document.addEventListener("DOMContentLoaded", () => pp?.mount?.(), {
22
+ once: true,
23
+ });
24
+ }
@@ -0,0 +1,13 @@
1
+ import { twMerge } from "tailwind-merge";
2
+
3
+ export type MergeableClassName = string | false | null | undefined;
4
+
5
+ export function mergeTailwindClasses(
6
+ ...classNames: MergeableClassName[]
7
+ ): string {
8
+ return twMerge(
9
+ classNames
10
+ .filter((className): className is string => Boolean(className))
11
+ .join(" "),
12
+ );
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "5.1.0-alpha.13",
3
+ "version": "5.1.0-alpha.14",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",