alinea 2.0.0-preview.1 → 2.0.0-preview.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/dist/.init/content/pages/welcome.json +1 -1
- package/dist/LICENSES.md +34 -7
- package/dist/adapter/next/DevRemote.d.ts +3 -0
- package/dist/adapter/next/DevRemote.js +37 -0
- package/dist/adapter/next/ForwardCredentials.d.ts +1 -0
- package/dist/adapter/next/ForwardCredentials.js +17 -0
- package/dist/adapter/next/cms.js +86 -38
- package/dist/adapter/next/context.d.ts +1 -1
- package/dist/adapter/next/context.js +11 -3
- package/dist/adapter/next/handler.d.ts +2 -0
- package/dist/adapter/next/handler.js +23 -16
- package/dist/adapter/next/previews.js +3 -1
- package/dist/adapter/next/previews.spec.d.ts +1 -0
- package/dist/adapter/next/with-alinea.js +18 -16
- package/dist/backend/Handler.d.ts +14 -13
- package/dist/backend/Handler.js +53 -22
- package/dist/backend/resolver/ParsePreview.d.ts +8 -4
- package/dist/backend/resolver/ParsePreview.js +40 -43
- package/dist/bundled.d.ts +318 -77
- package/dist/chunks/{chunk-LUBOGJCG.js → chunk-6V4TAD2N.js} +1 -1
- package/dist/chunks/{chunk-TL7ZW6BX.js → chunk-A3XXZBOQ.js} +2535 -2999
- package/dist/chunks/chunk-AC5ATYI3.js +1434 -0
- package/dist/chunks/{chunk-FRYHNUEK.js → chunk-HFBZMKIN.js} +6 -3
- package/dist/chunks/{chunk-7ORQ7BYK.js → chunk-KMLLLZ6X.js} +202 -269
- package/dist/chunks/{chunk-IWN3T3FL.js → chunk-O7XWTMCB.js} +1 -1
- package/dist/chunks/{chunk-53DZYORR.js → chunk-PAYSVIYI.js} +76 -176
- package/dist/chunks/{chunk-YK3OSMDM.js → chunk-S4AU6SRS.js} +188 -158
- package/dist/chunks/{chunk-I7X64JTZ.js → chunk-VXZM6V4P.js} +4 -4
- package/dist/cli/Generate.js +3 -13
- package/dist/cli/Serve.js +7 -3
- package/dist/cli/bin.js +8 -5
- package/dist/cli/generate/CopyStaticFiles.js +2 -3
- package/dist/cli/generate/DevDB.d.ts +1 -1
- package/dist/cli/generate/DevDB.js +3 -5
- package/dist/cli/serve/CreateLocalServer.d.ts +1 -1
- package/dist/cli/serve/CreateLocalServer.js +3 -2
- package/dist/cli/serve/DevServer.d.ts +3 -2
- package/dist/cli/serve/DevServer.js +60 -3
- package/dist/cli/serve/ServeContext.d.ts +1 -0
- package/dist/cli/serve/StartServer.d.ts +1 -0
- package/dist/cli/serve/StartServer.js +6 -1
- package/dist/cli/util/EnsureLibs.js +2 -2
- package/dist/cli/util/EnsureNode.js +2 -2
- package/dist/cloud/CloudRemote.js +1 -1
- package/dist/components/Breadcrumbs.js +6 -6
- package/dist/components/Button.js +6 -6
- package/dist/components/Calendar.js +13 -13
- package/dist/components/Checkbox.js +8 -8
- package/dist/components/CheckboxGroup.js +6 -6
- package/dist/components/ColorSwatch.js +6 -6
- package/dist/components/ColorSwatchPicker.js +6 -6
- package/dist/components/ComboBox.js +17 -17
- package/dist/components/DateField.js +7 -7
- package/dist/components/DatePicker.js +9 -9
- package/dist/components/DateRangePicker.js +14 -14
- package/dist/components/Dialog.js +6 -6
- package/dist/components/Disclosure.js +13 -13
- package/dist/components/DropZone.js +6 -6
- package/dist/components/Label.js +14 -14
- package/dist/components/Link.js +6 -6
- package/dist/components/List.js +34 -34
- package/dist/components/Menu.js +9 -9
- package/dist/components/Modal.js +9 -9
- package/dist/components/MultipleSelect.js +28 -28
- package/dist/components/NumberField.d.ts +2 -1
- package/dist/components/NumberField.js +22 -12
- package/dist/components/Popover.js +6 -6
- package/dist/components/ProgressCircle.js +9 -9
- package/dist/components/RadioGroup.js +6 -6
- package/dist/components/SearchField.js +14 -14
- package/dist/components/Select.js +16 -16
- package/dist/components/Surface.js +2 -2
- package/dist/components/Switch.js +8 -8
- package/dist/components/Table.js +14 -14
- package/dist/components/Tabs.js +9 -9
- package/dist/components/TagGroup.js +6 -6
- package/dist/components/TextField.js +10 -10
- package/dist/components/TimeField.js +8 -8
- package/dist/components/Toggle.js +8 -8
- package/dist/components/Toolbar.js +8 -8
- package/dist/components/Tooltip.js +9 -9
- package/dist/components/Tree.d.ts +4 -2
- package/dist/components/Tree.js +27 -13
- package/dist/core/Client.js +3 -2
- package/dist/core/Config.d.ts +4 -0
- package/dist/core/Config.js +6 -0
- package/dist/core/Connection.d.ts +2 -2
- package/dist/core/Connection.js +7 -0
- package/dist/core/Graph.d.ts +4 -5
- package/dist/core/Infer.d.ts +8 -1
- package/dist/core/ListRow.d.ts +2 -0
- package/dist/core/OrderBy.d.ts +7 -3
- package/dist/core/TextDoc.d.ts +11 -0
- package/dist/core/Trace.d.ts +8 -0
- package/dist/core/Trace.js +32 -0
- package/dist/core/db/CommitRequest.d.ts +0 -3
- package/dist/core/db/CommitRequest.js +0 -9
- package/dist/core/db/EntryAliases.js +1 -4
- package/dist/core/db/EntryDB.js +1 -1
- package/dist/core/db/EntryIndex.d.ts +10 -0
- package/dist/core/db/EntryIndex.js +117 -9
- package/dist/core/db/EntryResolver.js +110 -35
- package/dist/core/db/EntryTransaction.d.ts +1 -2
- package/dist/core/db/EntryTransaction.js +26 -13
- package/dist/core/db/LocalDB.d.ts +2 -3
- package/dist/core/db/LocalDB.js +24 -19
- package/dist/core/db/Operation.d.ts +2 -2
- package/dist/core/db/Operation.js +11 -1
- package/dist/core/field/RichTextField.d.ts +30 -3
- package/dist/core/field/RichTextField.js +125 -41
- package/dist/core/media/MediaAltField.d.ts +1 -0
- package/dist/core/media/MediaAltField.js +9 -1
- package/dist/core/source/OverlaySource.d.ts +12 -0
- package/dist/core/source/OverlaySource.js +50 -0
- package/dist/core/source/Source.d.ts +1 -1
- package/dist/core/source/Source.js +3 -3
- package/dist/dashboard/App.css +158 -0
- package/dist/dashboard/App.js +10 -4
- package/dist/dashboard/app/AccessDenied.d.ts +16 -1
- package/dist/dashboard/app/AccessDenied.js +20 -11
- package/dist/dashboard/app/ActivityStatus.js +15 -15
- package/dist/dashboard/app/AuthView.js +11 -11
- package/dist/dashboard/app/Badge.js +2 -2
- package/dist/dashboard/app/CompactField.js +12 -12
- package/dist/dashboard/app/DashboardErrorBoundary.js +4 -4
- package/dist/dashboard/app/DashboardLayout.js +22 -19
- package/dist/dashboard/app/EntryHeader.js +10 -10
- package/dist/dashboard/app/EntryReferences.js +10 -10
- package/dist/dashboard/app/EntrySidebar.d.ts +1 -1
- package/dist/dashboard/app/EntrySidebar.js +16 -15
- package/dist/dashboard/app/EntrySidebarPreview.d.ts +1 -1
- package/dist/dashboard/app/EntrySidebarPreview.js +60 -29
- package/dist/dashboard/app/EntrySidebarPreview.story.d.ts +6 -1
- package/dist/dashboard/app/EntryTranslationBanner.js +7 -7
- package/dist/dashboard/app/Explorer.d.ts +2 -1
- package/dist/dashboard/app/Explorer.js +63 -51
- package/dist/dashboard/app/ExplorerCards.js +51 -55
- package/dist/dashboard/app/ExplorerFileCard.js +20 -20
- package/dist/dashboard/app/ExplorerList.js +14 -14
- package/dist/dashboard/app/ExplorerModal.js +1 -1
- package/dist/dashboard/app/ExplorerTable.js +59 -59
- package/dist/dashboard/app/ExternalLinkPicker.js +15 -4
- package/dist/dashboard/app/LinkPicker.js +40 -15
- package/dist/dashboard/app/LocaleMenu.js +8 -8
- package/dist/dashboard/app/SidebarLayout.d.ts +8 -0
- package/dist/dashboard/app/SidebarLayout.js +1169 -0
- package/dist/dashboard/app/SidebarTree.js +56 -64
- package/dist/dashboard/app/WorkspaceMenu.js +14 -14
- package/dist/dashboard/app/WorkspaceRoots.js +24 -24
- package/dist/dashboard/app/editor/FileEditor.js +29 -30
- package/dist/dashboard/app/editor/FilePreview.js +6 -6
- package/dist/dashboard/app/editor/MediaAltField.view.d.ts +1 -1
- package/dist/dashboard/app/editor/MediaAltField.view.js +6 -9
- package/dist/dashboard/app/modals/CreateEntry.js +5 -5
- package/dist/dashboard/app/pages/EntryPage.js +49 -25
- package/dist/dashboard/app/pages/UsersPage.js +35 -35
- package/dist/dashboard/app/ui/DashboardModal.js +23 -23
- package/dist/dashboard/app/ui/Rail.js +3 -3
- package/dist/dashboard/app/ui/Sidebar.js +2 -2
- package/dist/dashboard/atoms/auth.js +2 -0
- package/dist/dashboard/atoms/dashboard.d.ts +9 -0
- package/dist/dashboard/atoms/dashboard.js +17 -0
- package/dist/dashboard/atoms/editor.d.ts +7 -1
- package/dist/dashboard/atoms/editor.js +4 -1
- package/dist/dashboard/atoms/entry.d.ts +3 -1
- package/dist/dashboard/atoms/entry.js +55 -15
- package/dist/dashboard/atoms/explorer.js +3 -8
- package/dist/dashboard/atoms/preview.d.ts +3 -0
- package/dist/dashboard/atoms/preview.js +18 -1
- package/dist/dashboard/hooks.d.ts +4 -2
- package/dist/dashboard/hooks.js +9 -5
- package/dist/dashboard/icons.d.ts +1 -0
- package/dist/dashboard/icons.js +10 -0
- package/dist/field/code/CodeField.view.js +13 -13
- package/dist/field/date/DateField.view.js +12 -2
- package/dist/field/link/EntryLink.d.ts +1 -1
- package/dist/field/link/EntryLink.js +1 -0
- package/dist/field/link/Link.js +3 -2
- package/dist/field/link/LinkField.d.ts +5 -0
- package/dist/field/link/LinkField.view.js +115 -87
- package/dist/field/list/ListField.view.js +22 -33
- package/dist/field/metadata/MetadataField.d.ts +2 -0
- package/dist/field/metadata/MetadataField.js +2 -1
- package/dist/field/metadata/MetadataField.view.js +18 -18
- package/dist/field/number/NumberField.d.ts +2 -0
- package/dist/field/number/NumberField.view.js +4 -2
- package/dist/field/richtext/PickTextLink.d.ts +7 -0
- package/dist/field/richtext/PickTextLink.js +104 -2
- package/dist/field/richtext/ReferenceLink.d.ts +4 -1
- package/dist/field/richtext/ReferenceLink.js +18 -4
- package/dist/field/richtext/RichTextBlock.js +2 -2
- package/dist/field/richtext/RichTextDocument.d.ts +7 -2
- package/dist/field/richtext/RichTextDocument.js +34 -5
- package/dist/field/richtext/RichTextExtensions.d.ts +3 -1
- package/dist/field/richtext/RichTextExtensions.js +2701 -7464
- package/dist/field/richtext/RichTextField.d.ts +4 -0
- package/dist/field/richtext/RichTextField.story.d.ts +4 -0
- package/dist/field/richtext/RichTextField.view.js +43 -20
- package/dist/field/richtext/RichTextInsertMenu.js +279 -493
- package/dist/field/richtext/RichTextToolbar.d.ts +5 -2
- package/dist/field/richtext/RichTextToolbar.js +38 -3
- package/dist/field/richtext/Toolbar.d.ts +19 -1
- package/dist/field/richtext/Toolbar.js +18 -13
- package/dist/field/richtext/extensions/Anchor.js +1 -1
- package/dist/field/richtext/extensions/Link.js +1 -1
- package/dist/field/richtext/extensions/Small.js +1 -1
- package/dist/field/select/SelectField.view.js +8 -6
- package/dist/index.css +240 -14
- package/dist/next.cjs +18 -16
- package/dist/next.d.ts +2 -1
- package/dist/next.edge.d.ts +2 -1
- package/dist/preview/PreviewMessage.d.ts +3 -0
- package/dist/preview/PreviewMessage.js +1 -0
- package/dist/preview/RegisterPreview.js +29 -9
- package/dist/preview/widget.js +6 -12
- package/dist/query.d.ts +7 -7
- package/dist/ui/RichText.d.ts +1 -0
- package/dist/ui/RichText.js +29 -2
- package/package.json +6 -3
- package/dist/chunks/{chunk-JFROOUG6.js → chunk-NIVGVRDS.js} +17 -17
package/dist/dashboard/App.css
CHANGED
|
@@ -146,6 +146,164 @@
|
|
|
146
146
|
color-scheme: dark;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
/* node_modules/allotment/dist/style.css */
|
|
150
|
+
:root {
|
|
151
|
+
--separator-border: rgba(128, 128, 128, 0.35);
|
|
152
|
+
--sash-hover-transition-duration: 0.1s;
|
|
153
|
+
}
|
|
154
|
+
.allotment-module_splitView__L-yRc {
|
|
155
|
+
height: 100%;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
position: relative;
|
|
158
|
+
width: 100%;
|
|
159
|
+
}
|
|
160
|
+
.allotment-module_splitView__L-yRc > .allotment-module_sashContainer__fzwJF {
|
|
161
|
+
height: 100%;
|
|
162
|
+
pointer-events: none;
|
|
163
|
+
position: absolute;
|
|
164
|
+
width: 100%;
|
|
165
|
+
}
|
|
166
|
+
.allotment-module_splitView__L-yRc > .allotment-module_sashContainer__fzwJF > .allotment-module_sash__QA-2t {
|
|
167
|
+
pointer-events: auto;
|
|
168
|
+
}
|
|
169
|
+
.allotment-module_splitView__L-yRc > .allotment-module_splitViewContainer__rQnVa {
|
|
170
|
+
height: 100%;
|
|
171
|
+
position: relative;
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
width: 100%;
|
|
174
|
+
}
|
|
175
|
+
.allotment-module_splitView__L-yRc > .allotment-module_splitViewContainer__rQnVa > .allotment-module_splitViewView__MGZ6O {
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
position: absolute;
|
|
178
|
+
white-space: initial;
|
|
179
|
+
}
|
|
180
|
+
.allotment-module_splitView__L-yRc.allotment-module_vertical__WSwwa > .allotment-module_splitViewContainer__rQnVa > .allotment-module_splitViewView__MGZ6O {
|
|
181
|
+
width: 100%;
|
|
182
|
+
}
|
|
183
|
+
.allotment-module_splitView__L-yRc.allotment-module_horizontal__7doS8 > .allotment-module_splitViewContainer__rQnVa > .allotment-module_splitViewView__MGZ6O {
|
|
184
|
+
height: 100%;
|
|
185
|
+
}
|
|
186
|
+
.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS > .allotment-module_splitViewContainer__rQnVa > .allotment-module_splitViewView__MGZ6O:not(:first-child)::before {
|
|
187
|
+
background-color: var(--separator-border);
|
|
188
|
+
content: " ";
|
|
189
|
+
left: 0;
|
|
190
|
+
pointer-events: none;
|
|
191
|
+
position: absolute;
|
|
192
|
+
top: 0;
|
|
193
|
+
z-index: 5;
|
|
194
|
+
}
|
|
195
|
+
.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS.allotment-module_vertical__WSwwa > .allotment-module_splitViewContainer__rQnVa > .allotment-module_splitViewView__MGZ6O:not(:first-child)::before {
|
|
196
|
+
height: 1px;
|
|
197
|
+
width: 100%;
|
|
198
|
+
}
|
|
199
|
+
.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS.allotment-module_horizontal__7doS8 > .allotment-module_splitViewContainer__rQnVa > .allotment-module_splitViewView__MGZ6O:not(:first-child)::before {
|
|
200
|
+
height: 100%;
|
|
201
|
+
width: 1px;
|
|
202
|
+
}
|
|
203
|
+
:root {
|
|
204
|
+
--focus-border: #007fd4;
|
|
205
|
+
--sash-size: 8px;
|
|
206
|
+
--sash-hover-size: 4px;
|
|
207
|
+
}
|
|
208
|
+
.sash-module_sash__K-9lB {
|
|
209
|
+
position: absolute;
|
|
210
|
+
z-index: 35;
|
|
211
|
+
touch-action: none;
|
|
212
|
+
pointer-events: auto;
|
|
213
|
+
text-align: initial;
|
|
214
|
+
}
|
|
215
|
+
.sash-module_sash__K-9lB.sash-module_disabled__Hm-wx {
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
}
|
|
218
|
+
.sash-module_sash__K-9lB.sash-module_mac__Jf6OJ.sash-module_vertical__pB-rs {
|
|
219
|
+
cursor: col-resize;
|
|
220
|
+
}
|
|
221
|
+
.sash-module_sash__K-9lB.sash-module_vertical__pB-rs.sash-module_minimum__-UKxp {
|
|
222
|
+
cursor: e-resize;
|
|
223
|
+
}
|
|
224
|
+
.sash-module_sash__K-9lB.sash-module_vertical__pB-rs.sash-module_maximum__TCWxD {
|
|
225
|
+
cursor: w-resize;
|
|
226
|
+
}
|
|
227
|
+
.sash-module_sash__K-9lB.sash-module_mac__Jf6OJ.sash-module_horizontal__kFbiw {
|
|
228
|
+
cursor: row-resize;
|
|
229
|
+
}
|
|
230
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_minimum__-UKxp {
|
|
231
|
+
cursor: s-resize;
|
|
232
|
+
}
|
|
233
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_maximum__TCWxD {
|
|
234
|
+
cursor: n-resize;
|
|
235
|
+
}
|
|
236
|
+
.sash-module_sash__K-9lB.sash-module_disabled__Hm-wx {
|
|
237
|
+
cursor: default !important;
|
|
238
|
+
pointer-events: none !important;
|
|
239
|
+
}
|
|
240
|
+
.sash-module_sash__K-9lB.sash-module_vertical__pB-rs {
|
|
241
|
+
cursor: ew-resize;
|
|
242
|
+
top: 0;
|
|
243
|
+
width: var(--sash-size);
|
|
244
|
+
height: 100%;
|
|
245
|
+
}
|
|
246
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw {
|
|
247
|
+
cursor: ns-resize;
|
|
248
|
+
left: 0;
|
|
249
|
+
width: 100%;
|
|
250
|
+
height: var(--sash-size);
|
|
251
|
+
}
|
|
252
|
+
.sash-module_sash__K-9lB:not(.sash-module_disabled__Hm-wx) > .sash-module_orthogonal-drag-handle__Yii2- {
|
|
253
|
+
content: " ";
|
|
254
|
+
height: calc(var(--sash-size) * 2);
|
|
255
|
+
width: calc(var(--sash-size) * 2);
|
|
256
|
+
z-index: 100;
|
|
257
|
+
display: block;
|
|
258
|
+
cursor: all-scroll;
|
|
259
|
+
position: absolute;
|
|
260
|
+
}
|
|
261
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-north__f7Noe:not(.sash-module_disabled__Hm-wx) > .sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk,
|
|
262
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-south__6ZrFC:not(.sash-module_disabled__Hm-wx) > .sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R {
|
|
263
|
+
cursor: nwse-resize;
|
|
264
|
+
}
|
|
265
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-north__f7Noe:not(.sash-module_disabled__Hm-wx) > .sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R,
|
|
266
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-south__6ZrFC:not(.sash-module_disabled__Hm-wx) > .sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk {
|
|
267
|
+
cursor: nesw-resize;
|
|
268
|
+
}
|
|
269
|
+
.sash-module_sash__K-9lB.sash-module_vertical__pB-rs > .sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk {
|
|
270
|
+
left: calc(var(--sash-size) * -0.5);
|
|
271
|
+
top: calc(var(--sash-size) * -1);
|
|
272
|
+
}
|
|
273
|
+
.sash-module_sash__K-9lB.sash-module_vertical__pB-rs > .sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R {
|
|
274
|
+
left: calc(var(--sash-size) * -0.5);
|
|
275
|
+
bottom: calc(var(--sash-size) * -1);
|
|
276
|
+
}
|
|
277
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw > .sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk {
|
|
278
|
+
top: calc(var(--sash-size) * -0.5);
|
|
279
|
+
left: calc(var(--sash-size) * -1);
|
|
280
|
+
}
|
|
281
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw > .sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R {
|
|
282
|
+
top: calc(var(--sash-size) * -0.5);
|
|
283
|
+
right: calc(var(--sash-size) * -1);
|
|
284
|
+
}
|
|
285
|
+
.sash-module_sash__K-9lB:before {
|
|
286
|
+
content: "";
|
|
287
|
+
pointer-events: none;
|
|
288
|
+
position: absolute;
|
|
289
|
+
width: 100%;
|
|
290
|
+
height: 100%;
|
|
291
|
+
transition: background-color var(--sash-hover-transition-duration) ease-out;
|
|
292
|
+
background: transparent;
|
|
293
|
+
}
|
|
294
|
+
.sash-module_sash__K-9lB.sash-module_vertical__pB-rs:before {
|
|
295
|
+
width: var(--sash-hover-size);
|
|
296
|
+
left: calc(50% - (var(--sash-hover-size) / 2));
|
|
297
|
+
}
|
|
298
|
+
.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw:before {
|
|
299
|
+
height: var(--sash-hover-size);
|
|
300
|
+
top: calc(50% - (var(--sash-hover-size) / 2));
|
|
301
|
+
}
|
|
302
|
+
.sash-module_sash__K-9lB.sash-module_hover__80W6I:before,
|
|
303
|
+
.sash-module_sash__K-9lB.sash-module_active__bJspD:before {
|
|
304
|
+
background: var(--focus-border);
|
|
305
|
+
}
|
|
306
|
+
|
|
149
307
|
/* src/dashboard/global.css */
|
|
150
308
|
html,
|
|
151
309
|
body,
|
package/dist/dashboard/App.js
CHANGED
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
// src/dashboard/App.module.css
|
|
24
24
|
var App_default = {
|
|
25
25
|
"AppLoading": "alinea-AppLoading",
|
|
26
|
-
"AppLoading-progress": "alinea-AppLoading-progress",
|
|
27
|
-
"AppLoadingProgress": "alinea-AppLoading-progress",
|
|
28
26
|
"AppLoading-progress-fade-in": "alinea-AppLoading-progress-fade-in",
|
|
29
|
-
"AppLoadingProgressFadeIn": "alinea-AppLoading-progress-fade-in"
|
|
27
|
+
"AppLoadingProgressFadeIn": "alinea-AppLoading-progress-fade-in",
|
|
28
|
+
"AppLoading-progress": "alinea-AppLoading-progress",
|
|
29
|
+
"AppLoadingProgress": "alinea-AppLoading-progress"
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
// src/dashboard/App.tsx
|
|
@@ -74,7 +74,13 @@ var authenticatedAtom = atom(async (get) => {
|
|
|
74
74
|
title: dashboardTitle(workspaceData?.label ?? "Alinea", label)
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
if (page.type === "users"
|
|
77
|
+
if (page.type === "users") {
|
|
78
|
+
if (!canManageMembers) {
|
|
79
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
80
|
+
meta("No user management access"),
|
|
81
|
+
/* @__PURE__ */ jsx(AccessDenied, { canManageMembers: false, scope: "users" })
|
|
82
|
+
] });
|
|
83
|
+
}
|
|
78
84
|
const content2 = await usersPage(page, get);
|
|
79
85
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
80
86
|
meta("Users"),
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
+
declare const copy: {
|
|
2
|
+
root: {
|
|
3
|
+
title: string;
|
|
4
|
+
message: string;
|
|
5
|
+
};
|
|
6
|
+
users: {
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
workspace: {
|
|
11
|
+
title: string;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
1
15
|
export interface AccessDeniedProps {
|
|
2
16
|
canManageMembers: boolean;
|
|
3
|
-
scope:
|
|
17
|
+
scope: keyof typeof copy;
|
|
4
18
|
}
|
|
5
19
|
export declare function AccessDenied({ canManageMembers, scope }: AccessDeniedProps): import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -14,29 +14,38 @@ import { AppShell, AppShellContent, AppShellInner } from "./AppShell.js";
|
|
|
14
14
|
|
|
15
15
|
// src/dashboard/app/AccessDenied.module.css
|
|
16
16
|
var AccessDenied_default = {
|
|
17
|
-
"AccessDenied": "alinea-AccessDenied",
|
|
18
|
-
"AccessDenied-message": "alinea-AccessDenied-message",
|
|
19
|
-
"AccessDeniedMessage": "alinea-AccessDenied-message",
|
|
20
17
|
"AccessDenied-card": "alinea-AccessDenied-card",
|
|
21
18
|
"AccessDeniedCard": "alinea-AccessDenied-card",
|
|
22
19
|
"AccessDenied-title": "alinea-AccessDenied-title",
|
|
23
|
-
"AccessDeniedTitle": "alinea-AccessDenied-title"
|
|
20
|
+
"AccessDeniedTitle": "alinea-AccessDenied-title",
|
|
21
|
+
"AccessDenied": "alinea-AccessDenied",
|
|
22
|
+
"AccessDenied-message": "alinea-AccessDenied-message",
|
|
23
|
+
"AccessDeniedMessage": "alinea-AccessDenied-message"
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
// src/dashboard/app/AccessDenied.tsx
|
|
27
27
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
28
|
var styles = styler(AccessDenied_default);
|
|
29
|
+
var copy = {
|
|
30
|
+
root: {
|
|
31
|
+
title: "No root access",
|
|
32
|
+
message: "Your current roles do not grant permission to read any root."
|
|
33
|
+
},
|
|
34
|
+
users: {
|
|
35
|
+
title: "No user management access",
|
|
36
|
+
message: "Your current roles do not grant permission to manage users."
|
|
37
|
+
},
|
|
38
|
+
workspace: {
|
|
39
|
+
title: "No workspace access",
|
|
40
|
+
message: "Your current roles do not grant permission to read any workspace."
|
|
41
|
+
}
|
|
42
|
+
};
|
|
29
43
|
function AccessDenied({ canManageMembers, scope }) {
|
|
30
44
|
const setRoute = useSetAtom(routeAtom);
|
|
31
|
-
const title = scope
|
|
32
|
-
const target = scope === "workspace" ? "workspace" : "root";
|
|
45
|
+
const { title, message } = copy[scope];
|
|
33
46
|
return /* @__PURE__ */ jsx(AppShell, { children: /* @__PURE__ */ jsx(AppShellInner, { children: /* @__PURE__ */ jsx(AppShellContent, { children: /* @__PURE__ */ jsx("div", { className: styles.AccessDenied(), children: /* @__PURE__ */ jsxs(Surface, { className: styles.AccessDenied.card(), children: [
|
|
34
47
|
/* @__PURE__ */ jsx("h1", { className: styles.AccessDenied.title(), children: title }),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
"Your current roles do not grant permission to read any ",
|
|
37
|
-
target,
|
|
38
|
-
"."
|
|
39
|
-
] }),
|
|
48
|
+
/* @__PURE__ */ jsx("p", { className: styles.AccessDenied.message(), children: message }),
|
|
40
49
|
canManageMembers && /* @__PURE__ */ jsx(
|
|
41
50
|
Button,
|
|
42
51
|
{
|
|
@@ -42,29 +42,29 @@ import { IcRoundCheck, IcRoundHistory, IcRoundWarning } from "../icons.js";
|
|
|
42
42
|
|
|
43
43
|
// src/dashboard/app/ActivityStatus.module.css
|
|
44
44
|
var ActivityStatus_default = {
|
|
45
|
+
"ActivityStatus-icon": "alinea-ActivityStatus-icon",
|
|
46
|
+
"ActivityStatusIcon": "alinea-ActivityStatus-icon",
|
|
47
|
+
"ActivityStatus-popover-item-error": "alinea-ActivityStatus-popover-item-error",
|
|
48
|
+
"ActivityStatusPopoverItemError": "alinea-ActivityStatus-popover-item-error",
|
|
49
|
+
"ActivityStatus-popover-surface": "alinea-ActivityStatus-popover-surface",
|
|
50
|
+
"ActivityStatusPopoverSurface": "alinea-ActivityStatus-popover-surface",
|
|
45
51
|
"is-syncing": "alinea-is-syncing",
|
|
46
52
|
"isSyncing": "alinea-is-syncing",
|
|
47
|
-
"ActivityStatus": "alinea-ActivityStatus",
|
|
48
|
-
"ActivityStatus-popover": "alinea-ActivityStatus-popover",
|
|
49
|
-
"ActivityStatusPopover": "alinea-ActivityStatus-popover",
|
|
50
|
-
"ActivityStatus-popover-title": "alinea-ActivityStatus-popover-title",
|
|
51
|
-
"ActivityStatusPopoverTitle": "alinea-ActivityStatus-popover-title",
|
|
52
|
-
"ActivityStatus-label": "alinea-ActivityStatus-label",
|
|
53
|
-
"ActivityStatusLabel": "alinea-ActivityStatus-label",
|
|
54
|
-
"is-failed": "alinea-is-failed",
|
|
55
|
-
"isFailed": "alinea-is-failed",
|
|
56
53
|
"ActivityStatus-popover-actions": "alinea-ActivityStatus-popover-actions",
|
|
57
54
|
"ActivityStatusPopoverActions": "alinea-ActivityStatus-popover-actions",
|
|
58
55
|
"ActivityStatus-popover-header": "alinea-ActivityStatus-popover-header",
|
|
59
56
|
"ActivityStatusPopoverHeader": "alinea-ActivityStatus-popover-header",
|
|
60
|
-
"ActivityStatus-
|
|
61
|
-
"
|
|
57
|
+
"ActivityStatus-popover-title": "alinea-ActivityStatus-popover-title",
|
|
58
|
+
"ActivityStatusPopoverTitle": "alinea-ActivityStatus-popover-title",
|
|
62
59
|
"ActivityStatus-popover-list": "alinea-ActivityStatus-popover-list",
|
|
63
60
|
"ActivityStatusPopoverList": "alinea-ActivityStatus-popover-list",
|
|
64
|
-
"ActivityStatus-popover
|
|
65
|
-
"
|
|
66
|
-
"ActivityStatus-
|
|
67
|
-
"
|
|
61
|
+
"ActivityStatus-popover": "alinea-ActivityStatus-popover",
|
|
62
|
+
"ActivityStatusPopover": "alinea-ActivityStatus-popover",
|
|
63
|
+
"ActivityStatus-label": "alinea-ActivityStatus-label",
|
|
64
|
+
"ActivityStatusLabel": "alinea-ActivityStatus-label",
|
|
65
|
+
"is-failed": "alinea-is-failed",
|
|
66
|
+
"isFailed": "alinea-is-failed",
|
|
67
|
+
"ActivityStatus": "alinea-ActivityStatus"
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
// src/dashboard/app/ActivityStatus.tsx
|
|
@@ -16,25 +16,25 @@ import { IcRoundArrowForward, IcRoundPublish } from "../icons.js";
|
|
|
16
16
|
|
|
17
17
|
// src/dashboard/app/AuthView.module.css
|
|
18
18
|
var AuthView_default = {
|
|
19
|
+
"AuthView-panel": "alinea-AuthView-panel",
|
|
20
|
+
"AuthViewPanel": "alinea-AuthView-panel",
|
|
21
|
+
"AuthView-text": "alinea-AuthView-text",
|
|
22
|
+
"AuthViewText": "alinea-AuthView-text",
|
|
19
23
|
"AuthView": "alinea-AuthView",
|
|
24
|
+
"AuthView-heading": "alinea-AuthView-heading",
|
|
25
|
+
"AuthViewHeading": "alinea-AuthView-heading",
|
|
20
26
|
"AuthView-link": "alinea-AuthView-link",
|
|
21
27
|
"AuthViewLink": "alinea-AuthView-link",
|
|
22
|
-
"AuthView-mark": "alinea-AuthView-mark",
|
|
23
|
-
"AuthViewMark": "alinea-AuthView-mark",
|
|
24
|
-
"AuthView-text": "alinea-AuthView-text",
|
|
25
|
-
"AuthViewText": "alinea-AuthView-text",
|
|
26
|
-
"AuthView-actionRow": "alinea-AuthView-actionRow",
|
|
27
|
-
"AuthViewActionRow": "alinea-AuthView-actionRow",
|
|
28
28
|
"AuthView-title": "alinea-AuthView-title",
|
|
29
29
|
"AuthViewTitle": "alinea-AuthView-title",
|
|
30
|
-
"AuthView-panel": "alinea-AuthView-panel",
|
|
31
|
-
"AuthViewPanel": "alinea-AuthView-panel",
|
|
32
30
|
"AuthView-surface": "alinea-AuthView-surface",
|
|
33
31
|
"AuthViewSurface": "alinea-AuthView-surface",
|
|
34
|
-
"AuthView-heading": "alinea-AuthView-heading",
|
|
35
|
-
"AuthViewHeading": "alinea-AuthView-heading",
|
|
36
32
|
"AuthView-loader": "alinea-AuthView-loader",
|
|
37
|
-
"AuthViewLoader": "alinea-AuthView-loader"
|
|
33
|
+
"AuthViewLoader": "alinea-AuthView-loader",
|
|
34
|
+
"AuthView-mark": "alinea-AuthView-mark",
|
|
35
|
+
"AuthViewMark": "alinea-AuthView-mark",
|
|
36
|
+
"AuthView-actionRow": "alinea-AuthView-actionRow",
|
|
37
|
+
"AuthViewActionRow": "alinea-AuthView-actionRow"
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
// src/dashboard/app/AuthView.tsx
|
|
@@ -8,9 +8,9 @@ import { Icon } from "../../components/Icon.js";
|
|
|
8
8
|
|
|
9
9
|
// src/dashboard/app/Badge.module.css
|
|
10
10
|
var Badge_default = {
|
|
11
|
+
"Badge": "alinea-Badge",
|
|
11
12
|
"Badge-label": "alinea-Badge-label",
|
|
12
|
-
"BadgeLabel": "alinea-Badge-label"
|
|
13
|
-
"Badge": "alinea-Badge"
|
|
13
|
+
"BadgeLabel": "alinea-Badge-label"
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
// src/dashboard/app/Badge.tsx
|
|
@@ -19,25 +19,25 @@ import { Badge } from "./Badge.js";
|
|
|
19
19
|
|
|
20
20
|
// src/dashboard/app/CompactField.module.css
|
|
21
21
|
var CompactField_default = {
|
|
22
|
-
"CompactField-
|
|
23
|
-
"
|
|
22
|
+
"CompactField-json": "alinea-CompactField-json",
|
|
23
|
+
"CompactFieldJson": "alinea-CompactField-json",
|
|
24
|
+
"CompactField-list-count": "alinea-CompactField-list-count",
|
|
25
|
+
"CompactFieldListCount": "alinea-CompactField-list-count",
|
|
26
|
+
"CompactField-record-field": "alinea-CompactField-record-field",
|
|
27
|
+
"CompactFieldRecordField": "alinea-CompactField-record-field",
|
|
28
|
+
"CompactField-items": "alinea-CompactField-items",
|
|
29
|
+
"CompactFieldItems": "alinea-CompactField-items",
|
|
24
30
|
"CompactField-text": "alinea-CompactField-text",
|
|
25
31
|
"CompactFieldText": "alinea-CompactField-text",
|
|
32
|
+
"CompactField-muted": "alinea-CompactField-muted",
|
|
33
|
+
"CompactFieldMuted": "alinea-CompactField-muted",
|
|
26
34
|
"CompactField-record": "alinea-CompactField-record",
|
|
27
35
|
"CompactFieldRecord": "alinea-CompactField-record",
|
|
28
|
-
"CompactField-json": "alinea-CompactField-json",
|
|
29
|
-
"CompactFieldJson": "alinea-CompactField-json",
|
|
30
36
|
"CompactField-record-label": "alinea-CompactField-record-label",
|
|
31
37
|
"CompactFieldRecordLabel": "alinea-CompactField-record-label",
|
|
32
38
|
"CompactField": "alinea-CompactField",
|
|
33
|
-
"CompactField-
|
|
34
|
-
"
|
|
35
|
-
"CompactField-record-field": "alinea-CompactField-record-field",
|
|
36
|
-
"CompactFieldRecordField": "alinea-CompactField-record-field",
|
|
37
|
-
"CompactField-muted": "alinea-CompactField-muted",
|
|
38
|
-
"CompactFieldMuted": "alinea-CompactField-muted",
|
|
39
|
-
"CompactField-list-count": "alinea-CompactField-list-count",
|
|
40
|
-
"CompactFieldListCount": "alinea-CompactField-list-count"
|
|
39
|
+
"CompactField-record-value": "alinea-CompactField-record-value",
|
|
40
|
+
"CompactFieldRecordValue": "alinea-CompactField-record-value"
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
// src/dashboard/app/CompactField.tsx
|
|
@@ -65,15 +65,15 @@ import { IcRoundWarning } from "../icons.js";
|
|
|
65
65
|
|
|
66
66
|
// src/dashboard/app/DashboardErrorBoundary.module.css
|
|
67
67
|
var DashboardErrorBoundary_default = {
|
|
68
|
+
"DashboardErrorBoundary-message": "alinea-DashboardErrorBoundary-message",
|
|
69
|
+
"DashboardErrorBoundaryMessage": "alinea-DashboardErrorBoundary-message",
|
|
70
|
+
"DashboardErrorBoundary": "alinea-DashboardErrorBoundary",
|
|
68
71
|
"DashboardErrorBoundary-card": "alinea-DashboardErrorBoundary-card",
|
|
69
72
|
"DashboardErrorBoundaryCard": "alinea-DashboardErrorBoundary-card",
|
|
70
|
-
"DashboardErrorBoundary": "alinea-DashboardErrorBoundary",
|
|
71
73
|
"DashboardErrorBoundary-heading": "alinea-DashboardErrorBoundary-heading",
|
|
72
74
|
"DashboardErrorBoundaryHeading": "alinea-DashboardErrorBoundary-heading",
|
|
73
75
|
"DashboardErrorBoundary-title": "alinea-DashboardErrorBoundary-title",
|
|
74
|
-
"DashboardErrorBoundaryTitle": "alinea-DashboardErrorBoundary-title"
|
|
75
|
-
"DashboardErrorBoundary-message": "alinea-DashboardErrorBoundary-message",
|
|
76
|
-
"DashboardErrorBoundaryMessage": "alinea-DashboardErrorBoundary-message"
|
|
76
|
+
"DashboardErrorBoundaryTitle": "alinea-DashboardErrorBoundary-title"
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
// src/dashboard/app/DashboardErrorBoundary.tsx
|
|
@@ -13,6 +13,7 @@ import { DashboardScope } from "../hooks.js";
|
|
|
13
13
|
import { IcRoundAdd } from "../icons.js";
|
|
14
14
|
import { AppShell, AppShellContent, AppShellInner } from "./AppShell.js";
|
|
15
15
|
import { SidebarTree } from "./SidebarTree.js";
|
|
16
|
+
import { SidebarLayout } from "./SidebarLayout.js";
|
|
16
17
|
import { WorkspaceMenu } from "./WorkspaceMenu.js";
|
|
17
18
|
import { WorkspaceRoots } from "./WorkspaceRoots.js";
|
|
18
19
|
import { CreateEntry } from "./modals/CreateEntry.js";
|
|
@@ -24,9 +25,7 @@ var DashboardLayout_default = {
|
|
|
24
25
|
"DashboardLayout-create": "alinea-DashboardLayout-create",
|
|
25
26
|
"DashboardLayoutCreate": "alinea-DashboardLayout-create",
|
|
26
27
|
"is-toolbar": "alinea-is-toolbar",
|
|
27
|
-
"isToolbar": "alinea-is-toolbar"
|
|
28
|
-
"DashboardLayout-sidebar": "alinea-DashboardLayout-sidebar",
|
|
29
|
-
"DashboardLayoutSidebar": "alinea-DashboardLayout-sidebar"
|
|
28
|
+
"isToolbar": "alinea-is-toolbar"
|
|
30
29
|
};
|
|
31
30
|
|
|
32
31
|
// src/dashboard/app/DashboardLayout.tsx
|
|
@@ -41,22 +40,26 @@ function DashboardLayout({
|
|
|
41
40
|
}) {
|
|
42
41
|
return /* @__PURE__ */ jsx(DashboardScope, { value: { page, root, workspace }, children: /* @__PURE__ */ jsx(AppShell, { children: /* @__PURE__ */ jsxs(AppShellInner, { children: [
|
|
43
42
|
/* @__PURE__ */ jsx(WorkspaceRoots, { canManageMembers, page }),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
43
|
+
/* @__PURE__ */ jsx(AppShellContent, { children: /* @__PURE__ */ jsx(
|
|
44
|
+
SidebarLayout,
|
|
45
|
+
{
|
|
46
|
+
side: "left",
|
|
47
|
+
sidebar: /* @__PURE__ */ jsxs(Sidebar, { children: [
|
|
48
|
+
/* @__PURE__ */ jsx(SidebarHeader, { children: /* @__PURE__ */ jsx(
|
|
49
|
+
WorkspaceMenu,
|
|
50
|
+
{
|
|
51
|
+
canManageMembers,
|
|
52
|
+
page,
|
|
53
|
+
root,
|
|
54
|
+
workspace
|
|
55
|
+
}
|
|
56
|
+
) }),
|
|
57
|
+
/* @__PURE__ */ jsx(SidebarTree, { page, root }),
|
|
58
|
+
/* @__PURE__ */ jsx(SidebarCreateEntryButton, { root })
|
|
59
|
+
] }),
|
|
60
|
+
children
|
|
61
|
+
}
|
|
62
|
+
) })
|
|
60
63
|
] }) }) });
|
|
61
64
|
}
|
|
62
65
|
function SidebarCreateEntryButton({ root }) {
|
|
@@ -41,23 +41,23 @@ import { EditorBackButton } from "./EditorBackButton.js";
|
|
|
41
41
|
|
|
42
42
|
// src/dashboard/app/EntryHeader.module.css
|
|
43
43
|
var EntryHeader_default = {
|
|
44
|
+
"EntryHeader-actions": "alinea-EntryHeader-actions",
|
|
45
|
+
"EntryHeaderActions": "alinea-EntryHeader-actions",
|
|
46
|
+
"EntryHeader": "alinea-EntryHeader",
|
|
47
|
+
"EntryHeader-title": "alinea-EntryHeader-title",
|
|
48
|
+
"EntryHeaderTitle": "alinea-EntryHeader-title",
|
|
44
49
|
"is-dirty": "alinea-is-dirty",
|
|
45
50
|
"isDirty": "alinea-is-dirty",
|
|
46
51
|
"EntryHeader-type": "alinea-EntryHeader-type",
|
|
47
52
|
"EntryHeaderType": "alinea-EntryHeader-type",
|
|
48
|
-
"EntryHeader-title": "alinea-EntryHeader-title",
|
|
49
|
-
"EntryHeaderTitle": "alinea-EntryHeader-title",
|
|
50
|
-
"EntryHeader-status": "alinea-EntryHeader-status",
|
|
51
|
-
"EntryHeaderStatus": "alinea-EntryHeader-status",
|
|
52
|
-
"EntryHeader-content": "alinea-EntryHeader-content",
|
|
53
|
-
"EntryHeaderContent": "alinea-EntryHeader-content",
|
|
54
53
|
"EntryHeader-main": "alinea-EntryHeader-main",
|
|
55
54
|
"EntryHeaderMain": "alinea-EntryHeader-main",
|
|
56
|
-
"EntryHeader": "alinea-EntryHeader",
|
|
57
|
-
"EntryHeader-actions": "alinea-EntryHeader-actions",
|
|
58
|
-
"EntryHeaderActions": "alinea-EntryHeader-actions",
|
|
59
55
|
"EntryHeader-sidebarToggle": "alinea-EntryHeader-sidebarToggle",
|
|
60
|
-
"EntryHeaderSidebarToggle": "alinea-EntryHeader-sidebarToggle"
|
|
56
|
+
"EntryHeaderSidebarToggle": "alinea-EntryHeader-sidebarToggle",
|
|
57
|
+
"EntryHeader-status": "alinea-EntryHeader-status",
|
|
58
|
+
"EntryHeaderStatus": "alinea-EntryHeader-status",
|
|
59
|
+
"EntryHeader-content": "alinea-EntryHeader-content",
|
|
60
|
+
"EntryHeaderContent": "alinea-EntryHeader-content"
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/dashboard/app/EntryHeader.tsx
|
|
@@ -26,21 +26,21 @@ import { IcRoundImage, IcRoundInsertDriveFile, IcRoundLink } from "../icons.js";
|
|
|
26
26
|
|
|
27
27
|
// src/dashboard/app/EntryReferences.module.css
|
|
28
28
|
var EntryReferences_default = {
|
|
29
|
-
"EntryReferences": "alinea-EntryReferences",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"EntryReferencesPendingText": "alinea-EntryReferences-pendingText",
|
|
29
|
+
"EntryReferences-trailing": "alinea-EntryReferences-trailing",
|
|
30
|
+
"EntryReferencesTrailing": "alinea-EntryReferences-trailing",
|
|
31
|
+
"EntryReferences-other": "alinea-EntryReferences-other",
|
|
32
|
+
"EntryReferencesOther": "alinea-EntryReferences-other",
|
|
34
33
|
"EntryReferences-loading": "alinea-EntryReferences-loading",
|
|
35
34
|
"EntryReferencesLoading": "alinea-EntryReferences-loading",
|
|
36
35
|
"EntryReferences-list": "alinea-EntryReferences-list",
|
|
37
36
|
"EntryReferencesList": "alinea-EntryReferences-list",
|
|
37
|
+
"EntryReferences-pendingText": "alinea-EntryReferences-pendingText",
|
|
38
|
+
"EntryReferencesPendingText": "alinea-EntryReferences-pendingText",
|
|
39
|
+
"EntryReferences-pending": "alinea-EntryReferences-pending",
|
|
40
|
+
"EntryReferencesPending": "alinea-EntryReferences-pending",
|
|
41
|
+
"EntryReferences": "alinea-EntryReferences",
|
|
38
42
|
"EntryReferences-loadingText": "alinea-EntryReferences-loadingText",
|
|
39
|
-
"EntryReferencesLoadingText": "alinea-EntryReferences-loadingText"
|
|
40
|
-
"EntryReferences-trailing": "alinea-EntryReferences-trailing",
|
|
41
|
-
"EntryReferencesTrailing": "alinea-EntryReferences-trailing",
|
|
42
|
-
"EntryReferences-other": "alinea-EntryReferences-other",
|
|
43
|
-
"EntryReferencesOther": "alinea-EntryReferences-other"
|
|
43
|
+
"EntryReferencesLoadingText": "alinea-EntryReferences-loadingText"
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
// src/dashboard/app/EntryReferences.tsx
|
|
@@ -10,7 +10,7 @@ export interface EntrySidebarProps {
|
|
|
10
10
|
onOpenChange?: (isOpen: boolean) => void;
|
|
11
11
|
}
|
|
12
12
|
export type EntrySidebarTab = 'preview' | 'history' | 'references';
|
|
13
|
-
export declare function entrySidebar(get: Getter, entry: EntryAtoms, localeData: EntryLocaleAtoms): Promise<EntrySidebarProps | undefined>;
|
|
13
|
+
export declare function entrySidebar(get: Getter, entry: EntryAtoms, localeData: EntryLocaleAtoms, isOpen?: boolean): Promise<EntrySidebarProps | undefined>;
|
|
14
14
|
export declare function EntrySidebar({ entry, localeData, selectedTab, previousVersionsOpen, onOpenChange }: EntrySidebarProps): import("react").JSX.Element;
|
|
15
15
|
export type EntrySidebarVersionStatus = EntryStatus | 'unpublished' | 'none';
|
|
16
16
|
export interface EntrySidebarVersionRowProps {
|
|
@@ -47,28 +47,28 @@ import { EntryReferences } from "./EntryReferences.js";
|
|
|
47
47
|
|
|
48
48
|
// src/dashboard/app/EntrySidebar.module.css
|
|
49
49
|
var EntrySidebar_default = {
|
|
50
|
-
"EntrySidebar-body": "alinea-EntrySidebar-body",
|
|
51
|
-
"EntrySidebarBody": "alinea-EntrySidebar-body",
|
|
52
50
|
"EntrySidebar-history": "alinea-EntrySidebar-history",
|
|
53
51
|
"EntrySidebarHistory": "alinea-EntrySidebar-history",
|
|
54
|
-
"EntrySidebar-previewPanel": "alinea-EntrySidebar-previewPanel",
|
|
55
|
-
"EntrySidebarPreviewPanel": "alinea-EntrySidebar-previewPanel",
|
|
56
|
-
"EntrySidebar-tabs": "alinea-EntrySidebar-tabs",
|
|
57
|
-
"EntrySidebarTabs": "alinea-EntrySidebar-tabs",
|
|
58
|
-
"EntrySidebar-historyPanel": "alinea-EntrySidebar-historyPanel",
|
|
59
|
-
"EntrySidebarHistoryPanel": "alinea-EntrySidebar-historyPanel",
|
|
60
52
|
"EntrySidebar-disclosure": "alinea-EntrySidebar-disclosure",
|
|
61
53
|
"EntrySidebarDisclosure": "alinea-EntrySidebar-disclosure",
|
|
62
54
|
"EntrySidebar-disclosurePanel": "alinea-EntrySidebar-disclosurePanel",
|
|
63
55
|
"EntrySidebarDisclosurePanel": "alinea-EntrySidebar-disclosurePanel",
|
|
64
|
-
"EntrySidebar-
|
|
65
|
-
"
|
|
66
|
-
"EntrySidebar-section": "alinea-EntrySidebar-section",
|
|
67
|
-
"EntrySidebarSection": "alinea-EntrySidebar-section",
|
|
56
|
+
"EntrySidebar-previewPanel": "alinea-EntrySidebar-previewPanel",
|
|
57
|
+
"EntrySidebarPreviewPanel": "alinea-EntrySidebar-previewPanel",
|
|
68
58
|
"EntrySidebar-sectionTitle": "alinea-EntrySidebar-sectionTitle",
|
|
69
59
|
"EntrySidebarSectionTitle": "alinea-EntrySidebar-sectionTitle",
|
|
60
|
+
"EntrySidebar-section": "alinea-EntrySidebar-section",
|
|
61
|
+
"EntrySidebarSection": "alinea-EntrySidebar-section",
|
|
62
|
+
"EntrySidebar-historyPanel": "alinea-EntrySidebar-historyPanel",
|
|
63
|
+
"EntrySidebarHistoryPanel": "alinea-EntrySidebar-historyPanel",
|
|
70
64
|
"EntrySidebar-header": "alinea-EntrySidebar-header",
|
|
71
|
-
"EntrySidebarHeader": "alinea-EntrySidebar-header"
|
|
65
|
+
"EntrySidebarHeader": "alinea-EntrySidebar-header",
|
|
66
|
+
"EntrySidebar-referencesPanel": "alinea-EntrySidebar-referencesPanel",
|
|
67
|
+
"EntrySidebarReferencesPanel": "alinea-EntrySidebar-referencesPanel",
|
|
68
|
+
"EntrySidebar-body": "alinea-EntrySidebar-body",
|
|
69
|
+
"EntrySidebarBody": "alinea-EntrySidebar-body",
|
|
70
|
+
"EntrySidebar-tabs": "alinea-EntrySidebar-tabs",
|
|
71
|
+
"EntrySidebarTabs": "alinea-EntrySidebar-tabs"
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
// src/dashboard/app/EntrySidebar.tsx
|
|
@@ -79,7 +79,7 @@ import { Sidebar, SidebarBody } from "./ui/Sidebar.js";
|
|
|
79
79
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
80
80
|
var styles = styler(EntrySidebar_default);
|
|
81
81
|
var entrySidebarTabAtom = atom("preview");
|
|
82
|
-
async function entrySidebar(get, entry, localeData) {
|
|
82
|
+
async function entrySidebar(get, entry, localeData, isOpen = true) {
|
|
83
83
|
const typeName = get(entry.type);
|
|
84
84
|
const type = get(typeAtoms(typeName));
|
|
85
85
|
if (type.customView || get(localeData.untranslated)) return void 0;
|
|
@@ -87,10 +87,11 @@ async function entrySidebar(get, entry, localeData) {
|
|
|
87
87
|
const requestedTab = get(entrySidebarTabAtom);
|
|
88
88
|
const selectedTab = allowedTabs.includes(requestedTab) ? requestedTab : allowedTabs[0];
|
|
89
89
|
const previousVersionsOpen = selectedTab === "history" ? get(entry.previousVersionsOpen) : false;
|
|
90
|
+
if (!isOpen) return { entry, localeData, selectedTab, previousVersionsOpen };
|
|
90
91
|
switch (selectedTab) {
|
|
91
92
|
case "preview": {
|
|
92
93
|
const preview = get(entry.preview);
|
|
93
|
-
if (preview === true)
|
|
94
|
+
if (preview === true) void get(localeData.previewUrlReady);
|
|
94
95
|
else if (preview) await get(localeData.previewEntryReady);
|
|
95
96
|
break;
|
|
96
97
|
}
|
|
@@ -5,6 +5,6 @@ export interface EntrySidebarPreviewProps {
|
|
|
5
5
|
}
|
|
6
6
|
export declare function EntrySidebarPreview({ entry, localeData }: EntrySidebarPreviewProps): import("react").JSX.Element;
|
|
7
7
|
export interface EntrySidebarBrowserPreviewProps {
|
|
8
|
-
localeData: Pick<EntryLocaleAtoms, '
|
|
8
|
+
localeData: Pick<EntryLocaleAtoms, 'previewUrlState' | 'retryPreviewUrl'> & Partial<Pick<EntryLocaleAtoms, 'previewPayloadSignal' | 'updatePreviewPayload'>>;
|
|
9
9
|
}
|
|
10
10
|
export declare function EntrySidebarBrowserPreview({ localeData }: EntrySidebarBrowserPreviewProps): import("react").JSX.Element;
|