create-mcp-use-app 0.14.17 → 2.0.0-beta.0
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/README.md +2 -8
- package/dist/ansi.d.ts +9 -0
- package/dist/ansi.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1768 -629
- package/dist/prompts.d.ts +16 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/templates/blank/index.ts +4 -92
- package/dist/templates/blank/package.json +3 -12
- package/dist/templates/mcp-apps/index.ts +28 -122
- package/dist/templates/mcp-apps/package.json +7 -14
- package/dist/templates/mcp-apps/resources/product-search-result/view.tsx +26 -0
- package/dist/templates/mcp-apps/src/register.d.ts +7 -0
- package/dist/templates/mcp-apps/tsconfig.json +8 -14
- package/dist/templates/starter/index.ts +43 -80
- package/dist/templates/starter/package.json +5 -18
- package/package.json +4 -12
- package/dist/templates/mcp-apps/pnpm-workspace.yaml +0 -2
- package/dist/templates/mcp-apps/resources/product-search-result/components/Accordion.tsx +0 -35
- package/dist/templates/mcp-apps/resources/product-search-result/components/AccordionItem.tsx +0 -32
- package/dist/templates/mcp-apps/resources/product-search-result/components/Carousel.tsx +0 -51
- package/dist/templates/mcp-apps/resources/product-search-result/components/CarouselItem.tsx +0 -54
- package/dist/templates/mcp-apps/resources/product-search-result/components/CarouselSkeleton.tsx +0 -20
- package/dist/templates/mcp-apps/resources/product-search-result/hooks/useCarouselAnimation.ts +0 -78
- package/dist/templates/mcp-apps/resources/product-search-result/types.ts +0 -20
- package/dist/templates/mcp-apps/resources/product-search-result/widget.tsx +0 -288
- package/dist/templates/mcp-apps/resources/styles.css +0 -117
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
@import "@openai/apps-sdk-ui/css";
|
|
3
|
-
|
|
4
|
-
/* Configure Tailwind v4 to scan for classes */
|
|
5
|
-
@source "../node_modules/@openai/apps-sdk-ui";
|
|
6
|
-
@source "./**/*.{ts,tsx,js,jsx,html}";
|
|
7
|
-
|
|
8
|
-
@theme {
|
|
9
|
-
/* Enable class-based dark mode */
|
|
10
|
-
--color-scheme: light dark;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@variant dark (&:where(.dark, .dark *));
|
|
14
|
-
|
|
15
|
-
/* Custom styles */
|
|
16
|
-
body {
|
|
17
|
-
margin: 0;
|
|
18
|
-
font-family:
|
|
19
|
-
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
|
|
20
|
-
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
21
|
-
-webkit-font-smoothing: antialiased;
|
|
22
|
-
-moz-osx-font-smoothing: grayscale;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
h1,
|
|
26
|
-
h2,
|
|
27
|
-
h3,
|
|
28
|
-
h4,
|
|
29
|
-
h5,
|
|
30
|
-
h6 {
|
|
31
|
-
@apply text-default;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
p {
|
|
35
|
-
@apply text-secondary;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
a {
|
|
39
|
-
@apply text-info;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Carousel scroll container with padding for blur effect */
|
|
43
|
-
.carousel-scroll-container {
|
|
44
|
-
padding-bottom: 2rem;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* Hover effect styles for carousel items */
|
|
48
|
-
.carousel-item {
|
|
49
|
-
position: relative;
|
|
50
|
-
container-type: size;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
transition-property: translate, scale;
|
|
53
|
-
transition-duration: 0.12s;
|
|
54
|
-
transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
55
|
-
-webkit-tap-highlight-color: transparent;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
border-radius: 12px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.carousel-item:active {
|
|
61
|
-
translate: 0 1px;
|
|
62
|
-
scale: 0.99;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.carousel-item-content {
|
|
66
|
-
position: relative;
|
|
67
|
-
z-index: 2;
|
|
68
|
-
width: 100%;
|
|
69
|
-
height: 100%;
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.carousel-item-bg {
|
|
76
|
-
position: absolute;
|
|
77
|
-
inset: 0;
|
|
78
|
-
display: grid;
|
|
79
|
-
place-items: center;
|
|
80
|
-
transform: translateZ(0);
|
|
81
|
-
filter: blur(28px) saturate(5) brightness(1.3);
|
|
82
|
-
translate: calc(var(--pointer-x, -10) * 50cqi)
|
|
83
|
-
calc(var(--pointer-y, -10) * 50cqh);
|
|
84
|
-
scale: var(--icon-scale, 3.4);
|
|
85
|
-
opacity: var(--icon-opacity, 0.25);
|
|
86
|
-
will-change: transform, filter, opacity;
|
|
87
|
-
pointer-events: none;
|
|
88
|
-
z-index: 1;
|
|
89
|
-
transition:
|
|
90
|
-
opacity 0.26s ease-out,
|
|
91
|
-
scale 0.26s ease-out;
|
|
92
|
-
border-radius: inherit;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.carousel-item-bg img {
|
|
96
|
-
width: 100px;
|
|
97
|
-
-webkit-user-select: none;
|
|
98
|
-
user-select: none;
|
|
99
|
-
-webkit-user-drag: none;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.carousel-item::after {
|
|
103
|
-
content: "";
|
|
104
|
-
position: absolute;
|
|
105
|
-
pointer-events: none;
|
|
106
|
-
inset: 0px;
|
|
107
|
-
border-radius: inherit;
|
|
108
|
-
border: 3px solid transparent;
|
|
109
|
-
backdrop-filter: blur(0px) saturate(4.2) brightness(2.5) contrast(2.5);
|
|
110
|
-
-webkit-backdrop-filter: blur(0px) saturate(4.2) brightness(2.5) contrast(2.5);
|
|
111
|
-
mask:
|
|
112
|
-
linear-gradient(#fff 0 100%) border-box,
|
|
113
|
-
linear-gradient(#fff 0 100%) padding-box;
|
|
114
|
-
mask-composite: exclude;
|
|
115
|
-
z-index: 3;
|
|
116
|
-
transform: translateZ(0);
|
|
117
|
-
}
|