@rebasepro/studio 0.0.1-canary.f81da60 → 0.1.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/dist/core/src/components/BootstrapAdminBanner.d.ts +4 -0
- package/dist/core/src/components/LoginView/LoginView.d.ts +22 -0
- package/dist/core/src/components/index.d.ts +1 -0
- package/dist/core/src/hooks/index.d.ts +1 -0
- package/dist/core/src/hooks/useCollapsedGroups.d.ts +16 -1
- package/dist/core/src/hooks/useResolvedComponent.d.ts +47 -0
- package/dist/index.es.js +73 -65
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +72 -64
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/controllers/auth.d.ts +8 -2
- package/dist/types/src/controllers/client.d.ts +13 -0
- package/dist/types/src/controllers/navigation.d.ts +18 -6
- package/dist/types/src/controllers/registry.d.ts +9 -1
- package/dist/types/src/controllers/side_entity_controller.d.ts +7 -0
- package/dist/types/src/rebase_context.d.ts +17 -0
- package/dist/types/src/types/collections.d.ts +20 -1
- package/dist/types/src/types/component_ref.d.ts +47 -0
- package/dist/types/src/types/entity_views.d.ts +2 -1
- package/dist/types/src/types/index.d.ts +1 -0
- package/dist/types/src/types/properties.d.ts +15 -3
- package/dist/types/src/types/translations.d.ts +2 -0
- package/dist/ui/src/components/SearchBar.d.ts +5 -1
- package/package.json +8 -8
- package/src/components/StudioHomePage.tsx +4 -1
package/dist/index.umd.js
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
}]
|
|
85
85
|
}];
|
|
86
86
|
function StudioHomePage(t0) {
|
|
87
|
-
const $ = reactCompilerRuntime.c(
|
|
87
|
+
const $ = reactCompilerRuntime.c(30);
|
|
88
88
|
const {
|
|
89
89
|
additionalActions,
|
|
90
90
|
additionalChildrenStart,
|
|
@@ -131,20 +131,27 @@
|
|
|
131
131
|
const sectionProps = t3;
|
|
132
132
|
const pluginActions = core.useSlot("home.actions", sectionProps);
|
|
133
133
|
let t4;
|
|
134
|
-
if ($[6]
|
|
135
|
-
t4 =
|
|
134
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
135
|
+
t4 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(core.BootstrapAdminBanner, {}) });
|
|
136
|
+
$[6] = t4;
|
|
137
|
+
} else {
|
|
138
|
+
t4 = $[6];
|
|
139
|
+
}
|
|
140
|
+
let t5;
|
|
141
|
+
if ($[7] !== additionalActions || $[8] !== pluginActions) {
|
|
142
|
+
t5 = (additionalActions || pluginActions) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full sticky py-4 transition-all duration-400 ease-in-out top-0 z-10 flex flex-row gap-4 justify-end", children: [
|
|
136
143
|
additionalActions,
|
|
137
144
|
pluginActions
|
|
138
145
|
] });
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
146
|
+
$[7] = additionalActions;
|
|
147
|
+
$[8] = pluginActions;
|
|
148
|
+
$[9] = t5;
|
|
142
149
|
} else {
|
|
143
|
-
|
|
150
|
+
t5 = $[9];
|
|
144
151
|
}
|
|
145
|
-
let
|
|
146
|
-
if ($[
|
|
147
|
-
|
|
152
|
+
let t6;
|
|
153
|
+
if ($[10] !== context || $[11] !== navigate) {
|
|
154
|
+
t6 = SECTIONS.map((section) => /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": section.label, children: [
|
|
148
155
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "caption", component: "h2", color: "secondary", className: "py-2 font-medium uppercase text-sm text-surface-600 dark:text-surface-400", children: section.label }),
|
|
149
156
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 mt-2", children: section.tools.map((tool) => /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { onClick: () => {
|
|
150
157
|
navigate(tool.path);
|
|
@@ -166,43 +173,43 @@
|
|
|
166
173
|
}, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-2", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRightIcon, { className: "text-primary", size: ui.iconSize.small }) }) })
|
|
167
174
|
] }) }, tool.path)) })
|
|
168
175
|
] }, section.label));
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
} else {
|
|
173
|
-
t5 = $[11];
|
|
174
|
-
}
|
|
175
|
-
let t6;
|
|
176
|
-
if ($[12] !== t5) {
|
|
177
|
-
t6 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-8 pt-2", children: t5 });
|
|
178
|
-
$[12] = t5;
|
|
179
|
-
$[13] = t6;
|
|
176
|
+
$[10] = context;
|
|
177
|
+
$[11] = navigate;
|
|
178
|
+
$[12] = t6;
|
|
180
179
|
} else {
|
|
181
|
-
t6 = $[
|
|
180
|
+
t6 = $[12];
|
|
182
181
|
}
|
|
183
182
|
let t7;
|
|
184
|
-
if ($[
|
|
185
|
-
t7 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex
|
|
183
|
+
if ($[13] !== t6) {
|
|
184
|
+
t7 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-8 pt-2", children: t6 });
|
|
185
|
+
$[13] = t6;
|
|
186
186
|
$[14] = t7;
|
|
187
187
|
} else {
|
|
188
188
|
t7 = $[14];
|
|
189
189
|
}
|
|
190
190
|
let t8;
|
|
191
191
|
if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
192
|
-
t8 = /* @__PURE__ */ jsxRuntime.
|
|
192
|
+
t8 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center mb-1", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "caption", component: "h2", color: "secondary", className: "py-2 font-medium uppercase text-sm text-surface-600 dark:text-surface-400", children: "Quick Start" }) });
|
|
193
|
+
$[15] = t8;
|
|
194
|
+
} else {
|
|
195
|
+
t8 = $[15];
|
|
196
|
+
}
|
|
197
|
+
let t9;
|
|
198
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
199
|
+
t9 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Typography, { variant: "body2", color: "secondary", className: "mb-4 max-w-2xl", children: [
|
|
193
200
|
"Generate a fully-typed SDK from your collections with",
|
|
194
201
|
" ",
|
|
195
202
|
/* @__PURE__ */ jsxRuntime.jsx("code", { className: "text-emerald-400 font-mono text-xs bg-emerald-400/10 px-1.5 py-0.5 rounded", children: "npx rebase generate-sdk" }),
|
|
196
203
|
" ",
|
|
197
204
|
"and start querying your data with full TypeScript autocompletion."
|
|
198
205
|
] });
|
|
199
|
-
$[
|
|
206
|
+
$[16] = t9;
|
|
200
207
|
} else {
|
|
201
|
-
|
|
208
|
+
t9 = $[16];
|
|
202
209
|
}
|
|
203
|
-
let
|
|
204
|
-
if ($[
|
|
205
|
-
|
|
210
|
+
let t10;
|
|
211
|
+
if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
212
|
+
t10 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between px-4 py-2.5 border-b border-surface-200/40 dark:border-surface-700/40 bg-surface-50 dark:bg-surface-900/80", children: [
|
|
206
213
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
207
214
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-1.5", children: [
|
|
208
215
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-2.5 h-2.5 rounded-full bg-red-400/60" }),
|
|
@@ -213,61 +220,62 @@
|
|
|
213
220
|
] }),
|
|
214
221
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-mono text-surface-400 dark:text-surface-500", children: "TypeScript" })
|
|
215
222
|
] });
|
|
216
|
-
$[
|
|
223
|
+
$[17] = t10;
|
|
217
224
|
} else {
|
|
218
|
-
|
|
225
|
+
t10 = $[17];
|
|
219
226
|
}
|
|
220
|
-
let
|
|
221
|
-
if ($[
|
|
222
|
-
|
|
223
|
-
t7,
|
|
227
|
+
let t11;
|
|
228
|
+
if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
229
|
+
t11 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-10 mb-6", children: [
|
|
224
230
|
t8,
|
|
231
|
+
t9,
|
|
225
232
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-surface-200/40 dark:border-surface-700/40 bg-white dark:bg-surface-950 overflow-hidden", children: [
|
|
226
|
-
|
|
233
|
+
t10,
|
|
227
234
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-5 py-4 overflow-x-auto text-[13px] leading-6 font-mono", children: /* @__PURE__ */ jsxRuntime.jsx(SyntaxHighlightedSnippet, {}) })
|
|
228
235
|
] })
|
|
229
236
|
] });
|
|
230
|
-
$[
|
|
237
|
+
$[18] = t11;
|
|
231
238
|
} else {
|
|
232
|
-
|
|
239
|
+
t11 = $[18];
|
|
233
240
|
}
|
|
234
|
-
let
|
|
235
|
-
if ($[
|
|
236
|
-
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
241
|
+
let t12;
|
|
242
|
+
if ($[19] !== sections) {
|
|
243
|
+
t12 = sections?.map(_temp$7);
|
|
244
|
+
$[19] = sections;
|
|
245
|
+
$[20] = t12;
|
|
239
246
|
} else {
|
|
240
|
-
|
|
247
|
+
t12 = $[20];
|
|
241
248
|
}
|
|
242
|
-
let
|
|
243
|
-
if ($[
|
|
244
|
-
|
|
249
|
+
let t13;
|
|
250
|
+
if ($[21] !== additionalChildrenEnd || $[22] !== additionalChildrenStart || $[23] !== t12 || $[24] !== t5 || $[25] !== t7) {
|
|
251
|
+
t13 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Container, { maxWidth: "6xl", children: [
|
|
245
252
|
t4,
|
|
253
|
+
t5,
|
|
246
254
|
additionalChildrenStart,
|
|
247
|
-
|
|
248
|
-
t10,
|
|
255
|
+
t7,
|
|
249
256
|
t11,
|
|
257
|
+
t12,
|
|
250
258
|
additionalChildrenEnd
|
|
251
259
|
] });
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
260
|
+
$[21] = additionalChildrenEnd;
|
|
261
|
+
$[22] = additionalChildrenStart;
|
|
262
|
+
$[23] = t12;
|
|
263
|
+
$[24] = t5;
|
|
264
|
+
$[25] = t7;
|
|
265
|
+
$[26] = t13;
|
|
258
266
|
} else {
|
|
259
|
-
|
|
267
|
+
t13 = $[26];
|
|
260
268
|
}
|
|
261
|
-
let
|
|
262
|
-
if ($[
|
|
263
|
-
|
|
264
|
-
$[
|
|
265
|
-
$[27] = t12;
|
|
269
|
+
let t14;
|
|
270
|
+
if ($[27] !== containerRef || $[28] !== t13) {
|
|
271
|
+
t14 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: containerRef, className: "py-2 overflow-auto h-full w-full", children: t13 });
|
|
272
|
+
$[27] = containerRef;
|
|
266
273
|
$[28] = t13;
|
|
274
|
+
$[29] = t14;
|
|
267
275
|
} else {
|
|
268
|
-
|
|
276
|
+
t14 = $[29];
|
|
269
277
|
}
|
|
270
|
-
return
|
|
278
|
+
return t14;
|
|
271
279
|
}
|
|
272
280
|
function _temp$7(s) {
|
|
273
281
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "my-10", children: [
|