@frontmcp/ui 0.6.1 → 0.6.3
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/bridge/core/bridge-factory.d.ts +1 -0
- package/bridge/core/bridge-factory.d.ts.map +1 -1
- package/bridge/index.d.ts +1 -1
- package/bridge/index.d.ts.map +1 -1
- package/bridge/index.js +39 -881
- package/bundler/browser-components.d.ts +42 -0
- package/bundler/browser-components.d.ts.map +1 -0
- package/bundler/bundler.d.ts +78 -4
- package/bundler/bundler.d.ts.map +1 -1
- package/bundler/index.d.ts +8 -8
- package/bundler/index.d.ts.map +1 -1
- package/bundler/index.js +1315 -1854
- package/bundler/types.d.ts +188 -7
- package/bundler/types.d.ts.map +1 -1
- package/esm/bridge/{index.js → index.mjs} +40 -877
- package/esm/bundler/{index.js → index.mjs} +1391 -1895
- package/esm/{index.js → index.mjs} +215 -3091
- package/esm/layouts/{index.js → index.mjs} +3 -3
- package/esm/package.json +17 -18
- package/esm/react/index.mjs +1183 -0
- package/esm/renderers/index.mjs +611 -0
- package/esm/universal/{index.js → index.mjs} +266 -70
- package/index.d.ts +1 -4
- package/index.d.ts.map +1 -1
- package/index.js +208 -3113
- package/layouts/base.d.ts.map +1 -1
- package/layouts/index.js +3 -3
- package/layouts/presets.d.ts.map +1 -1
- package/package.json +9 -8
- package/react/Badge.d.ts.map +1 -1
- package/react/hooks/context.d.ts.map +1 -1
- package/react/index.d.ts +0 -1
- package/react/index.d.ts.map +1 -1
- package/react/index.js +57 -2001
- package/react/types.d.ts.map +1 -1
- package/renderers/index.d.ts +9 -4
- package/renderers/index.d.ts.map +1 -1
- package/renderers/index.js +328 -88
- package/renderers/mdx.renderer.d.ts +99 -0
- package/renderers/mdx.renderer.d.ts.map +1 -0
- package/renderers/react.renderer.d.ts +22 -13
- package/renderers/react.renderer.d.ts.map +1 -1
- package/renderers/transpiler.d.ts +49 -0
- package/renderers/transpiler.d.ts.map +1 -0
- package/universal/cached-runtime.d.ts +25 -1
- package/universal/cached-runtime.d.ts.map +1 -1
- package/universal/index.js +266 -70
- package/universal/runtime-builder.d.ts.map +1 -1
- package/universal/types.d.ts.map +1 -1
- package/web-components/elements/fmcp-input.d.ts.map +1 -1
- package/web-components/elements/fmcp-select.d.ts.map +1 -1
- package/web-components/index.d.ts +0 -1
- package/web-components/index.d.ts.map +1 -1
- package/bundler/cache.d.ts +0 -173
- package/bundler/cache.d.ts.map +0 -1
- package/bundler/file-cache/component-builder.d.ts +0 -167
- package/bundler/file-cache/component-builder.d.ts.map +0 -1
- package/bundler/file-cache/hash-calculator.d.ts +0 -155
- package/bundler/file-cache/hash-calculator.d.ts.map +0 -1
- package/bundler/file-cache/index.d.ts +0 -12
- package/bundler/file-cache/index.d.ts.map +0 -1
- package/bundler/file-cache/storage/filesystem.d.ts +0 -149
- package/bundler/file-cache/storage/filesystem.d.ts.map +0 -1
- package/bundler/file-cache/storage/index.d.ts +0 -11
- package/bundler/file-cache/storage/index.d.ts.map +0 -1
- package/bundler/file-cache/storage/interface.d.ts +0 -152
- package/bundler/file-cache/storage/interface.d.ts.map +0 -1
- package/bundler/file-cache/storage/redis.d.ts +0 -139
- package/bundler/file-cache/storage/redis.d.ts.map +0 -1
- package/bundler/sandbox/enclave-adapter.d.ts +0 -121
- package/bundler/sandbox/enclave-adapter.d.ts.map +0 -1
- package/bundler/sandbox/executor.d.ts +0 -14
- package/bundler/sandbox/executor.d.ts.map +0 -1
- package/bundler/sandbox/policy.d.ts +0 -62
- package/bundler/sandbox/policy.d.ts.map +0 -1
- package/esm/bridge/adapters/base-adapter.d.ts +0 -104
- package/esm/bridge/adapters/base-adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/claude.adapter.d.ts +0 -67
- package/esm/bridge/adapters/claude.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/ext-apps.adapter.d.ts +0 -143
- package/esm/bridge/adapters/ext-apps.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/gemini.adapter.d.ts +0 -64
- package/esm/bridge/adapters/gemini.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/generic.adapter.d.ts +0 -56
- package/esm/bridge/adapters/generic.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/index.d.ts +0 -26
- package/esm/bridge/adapters/index.d.ts.map +0 -1
- package/esm/bridge/adapters/openai.adapter.d.ts +0 -65
- package/esm/bridge/adapters/openai.adapter.d.ts.map +0 -1
- package/esm/bridge/core/adapter-registry.d.ts +0 -122
- package/esm/bridge/core/adapter-registry.d.ts.map +0 -1
- package/esm/bridge/core/bridge-factory.d.ts +0 -199
- package/esm/bridge/core/bridge-factory.d.ts.map +0 -1
- package/esm/bridge/core/index.d.ts +0 -10
- package/esm/bridge/core/index.d.ts.map +0 -1
- package/esm/bridge/index.d.ts +0 -62
- package/esm/bridge/index.d.ts.map +0 -1
- package/esm/bridge/runtime/iife-generator.d.ts +0 -62
- package/esm/bridge/runtime/iife-generator.d.ts.map +0 -1
- package/esm/bridge/runtime/index.d.ts +0 -10
- package/esm/bridge/runtime/index.d.ts.map +0 -1
- package/esm/bridge/types.d.ts +0 -386
- package/esm/bridge/types.d.ts.map +0 -1
- package/esm/bundler/bundler.d.ts +0 -208
- package/esm/bundler/bundler.d.ts.map +0 -1
- package/esm/bundler/cache.d.ts +0 -173
- package/esm/bundler/cache.d.ts.map +0 -1
- package/esm/bundler/file-cache/component-builder.d.ts +0 -167
- package/esm/bundler/file-cache/component-builder.d.ts.map +0 -1
- package/esm/bundler/file-cache/hash-calculator.d.ts +0 -155
- package/esm/bundler/file-cache/hash-calculator.d.ts.map +0 -1
- package/esm/bundler/file-cache/index.d.ts +0 -12
- package/esm/bundler/file-cache/index.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/filesystem.d.ts +0 -149
- package/esm/bundler/file-cache/storage/filesystem.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/index.d.ts +0 -11
- package/esm/bundler/file-cache/storage/index.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/interface.d.ts +0 -152
- package/esm/bundler/file-cache/storage/interface.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/redis.d.ts +0 -139
- package/esm/bundler/file-cache/storage/redis.d.ts.map +0 -1
- package/esm/bundler/index.d.ts +0 -43
- package/esm/bundler/index.d.ts.map +0 -1
- package/esm/bundler/sandbox/enclave-adapter.d.ts +0 -121
- package/esm/bundler/sandbox/enclave-adapter.d.ts.map +0 -1
- package/esm/bundler/sandbox/executor.d.ts +0 -14
- package/esm/bundler/sandbox/executor.d.ts.map +0 -1
- package/esm/bundler/sandbox/policy.d.ts +0 -62
- package/esm/bundler/sandbox/policy.d.ts.map +0 -1
- package/esm/bundler/types.d.ts +0 -702
- package/esm/bundler/types.d.ts.map +0 -1
- package/esm/components/alert.d.ts +0 -66
- package/esm/components/alert.d.ts.map +0 -1
- package/esm/components/alert.schema.d.ts +0 -98
- package/esm/components/alert.schema.d.ts.map +0 -1
- package/esm/components/avatar.d.ts +0 -77
- package/esm/components/avatar.d.ts.map +0 -1
- package/esm/components/avatar.schema.d.ts +0 -170
- package/esm/components/avatar.schema.d.ts.map +0 -1
- package/esm/components/badge.d.ts +0 -64
- package/esm/components/badge.d.ts.map +0 -1
- package/esm/components/badge.schema.d.ts +0 -91
- package/esm/components/badge.schema.d.ts.map +0 -1
- package/esm/components/button.d.ts +0 -100
- package/esm/components/button.d.ts.map +0 -1
- package/esm/components/button.schema.d.ts +0 -120
- package/esm/components/button.schema.d.ts.map +0 -1
- package/esm/components/card.d.ts +0 -53
- package/esm/components/card.d.ts.map +0 -1
- package/esm/components/card.schema.d.ts +0 -93
- package/esm/components/card.schema.d.ts.map +0 -1
- package/esm/components/form.d.ts +0 -212
- package/esm/components/form.d.ts.map +0 -1
- package/esm/components/form.schema.d.ts +0 -365
- package/esm/components/form.schema.d.ts.map +0 -1
- package/esm/components/index.d.ts +0 -29
- package/esm/components/index.d.ts.map +0 -1
- package/esm/components/list.d.ts +0 -121
- package/esm/components/list.d.ts.map +0 -1
- package/esm/components/list.schema.d.ts +0 -129
- package/esm/components/list.schema.d.ts.map +0 -1
- package/esm/components/modal.d.ts +0 -100
- package/esm/components/modal.d.ts.map +0 -1
- package/esm/components/modal.schema.d.ts +0 -151
- package/esm/components/modal.schema.d.ts.map +0 -1
- package/esm/components/table.d.ts +0 -91
- package/esm/components/table.d.ts.map +0 -1
- package/esm/components/table.schema.d.ts +0 -123
- package/esm/components/table.schema.d.ts.map +0 -1
- package/esm/index.d.ts +0 -40
- package/esm/index.d.ts.map +0 -1
- package/esm/layouts/base.d.ts +0 -86
- package/esm/layouts/base.d.ts.map +0 -1
- package/esm/layouts/index.d.ts +0 -8
- package/esm/layouts/index.d.ts.map +0 -1
- package/esm/layouts/presets.d.ts +0 -134
- package/esm/layouts/presets.d.ts.map +0 -1
- package/esm/pages/consent.d.ts +0 -117
- package/esm/pages/consent.d.ts.map +0 -1
- package/esm/pages/error.d.ts +0 -101
- package/esm/pages/error.d.ts.map +0 -1
- package/esm/pages/index.d.ts +0 -9
- package/esm/pages/index.d.ts.map +0 -1
- package/esm/pages/index.js +0 -1036
- package/esm/react/Alert.d.ts +0 -101
- package/esm/react/Alert.d.ts.map +0 -1
- package/esm/react/Badge.d.ts +0 -100
- package/esm/react/Badge.d.ts.map +0 -1
- package/esm/react/Button.d.ts +0 -108
- package/esm/react/Button.d.ts.map +0 -1
- package/esm/react/Card.d.ts +0 -103
- package/esm/react/Card.d.ts.map +0 -1
- package/esm/react/hooks/context.d.ts +0 -179
- package/esm/react/hooks/context.d.ts.map +0 -1
- package/esm/react/hooks/index.d.ts +0 -42
- package/esm/react/hooks/index.d.ts.map +0 -1
- package/esm/react/hooks/tools.d.ts +0 -284
- package/esm/react/hooks/tools.d.ts.map +0 -1
- package/esm/react/index.d.ts +0 -80
- package/esm/react/index.d.ts.map +0 -1
- package/esm/react/index.js +0 -3124
- package/esm/react/types.d.ts +0 -105
- package/esm/react/types.d.ts.map +0 -1
- package/esm/react/utils.d.ts +0 -43
- package/esm/react/utils.d.ts.map +0 -1
- package/esm/render/index.d.ts +0 -8
- package/esm/render/index.d.ts.map +0 -1
- package/esm/render/prerender.d.ts +0 -57
- package/esm/render/prerender.d.ts.map +0 -1
- package/esm/renderers/index.d.ts +0 -21
- package/esm/renderers/index.d.ts.map +0 -1
- package/esm/renderers/index.js +0 -381
- package/esm/renderers/react.adapter.d.ts +0 -70
- package/esm/renderers/react.adapter.d.ts.map +0 -1
- package/esm/renderers/react.renderer.d.ts +0 -96
- package/esm/renderers/react.renderer.d.ts.map +0 -1
- package/esm/universal/UniversalApp.d.ts +0 -108
- package/esm/universal/UniversalApp.d.ts.map +0 -1
- package/esm/universal/cached-runtime.d.ts +0 -115
- package/esm/universal/cached-runtime.d.ts.map +0 -1
- package/esm/universal/context.d.ts +0 -122
- package/esm/universal/context.d.ts.map +0 -1
- package/esm/universal/index.d.ts +0 -57
- package/esm/universal/index.d.ts.map +0 -1
- package/esm/universal/renderers/html.renderer.d.ts +0 -37
- package/esm/universal/renderers/html.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/index.d.ts +0 -112
- package/esm/universal/renderers/index.d.ts.map +0 -1
- package/esm/universal/renderers/markdown.renderer.d.ts +0 -33
- package/esm/universal/renderers/markdown.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/mdx.renderer.d.ts +0 -38
- package/esm/universal/renderers/mdx.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/react.renderer.d.ts +0 -46
- package/esm/universal/renderers/react.renderer.d.ts.map +0 -1
- package/esm/universal/runtime-builder.d.ts +0 -33
- package/esm/universal/runtime-builder.d.ts.map +0 -1
- package/esm/universal/store.d.ts +0 -135
- package/esm/universal/store.d.ts.map +0 -1
- package/esm/universal/types.d.ts +0 -199
- package/esm/universal/types.d.ts.map +0 -1
- package/esm/web-components/core/attribute-parser.d.ts +0 -82
- package/esm/web-components/core/attribute-parser.d.ts.map +0 -1
- package/esm/web-components/core/base-element.d.ts +0 -197
- package/esm/web-components/core/base-element.d.ts.map +0 -1
- package/esm/web-components/core/index.d.ts +0 -9
- package/esm/web-components/core/index.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-alert.d.ts +0 -46
- package/esm/web-components/elements/fmcp-alert.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-badge.d.ts +0 -47
- package/esm/web-components/elements/fmcp-badge.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-button.d.ts +0 -117
- package/esm/web-components/elements/fmcp-button.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-card.d.ts +0 -53
- package/esm/web-components/elements/fmcp-card.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-input.d.ts +0 -96
- package/esm/web-components/elements/fmcp-input.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-select.d.ts +0 -100
- package/esm/web-components/elements/fmcp-select.d.ts.map +0 -1
- package/esm/web-components/elements/index.d.ts +0 -13
- package/esm/web-components/elements/index.d.ts.map +0 -1
- package/esm/web-components/index.d.ts +0 -50
- package/esm/web-components/index.d.ts.map +0 -1
- package/esm/web-components/register.d.ts +0 -57
- package/esm/web-components/register.d.ts.map +0 -1
- package/esm/web-components/types.d.ts +0 -122
- package/esm/web-components/types.d.ts.map +0 -1
- package/esm/widgets/index.d.ts +0 -8
- package/esm/widgets/index.d.ts.map +0 -1
- package/esm/widgets/index.js +0 -883
- package/esm/widgets/progress.d.ts +0 -133
- package/esm/widgets/progress.d.ts.map +0 -1
- package/esm/widgets/resource.d.ts +0 -163
- package/esm/widgets/resource.d.ts.map +0 -1
- package/pages/consent.d.ts +0 -117
- package/pages/consent.d.ts.map +0 -1
- package/pages/error.d.ts +0 -101
- package/pages/error.d.ts.map +0 -1
- package/pages/index.d.ts +0 -9
- package/pages/index.d.ts.map +0 -1
- package/pages/index.js +0 -1065
- package/react/utils.d.ts +0 -43
- package/react/utils.d.ts.map +0 -1
- package/widgets/index.d.ts +0 -8
- package/widgets/index.d.ts.map +0 -1
- package/widgets/index.js +0 -910
- package/widgets/progress.d.ts +0 -133
- package/widgets/progress.d.ts.map +0 -1
- package/widgets/resource.d.ts +0 -163
- package/widgets/resource.d.ts.map +0 -1
- /package/esm/components/{index.js → index.mjs} +0 -0
- /package/esm/render/{index.js → index.mjs} +0 -0
- /package/esm/web-components/{index.js → index.mjs} +0 -0
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Progress and Status Widgets
|
|
3
|
-
*
|
|
4
|
-
* Components for displaying progress, loading states, and status information.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Progress bar options
|
|
8
|
-
*/
|
|
9
|
-
export interface ProgressBarOptions {
|
|
10
|
-
/** Progress value (0-100) */
|
|
11
|
-
value: number;
|
|
12
|
-
/** Show percentage text */
|
|
13
|
-
showLabel?: boolean;
|
|
14
|
-
/** Label position */
|
|
15
|
-
labelPosition?: 'inside' | 'outside' | 'none';
|
|
16
|
-
/** Size */
|
|
17
|
-
size?: 'sm' | 'md' | 'lg';
|
|
18
|
-
/** Color variant */
|
|
19
|
-
variant?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
20
|
-
/** Animated (striped) */
|
|
21
|
-
animated?: boolean;
|
|
22
|
-
/** Additional CSS classes */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** Custom label */
|
|
25
|
-
label?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Build a progress bar
|
|
29
|
-
*/
|
|
30
|
-
export declare function progressBar(options: ProgressBarOptions): string;
|
|
31
|
-
/**
|
|
32
|
-
* Step definition
|
|
33
|
-
*/
|
|
34
|
-
export interface Step {
|
|
35
|
-
/** Step label */
|
|
36
|
-
label: string;
|
|
37
|
-
/** Step description */
|
|
38
|
-
description?: string;
|
|
39
|
-
/** Step status */
|
|
40
|
-
status: 'completed' | 'current' | 'upcoming';
|
|
41
|
-
/** Icon (optional) */
|
|
42
|
-
icon?: string;
|
|
43
|
-
/** URL for clickable steps */
|
|
44
|
-
href?: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Multi-step progress options
|
|
48
|
-
*/
|
|
49
|
-
export interface StepProgressOptions {
|
|
50
|
-
/** Steps */
|
|
51
|
-
steps: Step[];
|
|
52
|
-
/** Orientation */
|
|
53
|
-
orientation?: 'horizontal' | 'vertical';
|
|
54
|
-
/** Connector style */
|
|
55
|
-
connector?: 'line' | 'dashed' | 'none';
|
|
56
|
-
/** Additional CSS classes */
|
|
57
|
-
className?: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Build a multi-step progress indicator
|
|
61
|
-
*/
|
|
62
|
-
export declare function stepProgress(options: StepProgressOptions): string;
|
|
63
|
-
/**
|
|
64
|
-
* Circular progress options
|
|
65
|
-
*/
|
|
66
|
-
export interface CircularProgressOptions {
|
|
67
|
-
/** Progress value (0-100) */
|
|
68
|
-
value: number;
|
|
69
|
-
/** Size in pixels */
|
|
70
|
-
size?: number;
|
|
71
|
-
/** Stroke width */
|
|
72
|
-
strokeWidth?: number;
|
|
73
|
-
/** Color variant */
|
|
74
|
-
variant?: 'primary' | 'success' | 'warning' | 'danger';
|
|
75
|
-
/** Show percentage */
|
|
76
|
-
showLabel?: boolean;
|
|
77
|
-
/** Custom label */
|
|
78
|
-
label?: string;
|
|
79
|
-
/** Additional CSS classes */
|
|
80
|
-
className?: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Build a circular progress indicator
|
|
84
|
-
*/
|
|
85
|
-
export declare function circularProgress(options: CircularProgressOptions): string;
|
|
86
|
-
/**
|
|
87
|
-
* Status indicator options
|
|
88
|
-
*/
|
|
89
|
-
export interface StatusIndicatorOptions {
|
|
90
|
-
/** Status state */
|
|
91
|
-
status: 'online' | 'offline' | 'busy' | 'away' | 'loading' | 'error' | 'success';
|
|
92
|
-
/** Status label */
|
|
93
|
-
label?: string;
|
|
94
|
-
/** Size */
|
|
95
|
-
size?: 'sm' | 'md' | 'lg';
|
|
96
|
-
/** Show pulse animation */
|
|
97
|
-
pulse?: boolean;
|
|
98
|
-
/** Additional CSS classes */
|
|
99
|
-
className?: string;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Build a status indicator
|
|
103
|
-
*/
|
|
104
|
-
export declare function statusIndicator(options: StatusIndicatorOptions): string;
|
|
105
|
-
/**
|
|
106
|
-
* Skeleton loader options
|
|
107
|
-
*/
|
|
108
|
-
export interface SkeletonOptions {
|
|
109
|
-
/** Skeleton type */
|
|
110
|
-
type?: 'text' | 'circle' | 'rect' | 'card';
|
|
111
|
-
/** Width (CSS value) */
|
|
112
|
-
width?: string;
|
|
113
|
-
/** Height (CSS value) */
|
|
114
|
-
height?: string;
|
|
115
|
-
/** Number of text lines */
|
|
116
|
-
lines?: number;
|
|
117
|
-
/** Animated */
|
|
118
|
-
animated?: boolean;
|
|
119
|
-
/** Additional CSS classes */
|
|
120
|
-
className?: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Build a skeleton loader
|
|
124
|
-
*/
|
|
125
|
-
export declare function skeleton(options?: SkeletonOptions): string;
|
|
126
|
-
/**
|
|
127
|
-
* Build a content skeleton with avatar and text
|
|
128
|
-
*/
|
|
129
|
-
export declare function contentSkeleton(options?: {
|
|
130
|
-
animated?: boolean;
|
|
131
|
-
className?: string;
|
|
132
|
-
}): string;
|
|
133
|
-
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/widgets/progress.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB;IACrB,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IAC9C,WAAW;IACX,IAAI,CAAC,EAAE,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M,CAyC9D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,MAAM,CAWhG"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAI App SDK Resource Widgets
|
|
3
|
-
*
|
|
4
|
-
* Components for displaying resources in OpenAI's App SDK format.
|
|
5
|
-
* These widgets are designed to work with OpenAI Canvas and similar interfaces.
|
|
6
|
-
*/
|
|
7
|
-
import { type CardOptions } from '../components/card';
|
|
8
|
-
import { type BadgeVariant } from '../components/badge';
|
|
9
|
-
/**
|
|
10
|
-
* Resource type identifiers
|
|
11
|
-
*/
|
|
12
|
-
export type ResourceType = 'document' | 'image' | 'code' | 'data' | 'file' | 'link' | 'user' | 'event' | 'message' | 'task' | 'custom';
|
|
13
|
-
/**
|
|
14
|
-
* Resource metadata
|
|
15
|
-
*/
|
|
16
|
-
export interface ResourceMeta {
|
|
17
|
-
/** Creation timestamp */
|
|
18
|
-
createdAt?: string | Date;
|
|
19
|
-
/** Last modified timestamp */
|
|
20
|
-
updatedAt?: string | Date;
|
|
21
|
-
/** Author/creator */
|
|
22
|
-
author?: string;
|
|
23
|
-
/** File size (bytes) */
|
|
24
|
-
size?: number;
|
|
25
|
-
/** MIME type */
|
|
26
|
-
mimeType?: string;
|
|
27
|
-
/** Tags */
|
|
28
|
-
tags?: string[];
|
|
29
|
-
/** Custom metadata */
|
|
30
|
-
[key: string]: unknown;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Resource action
|
|
34
|
-
*/
|
|
35
|
-
export interface ResourceAction {
|
|
36
|
-
/** Action label */
|
|
37
|
-
label: string;
|
|
38
|
-
/** Action icon */
|
|
39
|
-
icon?: string;
|
|
40
|
-
/** Action URL */
|
|
41
|
-
href?: string;
|
|
42
|
-
/** HTMX attributes */
|
|
43
|
-
htmx?: {
|
|
44
|
-
get?: string;
|
|
45
|
-
post?: string;
|
|
46
|
-
delete?: string;
|
|
47
|
-
target?: string;
|
|
48
|
-
swap?: string;
|
|
49
|
-
confirm?: string;
|
|
50
|
-
};
|
|
51
|
-
/** Variant */
|
|
52
|
-
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
53
|
-
/** Disabled */
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Base resource options
|
|
58
|
-
*/
|
|
59
|
-
export interface ResourceOptions {
|
|
60
|
-
/** Resource type */
|
|
61
|
-
type: ResourceType;
|
|
62
|
-
/** Resource title */
|
|
63
|
-
title: string;
|
|
64
|
-
/** Resource description */
|
|
65
|
-
description?: string;
|
|
66
|
-
/** Resource icon */
|
|
67
|
-
icon?: string;
|
|
68
|
-
/** Resource thumbnail URL */
|
|
69
|
-
thumbnail?: string;
|
|
70
|
-
/** Resource URL */
|
|
71
|
-
url?: string;
|
|
72
|
-
/** Resource metadata */
|
|
73
|
-
meta?: ResourceMeta;
|
|
74
|
-
/** Resource status */
|
|
75
|
-
status?: {
|
|
76
|
-
label: string;
|
|
77
|
-
variant: BadgeVariant;
|
|
78
|
-
};
|
|
79
|
-
/** Available actions */
|
|
80
|
-
actions?: ResourceAction[];
|
|
81
|
-
/** Additional CSS classes */
|
|
82
|
-
className?: string;
|
|
83
|
-
/** Card options */
|
|
84
|
-
cardOptions?: Partial<CardOptions>;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Build a resource widget
|
|
88
|
-
*/
|
|
89
|
-
export declare function resourceWidget(options: ResourceOptions): string;
|
|
90
|
-
/**
|
|
91
|
-
* Resource list options
|
|
92
|
-
*/
|
|
93
|
-
export interface ResourceListOptions {
|
|
94
|
-
/** Resources to display */
|
|
95
|
-
resources: ResourceOptions[];
|
|
96
|
-
/** List title */
|
|
97
|
-
title?: string;
|
|
98
|
-
/** Empty state message */
|
|
99
|
-
emptyMessage?: string;
|
|
100
|
-
/** Grid or list layout */
|
|
101
|
-
layout?: 'list' | 'grid';
|
|
102
|
-
/** Grid columns */
|
|
103
|
-
columns?: 1 | 2 | 3 | 4;
|
|
104
|
-
/** Additional CSS classes */
|
|
105
|
-
className?: string;
|
|
106
|
-
/** Show load more button */
|
|
107
|
-
showLoadMore?: boolean;
|
|
108
|
-
/** Load more URL */
|
|
109
|
-
loadMoreUrl?: string;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Build a resource list widget
|
|
113
|
-
*/
|
|
114
|
-
export declare function resourceList(options: ResourceListOptions): string;
|
|
115
|
-
/**
|
|
116
|
-
* Build a compact resource item (for inline display)
|
|
117
|
-
*/
|
|
118
|
-
export declare function resourceItem(options: Omit<ResourceOptions, 'cardOptions'>): string;
|
|
119
|
-
/**
|
|
120
|
-
* Code preview options
|
|
121
|
-
*/
|
|
122
|
-
export interface CodePreviewOptions {
|
|
123
|
-
/** Code content */
|
|
124
|
-
code: string;
|
|
125
|
-
/** Language */
|
|
126
|
-
language?: string;
|
|
127
|
-
/** Filename */
|
|
128
|
-
filename?: string;
|
|
129
|
-
/** Show line numbers */
|
|
130
|
-
lineNumbers?: boolean;
|
|
131
|
-
/** Max height */
|
|
132
|
-
maxHeight?: string;
|
|
133
|
-
/** Copy button */
|
|
134
|
-
showCopy?: boolean;
|
|
135
|
-
/** Additional CSS classes */
|
|
136
|
-
className?: string;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Build a code preview widget
|
|
140
|
-
*/
|
|
141
|
-
export declare function codePreview(options: CodePreviewOptions): string;
|
|
142
|
-
/**
|
|
143
|
-
* Image preview options
|
|
144
|
-
*/
|
|
145
|
-
export interface ImagePreviewOptions {
|
|
146
|
-
/** Image URL */
|
|
147
|
-
src: string;
|
|
148
|
-
/** Alt text */
|
|
149
|
-
alt: string;
|
|
150
|
-
/** Caption */
|
|
151
|
-
caption?: string;
|
|
152
|
-
/** Max height */
|
|
153
|
-
maxHeight?: string;
|
|
154
|
-
/** Clickable (opens in new tab) */
|
|
155
|
-
clickable?: boolean;
|
|
156
|
-
/** Additional CSS classes */
|
|
157
|
-
className?: string;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Build an image preview widget
|
|
161
|
-
*/
|
|
162
|
-
export declare function imagePreview(options: ImagePreviewOptions): string;
|
|
163
|
-
//# sourceMappingURL=resource.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../src/widgets/resource.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAO/D;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,CAAC;AAEb;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW;IACX,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,sBAAsB;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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;IACZ,cAAc;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAsBjE"}
|
package/pages/consent.d.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OAuth Consent Page Template
|
|
3
|
-
*
|
|
4
|
-
* OAuth/OpenID Connect consent page for authorization flows.
|
|
5
|
-
*/
|
|
6
|
-
import { type ConsentLayoutOptions } from '../layouts';
|
|
7
|
-
import { type PermissionItem } from '../components/list';
|
|
8
|
-
/**
|
|
9
|
-
* Client/Application information
|
|
10
|
-
*/
|
|
11
|
-
export interface ClientInfo {
|
|
12
|
-
/** Client ID */
|
|
13
|
-
clientId: string;
|
|
14
|
-
/** Client name */
|
|
15
|
-
name: string;
|
|
16
|
-
/** Client icon/logo URL */
|
|
17
|
-
icon?: string;
|
|
18
|
-
/** Client website URL */
|
|
19
|
-
websiteUrl?: string;
|
|
20
|
-
/** Privacy policy URL */
|
|
21
|
-
privacyUrl?: string;
|
|
22
|
-
/** Terms of service URL */
|
|
23
|
-
termsUrl?: string;
|
|
24
|
-
/** Verified client badge */
|
|
25
|
-
verified?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* User information
|
|
29
|
-
*/
|
|
30
|
-
export interface UserInfo {
|
|
31
|
-
/** User ID */
|
|
32
|
-
id?: string;
|
|
33
|
-
/** User name */
|
|
34
|
-
name?: string;
|
|
35
|
-
/** User email */
|
|
36
|
-
email?: string;
|
|
37
|
-
/** Avatar URL */
|
|
38
|
-
avatar?: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Consent page options
|
|
42
|
-
*/
|
|
43
|
-
export interface ConsentPageOptions {
|
|
44
|
-
/** Client/App requesting authorization */
|
|
45
|
-
client: ClientInfo;
|
|
46
|
-
/** Current user info */
|
|
47
|
-
user?: UserInfo;
|
|
48
|
-
/** Requested permissions/scopes */
|
|
49
|
-
permissions: PermissionItem[];
|
|
50
|
-
/** Form action URL for approval */
|
|
51
|
-
approveUrl: string;
|
|
52
|
-
/** Form action URL for denial (optional, uses approveUrl if not provided) */
|
|
53
|
-
denyUrl?: string;
|
|
54
|
-
/** CSRF token */
|
|
55
|
-
csrfToken?: string;
|
|
56
|
-
/** OAuth state parameter */
|
|
57
|
-
state?: string;
|
|
58
|
-
/** Redirect URI */
|
|
59
|
-
redirectUri?: string;
|
|
60
|
-
/** Response type */
|
|
61
|
-
responseType?: string;
|
|
62
|
-
/** Nonce */
|
|
63
|
-
nonce?: string;
|
|
64
|
-
/** Code challenge */
|
|
65
|
-
codeChallenge?: string;
|
|
66
|
-
/** Code challenge method */
|
|
67
|
-
codeChallengeMethod?: string;
|
|
68
|
-
/** Error message */
|
|
69
|
-
error?: string;
|
|
70
|
-
/** Layout options */
|
|
71
|
-
layout?: Partial<ConsentLayoutOptions>;
|
|
72
|
-
/** Custom warning message */
|
|
73
|
-
warningMessage?: string;
|
|
74
|
-
/** Allow partial scope selection */
|
|
75
|
-
allowScopeSelection?: boolean;
|
|
76
|
-
/** Custom approve button text */
|
|
77
|
-
approveText?: string;
|
|
78
|
-
/** Custom deny button text */
|
|
79
|
-
denyText?: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Build an OAuth consent page
|
|
83
|
-
*/
|
|
84
|
-
export declare function consentPage(options: ConsentPageOptions): string;
|
|
85
|
-
/**
|
|
86
|
-
* Consent success page options
|
|
87
|
-
*/
|
|
88
|
-
export interface ConsentSuccessOptions {
|
|
89
|
-
/** Client info */
|
|
90
|
-
client: ClientInfo;
|
|
91
|
-
/** Redirect URL */
|
|
92
|
-
redirectUrl?: string;
|
|
93
|
-
/** Auto redirect delay (ms) */
|
|
94
|
-
autoRedirectDelay?: number;
|
|
95
|
-
/** Layout options */
|
|
96
|
-
layout?: Partial<ConsentLayoutOptions>;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Build a consent success page
|
|
100
|
-
*/
|
|
101
|
-
export declare function consentSuccessPage(options: ConsentSuccessOptions): string;
|
|
102
|
-
/**
|
|
103
|
-
* Consent denied page options
|
|
104
|
-
*/
|
|
105
|
-
export interface ConsentDeniedOptions {
|
|
106
|
-
/** Client info */
|
|
107
|
-
client: ClientInfo;
|
|
108
|
-
/** Redirect URL */
|
|
109
|
-
redirectUrl?: string;
|
|
110
|
-
/** Layout options */
|
|
111
|
-
layout?: Partial<ConsentLayoutOptions>;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Build a consent denied page
|
|
115
|
-
*/
|
|
116
|
-
export declare function consentDeniedPage(options: ConsentDeniedOptions): string;
|
|
117
|
-
//# sourceMappingURL=consent.d.ts.map
|
package/pages/consent.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../src/pages/consent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AASzE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4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C,EAAE,MAAM,CAAC;CACnB;AAMD;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,CA8K/D;AAMD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,kBAAkB;IAClB,MAAM,EAAE,UAAU,CAAC;IACnB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAwCzE;AAMD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kBAAkB;IAClB,MAAM,EAAE,UAAU,CAAC;IACnB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAkCvE"}
|
package/pages/error.d.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Page Templates
|
|
3
|
-
*
|
|
4
|
-
* Various error page templates (404, 500, etc.)
|
|
5
|
-
*/
|
|
6
|
-
import { type ErrorLayoutOptions } from '../layouts';
|
|
7
|
-
/**
|
|
8
|
-
* Error page options
|
|
9
|
-
*/
|
|
10
|
-
export interface ErrorPageOptions {
|
|
11
|
-
/** Error code (404, 500, etc.) */
|
|
12
|
-
code?: string | number;
|
|
13
|
-
/** Error title */
|
|
14
|
-
title?: string;
|
|
15
|
-
/** Error message */
|
|
16
|
-
message?: string;
|
|
17
|
-
/** Detailed error (for development) */
|
|
18
|
-
details?: string;
|
|
19
|
-
/** Show stack trace (development only) */
|
|
20
|
-
showStack?: boolean;
|
|
21
|
-
/** Stack trace */
|
|
22
|
-
stack?: string;
|
|
23
|
-
/** Show retry button */
|
|
24
|
-
showRetry?: boolean;
|
|
25
|
-
/** Retry URL */
|
|
26
|
-
retryUrl?: string;
|
|
27
|
-
/** Show home button */
|
|
28
|
-
showHome?: boolean;
|
|
29
|
-
/** Home URL */
|
|
30
|
-
homeUrl?: string;
|
|
31
|
-
/** Show back button */
|
|
32
|
-
showBack?: boolean;
|
|
33
|
-
/** Custom actions HTML */
|
|
34
|
-
actions?: string;
|
|
35
|
-
/** Layout options */
|
|
36
|
-
layout?: Partial<ErrorLayoutOptions>;
|
|
37
|
-
/** Request ID (for support) */
|
|
38
|
-
requestId?: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Build a generic error page
|
|
42
|
-
*/
|
|
43
|
-
export declare function errorPage(options: ErrorPageOptions): string;
|
|
44
|
-
/**
|
|
45
|
-
* 404 Not Found page
|
|
46
|
-
*/
|
|
47
|
-
export declare function notFoundPage(options?: Partial<ErrorPageOptions>): string;
|
|
48
|
-
/**
|
|
49
|
-
* 403 Forbidden page
|
|
50
|
-
*/
|
|
51
|
-
export declare function forbiddenPage(options?: Partial<ErrorPageOptions>): string;
|
|
52
|
-
/**
|
|
53
|
-
* 401 Unauthorized page
|
|
54
|
-
*/
|
|
55
|
-
export declare function unauthorizedPage(options?: Partial<ErrorPageOptions> & {
|
|
56
|
-
loginUrl?: string;
|
|
57
|
-
}): string;
|
|
58
|
-
/**
|
|
59
|
-
* 500 Internal Server Error page
|
|
60
|
-
*/
|
|
61
|
-
export declare function serverErrorPage(options?: Partial<ErrorPageOptions>): string;
|
|
62
|
-
/**
|
|
63
|
-
* 503 Service Unavailable page
|
|
64
|
-
*/
|
|
65
|
-
export declare function maintenancePage(options?: Partial<ErrorPageOptions> & {
|
|
66
|
-
estimatedTime?: string;
|
|
67
|
-
}): string;
|
|
68
|
-
/**
|
|
69
|
-
* 429 Rate Limit page
|
|
70
|
-
*/
|
|
71
|
-
export declare function rateLimitPage(options?: Partial<ErrorPageOptions> & {
|
|
72
|
-
retryAfter?: number;
|
|
73
|
-
}): string;
|
|
74
|
-
/**
|
|
75
|
-
* Offline page
|
|
76
|
-
*/
|
|
77
|
-
export declare function offlinePage(options?: Partial<ErrorPageOptions>): string;
|
|
78
|
-
/**
|
|
79
|
-
* Session expired page
|
|
80
|
-
*/
|
|
81
|
-
export declare function sessionExpiredPage(options?: Partial<ErrorPageOptions> & {
|
|
82
|
-
loginUrl?: string;
|
|
83
|
-
}): string;
|
|
84
|
-
/**
|
|
85
|
-
* OAuth error page options
|
|
86
|
-
*/
|
|
87
|
-
export interface OAuthErrorPageOptions extends Partial<ErrorPageOptions> {
|
|
88
|
-
/** OAuth error code */
|
|
89
|
-
errorCode?: string;
|
|
90
|
-
/** OAuth error description */
|
|
91
|
-
errorDescription?: string;
|
|
92
|
-
/** Redirect URI */
|
|
93
|
-
redirectUri?: string;
|
|
94
|
-
/** Client name */
|
|
95
|
-
clientName?: string;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* OAuth error page
|
|
99
|
-
*/
|
|
100
|
-
export declare function oauthErrorPage(options: OAuthErrorPageOptions): string;
|
|
101
|
-
//# sourceMappingURL=error.d.ts.map
|
package/pages/error.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/pages/error.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAOlE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,OAAO,CAAC,EAAE,M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AAa,CAAC,OAAO,GAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,MAAM,CAevG;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,GAAE,OAAO,CAAC,gBAAgB,CAAM,GAAG,MAAM,CAW3E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,MAAM,CAmB1G;AAMD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,OAAO,CAAC,gBAAgB,CAAC;IACtE,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CA6DrE"}
|
package/pages/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Page Templates Module
|
|
3
|
-
*
|
|
4
|
-
* Minimal page templates that complement SDK auth flows.
|
|
5
|
-
* Login/Register flows are handled by @frontmcp/sdk auth system.
|
|
6
|
-
*/
|
|
7
|
-
export { type ClientInfo, type UserInfo, type ConsentPageOptions, type ConsentSuccessOptions, type ConsentDeniedOptions, consentPage, consentSuccessPage, consentDeniedPage, } from './consent';
|
|
8
|
-
export { type ErrorPageOptions, type OAuthErrorPageOptions, errorPage, notFoundPage, forbiddenPage, unauthorizedPage, serverErrorPage, maintenancePage, rateLimitPage, offlinePage, sessionExpiredPage, oauthErrorPage, } from './error';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/pages/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pages/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,WAAW,EACX,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,SAAS,EACT,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,cAAc,GACf,MAAM,SAAS,CAAC"}
|