@nextsparkjs/core 0.1.0-beta.115 → 0.1.0-beta.116

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 +1 @@
1
- {"version":3,"file":"TeamPendingInvitations.d.ts","sourceRoot":"","sources":["../../../src/components/teams/TeamPendingInvitations.tsx"],"names":[],"mappings":"AAkDA,UAAU,2BAA2B;IACnC,MAAM,EAAE,MAAM,CAAA;CACf;AAOD,wBAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,EAAE,2BAA2B,2CAoK7E"}
1
+ {"version":3,"file":"TeamPendingInvitations.d.ts","sourceRoot":"","sources":["../../../src/components/teams/TeamPendingInvitations.tsx"],"names":[],"mappings":"AAmDA,UAAU,2BAA2B;IACnC,MAAM,EAAE,MAAM,CAAA;CACf;AAOD,wBAAgB,sBAAsB,CAAC,EAAE,MAAM,EAAE,EAAE,2BAA2B,2CAoL7E"}
@@ -15,6 +15,7 @@ import {
15
15
  } from "../ui/table.js";
16
16
  import { Button } from "../ui/button.js";
17
17
  import { Badge } from "../ui/badge.js";
18
+ import { Skeleton } from "../ui/skeleton.js";
18
19
  import {
19
20
  Dialog,
20
21
  DialogContent,
@@ -80,7 +81,17 @@ function TeamPendingInvitations({ teamId }) {
80
81
  }
81
82
  });
82
83
  if (isLoading) {
83
- return null;
84
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-4 mt-6", "aria-busy": "true", children: [
85
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
86
+ /* @__PURE__ */ jsx(Mail, { className: "h-4 w-4 text-muted-foreground" }),
87
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
88
+ ] }),
89
+ /* @__PURE__ */ jsx("div", { className: "border rounded-md", children: /* @__PURE__ */ jsx("div", { className: "p-4 space-y-3", children: [0, 1].map((i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
90
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" }),
91
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
92
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24 ml-auto" })
93
+ ] }, i)) }) })
94
+ ] });
84
95
  }
85
96
  if (invitations.length === 0) {
86
97
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"theme-loader.d.ts","sourceRoot":"","sources":["../../../src/lib/theme/theme-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAIpD;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,SAAS,IAAI,WAAW,EAAE,CAEzC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAUrE;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAqC/E;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CA8BtE;AAwED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CA2CzD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAK3C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAOA;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAGtC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAuB5F"}
1
+ {"version":3,"file":"theme-loader.d.ts","sourceRoot":"","sources":["../../../src/lib/theme/theme-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAIpD;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,SAAS,IAAI,WAAW,EAAE,CAEzC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAUrE;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAqC/E;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CA8BtE;AAmFD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CA2CzD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAK3C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAOA;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAGtC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAuB5F"}
@@ -78,24 +78,29 @@ function applyColorVariables(colors) {
78
78
  root.style.setProperty(`--theme-color-${key}`, String(value));
79
79
  });
80
80
  }
81
+ function hasJSColors(theme) {
82
+ var _a, _b;
83
+ return !!(((_a = theme.config) == null ? void 0 : _a.colors) || ((_b = theme.config) == null ? void 0 : _b.darkColors));
84
+ }
81
85
  function applyCurrentModeColors(theme) {
82
86
  var _a, _b;
87
+ if (!hasJSColors(theme)) return;
83
88
  const darkMode = isDarkMode();
84
89
  const colors = darkMode && ((_a = theme.config) == null ? void 0 : _a.darkColors) ? theme.config.darkColors : (_b = theme.config) == null ? void 0 : _b.colors;
85
90
  if (colors) {
86
91
  applyColorVariables(colors);
87
- console.log(`[Theme] Applied ${darkMode ? "dark" : "light"} mode colors for theme: ${theme.name}`);
88
92
  }
89
93
  }
90
94
  function setupDarkModeObserver(theme) {
91
95
  if (typeof window === "undefined") return;
92
96
  if (darkModeObserver) {
93
97
  darkModeObserver.disconnect();
98
+ darkModeObserver = null;
94
99
  }
100
+ if (!hasJSColors(theme)) return;
95
101
  darkModeObserver = new MutationObserver((mutations) => {
96
102
  for (const mutation of mutations) {
97
103
  if (mutation.attributeName === "class") {
98
- console.log("[Theme] Dark mode class changed, reapplying colors");
99
104
  applyCurrentModeColors(theme);
100
105
  }
101
106
  }
@@ -104,7 +109,6 @@ function setupDarkModeObserver(theme) {
104
109
  attributes: true,
105
110
  attributeFilter: ["class"]
106
111
  });
107
- console.log("[Theme] Dark mode observer initialized");
108
112
  }
109
113
  function applyThemeStyles(theme) {
110
114
  var _a, _b, _c;
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2026-03-02T15:41:07.461Z",
2
+ "generated": "2026-03-06T03:52:34.765Z",
3
3
  "totalClasses": 1072,
4
4
  "classes": [
5
5
  "!text-2xl",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/core",
3
- "version": "0.1.0-beta.115",
3
+ "version": "0.1.0-beta.116",
4
4
  "description": "NextSpark - The complete SaaS framework for Next.js",
5
5
  "license": "MIT",
6
6
  "author": "NextSpark <hello@nextspark.dev>",
@@ -454,7 +454,7 @@
454
454
  "tailwind-merge": "^3.3.1",
455
455
  "uuid": "^13.0.0",
456
456
  "zod": "^4.1.5",
457
- "@nextsparkjs/testing": "0.1.0-beta.115"
457
+ "@nextsparkjs/testing": "0.1.0-beta.116"
458
458
  },
459
459
  "scripts": {
460
460
  "postinstall": "node scripts/postinstall.mjs || true",
@@ -115,9 +115,9 @@ export function isInstalledAsPackage(root) {
115
115
  // - workspace: points to ../../packages/core or similar
116
116
  const linkTarget = readlinkSync(corePath)
117
117
 
118
- // If symlink points to .pnpm/ directory, it's a real npm installation via pnpm
119
- // The .pnpm directory is pnpm's content-addressable store
120
- if (linkTarget.includes('.pnpm/') || linkTarget.includes('.pnpm\\')) {
118
+ // If symlink points to .pnpm/ or .pnpmN/ directory, it's a real npm installation via pnpm
119
+ // The .pnpm/.pnpm2/etc directory is pnpm's content-addressable store
120
+ if (/\.pnpm\d?[/\\]/.test(linkTarget)) {
121
121
  return true
122
122
  }
123
123