@motiadev/plugin-endpoint 0.7.2-beta.135-745094
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/LICENSE +21 -0
- package/README.md +34 -0
- package/dist/endpoint-badge.d.ts +11 -0
- package/dist/endpoint-badge.d.ts.map +1 -0
- package/dist/endpoint-badge.js +23 -0
- package/dist/endpoint-badge.js.map +1 -0
- package/dist/endpoint-body-panel.d.ts +14 -0
- package/dist/endpoint-body-panel.d.ts.map +1 -0
- package/dist/endpoint-body-panel.js +17 -0
- package/dist/endpoint-body-panel.js.map +1 -0
- package/dist/endpoint-call.d.ts +8 -0
- package/dist/endpoint-call.d.ts.map +1 -0
- package/dist/endpoint-call.js +59 -0
- package/dist/endpoint-call.js.map +1 -0
- package/dist/endpoint-description.d.ts +8 -0
- package/dist/endpoint-description.d.ts.map +1 -0
- package/dist/endpoint-description.js +14 -0
- package/dist/endpoint-description.js.map +1 -0
- package/dist/endpoint-path-params-panel.d.ts +9 -0
- package/dist/endpoint-path-params-panel.d.ts.map +1 -0
- package/dist/endpoint-path-params-panel.js +18 -0
- package/dist/endpoint-path-params-panel.js.map +1 -0
- package/dist/endpoint-query-params-panel.d.ts +9 -0
- package/dist/endpoint-query-params-panel.d.ts.map +1 -0
- package/dist/endpoint-query-params-panel.js +17 -0
- package/dist/endpoint-query-params-panel.js.map +1 -0
- package/dist/endpoint-response-schema.d.ts +11 -0
- package/dist/endpoint-response-schema.d.ts.map +1 -0
- package/dist/endpoint-response-schema.js +18 -0
- package/dist/endpoint-response-schema.js.map +1 -0
- package/dist/endpoint-response.d.ts +9 -0
- package/dist/endpoint-response.d.ts.map +1 -0
- package/dist/endpoint-response.js +51 -0
- package/dist/endpoint-response.js.map +1 -0
- package/dist/endpoint-side-panel.d.ts +9 -0
- package/dist/endpoint-side-panel.d.ts.map +1 -0
- package/dist/endpoint-side-panel.js +26 -0
- package/dist/endpoint-side-panel.js.map +1 -0
- package/dist/endpoints-page.d.ts +2 -0
- package/dist/endpoints-page.d.ts.map +1 -0
- package/dist/endpoints-page.js +15 -0
- package/dist/endpoints-page.js.map +1 -0
- package/dist/hooks/use-get-endpoints.d.ts +3 -0
- package/dist/hooks/use-get-endpoints.d.ts.map +1 -0
- package/dist/hooks/use-get-endpoints.js +9 -0
- package/dist/hooks/use-get-endpoints.js.map +1 -0
- package/dist/hooks/use-global-store.d.ts +27 -0
- package/dist/hooks/use-global-store.d.ts.map +1 -0
- package/dist/hooks/use-global-store.js +21 -0
- package/dist/hooks/use-global-store.js.map +1 -0
- package/dist/hooks/use-json-schema-to-json.d.ts +5 -0
- package/dist/hooks/use-json-schema-to-json.d.ts.map +1 -0
- package/dist/hooks/use-json-schema-to-json.js +12 -0
- package/dist/hooks/use-json-schema-to-json.js.map +1 -0
- package/dist/hooks/use-path-params.d.ts +2 -0
- package/dist/hooks/use-path-params.d.ts.map +1 -0
- package/dist/hooks/use-path-params.js +5 -0
- package/dist/hooks/use-path-params.js.map +1 -0
- package/dist/hooks/use-state-stream.d.ts +8 -0
- package/dist/hooks/use-state-stream.d.ts.map +1 -0
- package/dist/hooks/use-state-stream.js +12 -0
- package/dist/hooks/use-state-stream.js.map +1 -0
- package/dist/hooks/utils.d.ts +2 -0
- package/dist/hooks/utils.d.ts.map +1 -0
- package/dist/hooks/utils.js +30 -0
- package/dist/hooks/utils.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/json-editor.d.ts +13 -0
- package/dist/json-editor.d.ts.map +1 -0
- package/dist/json-editor.js +36 -0
- package/dist/json-editor.js.map +1 -0
- package/dist/response-body.d.ts +8 -0
- package/dist/response-body.d.ts.map +1 -0
- package/dist/response-body.js +7 -0
- package/dist/response-body.js.map +1 -0
- package/dist/stores/use-global-store.d.ts +27 -0
- package/dist/stores/use-global-store.d.ts.map +1 -0
- package/dist/stores/use-global-store.js +21 -0
- package/dist/stores/use-global-store.js.map +1 -0
- package/dist/stores/use-theme-store.d.ts +19 -0
- package/dist/stores/use-theme-store.d.ts.map +1 -0
- package/dist/stores/use-theme-store.js +27 -0
- package/dist/stores/use-theme-store.js.map +1 -0
- package/dist/styles.css +448 -0
- package/dist/types/endpoint.d.ts +15 -0
- package/dist/types/endpoint.d.ts.map +1 -0
- package/dist/types/endpoint.js +2 -0
- package/dist/types/endpoint.js.map +1 -0
- package/package.json +45 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
|
7
|
+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
8
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
9
|
+
"Courier New", monospace;
|
|
10
|
+
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
11
|
+
--color-yellow-100: oklch(97.3% 0.071 103.193);
|
|
12
|
+
--color-yellow-500: oklch(79.5% 0.184 86.047);
|
|
13
|
+
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
14
|
+
--color-blue-100: oklch(93.2% 0.032 255.585);
|
|
15
|
+
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
16
|
+
--color-purple-100: oklch(94.6% 0.033 307.174);
|
|
17
|
+
--color-purple-500: oklch(62.7% 0.265 303.9);
|
|
18
|
+
--color-black: #000;
|
|
19
|
+
--color-white: #fff;
|
|
20
|
+
--spacing: 0.25rem;
|
|
21
|
+
--text-xs: 0.75rem;
|
|
22
|
+
--text-xs--line-height: calc(1 / 0.75);
|
|
23
|
+
--text-sm: 0.875rem;
|
|
24
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
25
|
+
--font-weight-medium: 500;
|
|
26
|
+
--font-weight-bold: 700;
|
|
27
|
+
--radius-lg: 0.5rem;
|
|
28
|
+
--animate-spin: spin 1s linear infinite;
|
|
29
|
+
--default-transition-duration: 150ms;
|
|
30
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
31
|
+
--default-font-family: var(--font-sans);
|
|
32
|
+
--default-mono-font-family: var(--font-mono);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@layer base {
|
|
36
|
+
*, ::after, ::before, ::backdrop, ::file-selector-button {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0;
|
|
40
|
+
border: 0 solid;
|
|
41
|
+
}
|
|
42
|
+
html, :host {
|
|
43
|
+
line-height: 1.5;
|
|
44
|
+
-webkit-text-size-adjust: 100%;
|
|
45
|
+
tab-size: 4;
|
|
46
|
+
font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
47
|
+
font-feature-settings: var(--default-font-feature-settings, normal);
|
|
48
|
+
font-variation-settings: var(--default-font-variation-settings, normal);
|
|
49
|
+
-webkit-tap-highlight-color: transparent;
|
|
50
|
+
}
|
|
51
|
+
hr {
|
|
52
|
+
height: 0;
|
|
53
|
+
color: inherit;
|
|
54
|
+
border-top-width: 1px;
|
|
55
|
+
}
|
|
56
|
+
abbr:where([title]) {
|
|
57
|
+
-webkit-text-decoration: underline dotted;
|
|
58
|
+
text-decoration: underline dotted;
|
|
59
|
+
}
|
|
60
|
+
h1, h2, h3, h4, h5, h6 {
|
|
61
|
+
font-size: inherit;
|
|
62
|
+
font-weight: inherit;
|
|
63
|
+
}
|
|
64
|
+
a {
|
|
65
|
+
color: inherit;
|
|
66
|
+
-webkit-text-decoration: inherit;
|
|
67
|
+
text-decoration: inherit;
|
|
68
|
+
}
|
|
69
|
+
b, strong {
|
|
70
|
+
font-weight: bolder;
|
|
71
|
+
}
|
|
72
|
+
code, kbd, samp, pre {
|
|
73
|
+
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
74
|
+
font-feature-settings: var(--default-mono-font-feature-settings, normal);
|
|
75
|
+
font-variation-settings: var(--default-mono-font-variation-settings, normal);
|
|
76
|
+
font-size: 1em;
|
|
77
|
+
}
|
|
78
|
+
small {
|
|
79
|
+
font-size: 80%;
|
|
80
|
+
}
|
|
81
|
+
sub, sup {
|
|
82
|
+
font-size: 75%;
|
|
83
|
+
line-height: 0;
|
|
84
|
+
position: relative;
|
|
85
|
+
vertical-align: baseline;
|
|
86
|
+
}
|
|
87
|
+
sub {
|
|
88
|
+
bottom: -0.25em;
|
|
89
|
+
}
|
|
90
|
+
sup {
|
|
91
|
+
top: -0.5em;
|
|
92
|
+
}
|
|
93
|
+
table {
|
|
94
|
+
text-indent: 0;
|
|
95
|
+
border-color: inherit;
|
|
96
|
+
border-collapse: collapse;
|
|
97
|
+
}
|
|
98
|
+
:-moz-focusring {
|
|
99
|
+
outline: auto;
|
|
100
|
+
}
|
|
101
|
+
progress {
|
|
102
|
+
vertical-align: baseline;
|
|
103
|
+
}
|
|
104
|
+
summary {
|
|
105
|
+
display: list-item;
|
|
106
|
+
}
|
|
107
|
+
ol, ul, menu {
|
|
108
|
+
list-style: none;
|
|
109
|
+
}
|
|
110
|
+
img, svg, video, canvas, audio, iframe, embed, object {
|
|
111
|
+
display: block;
|
|
112
|
+
vertical-align: middle;
|
|
113
|
+
}
|
|
114
|
+
img, video {
|
|
115
|
+
max-width: 100%;
|
|
116
|
+
height: auto;
|
|
117
|
+
}
|
|
118
|
+
button, input, select, optgroup, textarea, ::file-selector-button {
|
|
119
|
+
font: inherit;
|
|
120
|
+
font-feature-settings: inherit;
|
|
121
|
+
font-variation-settings: inherit;
|
|
122
|
+
letter-spacing: inherit;
|
|
123
|
+
color: inherit;
|
|
124
|
+
border-radius: 0;
|
|
125
|
+
background-color: transparent;
|
|
126
|
+
opacity: 1;
|
|
127
|
+
}
|
|
128
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
129
|
+
font-weight: bolder;
|
|
130
|
+
}
|
|
131
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
132
|
+
padding-inline-start: 20px;
|
|
133
|
+
}
|
|
134
|
+
::file-selector-button {
|
|
135
|
+
margin-inline-end: 4px;
|
|
136
|
+
}
|
|
137
|
+
::placeholder {
|
|
138
|
+
opacity: 1;
|
|
139
|
+
}
|
|
140
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
|
|
141
|
+
::placeholder {
|
|
142
|
+
color: currentcolor;
|
|
143
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
144
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
textarea {
|
|
149
|
+
resize: vertical;
|
|
150
|
+
}
|
|
151
|
+
::-webkit-search-decoration {
|
|
152
|
+
-webkit-appearance: none;
|
|
153
|
+
}
|
|
154
|
+
::-webkit-date-and-time-value {
|
|
155
|
+
min-height: 1lh;
|
|
156
|
+
text-align: inherit;
|
|
157
|
+
}
|
|
158
|
+
::-webkit-datetime-edit {
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
}
|
|
161
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
162
|
+
padding: 0;
|
|
163
|
+
}
|
|
164
|
+
::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
|
|
165
|
+
padding-block: 0;
|
|
166
|
+
}
|
|
167
|
+
::-webkit-calendar-picker-indicator {
|
|
168
|
+
line-height: 1;
|
|
169
|
+
}
|
|
170
|
+
:-moz-ui-invalid {
|
|
171
|
+
box-shadow: none;
|
|
172
|
+
}
|
|
173
|
+
button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
|
|
174
|
+
appearance: button;
|
|
175
|
+
}
|
|
176
|
+
::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
|
|
177
|
+
height: auto;
|
|
178
|
+
}
|
|
179
|
+
[hidden]:where(:not([hidden="until-found"])) {
|
|
180
|
+
display: none !important;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
@layer utilities {
|
|
184
|
+
.absolute {
|
|
185
|
+
position: absolute;
|
|
186
|
+
}
|
|
187
|
+
.relative {
|
|
188
|
+
position: relative;
|
|
189
|
+
}
|
|
190
|
+
.inset-0 {
|
|
191
|
+
inset: calc(var(--spacing) * 0);
|
|
192
|
+
}
|
|
193
|
+
.col-span-2 {
|
|
194
|
+
grid-column: span 2 / span 2;
|
|
195
|
+
}
|
|
196
|
+
.mt-2 {
|
|
197
|
+
margin-top: calc(var(--spacing) * 2);
|
|
198
|
+
}
|
|
199
|
+
.mr-2 {
|
|
200
|
+
margin-right: calc(var(--spacing) * 2);
|
|
201
|
+
}
|
|
202
|
+
.flex {
|
|
203
|
+
display: flex;
|
|
204
|
+
}
|
|
205
|
+
.grid {
|
|
206
|
+
display: grid;
|
|
207
|
+
}
|
|
208
|
+
.inline-block {
|
|
209
|
+
display: inline-block;
|
|
210
|
+
}
|
|
211
|
+
.h-2 {
|
|
212
|
+
height: calc(var(--spacing) * 2);
|
|
213
|
+
}
|
|
214
|
+
.h-4 {
|
|
215
|
+
height: calc(var(--spacing) * 4);
|
|
216
|
+
}
|
|
217
|
+
.w-2 {
|
|
218
|
+
width: calc(var(--spacing) * 2);
|
|
219
|
+
}
|
|
220
|
+
.w-4 {
|
|
221
|
+
width: calc(var(--spacing) * 4);
|
|
222
|
+
}
|
|
223
|
+
.w-fit {
|
|
224
|
+
width: fit-content;
|
|
225
|
+
}
|
|
226
|
+
.w-full {
|
|
227
|
+
width: 100%;
|
|
228
|
+
}
|
|
229
|
+
.flex-1 {
|
|
230
|
+
flex: 1;
|
|
231
|
+
}
|
|
232
|
+
.animate-\[ping_1\.5s_ease-in-out_infinite\] {
|
|
233
|
+
animation: ping 1.5s ease-in-out infinite;
|
|
234
|
+
}
|
|
235
|
+
.animate-spin {
|
|
236
|
+
animation: var(--animate-spin);
|
|
237
|
+
}
|
|
238
|
+
.cursor-pointer {
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
}
|
|
241
|
+
.flex-col {
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
}
|
|
244
|
+
.flex-row {
|
|
245
|
+
flex-direction: row;
|
|
246
|
+
}
|
|
247
|
+
.items-center {
|
|
248
|
+
align-items: center;
|
|
249
|
+
}
|
|
250
|
+
.justify-between {
|
|
251
|
+
justify-content: space-between;
|
|
252
|
+
}
|
|
253
|
+
.gap-2 {
|
|
254
|
+
gap: calc(var(--spacing) * 2);
|
|
255
|
+
}
|
|
256
|
+
.gap-3 {
|
|
257
|
+
gap: calc(var(--spacing) * 3);
|
|
258
|
+
}
|
|
259
|
+
.space-y-3 {
|
|
260
|
+
:where(& > :not(:last-child)) {
|
|
261
|
+
--tw-space-y-reverse: 0;
|
|
262
|
+
margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
|
|
263
|
+
margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
.justify-self-end {
|
|
267
|
+
justify-self: flex-end;
|
|
268
|
+
}
|
|
269
|
+
.truncate {
|
|
270
|
+
overflow: hidden;
|
|
271
|
+
text-overflow: ellipsis;
|
|
272
|
+
white-space: nowrap;
|
|
273
|
+
}
|
|
274
|
+
.overflow-y-auto {
|
|
275
|
+
overflow-y: auto;
|
|
276
|
+
}
|
|
277
|
+
.rounded-full {
|
|
278
|
+
border-radius: calc(infinity * 1px);
|
|
279
|
+
}
|
|
280
|
+
.rounded-lg {
|
|
281
|
+
border-radius: var(--radius-lg);
|
|
282
|
+
}
|
|
283
|
+
.border {
|
|
284
|
+
border-style: var(--tw-border-style);
|
|
285
|
+
border-width: 1px;
|
|
286
|
+
}
|
|
287
|
+
.border-t {
|
|
288
|
+
border-top-style: var(--tw-border-style);
|
|
289
|
+
border-top-width: 1px;
|
|
290
|
+
}
|
|
291
|
+
.bg-\[\#258DC3\]\/15 {
|
|
292
|
+
background-color: color-mix(in oklab, #258DC3 15%, transparent);
|
|
293
|
+
}
|
|
294
|
+
.bg-\[\#709A2D\]\/15 {
|
|
295
|
+
background-color: color-mix(in oklab, #709A2D 15%, transparent);
|
|
296
|
+
}
|
|
297
|
+
.bg-\[\#DE2134\]\/15 {
|
|
298
|
+
background-color: color-mix(in oklab, #DE2134 15%, transparent);
|
|
299
|
+
}
|
|
300
|
+
.bg-blue-500\/50 {
|
|
301
|
+
background-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 50%, transparent);
|
|
302
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
303
|
+
background-color: color-mix(in oklab, var(--color-blue-500) 50%, transparent);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
.bg-green-500 {
|
|
307
|
+
background-color: var(--color-green-500);
|
|
308
|
+
}
|
|
309
|
+
.bg-purple-500\/50 {
|
|
310
|
+
background-color: color-mix(in srgb, oklch(62.7% 0.265 303.9) 50%, transparent);
|
|
311
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
312
|
+
background-color: color-mix(in oklab, var(--color-purple-500) 50%, transparent);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
.bg-transparent {
|
|
316
|
+
background-color: transparent;
|
|
317
|
+
}
|
|
318
|
+
.bg-white\/50 {
|
|
319
|
+
background-color: color-mix(in srgb, #fff 50%, transparent);
|
|
320
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
321
|
+
background-color: color-mix(in oklab, var(--color-white) 50%, transparent);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
.bg-yellow-500\/50 {
|
|
325
|
+
background-color: color-mix(in srgb, oklch(79.5% 0.184 86.047) 50%, transparent);
|
|
326
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
327
|
+
background-color: color-mix(in oklab, var(--color-yellow-500) 50%, transparent);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
.p-0 {
|
|
331
|
+
padding: calc(var(--spacing) * 0);
|
|
332
|
+
}
|
|
333
|
+
.p-2 {
|
|
334
|
+
padding: calc(var(--spacing) * 2);
|
|
335
|
+
}
|
|
336
|
+
.px-2 {
|
|
337
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
338
|
+
}
|
|
339
|
+
.py-1 {
|
|
340
|
+
padding-block: calc(var(--spacing) * 1);
|
|
341
|
+
}
|
|
342
|
+
.font-mono {
|
|
343
|
+
font-family: var(--font-mono);
|
|
344
|
+
}
|
|
345
|
+
.text-sm {
|
|
346
|
+
font-size: var(--text-sm);
|
|
347
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
348
|
+
}
|
|
349
|
+
.text-xs {
|
|
350
|
+
font-size: var(--text-xs);
|
|
351
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
352
|
+
}
|
|
353
|
+
.leading-\[36px\] {
|
|
354
|
+
--tw-leading: 36px;
|
|
355
|
+
line-height: 36px;
|
|
356
|
+
}
|
|
357
|
+
.font-bold {
|
|
358
|
+
--tw-font-weight: var(--font-weight-bold);
|
|
359
|
+
font-weight: var(--font-weight-bold);
|
|
360
|
+
}
|
|
361
|
+
.font-medium {
|
|
362
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
363
|
+
font-weight: var(--font-weight-medium);
|
|
364
|
+
}
|
|
365
|
+
.whitespace-nowrap {
|
|
366
|
+
white-space: nowrap;
|
|
367
|
+
}
|
|
368
|
+
.whitespace-pre-wrap {
|
|
369
|
+
white-space: pre-wrap;
|
|
370
|
+
}
|
|
371
|
+
.text-\[\#258DC3\] {
|
|
372
|
+
color: #258DC3;
|
|
373
|
+
}
|
|
374
|
+
.text-\[\#709A2D\] {
|
|
375
|
+
color: #709A2D;
|
|
376
|
+
}
|
|
377
|
+
.text-\[\#DE2134\] {
|
|
378
|
+
color: #DE2134;
|
|
379
|
+
}
|
|
380
|
+
.text-blue-100 {
|
|
381
|
+
color: var(--color-blue-100);
|
|
382
|
+
}
|
|
383
|
+
.text-purple-100 {
|
|
384
|
+
color: var(--color-purple-100);
|
|
385
|
+
}
|
|
386
|
+
.text-red-500 {
|
|
387
|
+
color: var(--color-red-500);
|
|
388
|
+
}
|
|
389
|
+
.text-yellow-100 {
|
|
390
|
+
color: var(--color-yellow-100);
|
|
391
|
+
}
|
|
392
|
+
.transition-colors {
|
|
393
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
394
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
395
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
396
|
+
}
|
|
397
|
+
.select-none {
|
|
398
|
+
-webkit-user-select: none;
|
|
399
|
+
user-select: none;
|
|
400
|
+
}
|
|
401
|
+
.dark\:bg-black\/50 {
|
|
402
|
+
@media (prefers-color-scheme: dark) {
|
|
403
|
+
background-color: color-mix(in srgb, #000 50%, transparent);
|
|
404
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
405
|
+
background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
@property --tw-space-y-reverse {
|
|
411
|
+
syntax: "*";
|
|
412
|
+
inherits: false;
|
|
413
|
+
initial-value: 0;
|
|
414
|
+
}
|
|
415
|
+
@property --tw-border-style {
|
|
416
|
+
syntax: "*";
|
|
417
|
+
inherits: false;
|
|
418
|
+
initial-value: solid;
|
|
419
|
+
}
|
|
420
|
+
@property --tw-leading {
|
|
421
|
+
syntax: "*";
|
|
422
|
+
inherits: false;
|
|
423
|
+
}
|
|
424
|
+
@property --tw-font-weight {
|
|
425
|
+
syntax: "*";
|
|
426
|
+
inherits: false;
|
|
427
|
+
}
|
|
428
|
+
@keyframes spin {
|
|
429
|
+
to {
|
|
430
|
+
transform: rotate(360deg);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
@keyframes ping {
|
|
434
|
+
75%, 100% {
|
|
435
|
+
transform: scale(2);
|
|
436
|
+
opacity: 0;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
@layer properties {
|
|
440
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
441
|
+
*, ::before, ::after, ::backdrop {
|
|
442
|
+
--tw-space-y-reverse: 0;
|
|
443
|
+
--tw-border-style: solid;
|
|
444
|
+
--tw-leading: initial;
|
|
445
|
+
--tw-font-weight: initial;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type ApiRouteMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS' | 'HEAD';
|
|
2
|
+
export type QueryParam = {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
};
|
|
6
|
+
export type ApiEndpoint = {
|
|
7
|
+
id: string;
|
|
8
|
+
method: ApiRouteMethod;
|
|
9
|
+
path: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
queryParams?: QueryParam[];
|
|
12
|
+
responseSchema?: Record<string, any>;
|
|
13
|
+
bodySchema?: Record<string, Record<string, any>>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=endpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../src/types/endpoint.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAC7F,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9D,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;CACjD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../src/types/endpoint.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@motiadev/plugin-endpoint",
|
|
3
|
+
"version": "0.7.2-beta.135-745094",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/index.js",
|
|
9
|
+
"./styles.css": "./dist/styles.css"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"class-variance-authority": "^0.7.1",
|
|
16
|
+
"tailwind-merge": "^3.3.1",
|
|
17
|
+
"clsx": "^2.1.1",
|
|
18
|
+
"@monaco-editor/react": "^4.7.0",
|
|
19
|
+
"lucide-react": "^0.544.0",
|
|
20
|
+
"react18-json-view": "^0.2.9",
|
|
21
|
+
"json-schema": "^0.4.0",
|
|
22
|
+
"zustand": "^5.0.8",
|
|
23
|
+
"@motiadev/ui": "0.7.2-beta.135-745094",
|
|
24
|
+
"@motiadev/stream-client-react": "0.7.2-beta.135-745094"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/json-schema": "^7.0.15",
|
|
28
|
+
"react": "^19.1.1",
|
|
29
|
+
"@types/react": "^19.1.13",
|
|
30
|
+
"typescript": "^5.9.2",
|
|
31
|
+
"@types/node": "^24.5.2",
|
|
32
|
+
"@tailwindcss/postcss": "^4.1.13",
|
|
33
|
+
"tailwindcss": "^4.1.13",
|
|
34
|
+
"postcss": "^8.5.6",
|
|
35
|
+
"postcss-cli": "^11.0.1"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "npm run build:css && tsc",
|
|
39
|
+
"build:css": "postcss src/styles.css -o dist/styles.css",
|
|
40
|
+
"dev": "npm run build:css && npm run dev:parallel",
|
|
41
|
+
"dev:parallel": "npm run dev:css & tsc --watch",
|
|
42
|
+
"dev:css": "postcss src/styles.css -o dist/styles.css --watch",
|
|
43
|
+
"clean": "rm -rf dist"
|
|
44
|
+
}
|
|
45
|
+
}
|