@autumnsgrove/groveengine 0.8.0 → 0.8.6
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/components/OnboardingChecklist.svelte +2 -2
- package/dist/components/WispButton.svelte +83 -0
- package/dist/components/WispButton.svelte.d.ts +49 -0
- package/dist/components/WispPanel.svelte +1092 -0
- package/dist/components/WispPanel.svelte.d.ts +49 -0
- package/dist/components/custom/ContentWithGutter.svelte +7 -13
- package/dist/components/custom/TableOfContents.svelte +12 -1
- package/dist/components/quota/UpgradePrompt.svelte +1 -0
- package/dist/config/wisp.d.ts +145 -0
- package/dist/config/wisp.js +175 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/server/inference-client.d.ts +139 -0
- package/dist/server/inference-client.js +294 -0
- package/dist/ui/components/forms/SearchInput.svelte +0 -1
- package/dist/ui/components/gallery/ImageGallery.svelte +14 -3
- package/dist/ui/components/gallery/Lightbox.svelte +8 -3
- package/dist/ui/components/gallery/ZoomableImage.svelte +12 -2
- package/dist/ui/components/nature/Logo.svelte +55 -19
- package/dist/ui/components/nature/botanical/LeafFalling.svelte +2 -2
- package/dist/ui/components/nature/botanical/PetalFalling.svelte +7 -7
- package/dist/ui/components/nature/ground/Crocus.svelte +3 -3
- package/dist/ui/components/nature/ground/Daffodil.svelte +3 -3
- package/dist/ui/components/nature/ground/Tulip.svelte +5 -5
- package/dist/ui/components/nature/palette.d.ts +187 -76
- package/dist/ui/components/nature/palette.js +169 -81
- package/dist/ui/components/nature/trees/TreeCherry.svelte +3 -3
- package/dist/ui/components/nature/trees/TreeCherry.svelte.d.ts +1 -1
- package/dist/ui/components/nature/trees/TreePine.svelte +2 -2
- package/dist/ui/components/nature/trees/TreePine.svelte.d.ts +1 -1
- package/dist/ui/components/primitives/textarea/textarea.svelte +1 -1
- package/dist/ui/components/typography/Alagard.svelte +17 -0
- package/dist/ui/components/typography/Alagard.svelte.d.ts +10 -0
- package/dist/ui/components/typography/Atkinson.svelte +17 -0
- package/dist/ui/components/typography/Atkinson.svelte.d.ts +10 -0
- package/dist/ui/components/typography/Calistoga.svelte +17 -0
- package/dist/ui/components/typography/Calistoga.svelte.d.ts +10 -0
- package/dist/ui/components/typography/Caveat.svelte +17 -0
- package/dist/ui/components/typography/Caveat.svelte.d.ts +10 -0
- package/dist/ui/components/typography/Cozette.svelte +17 -0
- package/dist/ui/components/typography/Cozette.svelte.d.ts +10 -0
- package/dist/ui/components/typography/FontProvider.svelte +98 -0
- package/dist/ui/components/typography/FontProvider.svelte.d.ts +17 -0
- package/dist/ui/components/typography/IBMPlexMono.svelte +17 -0
- package/dist/ui/components/typography/IBMPlexMono.svelte.d.ts +10 -0
- package/dist/ui/components/typography/Lexend.svelte +17 -0
- package/dist/ui/components/typography/Lexend.svelte.d.ts +10 -0
- package/dist/ui/components/typography/OpenDyslexic.svelte +17 -0
- package/dist/ui/components/typography/OpenDyslexic.svelte.d.ts +10 -0
- package/dist/ui/components/typography/PlusJakartaSans.svelte +17 -0
- package/dist/ui/components/typography/PlusJakartaSans.svelte.d.ts +10 -0
- package/dist/ui/components/typography/Quicksand.svelte +17 -0
- package/dist/ui/components/typography/Quicksand.svelte.d.ts +10 -0
- package/dist/ui/components/typography/README.md +153 -0
- package/dist/ui/components/typography/index.d.ts +13 -0
- package/dist/ui/components/typography/index.js +31 -0
- package/dist/ui/components/ui/CollapsibleSection.svelte +10 -0
- package/dist/ui/components/ui/GlassCarousel.svelte +446 -0
- package/dist/ui/components/ui/GlassCarousel.svelte.d.ts +57 -0
- package/dist/ui/components/ui/GlassConfirmDialog.svelte +2 -1
- package/dist/ui/components/ui/GlassLogo.svelte +2 -1
- package/dist/ui/components/ui/GlassOverlay.svelte +1 -1
- package/dist/ui/components/ui/index.d.ts +1 -0
- package/dist/ui/components/ui/index.js +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +2 -0
- package/dist/ui/tokens/fonts.d.ts +1 -1
- package/dist/ui/tokens/fonts.js +0 -126
- package/dist/ui/vineyard/index.d.ts +9 -0
- package/dist/ui/vineyard/index.js +8 -0
- package/dist/utils/csrf.js +5 -2
- package/dist/utils/readability.d.ts +89 -0
- package/dist/utils/readability.js +204 -0
- package/package.json +38 -21
- package/static/fonts/alagard.ttf +0 -0
- package/LICENSE +0 -378
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { Check, Circle, X,
|
|
2
|
+
import { Check, Circle, X, Compass } from 'lucide-svelte';
|
|
3
3
|
|
|
4
4
|
interface ChecklistItem {
|
|
5
5
|
id: string;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<!-- Header -->
|
|
26
26
|
<div class="flex items-center justify-between mb-4">
|
|
27
27
|
<div class="flex items-center gap-2">
|
|
28
|
-
<
|
|
28
|
+
<Compass size={18} class="text-primary" />
|
|
29
29
|
<h3 class="font-medium text-foreground text-sm">Getting Started</h3>
|
|
30
30
|
</div>
|
|
31
31
|
{#if onDismiss}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* WispButton - Toolbar integration button for Wisp
|
|
4
|
+
*
|
|
5
|
+
* A compact button to toggle the Wisp writing assistant panel.
|
|
6
|
+
* Use this in editor toolbars or floating action buttons.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @typedef {Object} Props
|
|
11
|
+
* @property {boolean} enabled - Whether Wisp is enabled for this user
|
|
12
|
+
* @property {boolean} isOpen - Whether the panel is currently open
|
|
13
|
+
* @property {() => void} onClick - Callback when button is clicked
|
|
14
|
+
* @property {'icon' | 'text' | 'both'} variant - Display variant
|
|
15
|
+
* @property {string} className - Additional CSS classes
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/** @type {Props} */
|
|
19
|
+
let {
|
|
20
|
+
enabled = false,
|
|
21
|
+
isOpen = false,
|
|
22
|
+
onClick = () => {},
|
|
23
|
+
variant = "both",
|
|
24
|
+
className = "",
|
|
25
|
+
} = $props();
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
{#if enabled}
|
|
29
|
+
<button
|
|
30
|
+
class="wisp-btn {className}"
|
|
31
|
+
class:active={isOpen}
|
|
32
|
+
onclick={onClick}
|
|
33
|
+
title="Toggle Wisp writing assistant"
|
|
34
|
+
aria-label="Toggle Wisp writing assistant"
|
|
35
|
+
aria-pressed={isOpen}
|
|
36
|
+
>
|
|
37
|
+
{#if variant === "icon" || variant === "both"}
|
|
38
|
+
<span class="wisp-icon" aria-hidden="true">~</span>
|
|
39
|
+
{/if}
|
|
40
|
+
{#if variant === "text" || variant === "both"}
|
|
41
|
+
<span class="wisp-label">wisp</span>
|
|
42
|
+
{/if}
|
|
43
|
+
</button>
|
|
44
|
+
{/if}
|
|
45
|
+
|
|
46
|
+
<style>
|
|
47
|
+
.wisp-btn {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 0.25rem;
|
|
51
|
+
padding: 0.375rem 0.625rem;
|
|
52
|
+
background: var(--color-surface, #2a2a2a);
|
|
53
|
+
border: 1px solid var(--color-border, #3a3a3a);
|
|
54
|
+
border-radius: 4px;
|
|
55
|
+
color: var(--color-muted-foreground, #888);
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
font-size: 0.75rem;
|
|
58
|
+
transition: all 0.15s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.wisp-btn:hover {
|
|
62
|
+
background: var(--color-primary, #2d5a2d);
|
|
63
|
+
border-color: var(--color-accent, #8bc48b);
|
|
64
|
+
color: var(--color-foreground, #d4d4d4);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.wisp-btn.active {
|
|
68
|
+
background: var(--color-primary, #2d5a2d);
|
|
69
|
+
border-color: var(--color-accent, #8bc48b);
|
|
70
|
+
color: var(--color-accent, #8bc48b);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.wisp-icon {
|
|
74
|
+
font-family: monospace;
|
|
75
|
+
font-size: 1rem;
|
|
76
|
+
line-height: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.wisp-label {
|
|
80
|
+
text-transform: lowercase;
|
|
81
|
+
letter-spacing: 0.05em;
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export default WispButton;
|
|
2
|
+
type WispButton = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const WispButton: import("svelte").Component<{
|
|
7
|
+
/**
|
|
8
|
+
* - Whether Wisp is enabled for this user
|
|
9
|
+
*/
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* - Whether the panel is currently open
|
|
13
|
+
*/
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* - Callback when button is clicked
|
|
17
|
+
*/
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* - Display variant
|
|
21
|
+
*/
|
|
22
|
+
variant: "icon" | "text" | "both";
|
|
23
|
+
/**
|
|
24
|
+
* - Additional CSS classes
|
|
25
|
+
*/
|
|
26
|
+
className: string;
|
|
27
|
+
}, {}, "">;
|
|
28
|
+
type Props = {
|
|
29
|
+
/**
|
|
30
|
+
* - Whether Wisp is enabled for this user
|
|
31
|
+
*/
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* - Whether the panel is currently open
|
|
35
|
+
*/
|
|
36
|
+
isOpen: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* - Callback when button is clicked
|
|
39
|
+
*/
|
|
40
|
+
onClick: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* - Display variant
|
|
43
|
+
*/
|
|
44
|
+
variant: "icon" | "text" | "both";
|
|
45
|
+
/**
|
|
46
|
+
* - Additional CSS classes
|
|
47
|
+
*/
|
|
48
|
+
className: string;
|
|
49
|
+
};
|