Skip to content

Commit 9bb6965

Browse files
authored
Merge pull request #132 from cloakyard/dev
Release: stamp shapes + rubber-stamp ink finish, and dead-code sweep
2 parents 2e21eb9 + 0d834a1 commit 9bb6965

28 files changed

Lines changed: 636 additions & 1399 deletions

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
"@huggingface/transformers": "^4.2.0",
1919
"@langchain/community": "^1.1.29",
2020
"@langchain/core": "^1.2.1",
21-
"@langchain/langgraph": "^1.4.5",
22-
"@llamaindex/liteparse-wasm": "^2.1.1",
21+
"@langchain/langgraph": "^1.4.7",
22+
"@llamaindex/liteparse-wasm": "^2.2.1",
2323
"@pdf-lib/fontkit": "^1.1.1",
2424
"@pdfme/pdf-lib": "^6.1.10",
2525
"jszip": "^3.10.1",
2626
"lucide-react": "^1.21.0",
27-
"motion": "^12.40.0",
27+
"motion": "^12.42.0",
2828
"node-forge": "^1.4.0",
2929
"ogl": "^1.0.11",
3030
"pdfjs-dist": "^6.0.227",

pnpm-lock.yaml

Lines changed: 31 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Grainient.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,5 +331,3 @@ export function Grainient({
331331

332332
return <div ref={containerRef} className={`grainient-container ${className}`.trim()} />;
333333
}
334-
335-
export default Grainient;

src/components/motion.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,12 @@ export type { Variants };
4545
* same hand as the CSS animations it sits beside.
4646
*/
4747
export const EASE_CALM = [0.22, 1, 0.36, 1] as const;
48-
/** Symmetric ease for moves that both enter and leave (e.g. crossfades). */
49-
export const EASE_INOUT = [0.4, 0, 0.2, 1] as const;
5048

5149
/** Duration scale (seconds). Deliberately short — calm, not sluggish. */
5250
export const DUR = { fast: 0.16, base: 0.26, slow: 0.4 } as const;
5351

5452
export const calm: Transition = { duration: DUR.base, ease: EASE_CALM };
5553
export const calmFast: Transition = { duration: DUR.fast, ease: EASE_CALM };
56-
export const calmSlow: Transition = { duration: DUR.slow, ease: EASE_CALM };
5754

5855
/**
5956
* Shared variant vocabulary. Each carries `initial`/`animate`/`exit` so the
@@ -105,20 +102,6 @@ export const variants = {
105102
},
106103
} satisfies Record<string, Variants>;
107104

108-
/**
109-
* Stagger container + item for list/grid reveals (the home tool cards). The
110-
* container orchestrates; each child uses `staggerItem` (a fadeUp). Distances
111-
* stay small so a full grid settling reads as one calm wave, not a cascade.
112-
*/
113-
export const staggerContainer: Variants = {
114-
initial: {},
115-
animate: { transition: { staggerChildren: 0.045, delayChildren: 0.02 } },
116-
};
117-
export const staggerItem: Variants = {
118-
initial: { opacity: 0, y: 12 },
119-
animate: { opacity: 1, y: 0, transition: calm },
120-
};
121-
122105
/**
123106
* Root motion provider. Wrap the whole app once. Keeps the feature bundle
124107
* lazy (`m` + domAnimation) and applies the reduced-motion policy globally.

src/config/theme.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -98,33 +98,6 @@ export const categoryAccent = {
9898
security: "rgb(37,99,235)",
9999
} as const;
100100

101-
export const colors = {
102-
primary: {
103-
50: "#EFF4FF",
104-
100: "#DBEAFE",
105-
200: "#BFDBFE",
106-
300: "#93C5FD",
107-
400: "#60A5FA",
108-
500: "#3B82F6",
109-
600: "#2563EB",
110-
700: "#1D4ED8",
111-
800: "#1E40AF",
112-
900: "#1E3A8A",
113-
},
114-
slate: {
115-
200: "#E2E8F0",
116-
500: "#64748B",
117-
},
118-
/** Deeper blue for gradients */
119-
accent: "#1D4ED8",
120-
/** Semantic / surface colors */
121-
pageBg: "#F0F4FA",
122-
surface: "#FFFFFF",
123-
accentTint: "#EFF4FF",
124-
headings: "#1E293B",
125-
body: "#64748B",
126-
} as const;
127-
128101
/** Focus-ring shadow used on interactive canvas/input elements. */
129102
export const focusRing = "rgba(37,99,235,0.18)" as const;
130103

src/config/tool-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export type ToolId = (typeof tools)[number]["id"] | EditorToolId;
147147

148148
// ── Map tool IDs → lazy-loaded components ────────────────────────
149149

150-
export const toolComponents: Record<string, React.LazyExoticComponent<React.ComponentType>> = {
150+
const toolComponents: Record<string, React.LazyExoticComponent<React.ComponentType>> = {
151151
merge: MergePdf,
152152
"images-to-pdf": ImagesToPdf,
153153
"extract-images": ExtractImages,

src/editor/ToolControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { toolImpl } from "./registry.tsx";
88
import { findEditorTool } from "./tools.ts";
99

1010
/** Placeholder body for tools whose editor migration is still pending. */
11-
export function ToolPlaceholder({ toolId }: { toolId: string }) {
11+
function ToolPlaceholder({ toolId }: { toolId: string }) {
1212
const tool = findEditorTool(toolId);
1313
if (!tool) return null;
1414
return (

src/editor/doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface PageMeta {
3333
/** Tagged overlay kinds the editor can place on a page. The roster grows as
3434
* overlay tools land (M1+); the union is the contract the layers list and the
3535
* per-tool dispatch read. */
36-
export type CanvasObjectKind =
36+
type CanvasObjectKind =
3737
| "redaction"
3838
| "erase"
3939
| "annotation"

0 commit comments

Comments
 (0)