@refraction-ui/astro 0.17.2 → 0.17.4
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/astro-data-table/DataTable.stories.ts +9 -5
- package/dist/astro-diff-viewer/DiffViewer.stories.ts +25 -10
- package/dist/astro-file-tree/index.ts +4 -1
- package/dist/astro-icon-system/index.ts +4 -1
- package/dist/astro-slide-viewer/SlideViewer.stories.ts +11 -5
- package/dist/astro-version-selector/VersionSelector.stories.ts +13 -5
- package/dist/badge/badge.styles.ts +2 -2
- package/dist/callout/callout.styles.ts +2 -2
- package/dist/command-input/command-input.ts +10 -1
- package/dist/file-upload/file-upload.ts +0 -1
- package/dist/index.ts +239 -126
- package/dist/location-selector/location-selector.ts +2 -2
- package/package.json +7 -5
|
@@ -7,17 +7,21 @@ const meta = {
|
|
|
7
7
|
|
|
8
8
|
export default meta
|
|
9
9
|
|
|
10
|
+
// Columns must match the headless core's ColumnDef shape
|
|
11
|
+
// ({ id, header, accessor, sortable?, filterable? }) — see
|
|
12
|
+
// packages/data-table/src/data-table.ts.
|
|
10
13
|
export const Default = {
|
|
11
14
|
args: {
|
|
12
15
|
columns: [
|
|
13
|
-
{
|
|
14
|
-
{
|
|
16
|
+
{ id: 'name', header: 'Name', accessor: (row) => row.name, sortable: true, filterable: true },
|
|
17
|
+
{ id: 'role', header: 'Role', accessor: (row) => row.role, sortable: true },
|
|
18
|
+
{ id: 'status', header: 'Status', accessor: (row) => row.status, sortable: true }
|
|
15
19
|
],
|
|
16
20
|
data: [
|
|
17
|
-
{
|
|
18
|
-
{
|
|
21
|
+
{ name: 'Alice', role: 'Engineer', status: 'Active' },
|
|
22
|
+
{ name: 'Bob', role: 'Designer', status: 'Away' }
|
|
19
23
|
],
|
|
20
|
-
sortBy: '
|
|
24
|
+
sortBy: 'name',
|
|
21
25
|
sortDir: 'asc',
|
|
22
26
|
emptyMessage: 'No data found'
|
|
23
27
|
}
|
|
@@ -7,22 +7,37 @@ const meta = {
|
|
|
7
7
|
|
|
8
8
|
export default meta
|
|
9
9
|
|
|
10
|
+
const ORIGINAL = `export function greet(name) {
|
|
11
|
+
return 'Hi ' + name
|
|
12
|
+
}
|
|
13
|
+
`
|
|
14
|
+
|
|
15
|
+
const MODIFIED = `export function greet(name: string): string {
|
|
16
|
+
return \`Hello, \${name}!\`
|
|
17
|
+
}
|
|
18
|
+
`
|
|
19
|
+
|
|
20
|
+
// Files must match the headless core's DiffFile shape
|
|
21
|
+
// ({ path, status, additions, deletions, diff?, oldPath? }) — see
|
|
22
|
+
// packages/diff-viewer/src/diff-viewer.ts.
|
|
10
23
|
export const Default = {
|
|
11
24
|
args: {
|
|
12
25
|
files: [
|
|
13
|
-
{
|
|
26
|
+
{ path: 'src/greet.ts', status: 'modified', additions: 2, deletions: 2 },
|
|
27
|
+
{ path: 'src/utils/format.ts', status: 'added', additions: 14, deletions: 0 },
|
|
28
|
+
{ path: 'src/legacy/old-greet.js', status: 'deleted', additions: 0, deletions: 9 }
|
|
14
29
|
],
|
|
15
|
-
original:
|
|
16
|
-
modified:
|
|
17
|
-
language: '
|
|
30
|
+
original: ORIGINAL,
|
|
31
|
+
modified: MODIFIED,
|
|
32
|
+
language: 'typescript',
|
|
18
33
|
theme: 'dark',
|
|
19
|
-
viewMode: '
|
|
20
|
-
showSidebar:
|
|
21
|
-
showTabs:
|
|
22
|
-
showStatusBar:
|
|
23
|
-
sidebarWidth:
|
|
34
|
+
viewMode: 'side-by-side',
|
|
35
|
+
showSidebar: true,
|
|
36
|
+
showTabs: true,
|
|
37
|
+
showStatusBar: true,
|
|
38
|
+
sidebarWidth: 220,
|
|
24
39
|
activeFileIndex: 0,
|
|
25
|
-
statusBarTitle: '
|
|
40
|
+
statusBarTitle: 'feature/typed-greeting',
|
|
26
41
|
statusBarStatus: 'Ready'
|
|
27
42
|
}
|
|
28
43
|
}
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// `.astro` single-file components have no wildcard surface — re-export the
|
|
2
|
+
// default export by name. (The astro-meta build used to paper over the broken
|
|
3
|
+
// `export { default as FileTree } from './astro-file-tree.astro'` by rewriting it to exactly this.)
|
|
4
|
+
export { default as FileTree } from './astro-file-tree.astro'
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// `.astro` single-file components have no wildcard surface — re-export the
|
|
2
|
+
// default export by name. (The astro-meta build used to paper over the broken
|
|
3
|
+
// `export { default as IconSystem } from './astro-icon-system.astro'` by rewriting it to exactly this.)
|
|
4
|
+
export { default as IconSystem } from './astro-icon-system.astro'
|
|
@@ -4,20 +4,26 @@ const meta = {
|
|
|
4
4
|
title: 'Astro/SlideViewer',
|
|
5
5
|
component: Component,
|
|
6
6
|
argTypes: {
|
|
7
|
-
slides: { control: '
|
|
7
|
+
slides: { control: 'object' },
|
|
8
8
|
initialSlide: { control: 'number' },
|
|
9
|
-
size: { control: 'select', options: ['
|
|
10
|
-
default: { control: 'text' },
|
|
9
|
+
size: { control: 'select', options: ['compact', 'default', 'full'] },
|
|
11
10
|
},
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export default meta
|
|
15
14
|
|
|
15
|
+
// Slides must match the headless core's SlideData shape ({ id, type, content })
|
|
16
|
+
// with type in 'lesson' | 'quiz' | 'exercise' | 'intro' | 'summary' — see
|
|
17
|
+
// packages/slide-viewer/src/slide-viewer.ts. `content` is rendered as HTML.
|
|
16
18
|
export const Default = {
|
|
17
19
|
args: {
|
|
18
|
-
slides:
|
|
20
|
+
slides: [
|
|
21
|
+
{ id: '1', type: 'intro', content: '<h2>Welcome</h2><p>Introduction to the course.</p>' },
|
|
22
|
+
{ id: '2', type: 'lesson', content: '<h2>Core concepts</h2><p>Key lesson content.</p>' },
|
|
23
|
+
{ id: '3', type: 'quiz', content: '<h2>Checkpoint</h2><p>Test your understanding.</p>' },
|
|
24
|
+
{ id: '4', type: 'summary', content: '<h2>Summary</h2><p>Thanks for following along.</p>' },
|
|
25
|
+
],
|
|
19
26
|
initialSlide: 0,
|
|
20
27
|
size: 'default',
|
|
21
|
-
default: '<span>default content</span>',
|
|
22
28
|
}
|
|
23
29
|
}
|
|
@@ -5,17 +5,25 @@ const meta = {
|
|
|
5
5
|
component: Component,
|
|
6
6
|
argTypes: {
|
|
7
7
|
value: { control: 'text' },
|
|
8
|
-
versions: { control: '
|
|
8
|
+
versions: { control: 'object' },
|
|
9
9
|
placeholder: { control: 'text' },
|
|
10
10
|
},
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export default meta
|
|
14
14
|
|
|
15
|
+
// Versions must match the headless core's VersionOption shape
|
|
16
|
+
// ({ value, label, isLatest? }) — see
|
|
17
|
+
// packages/version-selector/src/version-selector.ts.
|
|
15
18
|
export const Default = {
|
|
16
19
|
args: {
|
|
17
|
-
value: '',
|
|
18
|
-
versions:
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
value: '3.0.0',
|
|
21
|
+
versions: [
|
|
22
|
+
{ value: '3.0.0', label: 'v3.0.0', isLatest: true },
|
|
23
|
+
{ value: '2.5.0', label: 'v2.5.0' },
|
|
24
|
+
{ value: '2.0.0', label: 'v2.0.0' },
|
|
25
|
+
{ value: '1.0.0', label: 'v1.0.0' },
|
|
26
|
+
],
|
|
27
|
+
placeholder: 'Select version...',
|
|
28
|
+
}
|
|
21
29
|
}
|
|
@@ -9,8 +9,8 @@ export const badgeVariants = cva({
|
|
|
9
9
|
secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
10
10
|
destructive: 'border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80 font-semibold',
|
|
11
11
|
outline: 'text-foreground',
|
|
12
|
-
success: 'border-transparent bg-
|
|
13
|
-
warning: 'border-transparent bg-
|
|
12
|
+
success: 'border-transparent bg-success text-success-foreground shadow hover:bg-success/80 font-semibold',
|
|
13
|
+
warning: 'border-transparent bg-warning text-warning-foreground shadow hover:bg-warning/80 font-semibold',
|
|
14
14
|
},
|
|
15
15
|
size: {
|
|
16
16
|
sm: 'px-2 py-0 text-[10px]',
|
|
@@ -6,8 +6,8 @@ export const calloutVariants = cva({
|
|
|
6
6
|
variant: {
|
|
7
7
|
default: 'bg-muted/50 border-border text-foreground',
|
|
8
8
|
destructive: 'bg-destructive/10 border-destructive/20 text-destructive',
|
|
9
|
-
success: 'bg-
|
|
10
|
-
warning: 'bg-
|
|
9
|
+
success: 'bg-success/10 border-success/20 text-success',
|
|
10
|
+
warning: 'bg-warning/10 border-warning/20 text-warning',
|
|
11
11
|
info: 'bg-blue-500/10 border-blue-500/20 text-blue-700 dark:text-blue-400',
|
|
12
12
|
},
|
|
13
13
|
},
|
|
@@ -32,6 +32,15 @@ export interface CommandInputOptions {
|
|
|
32
32
|
onCommandCancel?: () => void;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Minimal keyboard-event surface {@link CommandInput.handleKeyDown} needs.
|
|
37
|
+
* DOM `KeyboardEvent`s and framework synthetic events (e.g. React's) both
|
|
38
|
+
* satisfy this structurally, so adapters can pass their events without casts.
|
|
39
|
+
*/
|
|
40
|
+
export interface CommandKeyEvent {
|
|
41
|
+
preventDefault(): void;
|
|
42
|
+
}
|
|
43
|
+
|
|
35
44
|
export class CommandInput {
|
|
36
45
|
private state: CommandInputState = {
|
|
37
46
|
nodes: [],
|
|
@@ -54,7 +63,7 @@ export class CommandInput {
|
|
|
54
63
|
this.notifyStateChange();
|
|
55
64
|
}
|
|
56
65
|
|
|
57
|
-
public handleKeyDown(key: string, event?:
|
|
66
|
+
public handleKeyDown(key: string, event?: CommandKeyEvent): void {
|
|
58
67
|
if (this.state.activeTrigger) {
|
|
59
68
|
if (key === 'Escape') {
|
|
60
69
|
if (event) event.preventDefault();
|
|
@@ -208,7 +208,6 @@ export function createFileUpload(props: FileUploadProps = {}): FileUploadAPI {
|
|
|
208
208
|
const dropZoneProps: Partial<AccessibilityProps> & Record<string, unknown> = {
|
|
209
209
|
role: 'button',
|
|
210
210
|
'aria-label': 'Drop files here or click to upload',
|
|
211
|
-
'aria-describedby': labelId,
|
|
212
211
|
id: dropZoneId,
|
|
213
212
|
tabIndex: 0,
|
|
214
213
|
}
|
package/dist/index.ts
CHANGED
|
@@ -1,126 +1,239 @@
|
|
|
1
|
-
// Auto-generated meta-package index
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export * from './
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export * from './astro-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export * from './astro-
|
|
19
|
-
export * from './astro-
|
|
20
|
-
export * from './astro-
|
|
21
|
-
export * from './astro-
|
|
22
|
-
export * from './astro-
|
|
23
|
-
export * from './astro-
|
|
24
|
-
export * from './astro-
|
|
25
|
-
export * from './astro-
|
|
26
|
-
export * from './astro-
|
|
27
|
-
export * from './astro-
|
|
28
|
-
export * from './astro-
|
|
29
|
-
export * from './astro-
|
|
30
|
-
export * from './astro-
|
|
31
|
-
export * from './astro-
|
|
32
|
-
export * from './astro-
|
|
33
|
-
export * from './astro-
|
|
34
|
-
export * from './astro-
|
|
35
|
-
export * from './astro-
|
|
36
|
-
export * from './astro-
|
|
37
|
-
export * from './astro-
|
|
38
|
-
export * from './astro-
|
|
39
|
-
export * from './astro-
|
|
40
|
-
export * from './astro-
|
|
41
|
-
export * from './astro-
|
|
42
|
-
export * from './astro-
|
|
43
|
-
export * from './astro-
|
|
44
|
-
export * from './astro-
|
|
45
|
-
export * from './astro-
|
|
46
|
-
export * from './astro-
|
|
47
|
-
export * from './astro-feedback-dialog/index.ts'
|
|
48
|
-
export * from './astro-file-
|
|
49
|
-
export * from './astro-
|
|
50
|
-
export * from './astro-
|
|
51
|
-
export * from './astro-
|
|
52
|
-
export * from './astro-
|
|
53
|
-
export * from './astro-
|
|
54
|
-
export * from './astro-
|
|
55
|
-
export * from './astro-
|
|
56
|
-
export * from './astro-
|
|
57
|
-
export * from './astro-
|
|
58
|
-
export * from './astro-
|
|
59
|
-
export * from './astro-
|
|
60
|
-
export * from './astro-
|
|
61
|
-
export * from './astro-
|
|
62
|
-
export * from './astro-
|
|
63
|
-
export * from './astro-
|
|
64
|
-
export * from './astro-
|
|
65
|
-
export * from './astro-
|
|
66
|
-
export * from './astro-
|
|
67
|
-
export * from './astro-
|
|
68
|
-
export * from './astro-
|
|
69
|
-
export * from './astro-
|
|
70
|
-
export * from './astro-
|
|
71
|
-
export * from './astro-
|
|
72
|
-
export * from './astro-
|
|
73
|
-
export * from './astro-
|
|
74
|
-
export * from './astro-
|
|
75
|
-
export * from './astro-
|
|
76
|
-
export * from './astro-
|
|
77
|
-
export * from './astro-
|
|
78
|
-
export * from './astro-
|
|
79
|
-
export * from './astro-
|
|
80
|
-
export * from './astro-
|
|
81
|
-
export * from './astro-
|
|
82
|
-
export * from './astro-
|
|
83
|
-
export * from './astro-
|
|
84
|
-
|
|
85
|
-
export * from './astro-
|
|
86
|
-
export * from './astro-
|
|
87
|
-
export * from './astro-
|
|
88
|
-
export * from './astro-
|
|
89
|
-
|
|
90
|
-
export * from './astro-
|
|
91
|
-
export * from './astro-
|
|
92
|
-
export * from './astro-
|
|
93
|
-
export * from './astro-
|
|
94
|
-
export * from './astro-
|
|
95
|
-
export * from './astro-
|
|
96
|
-
export * from './astro-
|
|
97
|
-
export * from './astro-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
export * from './astro-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
export * from './astro-
|
|
105
|
-
export * from './astro-
|
|
106
|
-
|
|
107
|
-
export
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
export
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
1
|
+
// Auto-generated meta-package index (from src/index.ts — edit that file, not this one)
|
|
2
|
+
/**
|
|
3
|
+
* @refraction-ui/astro
|
|
4
|
+
*
|
|
5
|
+
* Meta package that re-exports all @refraction-ui/astro-* component packages,
|
|
6
|
+
* so consumers install a single package and import every component from it.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// Embedded shared utilities — `@refraction-ui/shared` is private and copied
|
|
10
|
+
// into the shipped artifact by the meta build, so the meta re-exports it
|
|
11
|
+
// directly instead of referencing the package.
|
|
12
|
+
export * from './shared/index.ts'
|
|
13
|
+
|
|
14
|
+
// Core / theme
|
|
15
|
+
export * from './astro-theme/index.ts'
|
|
16
|
+
|
|
17
|
+
// Components (alphabetical)
|
|
18
|
+
export * from './astro-accordion/index.ts'
|
|
19
|
+
export * from './astro-ai/index.ts'
|
|
20
|
+
export * from './astro-animated-text/index.ts'
|
|
21
|
+
export * from './astro-app-shell/index.ts'
|
|
22
|
+
export * from './astro-auth/index.ts'
|
|
23
|
+
export * from './astro-avatar/index.ts'
|
|
24
|
+
export * from './astro-avatar-group/index.ts'
|
|
25
|
+
export * from './astro-badge/index.ts'
|
|
26
|
+
export * from './astro-bottom-nav/index.ts'
|
|
27
|
+
export * from './astro-breadcrumbs/index.ts'
|
|
28
|
+
export * from './astro-button/index.ts'
|
|
29
|
+
export * from './astro-calendar/index.ts'
|
|
30
|
+
export * from './astro-card/index.ts'
|
|
31
|
+
export * from './astro-charts/index.ts'
|
|
32
|
+
export * from './astro-checkbox/index.ts'
|
|
33
|
+
export * from './astro-code-editor/index.ts'
|
|
34
|
+
export * from './astro-collapsible/index.ts'
|
|
35
|
+
export * from './astro-command/index.ts'
|
|
36
|
+
export * from './astro-composer/index.ts'
|
|
37
|
+
export * from './astro-conversation/index.ts'
|
|
38
|
+
export * from './astro-content-protection/index.ts'
|
|
39
|
+
export * from './astro-cookie-consent/index.ts'
|
|
40
|
+
export * from './astro-data-table/index.ts'
|
|
41
|
+
export * from './astro-date-picker/index.ts'
|
|
42
|
+
export * from './astro-device-frame/index.ts'
|
|
43
|
+
export * from './astro-dialog/index.ts'
|
|
44
|
+
export * from './astro-diff-viewer/index.ts'
|
|
45
|
+
export * from './astro-dropdown-menu/index.ts'
|
|
46
|
+
export * from './astro-emoji-picker/index.ts'
|
|
47
|
+
export * from './astro-feedback-dialog/index.ts'
|
|
48
|
+
export * from './astro-file-upload/index.ts'
|
|
49
|
+
export * from './astro-footer/index.ts'
|
|
50
|
+
export * from './astro-inline-editor/index.ts'
|
|
51
|
+
export * from './astro-input/index.ts'
|
|
52
|
+
export * from './astro-input-group/index.ts'
|
|
53
|
+
export * from './astro-install-prompt/index.ts'
|
|
54
|
+
export * from './astro-keyboard-shortcut/index.ts'
|
|
55
|
+
export * from './astro-language-selector/index.ts'
|
|
56
|
+
export * from './astro-location-selector/index.ts'
|
|
57
|
+
export * from './astro-markdown-renderer/index.ts'
|
|
58
|
+
export * from './astro-mascot/index.ts'
|
|
59
|
+
export * from './astro-mobile-nav/index.ts'
|
|
60
|
+
export * from './astro-navbar/index.ts'
|
|
61
|
+
export * from './astro-otp-input/index.ts'
|
|
62
|
+
export * from './astro-popover/index.ts'
|
|
63
|
+
export * from './astro-presence-indicator/index.ts'
|
|
64
|
+
export * from './astro-progress-display/index.ts'
|
|
65
|
+
export * from './astro-radio/index.ts'
|
|
66
|
+
export * from './astro-rating-scale/index.ts'
|
|
67
|
+
export * from './astro-reaction-bar/index.ts'
|
|
68
|
+
export * from './astro-resizable-layout/index.ts'
|
|
69
|
+
export * from './astro-rich-editor/index.ts'
|
|
70
|
+
export * from './astro-search-bar/index.ts'
|
|
71
|
+
export * from './astro-select/index.ts'
|
|
72
|
+
export * from './astro-sidebar/index.ts'
|
|
73
|
+
export * from './astro-skeleton/index.ts'
|
|
74
|
+
export * from './astro-slide-viewer/index.ts'
|
|
75
|
+
export * from './astro-status-indicator/index.ts'
|
|
76
|
+
export * from './astro-switch/index.ts'
|
|
77
|
+
export * from './astro-tabs/index.ts'
|
|
78
|
+
export * from './astro-textarea/index.ts'
|
|
79
|
+
export * from './astro-thread-view/index.ts'
|
|
80
|
+
export * from './astro-toast/index.ts'
|
|
81
|
+
export * from './astro-tooltip/index.ts'
|
|
82
|
+
export * from './astro-version-selector/index.ts'
|
|
83
|
+
export * from './astro-video-player/index.ts'
|
|
84
|
+
|
|
85
|
+
export * from './astro-table-of-contents/index.ts'
|
|
86
|
+
export * from './astro-carousel/index.ts'
|
|
87
|
+
export * from './astro-slider/index.ts'
|
|
88
|
+
export * from './astro-pagination/index.ts'
|
|
89
|
+
|
|
90
|
+
export * from './astro-callout/index.ts'
|
|
91
|
+
export * from './astro-steps/index.ts'
|
|
92
|
+
export * from './astro-file-tree/index.ts'
|
|
93
|
+
export * from './astro-icon-system/index.ts'
|
|
94
|
+
export * from './astro-skip-to-content/index.ts'
|
|
95
|
+
export * from './astro-code-block/index.ts'
|
|
96
|
+
export * from './astro-link-card/index.ts'
|
|
97
|
+
export * from './astro-card-grid/index.ts'
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
export * from './astro-payment/index.ts'
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
export * from './astro-command-input/index.ts'
|
|
105
|
+
export * from './astro-logger/index.ts'
|
|
106
|
+
|
|
107
|
+
// astro-analytics: selective re-export, not `export *` — astro-logger (above)
|
|
108
|
+
// already surfaces `createConsoleSink`, `createMockSink` and the
|
|
109
|
+
// `ConsoleSinkOptions` type from its own headless core, so a wildcard here
|
|
110
|
+
// collides (TS2308) and, worse, makes all three names unreachable at runtime
|
|
111
|
+
// (ambiguous star exports are dropped from the ESM namespace). Keep the
|
|
112
|
+
// pre-existing logger names stable — the same canonical surface react-meta
|
|
113
|
+
// exposes — and ship the analytics variants under aliases instead.
|
|
114
|
+
export {
|
|
115
|
+
AnalyticsScript,
|
|
116
|
+
createAnalytics,
|
|
117
|
+
createHttpSink,
|
|
118
|
+
createConsoleSink as createAnalyticsConsoleSink,
|
|
119
|
+
createMockSink as createAnalyticsMockSink,
|
|
120
|
+
createSession,
|
|
121
|
+
createIdentity,
|
|
122
|
+
createConsent,
|
|
123
|
+
createRedactor,
|
|
124
|
+
createMemoryStorage,
|
|
125
|
+
createLocalStorageAdapter,
|
|
126
|
+
createCookieAdapter,
|
|
127
|
+
resolveStorage,
|
|
128
|
+
campaignFingerprint,
|
|
129
|
+
uuidv4,
|
|
130
|
+
isUuidV4,
|
|
131
|
+
UUID_V4_RE,
|
|
132
|
+
PII_DENY_LIST,
|
|
133
|
+
PII_EXACT_KEYS,
|
|
134
|
+
REDACTED,
|
|
135
|
+
SCHEMA_VERSION,
|
|
136
|
+
DEFAULT_SESSION_TIMEOUT_MS,
|
|
137
|
+
createGA4Sink,
|
|
138
|
+
createGA4HttpSink,
|
|
139
|
+
createGA4ClientSdkSink,
|
|
140
|
+
createAppInsightsSink,
|
|
141
|
+
createPostHogSink,
|
|
142
|
+
createPostHogHttpSink,
|
|
143
|
+
createPostHogClientSdkSink,
|
|
144
|
+
startSessionReplay,
|
|
145
|
+
type Analytics,
|
|
146
|
+
type AnalyticsConfig,
|
|
147
|
+
type AnalyticsEvent,
|
|
148
|
+
type AnalyticsEventType,
|
|
149
|
+
type AnalyticsProperties,
|
|
150
|
+
type AnalyticsContext,
|
|
151
|
+
type AnalyticsSink,
|
|
152
|
+
type AnalyticsStorage,
|
|
153
|
+
type SinkInitContext,
|
|
154
|
+
type SinkDeliverContext,
|
|
155
|
+
type SessionConfig,
|
|
156
|
+
type SessionAPI,
|
|
157
|
+
type IdentityConfig,
|
|
158
|
+
type ConsentConfig,
|
|
159
|
+
type ConsentAPI,
|
|
160
|
+
type HttpSinkOptions,
|
|
161
|
+
type CallOptions,
|
|
162
|
+
type ConsoleSinkOptions as AnalyticsConsoleSinkOptions,
|
|
163
|
+
type MockSink,
|
|
164
|
+
type CreateMockSinkOptions,
|
|
165
|
+
type Redactor,
|
|
166
|
+
type GA4SinkOptions,
|
|
167
|
+
type GA4HttpOptions,
|
|
168
|
+
type GA4ClientSdkOptions,
|
|
169
|
+
type GA4ConsentBridge,
|
|
170
|
+
type ConsentState,
|
|
171
|
+
type GtagFn,
|
|
172
|
+
type AppInsightsSinkOptions,
|
|
173
|
+
type AppInsightsSinkMode,
|
|
174
|
+
type ClientSdkOptions,
|
|
175
|
+
type HttpOptions,
|
|
176
|
+
type AppInsightsLike,
|
|
177
|
+
type PostHogSinkMode,
|
|
178
|
+
type PostHogSinkOptions,
|
|
179
|
+
type PostHogHttpSinkOptions,
|
|
180
|
+
type PostHogClientSdkSinkOptions,
|
|
181
|
+
type SessionReplayOptions,
|
|
182
|
+
type SessionReplayHandle,
|
|
183
|
+
} from './astro-analytics/index.ts'
|
|
184
|
+
|
|
185
|
+
// Voice primitives — siblings of @refraction-ui/react-voice-pill / -waveform.
|
|
186
|
+
// Issues #191, #192.
|
|
187
|
+
export * from './astro-voice-pill/index.ts'
|
|
188
|
+
export * from './astro-waveform/index.ts'
|
|
189
|
+
|
|
190
|
+
// Issues #330-#334 — auth surface components
|
|
191
|
+
export * from './astro-segmented-control/index.ts'
|
|
192
|
+
export * from './astro-password-input/index.ts'
|
|
193
|
+
export * from './astro-social-auth-button/index.ts'
|
|
194
|
+
export * from './astro-separator/index.ts'
|
|
195
|
+
export * from './astro-empty-state/index.ts'
|
|
196
|
+
|
|
197
|
+
// easyloops design-parity wave 1 (Cluster C + D)
|
|
198
|
+
export * from './astro-wizard/index.ts'
|
|
199
|
+
export * from './astro-radial-gauge/index.ts'
|
|
200
|
+
export * from './astro-timeline/index.ts'
|
|
201
|
+
export * from './astro-checklist/index.ts'
|
|
202
|
+
export * from './astro-editor-tabs/index.ts'
|
|
203
|
+
export * from './astro-terminal/index.ts'
|
|
204
|
+
export * from './astro-test-results/index.ts'
|
|
205
|
+
export * from './astro-editor-status-bar/index.ts'
|
|
206
|
+
|
|
207
|
+
// easyloops design-parity wave 2 (Cluster A — video)
|
|
208
|
+
export * from './astro-video-tile/index.ts'
|
|
209
|
+
export * from './astro-video-grid/index.ts'
|
|
210
|
+
export * from './astro-call-controls/index.ts'
|
|
211
|
+
export * from './astro-live-captions/index.ts'
|
|
212
|
+
export * from './astro-live-transcript/index.ts'
|
|
213
|
+
export * from './astro-audio-room/index.ts'
|
|
214
|
+
export * from './astro-floating-reactions/index.ts'
|
|
215
|
+
export * from './astro-pre-call-lobby/index.ts'
|
|
216
|
+
|
|
217
|
+
// easyloops design-parity wave 3 (Cluster B — canvas)
|
|
218
|
+
export * from './astro-infinite-canvas/index.ts'
|
|
219
|
+
export * from './astro-sticky-note/index.ts'
|
|
220
|
+
export * from './astro-flow-editor/index.ts'
|
|
221
|
+
export * from './astro-graph-view/index.ts'
|
|
222
|
+
export * from './astro-live-cursors/index.ts'
|
|
223
|
+
export * from './astro-mini-map/index.ts'
|
|
224
|
+
|
|
225
|
+
// easyloops marketing components wave
|
|
226
|
+
export * from './astro-section-head/index.ts'
|
|
227
|
+
export * from './astro-stat-grid/index.ts'
|
|
228
|
+
export * from './astro-numbered-steps/index.ts'
|
|
229
|
+
export * from './astro-pricing-card/index.ts'
|
|
230
|
+
export * from './astro-brand-network-cell/index.ts'
|
|
231
|
+
export * from './astro-marquee-strip/index.ts'
|
|
232
|
+
export * from './astro-browser-chrome-mock/index.ts'
|
|
233
|
+
export * from './astro-mastery-bar/index.ts'
|
|
234
|
+
export * from './astro-audience-feature-card/index.ts'
|
|
235
|
+
|
|
236
|
+
// loopwyse pipeline components
|
|
237
|
+
export * from './astro-sortable-list/index.ts'
|
|
238
|
+
export * from './astro-kanban-board/index.ts'
|
|
239
|
+
export * from './astro-slot-picker/index.ts'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COUNTRIES, LANGUAGES
|
|
1
|
+
import { COUNTRIES, LANGUAGES } from '../i18n/index.ts'
|
|
2
2
|
import { generateId } from '../shared/index.ts'
|
|
3
3
|
|
|
4
4
|
export interface LocationSelectorState {
|
|
@@ -21,7 +21,7 @@ export function createLocationSelector(options: LocationSelectorOptions = {}) {
|
|
|
21
21
|
onLanguageChange,
|
|
22
22
|
} = options
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
const state: LocationSelectorState = {
|
|
25
25
|
country: defaultCountry,
|
|
26
26
|
language: defaultLanguage,
|
|
27
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refraction-ui/astro",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4",
|
|
4
4
|
"description": "All Refraction UI Astro components in one package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
"build": "node build.mjs",
|
|
14
14
|
"test": "vitest run --passWithNoTests",
|
|
15
15
|
"test:watch": "vitest",
|
|
16
|
-
"test:coverage": "vitest run --coverage --passWithNoTests"
|
|
16
|
+
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
17
|
+
"typecheck": "tsc --noEmit",
|
|
18
|
+
"lint": "eslint __tests__ vitest.config.ts --ext .ts"
|
|
17
19
|
},
|
|
18
|
-
"dependencies": {},
|
|
19
20
|
"peerDependencies": {
|
|
20
21
|
"astro": ">=4.0.0"
|
|
21
22
|
},
|
|
@@ -88,8 +89,8 @@
|
|
|
88
89
|
"@refraction-ui/astro-logger": "workspace:*",
|
|
89
90
|
"@refraction-ui/astro-markdown-renderer": "workspace:*",
|
|
90
91
|
"@refraction-ui/astro-marquee-strip": "workspace:*",
|
|
91
|
-
"@refraction-ui/astro-mastery-bar": "workspace:*",
|
|
92
92
|
"@refraction-ui/astro-mascot": "workspace:*",
|
|
93
|
+
"@refraction-ui/astro-mastery-bar": "workspace:*",
|
|
93
94
|
"@refraction-ui/astro-mini-map": "workspace:*",
|
|
94
95
|
"@refraction-ui/astro-mobile-nav": "workspace:*",
|
|
95
96
|
"@refraction-ui/astro-navbar": "workspace:*",
|
|
@@ -144,7 +145,8 @@
|
|
|
144
145
|
"@refraction-ui/astro-voice-pill": "workspace:*",
|
|
145
146
|
"@refraction-ui/astro-waveform": "workspace:*",
|
|
146
147
|
"@refraction-ui/astro-wizard": "workspace:*",
|
|
147
|
-
"@refraction-ui/shared": "workspace:*"
|
|
148
|
+
"@refraction-ui/shared": "workspace:*",
|
|
149
|
+
"@types/node": "22.0.0"
|
|
148
150
|
},
|
|
149
151
|
"publishConfig": {
|
|
150
152
|
"access": "public"
|