jamdesk 1.1.177 → 1.1.178

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamdesk",
3
- "version": "1.1.177",
3
+ "version": "1.1.178",
4
4
  "description": "CLI for Jamdesk — build, preview, and deploy documentation sites from MDX. Dev server with hot reload, 50+ components, OpenAPI support, AI search, and Mintlify migration",
5
5
  "keywords": [
6
6
  "jamdesk",
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { useState, useEffect, useRef, useCallback, useMemo } from 'react';
4
- import { CursorIcon } from '@/components/mdx/ai-action-icons';
4
+ import { ClaudeIcon, CursorIcon } from '@/components/mdx/ai-action-icons';
5
5
  import { useOnClickOutside } from '@/hooks/useOnClickOutside';
6
6
  import { usePathname } from 'next/navigation';
7
7
  import { AI_CHAT_URLS } from '@/lib/ai-service-urls';
@@ -118,14 +118,6 @@ function ChatGPTIcon({ className }: { className?: string }) {
118
118
  );
119
119
  }
120
120
 
121
- function ClaudeIcon({ className }: { className?: string }) {
122
- return (
123
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" className={className}>
124
- <path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z" />
125
- </svg>
126
- );
127
- }
128
-
129
121
  function PerplexityIcon({ className }: { className?: string }) {
130
122
  return (
131
123
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 38" fill="currentColor" className={className}>
@@ -17,7 +17,7 @@ import { useOnClickOutside } from '@/hooks/useOnClickOutside';
17
17
  import { renderInlineMarkdown } from '@/lib/inline-markdown';
18
18
  import { decodePromptSource } from '@/lib/prompt-source-codec';
19
19
 
20
- import { CursorIcon } from './ai-action-icons';
20
+ import { ClaudeIcon, CursorIcon } from './ai-action-icons';
21
21
  import { Icon } from './Icon';
22
22
  import {
23
23
  resolvePromptActions,
@@ -57,16 +57,16 @@ function resolveAuthorIcon(icon: string | ReactElement, iconType?: IconType): st
57
57
 
58
58
  function ActionIcon({ action }: { action: ResolvedPromptAction['action'] }): ReactElement | null {
59
59
  if (action === 'cursor') {
60
- return <CursorIcon className="h-4 w-4 shrink-0" />;
60
+ return <CursorIcon className="h-3.5 w-3.5 shrink-0" />;
61
61
  }
62
62
  if (action === 'claude') {
63
- return <Icon icon="brain" size={16} className="shrink-0" />;
63
+ return <ClaudeIcon className="h-3.5 w-3.5 shrink-0" />;
64
64
  }
65
65
  if (action === 'chatgpt') {
66
- return <Icon icon="brands/openai" size={16} className="shrink-0" />;
66
+ return <Icon icon="brands/openai" size={14} className="shrink-0" />;
67
67
  }
68
68
  if (typeof action !== 'string' && action.icon) {
69
- return <Icon icon={action.icon} size={16} className="shrink-0" />;
69
+ return <Icon icon={action.icon} size={14} className="shrink-0" />;
70
70
  }
71
71
  return null;
72
72
  }
@@ -132,7 +132,7 @@ const promptUtilityClassName = [
132
132
  ].join(' ');
133
133
 
134
134
  const primaryActionClassName = [
135
- 'inline-flex min-h-8 min-w-0 items-center gap-2 px-3.5 py-1 text-sm font-semibold',
135
+ 'inline-flex min-h-7 min-w-0 items-center gap-1.5 px-3 py-0.5 text-[13px] font-semibold',
136
136
  'prompt-primary-action bg-[var(--color-primary)] text-white transition-opacity cursor-pointer',
137
137
  'hover:opacity-90',
138
138
  contrastSafeFocusClassName,
@@ -446,7 +446,7 @@ export function Prompt({
446
446
  aria-haspopup="menu"
447
447
  aria-expanded={menuOpen}
448
448
  aria-controls={menuId}
449
- className={`${primaryActionClassName} min-w-8 rounded-r-full border-l border-[var(--color-bg-primary)] px-2.5`}
449
+ className={`${primaryActionClassName} min-w-7 rounded-r-full border-l border-[var(--color-bg-primary)] px-2`}
450
450
  onMouseDown={(event) => {
451
451
  if (menuOpen) event.preventDefault();
452
452
  }}
@@ -455,7 +455,7 @@ export function Prompt({
455
455
  if (menuOpen) triggerRef.current?.focus();
456
456
  }}
457
457
  >
458
- <i className="fa-solid fa-chevron-down text-xs" aria-hidden="true" />
458
+ <i className="fa-solid fa-chevron-down text-[10px]" aria-hidden="true" />
459
459
  </button>
460
460
  {menuOpen ? (
461
461
  <div
@@ -478,7 +478,7 @@ export function Prompt({
478
478
  target="_blank"
479
479
  rel="noopener noreferrer"
480
480
  aria-label={action.label}
481
- className={`prompt-menu-item flex min-h-10 min-w-0 max-w-full cursor-pointer items-center gap-2 rounded-[var(--radius-lg)] px-3 py-2 text-sm text-[var(--color-text-primary)] hover:bg-[var(--color-border)] ${contrastSafeFocusClassName}`}
481
+ className={`prompt-menu-item flex min-h-8 min-w-0 max-w-full cursor-pointer items-center gap-1.5 rounded-[var(--radius-lg)] px-2.5 py-1.5 text-[13px] text-[var(--color-text-primary)] hover:bg-[var(--color-border)] ${contrastSafeFocusClassName}`}
482
482
  onClick={closeMenuAndFocusTrigger}
483
483
  >
484
484
  <span aria-hidden="true"><ActionIcon action={action.action} /></span>
@@ -5,3 +5,11 @@ export function CursorIcon({ className }: { className?: string }) {
5
5
  </svg>
6
6
  );
7
7
  }
8
+
9
+ export function ClaudeIcon({ className }: { className?: string }) {
10
+ return (
11
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" className={className}>
12
+ <path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z" />
13
+ </svg>
14
+ );
15
+ }
@@ -2962,9 +2962,9 @@
2962
2962
  "license": "MIT"
2963
2963
  },
2964
2964
  "node_modules/electron-to-chromium": {
2965
- "version": "1.5.392",
2966
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.392.tgz",
2967
- "integrity": "sha512-1yQq3VQCZRwsnYc67Oc+1fge6Lwtn0hzi6zmEVkB61Zx21kTbwJAW4dFLadl5Rc1tKhG/kSpYXnfiAhu0f0a1g==",
2965
+ "version": "1.5.393",
2966
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.393.tgz",
2967
+ "integrity": "sha512-kiDJdIUawuEIcp9XoICKp1iTYDEbgguIPq526N1Q7jIQDeQ3CqoMx71025PI/7E48Ddtw2HuWsVjY7afEgNxmg==",
2968
2968
  "license": "ISC"
2969
2969
  },
2970
2970
  "node_modules/enhanced-resolve": {