@johndimm/constellations 1.0.0 → 1.0.1

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,6 +1,5 @@
1
1
  "use client";
2
2
  import { lazy, Suspense, type ComponentProps, type FC, type ReactNode } from "react";
3
- import "./index.css";
4
3
 
5
4
  const App = lazy(() => import("./App"));
6
5
 
package/embedded.css ADDED
@@ -0,0 +1,38 @@
1
+ /* Component-specific styles for @johndimm/constellations when embedded in a host app.
2
+ Import this in your root layout: import "@johndimm/constellations/embedded.css" */
3
+
4
+ .custom-scrollbar::-webkit-scrollbar {
5
+ width: 4px;
6
+ }
7
+
8
+ .custom-scrollbar::-webkit-scrollbar-track {
9
+ background: transparent;
10
+ }
11
+
12
+ .custom-scrollbar::-webkit-scrollbar-thumb {
13
+ background: #475569;
14
+ border-radius: 2px;
15
+ }
16
+
17
+ .custom-scrollbar:hover::-webkit-scrollbar-thumb {
18
+ background: #64748b;
19
+ }
20
+
21
+ @keyframes cc-fade-in {
22
+ from { opacity: 0; }
23
+ to { opacity: 1; }
24
+ }
25
+
26
+ @keyframes cc-scale-in {
27
+ from { transform: scale(0.95); opacity: 0; }
28
+ to { transform: scale(1); opacity: 1; }
29
+ }
30
+
31
+ @keyframes cc-fade-in-up {
32
+ from { transform: translate(-50%, 20px); opacity: 0; }
33
+ to { transform: translate(-50%, 0); opacity: 1; }
34
+ }
35
+
36
+ .animate-fade-in { animation: cc-fade-in 0.2s ease-out forwards; }
37
+ .animate-scale-in { animation: cc-scale-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
38
+ .animate-fade-in-up { animation: cc-fade-in-up 0.3s ease-out forwards; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johndimm/constellations",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "main": "./index.tsx",
6
6
  "exports": {
@@ -9,6 +9,7 @@
9
9
  "./FullPageConstellations": "./FullPageConstellations.tsx",
10
10
  "./host": "./host.ts",
11
11
  "./index.css": "./index.css",
12
+ "./embedded.css": "./embedded.css",
12
13
  "./sessionHandoff": "./sessionHandoff.ts",
13
14
  "./graphNodeToChannelNotes": "./utils/graphNodeToChannelNotes.ts",
14
15
  "./types": "./types.ts"
@@ -18,6 +19,7 @@
18
19
  "FullPageConstellations.tsx",
19
20
  "FullPageConstellationsHostShell.tsx",
20
21
  "host.ts",
22
+ "embedded.css",
21
23
  "index.css",
22
24
  "index.tsx",
23
25
  "kioskDomains.ts",