doccupine 0.0.92 → 0.0.93
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.
- package/dist/templates/components/layout/Callout.d.ts +1 -1
- package/dist/templates/components/layout/Callout.js +1 -1
- package/dist/templates/components/layout/Icon.d.ts +1 -1
- package/dist/templates/components/layout/Icon.js +1 -0
- package/dist/templates/package.js +10 -10
- package/dist/templates/pnpmWorkspace.d.ts +1 -1
- package/dist/templates/pnpmWorkspace.js +19 -0
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const calloutTemplate = "\"use client\";\nimport { Theme } from \"@/app/theme\";\nimport { styledSmall } from \"cherry-styled-components\";\nimport styled, { css } from \"styled-components\";\nimport { Icon, IconProps } from \"@/components/layout/Icon\";\n\ntype CalloutType = \"note\" | \"info\" | \"warning\" | \"danger\" | \"success\";\n\nconst StyledCallout = styled.div<{ theme: Theme; $type?: CalloutType }>`\n background: ${({ theme }) => theme.colors.light};\n border: solid 1px ${({ theme }) => theme.colors.grayLight};\n border-radius: ${({ theme }) => theme.spacing.radius.lg};\n padding: 20px;\n margin: 0;\n ${({ theme }) => styledSmall(theme)}\n color: ${({ theme }) => theme.colors.grayDark};\n display: flex;\n\n & svg {\n vertical-align: middle;\n min-width: min-content;\n margin: 3px 10px 0 0;\n }\n\n /* Callout tints are alert-semantic (info-blue, warning-amber, danger-red,\n etc.) and intentionally independent of theme.json. Light-mode values are\n defined by default; dark-mode overrides live in :root.dark & blocks so\n the swap happens via the active <html> class with no re-render. */\n ${({ $type }) =>\n $type === \"note\" &&\n css`\n border-color: #0ea5e933;\n background: #f0f9ff80;\n\n & svg.lucide,\n & p {\n color: #0c4a6e;\n }\n\n :root.dark & {\n border-color: #0ea5e94d;\n background: #0ea5e91a;\n\n & svg.lucide,\n & p {\n color: #bae6fd;\n }\n }\n `}\n\n ${({ $type }) =>\n $type === \"info\" &&\n css`\n border-color: #71717a33;\n background: #fafafa80;\n\n & svg.lucide,\n & .lucide,\n & p {\n color: #18181b;\n }\n\n :root.dark & {\n border-color: #71717a4d;\n background: #71717a1a;\n\n & svg.lucide,\n & .lucide,\n & p {\n color: #e4e4e7;\n }\n }\n `}\n\n ${({ $type }) =>\n $type === \"warning\" &&\n css`\n border-color: #f59e0b33;\n background: #fffbeb80;\n\n & svg.lucide,\n & p {\n color: #78350f;\n }\n\n :root.dark & {\n border-color: #f59e0b4d;\n background: #f59e0b1a;\n\n & svg.lucide,\n & p {\n color: #fde68a;\n }\n }\n `}\n\n ${({ $type }) =>\n $type === \"danger\" &&\n css`\n border-color: #ef444433;\n background: #fef2f280;\n\n & svg.lucide,\n & p {\n color: #7f1d1d;\n }\n\n :root.dark & {\n border-color: #ef44444d;\n background: #ef44441a;\n\n & svg.lucide,\n & p {\n color: #fecaca;\n }\n }\n `}\n\n ${({ $type }) =>\n $type === \"success\" &&\n css`\n border-color: #10b98133;\n background: #ecfdf580;\n\n & svg.lucide,\n & p {\n color: #064e3b;\n }\n\n :root.dark & {\n border-color: #10b9814d;\n background: #10b9811a;\n\n & svg.lucide,\n & p {\n color: #a7f3d0;\n }\n }\n `}\n`;\n\nconst StyledChildren = styled.span`\n display: flex;\n flex-direction: column;\n gap: 10px;\n`;\n\ninterface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n icon?: IconProps;\n type?: CalloutType;\n}\n\nfunction Callout({ children, type, icon }: CalloutProps) {\n const iconType =\n type === \"note\"\n ? \"CircleAlert\"\n : type === \"info\"\n ? \"Info\"\n : type === \"warning\"\n ? \"TriangleAlert\"\n : type === \"danger\"\n ? \"OctagonAlert\"\n : type === \"success\"\n ? \"Check\"\n : (icon as IconProps);\n return (\n <StyledCallout $type={type}>\n <Icon name={iconType} size={16}
|
|
1
|
+
export declare const calloutTemplate = "\"use client\";\nimport { Theme } from \"@/app/theme\";\nimport { styledSmall } from \"cherry-styled-components\";\nimport styled, { css } from \"styled-components\";\nimport { Icon, IconProps } from \"@/components/layout/Icon\";\n\ntype CalloutType = \"note\" | \"info\" | \"warning\" | \"danger\" | \"success\";\n\nconst StyledCallout = styled.div<{ theme: Theme; $type?: CalloutType }>`\n background: ${({ theme }) => theme.colors.light};\n border: solid 1px ${({ theme }) => theme.colors.grayLight};\n border-radius: ${({ theme }) => theme.spacing.radius.lg};\n padding: 20px;\n margin: 0;\n ${({ theme }) => styledSmall(theme)}\n color: ${({ theme }) => theme.colors.grayDark};\n display: flex;\n\n & svg {\n vertical-align: middle;\n min-width: min-content;\n margin: 3px 10px 0 0;\n }\n\n /* Callout tints are alert-semantic (info-blue, warning-amber, danger-red,\n etc.) and intentionally independent of theme.json. Light-mode values are\n defined by default; dark-mode overrides live in :root.dark & blocks so\n the swap happens via the active <html> class with no re-render. */\n ${({ $type }) =>\n $type === \"note\" &&\n css`\n border-color: #0ea5e933;\n background: #f0f9ff80;\n\n & svg.lucide,\n & p {\n color: #0c4a6e;\n }\n\n :root.dark & {\n border-color: #0ea5e94d;\n background: #0ea5e91a;\n\n & svg.lucide,\n & p {\n color: #bae6fd;\n }\n }\n `}\n\n ${({ $type }) =>\n $type === \"info\" &&\n css`\n border-color: #71717a33;\n background: #fafafa80;\n\n & svg.lucide,\n & .lucide,\n & p {\n color: #18181b;\n }\n\n :root.dark & {\n border-color: #71717a4d;\n background: #71717a1a;\n\n & svg.lucide,\n & .lucide,\n & p {\n color: #e4e4e7;\n }\n }\n `}\n\n ${({ $type }) =>\n $type === \"warning\" &&\n css`\n border-color: #f59e0b33;\n background: #fffbeb80;\n\n & svg.lucide,\n & p {\n color: #78350f;\n }\n\n :root.dark & {\n border-color: #f59e0b4d;\n background: #f59e0b1a;\n\n & svg.lucide,\n & p {\n color: #fde68a;\n }\n }\n `}\n\n ${({ $type }) =>\n $type === \"danger\" &&\n css`\n border-color: #ef444433;\n background: #fef2f280;\n\n & svg.lucide,\n & p {\n color: #7f1d1d;\n }\n\n :root.dark & {\n border-color: #ef44444d;\n background: #ef44441a;\n\n & svg.lucide,\n & p {\n color: #fecaca;\n }\n }\n `}\n\n ${({ $type }) =>\n $type === \"success\" &&\n css`\n border-color: #10b98133;\n background: #ecfdf580;\n\n & svg.lucide,\n & p {\n color: #064e3b;\n }\n\n :root.dark & {\n border-color: #10b9814d;\n background: #10b9811a;\n\n & svg.lucide,\n & p {\n color: #a7f3d0;\n }\n }\n `}\n`;\n\nconst StyledChildren = styled.span`\n display: flex;\n flex-direction: column;\n gap: 10px;\n`;\n\ninterface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n icon?: IconProps;\n type?: CalloutType;\n}\n\nfunction Callout({ children, type, icon }: CalloutProps) {\n const iconType =\n type === \"note\"\n ? \"CircleAlert\"\n : type === \"info\"\n ? \"Info\"\n : type === \"warning\"\n ? \"TriangleAlert\"\n : type === \"danger\"\n ? \"OctagonAlert\"\n : type === \"success\"\n ? \"Check\"\n : (icon as IconProps);\n return (\n <StyledCallout $type={type}>\n {iconType ? <Icon name={iconType} size={16} /> : null}\n <StyledChildren>{children}</StyledChildren>\n </StyledCallout>\n );\n}\n\nexport { Callout };\n";
|
|
@@ -166,7 +166,7 @@ function Callout({ children, type, icon }: CalloutProps) {
|
|
|
166
166
|
: (icon as IconProps);
|
|
167
167
|
return (
|
|
168
168
|
<StyledCallout $type={type}>
|
|
169
|
-
<Icon name={iconType} size={16} />
|
|
169
|
+
{iconType ? <Icon name={iconType} size={16} /> : null}
|
|
170
170
|
<StyledChildren>{children}</StyledChildren>
|
|
171
171
|
</StyledCallout>
|
|
172
172
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const iconTemplate = "import { icons } from \"lucide-react\";\n\nexport type IconProps = keyof typeof icons;\n\ninterface Props {\n name: string | IconProps;\n color?: string;\n size?: string | number;\n className?: string;\n}\n\nfunction transformIconName(name: string): string {\n return name\n .split(\"-\")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(\"\");\n}\n\nconst Icon = ({ name, color, size, className }: Props) => {\n const IconName = transformIconName(name as string);\n const LucideIcon = icons[IconName as keyof typeof icons];\n if (!LucideIcon) return null;\n\n const numericSize = size != null ? Number(size) : undefined;\n\n return <LucideIcon color={color} size={numericSize} className={className} />;\n};\n\nexport { Icon };\n";
|
|
1
|
+
export declare const iconTemplate = "import { icons } from \"lucide-react\";\n\nexport type IconProps = keyof typeof icons;\n\ninterface Props {\n name: string | IconProps;\n color?: string;\n size?: string | number;\n className?: string;\n}\n\nfunction transformIconName(name: string): string {\n return name\n .split(\"-\")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(\"\");\n}\n\nconst Icon = ({ name, color, size, className }: Props) => {\n if (!name) return null;\n const IconName = transformIconName(name as string);\n const LucideIcon = icons[IconName as keyof typeof icons];\n if (!LucideIcon) return null;\n\n const numericSize = size != null ? Number(size) : undefined;\n\n return <LucideIcon color={color} size={numericSize} className={className} />;\n};\n\nexport { Icon };\n";
|
|
@@ -17,6 +17,7 @@ function transformIconName(name: string): string {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
const Icon = ({ name, color, size, className }: Props) => {
|
|
20
|
+
if (!name) return null;
|
|
20
21
|
const IconName = transformIconName(name as string);
|
|
21
22
|
const LucideIcon = icons[IconName as keyof typeof icons];
|
|
22
23
|
if (!LucideIcon) return null;
|
|
@@ -16,17 +16,17 @@ export const packageJsonTemplate = JSON.stringify({
|
|
|
16
16
|
"@langchain/openai": "^1.4.7",
|
|
17
17
|
"@mdx-js/react": "^3.1.1",
|
|
18
18
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
19
|
-
"@posthog/react": "^1.
|
|
19
|
+
"@posthog/react": "^1.10.1",
|
|
20
20
|
"cherry-styled-components": "^0.1.17",
|
|
21
|
-
langchain: "^1.4.
|
|
21
|
+
langchain: "^1.4.4",
|
|
22
22
|
"lucide-react": "^1.17.0",
|
|
23
23
|
minisearch: "^7.2.0",
|
|
24
|
-
next: "16.2.
|
|
24
|
+
next: "16.2.9",
|
|
25
25
|
"next-mdx-remote": "^6.0.0",
|
|
26
|
-
"posthog-js": "^1.
|
|
27
|
-
"posthog-node": "^5.
|
|
28
|
-
react: "19.2.
|
|
29
|
-
"react-dom": "19.2.
|
|
26
|
+
"posthog-js": "^1.384.1",
|
|
27
|
+
"posthog-node": "^5.36.10",
|
|
28
|
+
react: "19.2.7",
|
|
29
|
+
"react-dom": "19.2.7",
|
|
30
30
|
"rehype-highlight": "^7.0.2",
|
|
31
31
|
"rehype-parse": "^9.0.1",
|
|
32
32
|
"rehype-stringify": "^10.0.1",
|
|
@@ -39,10 +39,10 @@ export const packageJsonTemplate = JSON.stringify({
|
|
|
39
39
|
"@types/node": "^25",
|
|
40
40
|
"@types/react": "^19",
|
|
41
41
|
"@types/react-dom": "^19",
|
|
42
|
-
"baseline-browser-mapping": "^2.10.
|
|
42
|
+
"baseline-browser-mapping": "^2.10.35",
|
|
43
43
|
eslint: "^9",
|
|
44
|
-
"eslint-config-next": "16.2.
|
|
45
|
-
prettier: "^3.8.
|
|
44
|
+
"eslint-config-next": "16.2.9",
|
|
45
|
+
prettier: "^3.8.4",
|
|
46
46
|
typescript: "^6",
|
|
47
47
|
},
|
|
48
48
|
}, null, 2) + "\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pnpmWorkspaceTemplate = "allowBuilds:\n core-js: false\n protobufjs: false\n sharp: false\n unrs-resolver: false\n";
|
|
1
|
+
export declare const pnpmWorkspaceTemplate = "allowBuilds:\n core-js: false\n protobufjs: false\n sharp: false\n unrs-resolver: false\nminimumReleaseAgeExclude:\n - '@next/env@16.2.9'\n - '@next/eslint-plugin-next@16.2.9'\n - '@next/swc-darwin-arm64@16.2.9'\n - '@next/swc-darwin-x64@16.2.9'\n - '@next/swc-linux-arm64-gnu@16.2.9'\n - '@next/swc-linux-arm64-musl@16.2.9'\n - '@next/swc-linux-x64-gnu@16.2.9'\n - '@next/swc-linux-x64-musl@16.2.9'\n - '@next/swc-win32-arm64-msvc@16.2.9'\n - '@next/swc-win32-x64-msvc@16.2.9'\n - '@posthog/core@1.31.1'\n - '@posthog/types@1.384.1'\n - baseline-browser-mapping@2.10.35\n - eslint-config-next@16.2.9\n - next@16.2.9\n - posthog-js@1.384.1\n - posthog-node@5.36.10\n - prettier@3.8.4\n";
|
|
@@ -3,4 +3,23 @@ export const pnpmWorkspaceTemplate = `allowBuilds:
|
|
|
3
3
|
protobufjs: false
|
|
4
4
|
sharp: false
|
|
5
5
|
unrs-resolver: false
|
|
6
|
+
minimumReleaseAgeExclude:
|
|
7
|
+
- '@next/env@16.2.9'
|
|
8
|
+
- '@next/eslint-plugin-next@16.2.9'
|
|
9
|
+
- '@next/swc-darwin-arm64@16.2.9'
|
|
10
|
+
- '@next/swc-darwin-x64@16.2.9'
|
|
11
|
+
- '@next/swc-linux-arm64-gnu@16.2.9'
|
|
12
|
+
- '@next/swc-linux-arm64-musl@16.2.9'
|
|
13
|
+
- '@next/swc-linux-x64-gnu@16.2.9'
|
|
14
|
+
- '@next/swc-linux-x64-musl@16.2.9'
|
|
15
|
+
- '@next/swc-win32-arm64-msvc@16.2.9'
|
|
16
|
+
- '@next/swc-win32-x64-msvc@16.2.9'
|
|
17
|
+
- '@posthog/core@1.31.1'
|
|
18
|
+
- '@posthog/types@1.384.1'
|
|
19
|
+
- baseline-browser-mapping@2.10.35
|
|
20
|
+
- eslint-config-next@16.2.9
|
|
21
|
+
- next@16.2.9
|
|
22
|
+
- posthog-js@1.384.1
|
|
23
|
+
- posthog-node@5.36.10
|
|
24
|
+
- prettier@3.8.4
|
|
6
25
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doccupine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.93",
|
|
4
4
|
"description": "Free and open-source documentation platform. Write MDX, get a production-ready site with AI chat, built-in components, and an MCP server - in one command.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"commander": "^15.0.0",
|
|
40
40
|
"fs-extra": "^11.3.5",
|
|
41
41
|
"gray-matter": "^4.0.3",
|
|
42
|
-
"next": "^16.2.
|
|
42
|
+
"next": "^16.2.9",
|
|
43
43
|
"prompts": "^2.4.2",
|
|
44
|
-
"react": "^19.2.
|
|
45
|
-
"react-dom": "^19.2.
|
|
44
|
+
"react": "^19.2.7",
|
|
45
|
+
"react-dom": "^19.2.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/fs-extra": "^11.0.4",
|
|
49
|
-
"@types/node": "^25.9.
|
|
49
|
+
"@types/node": "^25.9.3",
|
|
50
50
|
"@types/prompts": "^2.4.9",
|
|
51
|
-
"prettier": "^3.8.
|
|
51
|
+
"prettier": "^3.8.4",
|
|
52
52
|
"typescript": "^6.0.3",
|
|
53
|
-
"vitest": "^4.1.
|
|
53
|
+
"vitest": "^4.1.9"
|
|
54
54
|
},
|
|
55
55
|
"files": [
|
|
56
56
|
"dist/**/*"
|