@parhelia/core 0.3.12822 → 0.3.12823

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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Greeting splash shown when a demo user lands in their freshly provisioned
3
+ * sandbox (the register redirect appends `welcome=sandbox` to the editor URL).
4
+ * Purely informational: dismissing it just reveals the editor underneath.
5
+ */
6
+ export declare function SandboxWelcomeOverlay(props: {
7
+ userName?: string;
8
+ onDismiss: () => void;
9
+ }): import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Dialog, DialogContent, DialogTitle, } from "../../components/ui/dialog";
3
+ import { Button } from "../../components/ui/button";
4
+ import { ParheliaIcon } from "../ui/ParheliaIcon";
5
+ import { Compass, Sparkles, SquarePen } from "lucide-react";
6
+ function WelcomePoint(props) {
7
+ return (_jsxs("div", { className: "flex items-start gap-4 text-left", children: [_jsx("div", { className: "bg-highlight-100/10 text-highlight-100 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg", children: props.icon }), _jsx("p", { className: "text-neutral-grey-50 text-sm leading-[1.4] font-medium", children: props.children })] }));
8
+ }
9
+ /**
10
+ * Greeting splash shown when a demo user lands in their freshly provisioned
11
+ * sandbox (the register redirect appends `welcome=sandbox` to the editor URL).
12
+ * Purely informational: dismissing it just reveals the editor underneath.
13
+ */
14
+ export function SandboxWelcomeOverlay(props) {
15
+ const { userName, onDismiss } = props;
16
+ const firstName = userName?.trim().split(/\s+/)[0];
17
+ const greeting = firstName ? `Hello ${firstName}` : "Welcome";
18
+ return (_jsx(Dialog, { open: true, onOpenChange: (open) => {
19
+ if (!open)
20
+ onDismiss();
21
+ }, children: _jsxs(DialogContent, { className: "border-border-default/70 text-neutral-grey-100 overflow-hidden rounded-[18px] bg-white p-0 shadow-2xl sm:max-w-[520px]", overlayClassName: "bg-neutral-grey-100/45 backdrop-blur-md", "data-testid": "sandbox-welcome-overlay", children: [_jsx(DialogTitle, { className: "sr-only", children: "Welcome to your Parhelia sandbox" }), _jsxs("div", { className: "flex flex-col items-center px-10 pt-12 pb-9 text-center sm:px-12", children: [_jsx("div", { className: "mb-7 flex justify-center", children: _jsx(ParheliaIcon, { size: 84, animated: false }) }), _jsx("h2", { className: "text-neutral-grey-100 text-2xl font-semibold", children: greeting }), _jsx("p", { className: "text-neutral-grey-50 mt-2 mb-8 text-sm font-medium", children: "Your Parhelia sandbox is live \u2014 here is how to get the most out of it." }), _jsxs("div", { className: "mb-9 flex w-full max-w-[400px] flex-col gap-5", children: [_jsx(WelcomePoint, { icon: _jsx(SquarePen, { size: 18, strokeWidth: 1.5 }), children: "Everything on the page is editable. Click into any text on the canvas and simply start typing." }), _jsx(WelcomePoint, { icon: _jsx(Sparkles, { size: 18, strokeWidth: 1.5 }), children: "Your AI agent is ready in the terminal on the right. Ask it in plain language to write, restyle, or build something for you." }), _jsx(WelcomePoint, { icon: _jsx(Compass, { size: 18, strokeWidth: 1.5 }), children: "This sandbox is all yours. Experiment freely \u2014 nothing you do here affects anyone else." })] }), _jsx(Button, { size: "lg", onClick: onDismiss, "data-testid": "sandbox-welcome-start", children: "Start exploring" })] })] }) }));
22
+ }
23
+ //# sourceMappingURL=SandboxWelcomeOverlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SandboxWelcomeOverlay.js","sourceRoot":"","sources":["../../../src/editor/client/SandboxWelcomeOverlay.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,GACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG5D,SAAS,YAAY,CAAC,KAA+C;IACnE,OAAO,CACL,eAAK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AE,EAAE,WAAW,EAAE,GAAG,GAAI,6IAG7C,EACf,KAAC,YAAY,IAAC,IAAI,EAAE,KAAC,OAAO,IAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,GAAI,6GAG5C,IACX,EAEN,KAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,SAAS,iBACN,uBAAuB,gCAG5B,IACL,IACQ,GACT,CACV,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "0.3.12822";
2
- export declare const buildDate = "2026-09-01 09:49:44";
1
+ export declare const version = "0.3.12823";
2
+ export declare const buildDate = "2026-09-01 16:15:55";
package/dist/revision.js CHANGED
@@ -1,3 +1,3 @@
1
- export const version = "0.3.12822";
2
- export const buildDate = "2026-09-01 09:49:44";
1
+ export const version = "0.3.12823";
2
+ export const buildDate = "2026-09-01 16:15:55";
3
3
  //# sourceMappingURL=revision.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parhelia/core",
3
- "version": "0.3.12822",
3
+ "version": "0.3.12823",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -47,76 +47,76 @@
47
47
  "devDependencies": {
48
48
  "@repo/eslint-config": "*",
49
49
  "@repo/typescript-config": "*",
50
- "@tailwindcss/postcss": "^4.1.18",
50
+ "@tailwindcss/postcss": "^4.3.3",
51
51
  "@testing-library/dom": "^10.4.1",
52
- "@testing-library/react": "^16.3.2",
52
+ "@testing-library/react": "^16.3.3",
53
53
  "@types/d3-hierarchy": "^3.1.7",
54
- "@types/dompurify": "^3.0.5",
55
- "@types/node": "^22.13.9",
56
- "@types/react": "19.2.17",
57
- "@types/react-dom": "19.2.3",
54
+ "@types/dompurify": "^3.2.0",
55
+ "@types/node": "^26.4.0",
56
+ "@types/react": "19.2.18",
57
+ "@types/react-dom": "19.2.5",
58
58
  "copyfiles": "^2.4.1",
59
- "eslint": "^9.22.0",
60
- "jsdom": "^29.1.1",
61
- "tailwindcss": "^4.1.18",
59
+ "eslint": "^10.9.1",
60
+ "jsdom": "^30.0.1",
61
+ "tailwindcss": "^4.3.3",
62
62
  "@typescript/native": "npm:typescript@7.0.2",
63
63
  "typescript": "npm:@typescript/typescript6@6.0.2",
64
- "vitest": "^4.1.5"
64
+ "vitest": "^4.1.11"
65
65
  },
66
66
  "dependencies": {
67
- "@dagrejs/dagre": "^2.0.4",
68
- "@fontsource/inter": "^5.2.8",
69
- "@radix-ui/react-accordion": "^1.2.12",
70
- "@radix-ui/react-alert-dialog": "^1.1.15",
71
- "@radix-ui/react-checkbox": "^1.3.2",
72
- "@radix-ui/react-context-menu": "^2.2.7",
73
- "@radix-ui/react-dialog": "^1.1.14",
74
- "@radix-ui/react-dropdown-menu": "^2.1.15",
67
+ "@dagrejs/dagre": "^3.1.1",
68
+ "@fontsource/inter": "^5.3.0",
69
+ "@radix-ui/react-accordion": "^1.2.20",
70
+ "@radix-ui/react-alert-dialog": "^1.1.23",
71
+ "@radix-ui/react-checkbox": "^1.3.11",
72
+ "@radix-ui/react-context-menu": "^2.3.7",
73
+ "@radix-ui/react-dialog": "^1.1.23",
74
+ "@radix-ui/react-dropdown-menu": "^2.1.24",
75
75
  "@radix-ui/react-icons": "^1.3.2",
76
- "@radix-ui/react-menubar": "^1.1.15",
77
- "@radix-ui/react-popover": "^1.1.4",
78
- "@radix-ui/react-progress": "^1.1.2",
79
- "@radix-ui/react-slot": "^1.1.2",
80
- "@radix-ui/react-switch": "^1.2.5",
81
- "@radix-ui/react-tooltip": "^1.2.7",
82
- "@radix-ui/react-visually-hidden": "^1.1.2",
83
- "@types/diff": "^7.0.2",
84
- "@types/lodash": "^4.17.16",
76
+ "@radix-ui/react-menubar": "^1.1.24",
77
+ "@radix-ui/react-popover": "^1.1.23",
78
+ "@radix-ui/react-progress": "^1.1.16",
79
+ "@radix-ui/react-slot": "^1.3.3",
80
+ "@radix-ui/react-switch": "^1.3.7",
81
+ "@radix-ui/react-tooltip": "^1.2.16",
82
+ "@radix-ui/react-visually-hidden": "^1.2.11",
83
+ "@types/diff": "^8.0.0",
84
+ "@types/lodash": "^4.17.25",
85
85
  "@uiw/react-textarea-code-editor": "^3.1.1",
86
- "@xyflow/react": "^12.10.1",
87
- "@zumer/snapdom": "^2.12.9",
88
- "axios": "^1.16.0",
86
+ "@xyflow/react": "^12.11.5",
87
+ "@zumer/snapdom": "^2.24.15",
88
+ "axios": "^1.20.0",
89
89
  "class-variance-authority": "^0.7.1",
90
90
  "clsx": "^2.1.1",
91
91
  "cmdk": "^1.1.1",
92
- "date-fns": "^4.1.0",
93
- "diff": "^8.0.4",
94
- "dompurify": "^3.4.2",
92
+ "date-fns": "^4.4.0",
93
+ "diff": "^9.0.0",
94
+ "dompurify": "^3.4.14",
95
95
  "follow-redirects": "^1.16.0",
96
96
  "html-entities": "^2.6.0",
97
- "html2canvas-pro": "^2.2.0",
98
- "isomorphic-dompurify": "3.19.0",
99
- "lucide-react": "^0.486.0",
100
- "morphdom": "^2.7.5",
101
- "postcss": "^8.5.14",
102
- "react": "19.2.7",
103
- "react-day-picker": "^9.8.0",
104
- "react-dom": "19.2.7",
105
- "react-inspector": "^6.0.2",
106
- "react-json-view-lite": "^2.4.1",
97
+ "html2canvas-pro": "^2.4.0",
98
+ "isomorphic-dompurify": "4.0.0",
99
+ "lucide-react": "^1.38.0",
100
+ "morphdom": "^2.7.8",
101
+ "postcss": "^8.5.26",
102
+ "react": "19.2.8",
103
+ "react-day-picker": "^10.0.1",
104
+ "react-dom": "19.2.8",
105
+ "react-inspector": "^9.0.0",
106
+ "react-json-view-lite": "^2.5.0",
107
107
  "react-uuid": "^2.0.0",
108
- "slate": "^0.117.2",
109
- "slate-dom": "^0.117.4",
108
+ "slate": "^0.126.2",
109
+ "slate-dom": "^0.126.0",
110
110
  "slate-history": "^0.113.1",
111
- "slate-react": "^0.117.4",
112
- "sonner": "^2.0.6",
113
- "tailwind-merge": "^3.1.0",
114
- "tw-animate-css": "^1.2.5",
115
- "universal-cookie": "^8.0.0",
116
- "use-debounce": "^10.0.4"
111
+ "slate-react": "^0.126.4",
112
+ "sonner": "^2.0.8",
113
+ "tailwind-merge": "^3.6.0",
114
+ "tw-animate-css": "^1.4.0",
115
+ "universal-cookie": "^8.1.2",
116
+ "use-debounce": "^10.1.1"
117
117
  },
118
118
  "overrides": {
119
- "@types/react": "19.2.17",
120
- "@types/react-dom": "19.2.3"
119
+ "@types/react": "19.2.18",
120
+ "@types/react-dom": "19.2.5"
121
121
  }
122
122
  }