rimecms 1.0.0 → 1.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/adapter-sqlite/generate-schema/templates.server.d.ts +9 -9
- package/dist/adapter-sqlite/generate-schema/templates.server.js +9 -9
- package/dist/adapter-sqlite/paths.server.js +24 -15
- package/dist/adapter-sqlite/rows.server.d.ts +1 -1
- package/dist/core/adapter.d.ts +8 -4
- package/dist/core/boot.server.d.ts +2 -2
- package/dist/core/config/context.server.d.ts +2 -2
- package/dist/core/dev/codegen/routes/common.server.d.ts +2 -0
- package/dist/core/dev/codegen/routes/common.server.js +7 -3
- package/dist/core/dev/codegen/routes/util.server.d.ts +2 -1
- package/dist/core/dev/codegen/routes/util.server.js +4 -1
- package/dist/core/dev/config-memo.server.js +4 -0
- package/dist/core/i18n/en/fields.d.ts +1 -1
- package/dist/core/i18n/en/fields.js +1 -1
- package/dist/core/i18n/fr/fields.d.ts +1 -1
- package/dist/core/i18n/fr/fields.js +1 -1
- package/dist/core/prototype/collection/operations/duplicate.js +1 -1
- package/dist/core/prototype/collection/thumbnail/hooks/set-document-thumbnail.server.js +1 -1
- package/dist/core/prototype/shared/title/hooks/set-document-title.server.js +1 -1
- package/dist/core/prototype/shared/url/addresses.server.d.ts +10 -0
- package/dist/core/prototype/shared/url/addresses.server.js +17 -17
- package/dist/core/prototype/shared/url/hooks/detach-paths.server.d.ts +3 -2
- package/dist/core/prototype/shared/url/hooks/detach-paths.server.js +9 -8
- package/dist/core/prototype/shared/url/hooks/sync-paths.server.d.ts +3 -2
- package/dist/core/prototype/shared/url/hooks/sync-paths.server.js +5 -4
- package/dist/fields/blocks/component/AddBlockButton.svelte +1 -1
- package/dist/fields/blocks/component/Block.svelte +4 -5
- package/dist/fields/blocks/component/Blocks.svelte +17 -13
- package/dist/fields/blocks/component/focus/BlocksFocus.svelte +53 -65
- package/dist/fields/blocks/component/focus/DefaultRender.svelte +108 -0
- package/dist/fields/blocks/component/focus/{RenderPlaceholder.svelte.d.ts → DefaultRender.svelte.d.ts} +3 -3
- package/dist/fields/blocks/component/focus/Inspector.svelte +160 -0
- package/dist/fields/blocks/component/focus/Inspector.svelte.d.ts +7 -0
- package/dist/fields/blocks/component/focus/Layers.svelte +16 -3
- package/dist/fields/blocks/component/focus/LayersList.svelte +28 -11
- package/dist/fields/blocks/component/focus/LayersList.svelte.d.ts +2 -0
- package/dist/fields/blocks/component/focus/Palette.svelte +3 -3
- package/dist/fields/blocks/component/focus/Renders.svelte +66 -15
- package/dist/fields/blocks/component/focus/Renders.svelte.d.ts +5 -1
- package/dist/fields/blocks/component/focus/StagePlaceholder.svelte +1 -4
- package/dist/fields/blocks/component/focus/focus.svelte.d.ts +26 -12
- package/dist/fields/blocks/component/focus/focus.svelte.js +114 -57
- package/dist/fields/blocks/component/picker/BlockTile.svelte +3 -5
- package/dist/fields/combobox/component/ComboBox.svelte +1 -1
- package/dist/fields/combobox/component/combobox.css +1 -1
- package/dist/fields/date/component/Date.svelte +1 -1
- package/dist/fields/group/component/Group.svelte +4 -4
- package/dist/fields/link/component/Link.svelte +1 -1
- package/dist/fields/link/component/RessourceInput.svelte +2 -2
- package/dist/fields/link/index.d.ts +1 -1
- package/dist/fields/number/component/Number.svelte +1 -1
- package/dist/fields/relation/component/Cell.svelte +3 -1
- package/dist/fields/relation/component/RelationInline.svelte +51 -20
- package/dist/fields/relation/component/default/Default.svelte +3 -3
- package/dist/fields/relation/component/upload/Browse.svelte +2 -2
- package/dist/fields/relation/component/upload/Upload.svelte +2 -2
- package/dist/fields/relation/index.d.ts +1 -41
- package/dist/fields/relation/index.js +0 -67
- package/dist/fields/relation/util.d.ts +69 -0
- package/dist/fields/relation/util.js +103 -0
- package/dist/fields/rich-text/client.d.ts +2 -5
- package/dist/fields/rich-text/client.js +1 -3
- package/dist/fields/rich-text/component/Cell.svelte +1 -1
- package/dist/fields/rich-text/component/bubble-menu/bubble-menu.css +1 -1
- package/dist/fields/rich-text/component/bubble-menu/node-selector/node-selector.css +1 -1
- package/dist/fields/rich-text/core/features/link/component/link-selector.svelte +2 -2
- package/dist/fields/rich-text/core/features/resource/resource-extension.js +3 -3
- package/dist/fields/rich-text/core/features/resource/resource.svelte +2 -2
- package/dist/fields/rich-text/core/features/upload/upload-extension.js +3 -4
- package/dist/fields/rich-text/core/features/upload/upload.svelte +2 -2
- package/dist/fields/rich-text/index.d.ts +0 -17
- package/dist/fields/rich-text/index.js +0 -44
- package/dist/fields/rich-text/json.d.ts +18 -0
- package/dist/fields/rich-text/json.js +44 -0
- package/dist/fields/select/component/Select.svelte +2 -2
- package/dist/fields/text/component/TextInline.svelte +113 -0
- package/dist/fields/text/component/TextInline.svelte.d.ts +14 -0
- package/dist/fields/textarea/component/TextArea.svelte +1 -1
- package/dist/fields/tree/component/TreeBlock.svelte +4 -4
- package/dist/index.d.ts +2 -9
- package/dist/index.js +3 -8
- package/dist/{panel/components/sections/live → live}/Consumer.svelte +2 -2
- package/dist/{panel/components/sections/live → live}/Consumer.svelte.d.ts +1 -1
- package/dist/{panel/components/sections/live → live}/LiveEdit.svelte +2 -2
- package/dist/{panel/components/sections/live → live}/Provider.svelte +1 -1
- package/dist/{panel/context/live.svelte.d.ts → live/context.svelte.d.ts} +1 -1
- package/dist/{panel/context/live.svelte.js → live/context.svelte.js} +3 -3
- package/dist/panel/components/fields/Error.svelte +1 -1
- package/dist/panel/components/fields/FieldsPreview.svelte +1 -1
- package/dist/panel/components/fields/FieldsPreviewTrigger.svelte +1 -1
- package/dist/panel/components/fields/Hint.svelte +1 -1
- package/dist/panel/components/fields/setting.css +6 -6
- package/dist/panel/components/sections/auth/AuthForm.svelte +2 -2
- package/dist/panel/components/sections/collection/Avatar.svelte +1 -1
- package/dist/panel/components/sections/collection/bulk-upload/FileDrop.svelte +1 -1
- package/dist/panel/components/sections/collection/bulk-upload/PageDrop.svelte +3 -3
- package/dist/panel/components/sections/collection/bulk-upload/UploadProgress.svelte +1 -1
- package/dist/panel/components/sections/collection/folder/Folder.svelte +1 -1
- package/dist/panel/components/sections/collection/folder/FolderWithActions.svelte +2 -2
- package/dist/panel/components/sections/collection/grid/grid-item/GridItem.svelte +1 -1
- package/dist/panel/components/sections/collection/header/DisplayMode.svelte +1 -2
- package/dist/panel/components/sections/collection/list/CollectionList.svelte +2 -2
- package/dist/panel/components/sections/collection/list/header/Header.svelte +1 -1
- package/dist/panel/components/sections/collection/list/row/Row.svelte +1 -1
- package/dist/panel/components/sections/collection/tree/CollectionTree.svelte +1 -1
- package/dist/panel/components/sections/collection/tree/CollectionTreeNode.svelte +1 -1
- package/dist/panel/components/sections/collection/upload-thumb-cell/UploadThumbCell.svelte +1 -1
- package/dist/panel/components/sections/commands/CommandButton.svelte +1 -1
- package/dist/panel/components/sections/document/AuthAPIKeyDialog.svelte +1 -1
- package/dist/panel/components/sections/document/AuthFooter.svelte +2 -2
- package/dist/panel/components/sections/document/AutoSaveBanner.svelte +2 -2
- package/dist/panel/components/sections/document/ButtonStatus.svelte +1 -1
- package/dist/panel/components/sections/document/ChangeSlugDialog.svelte +1 -1
- package/dist/panel/components/sections/document/DocumentChildren.svelte +2 -2
- package/dist/panel/components/sections/document/upload-header/UploadHeader.svelte +2 -2
- package/dist/panel/components/sections/document/upload-header/drop-zone/DropZone.svelte +1 -1
- package/dist/panel/components/sections/document/upload-header/drop-zone/DropZone.svelte.d.ts +1 -1
- package/dist/panel/components/sections/live/LiveFloatingUI.svelte +2 -2
- package/dist/panel/components/ui/breadcrumb/BreadCrumb.svelte +1 -1
- package/dist/panel/components/ui/button/button.svelte +3 -4
- package/dist/panel/components/ui/calendar/calendar.svelte.d.ts +1 -1
- package/dist/panel/components/ui/card/card.svelte +2 -2
- package/dist/panel/components/ui/card-document/card-document.svelte +2 -2
- package/dist/panel/components/ui/card-resource/card-resource.svelte +2 -2
- package/dist/panel/components/ui/checkbox/checkbox.svelte.d.ts +1 -1
- package/dist/panel/components/ui/command/command-input.svelte +1 -1
- package/dist/panel/components/ui/context-menu/context-menu.css +1 -1
- package/dist/panel/components/ui/dialog/dialog-content.css +1 -1
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +1 -1
- package/dist/panel/components/ui/dropdown-menu/dropdown-menu-content.css +1 -1
- package/dist/panel/components/ui/input/input.svelte +1 -1
- package/dist/panel/components/ui/nav/Nav.svelte +2 -3
- package/dist/panel/components/ui/nav/NavGroup.svelte +1 -1
- package/dist/panel/components/ui/nav/NavItemButton.svelte +1 -1
- package/dist/panel/components/ui/nav/UserButton.svelte +1 -1
- package/dist/panel/components/ui/page-header/PageHeader.svelte +1 -1
- package/dist/panel/components/ui/popover/popover-content.css +1 -1
- package/dist/panel/components/ui/radio-row-group/radio-row-group.css +0 -1
- package/dist/panel/components/ui/sheet/sheet.css +1 -1
- package/dist/panel/components/ui/sonner/sonner.css +1 -1
- package/dist/panel/components/ui/switch/switch.css +0 -2
- package/dist/panel/components/ui/switch/switch.svelte.d.ts +1 -1
- package/dist/panel/components/ui/tabs/tabs.css +2 -1
- package/dist/panel/components/ui/tag/tag.svelte +1 -1
- package/dist/panel/components/ui/tree/tree-rows.css +3 -3
- package/dist/panel/context/collection.svelte.d.ts +2 -2
- package/dist/panel/context/config.svelte.d.ts +2 -2
- package/dist/panel/context/documentForm.svelte.js +1 -1
- package/dist/panel/index.d.ts +3 -5
- package/dist/panel/index.js +4 -6
- package/dist/panel/pages/auth/forgot-password/ForgotPassword.svelte +1 -1
- package/dist/panel/pages/dashboard/Dashboard.svelte +1 -1
- package/dist/panel/pages/dashboard/DashboardCard.svelte +2 -2
- package/dist/panel/pages/dashboard/DashboardCollection.svelte +1 -1
- package/dist/panel/pages/dashboard/DashboardRow.svelte +1 -1
- package/dist/panel/public.d.ts +4 -0
- package/dist/panel/public.js +6 -0
- package/dist/panel/style/index.css +13 -37
- package/dist/panel/style/mixins/index.css +1 -1
- package/dist/panel/style/palette.css +3 -3
- package/dist/panel/style/scheme.css +10 -34
- package/dist/public.d.ts +13 -0
- package/dist/public.js +12 -0
- package/package.json +12 -6
- package/dist/fields/blocks/component/focus/RenderPlaceholder.svelte +0 -77
- package/dist/fields/blocks/component/focus/Stage.svelte +0 -190
- package/dist/fields/blocks/component/focus/Stage.svelte.d.ts +0 -8
- package/dist/fields/relation/client.d.ts +0 -28
- package/dist/fields/relation/client.js +0 -37
- /package/dist/{panel/util → fields/relation}/populate.d.ts +0 -0
- /package/dist/{panel/util → fields/relation}/populate.js +0 -0
- /package/dist/{panel/components/sections/live → live}/LiveEdit.svelte.d.ts +0 -0
- /package/dist/{panel/components/sections/live → live}/Provider.svelte.d.ts +0 -0
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
{/if}
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
120
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
121
121
|
|
|
122
122
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
123
123
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
background-color: var(--rz-bg-raised);
|
|
143
143
|
box-shadow:
|
|
144
144
|
0 0 0 1px var(--rz-border),
|
|
145
|
-
var(--rz-shadow-raised);
|
|
145
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
146
146
|
overflow: hidden;
|
|
147
147
|
border-radius: var(--rz-radius-xl);
|
|
148
148
|
}
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
/>
|
|
117
117
|
</label>
|
|
118
118
|
|
|
119
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
119
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
120
120
|
|
|
121
121
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
122
122
|
|
package/dist/panel/components/sections/document/upload-header/drop-zone/DropZone.svelte.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ type Props = {
|
|
|
7
7
|
onGeneratingPreviewStart: () => void;
|
|
8
8
|
onGeneratingPreviewEnd: () => void;
|
|
9
9
|
};
|
|
10
|
-
declare const DropZone: import("svelte").Component<Props, {}, "
|
|
10
|
+
declare const DropZone: import("svelte").Component<Props, {}, "preview" | "file">;
|
|
11
11
|
type DropZone = ReturnType<typeof DropZone>;
|
|
12
12
|
export default DropZone;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</Button>
|
|
88
88
|
</div>
|
|
89
89
|
|
|
90
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
90
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
91
91
|
|
|
92
92
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
93
93
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
background-color: var(--rz-bg-float);
|
|
113
113
|
box-shadow:
|
|
114
114
|
0 0 0 1px var(--rz-border),
|
|
115
|
-
var(--rz-shadow-float);
|
|
115
|
+
var(--rz-shadow-float, 0 0 transparent);
|
|
116
116
|
padding: var(--rz-size-2);
|
|
117
117
|
border-radius: var(--rz-radius-md);
|
|
118
118
|
z-index: 1000;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{/each}
|
|
24
24
|
</nav>
|
|
25
25
|
|
|
26
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
26
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
27
27
|
|
|
28
28
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
29
29
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</button>
|
|
62
62
|
{/if}
|
|
63
63
|
|
|
64
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
64
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
65
65
|
|
|
66
66
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
67
67
|
|
|
@@ -203,9 +203,8 @@
|
|
|
203
203
|
|
|
204
204
|
/** Default */
|
|
205
205
|
.rz-button--default {
|
|
206
|
-
background: var(--rz-
|
|
206
|
+
background-color: var(--rz-bg-inverse);
|
|
207
207
|
color: var(--rz-fg-inverse);
|
|
208
|
-
box-shadow: var(--rz-shadow-primary);
|
|
209
208
|
&:hover:not(:disabled) {
|
|
210
209
|
filter: brightness(1.12);
|
|
211
210
|
}
|
|
@@ -256,7 +255,7 @@
|
|
|
256
255
|
background-color: var(--rz-bg-raised);
|
|
257
256
|
box-shadow:
|
|
258
257
|
0 0 0 1px var(--rz-border),
|
|
259
|
-
var(--rz-shadow-raised);
|
|
258
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
260
259
|
background-color: var(--rz-button-secondary-bg);
|
|
261
260
|
color: var(--rz-button-secondary-fg);
|
|
262
261
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Calendar as CalendarPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
|
|
2
2
|
import * as Calendar from './index.js';
|
|
3
3
|
import './calendar.css';
|
|
4
|
-
declare const Calendar: import("svelte").Component<WithoutChildrenOrChild<CalendarPrimitive.RootProps>, {}, "value" | "
|
|
4
|
+
declare const Calendar: import("svelte").Component<WithoutChildrenOrChild<CalendarPrimitive.RootProps>, {}, "value" | "placeholder" | "ref">;
|
|
5
5
|
type Calendar = ReturnType<typeof Calendar>;
|
|
6
6
|
export default Calendar;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{@render children?.()}
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
19
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
20
20
|
|
|
21
21
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
22
22
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
background-color: var(--rz-bg-raised);
|
|
40
40
|
box-shadow:
|
|
41
41
|
0 0 0 1px var(--rz-border),
|
|
42
|
-
var(--rz-shadow-raised);
|
|
42
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
43
43
|
background-color: var(--rz-card-color-bg);
|
|
44
44
|
border-radius: var(--rz-radius-lg);
|
|
45
45
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
40
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
41
41
|
|
|
42
42
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
43
43
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
background-color: var(--rz-bg-raised);
|
|
59
59
|
box-shadow:
|
|
60
60
|
0 0 0 1px var(--rz-border),
|
|
61
|
-
var(--rz-shadow-raised);
|
|
61
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
62
62
|
border-radius: var(--rz-radius-lg);
|
|
63
63
|
aspect-ratio: 4 / 5;
|
|
64
64
|
width: 100%;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
</button>
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
58
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
59
59
|
|
|
60
60
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
61
61
|
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
background-color: var(--rz-bg-raised);
|
|
83
83
|
box-shadow:
|
|
84
84
|
0 0 0 1px var(--rz-border),
|
|
85
|
-
var(--rz-shadow-raised);
|
|
85
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
86
86
|
background-color: var(--rz-ressource-card-bg);
|
|
87
87
|
position: relative;
|
|
88
88
|
display: flex;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Checkbox as CheckboxPrimitive } from 'bits-ui';
|
|
2
2
|
import './checkbox.css';
|
|
3
|
-
declare const Checkbox: import("svelte").Component<Omit<Omit<CheckboxPrimitive.RootProps, "child">, "children">, {}, "
|
|
3
|
+
declare const Checkbox: import("svelte").Component<Omit<Omit<CheckboxPrimitive.RootProps, "child">, "children">, {}, "checked" | "ref">;
|
|
4
4
|
type Checkbox = ReturnType<typeof Checkbox>;
|
|
5
5
|
export default Checkbox;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{@render end?.()}
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
29
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
30
30
|
|
|
31
31
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
{/snippet}
|
|
36
36
|
</DropdownMenuPrimitive.CheckboxItem>
|
|
37
37
|
|
|
38
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
38
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
39
39
|
|
|
40
40
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
41
41
|
|
|
@@ -3,6 +3,6 @@ import type { Snippet } from 'svelte';
|
|
|
3
3
|
type $$ComponentProps = WithoutChildrenOrChild<DropdownMenuPrimitive.CheckboxItemProps> & {
|
|
4
4
|
children?: Snippet;
|
|
5
5
|
};
|
|
6
|
-
declare const DropdownMenuCheckboxItem: import("svelte").Component<$$ComponentProps, {}, "
|
|
6
|
+
declare const DropdownMenuCheckboxItem: import("svelte").Component<$$ComponentProps, {}, "checked" | "indeterminate" | "ref">;
|
|
7
7
|
type DropdownMenuCheckboxItem = ReturnType<typeof DropdownMenuCheckboxItem>;
|
|
8
8
|
export default DropdownMenuCheckboxItem;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
background-color: var(--rz-bg-float);
|
|
3
3
|
box-shadow:
|
|
4
4
|
0 0 0 1px var(--rz-border),
|
|
5
|
-
var(--rz-shadow-float);
|
|
5
|
+
var(--rz-shadow-float, 0 0 transparent);
|
|
6
6
|
/* Over the sidebar (300) and a dialog (1010), which a menu can open from. */
|
|
7
7
|
z-index: 1100;
|
|
8
8
|
min-width: var(--min-width, 8rem);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<input bind:this={ref} class="rz-input" bind:value {...restProps} />
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
28
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
29
29
|
|
|
30
30
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
31
31
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<UserButton navCollapsed={isCollapsed} />
|
|
96
96
|
</aside>
|
|
97
97
|
|
|
98
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
98
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
99
99
|
|
|
100
100
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
101
101
|
|
|
@@ -174,9 +174,8 @@
|
|
|
174
174
|
border-radius: var(--rz-radius-sm);
|
|
175
175
|
font-size: var(--rz-text-xs);
|
|
176
176
|
text-transform: uppercase;
|
|
177
|
-
background: var(--rz-
|
|
177
|
+
background-color: var(--rz-bg-inverse);
|
|
178
178
|
color: var(--rz-fg-inverse);
|
|
179
|
-
box-shadow: var(--rz-shadow-primary);
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
.rz-nav__brand-name {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
|
|
48
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
48
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
49
49
|
|
|
50
50
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
51
51
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
{/if}
|
|
25
25
|
</a>
|
|
26
26
|
|
|
27
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
27
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
28
28
|
|
|
29
29
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
30
30
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
</DropdownMenu.Portal>
|
|
76
76
|
</DropdownMenu.Root>
|
|
77
77
|
|
|
78
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
78
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
79
79
|
|
|
80
80
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
81
81
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
{/if}
|
|
77
77
|
{/if}
|
|
78
78
|
|
|
79
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
79
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
80
80
|
|
|
81
81
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
82
82
|
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
align-items: center;
|
|
14
14
|
border-radius: var(--rz-radius-full);
|
|
15
15
|
border: 2px solid transparent;
|
|
16
|
-
box-shadow: var(--rz-shadow-raised);
|
|
17
16
|
transition: all 0.1s ease;
|
|
18
17
|
outline: none;
|
|
19
18
|
}
|
|
@@ -47,7 +46,6 @@
|
|
|
47
46
|
display: block;
|
|
48
47
|
transition: translate 0.25s ease;
|
|
49
48
|
border-radius: var(--rz-radius-full);
|
|
50
|
-
box-shadow: var(--rz-shadow-knob);
|
|
51
49
|
background-color: var(--rz-switch-color-thumb);
|
|
52
50
|
}
|
|
53
51
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Switch as SwitchPrimitive } from 'bits-ui';
|
|
2
2
|
import './switch.css';
|
|
3
|
-
declare const Switch: import("svelte").Component<Omit<Omit<SwitchPrimitive.RootProps, "child">, "children">, {}, "
|
|
3
|
+
declare const Switch: import("svelte").Component<Omit<Omit<SwitchPrimitive.RootProps, "child">, "children">, {}, "checked" | "ref">;
|
|
4
4
|
type Switch = ReturnType<typeof Switch>;
|
|
5
5
|
export default Switch;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
color: var(--rz-fg-muted);
|
|
17
17
|
font-variation-settings: 'wght' 380;
|
|
18
18
|
font-weight: 380;
|
|
19
|
+
border: 1px solid transparent;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.rz-tabs-trigger:hover {
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
|
|
38
39
|
.rz-tabs-trigger[data-state='active'] {
|
|
39
40
|
background-color: var(--rz-bg-knob);
|
|
40
|
-
|
|
41
|
+
border: 1px solid var(--rz-border);
|
|
41
42
|
position: relative;
|
|
42
43
|
font-variation-settings: 'wght' 450;
|
|
43
44
|
font-weight: 450;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</button>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
-
<style global>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
23
|
+
<style global>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
24
24
|
|
|
25
25
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
26
26
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
background-color: var(--rz-bg-raised);
|
|
22
22
|
box-shadow:
|
|
23
23
|
0 0 0 1px var(--rz-border),
|
|
24
|
-
var(--rz-shadow-raised);
|
|
24
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
25
25
|
border-radius: var(--rz-radius-xl);
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/* Inside a group, a block, a tree item or
|
|
35
|
-
:is(.rz-group-field__content, .rz-block__fields, .rz-tree-item__fields, .rz-
|
|
34
|
+
/* Inside a group, a block, a tree item or the inspector: a hairline, no second fill. */
|
|
35
|
+
:is(.rz-group-field__content, .rz-block__fields, .rz-tree-item__fields, .rz-inspector__fields)
|
|
36
36
|
.rz-tree-card:not([data-empty]) {
|
|
37
37
|
background-color: transparent;
|
|
38
38
|
box-shadow: 0 0 0 1px var(--rz-border);
|
|
@@ -48,7 +48,7 @@ export declare function setCollectionContext(args: Args): {
|
|
|
48
48
|
/** A filter change drops the selection, so no hidden document stays picked. */
|
|
49
49
|
statusFilter: StatusFilter;
|
|
50
50
|
kindFilter: KindFilter;
|
|
51
|
-
readonly kinds: ("
|
|
51
|
+
readonly kinds: ("image" | "document" | "audio" | "video" | "other")[];
|
|
52
52
|
readonly draftsCount: number;
|
|
53
53
|
readonly totalSize: number;
|
|
54
54
|
/** Every document of the collection, whatever the search. */
|
|
@@ -110,7 +110,7 @@ export declare function getCollectionContext(): {
|
|
|
110
110
|
/** A filter change drops the selection, so no hidden document stays picked. */
|
|
111
111
|
statusFilter: StatusFilter;
|
|
112
112
|
kindFilter: KindFilter;
|
|
113
|
-
readonly kinds: ("
|
|
113
|
+
readonly kinds: ("image" | "document" | "audio" | "video" | "other")[];
|
|
114
114
|
readonly draftsCount: number;
|
|
115
115
|
readonly totalSize: number;
|
|
116
116
|
/** Every document of the collection, whatever the search. */
|
|
@@ -8,7 +8,7 @@ export declare function setConfigContext(initial: BuiltConfigClient): {
|
|
|
8
8
|
getDocumentConfig: (args: {
|
|
9
9
|
prototype: Prototype;
|
|
10
10
|
slug: PrototypeSlug;
|
|
11
|
-
}) => import("../../core/config/types.js").
|
|
11
|
+
}) => import("../../core/config/types.js").BuiltArea | import("../../core/config/types.js").BuiltCollection;
|
|
12
12
|
};
|
|
13
13
|
export declare function getConfigContext(): {
|
|
14
14
|
readonly raw: BuiltConfigClient;
|
|
@@ -17,5 +17,5 @@ export declare function getConfigContext(): {
|
|
|
17
17
|
getDocumentConfig: (args: {
|
|
18
18
|
prototype: Prototype;
|
|
19
19
|
slug: PrototypeSlug;
|
|
20
|
-
}) => import("../../core/config/types.js").
|
|
20
|
+
}) => import("../../core/config/types.js").BuiltArea | import("../../core/config/types.js").BuiltCollection;
|
|
21
21
|
};
|
|
@@ -7,7 +7,7 @@ import { getFieldAtPath } from '../../core/fields/util.js';
|
|
|
7
7
|
import { buildConfigMap } from '../../core/pipeline/config-map/index.js';
|
|
8
8
|
import { AUTO_SAVE_DELAY_MS, VERSIONS_STATUS } from '../../core/prototype/shared/versions/constant.js';
|
|
9
9
|
import { apiUrl, panelUrl } from '../../core/routes/util.js';
|
|
10
|
-
import { isJSONContent, richTextJSONToText } from '../../fields/rich-text/
|
|
10
|
+
import { isJSONContent, richTextJSONToText } from '../../fields/rich-text/json.js';
|
|
11
11
|
import { isObjectLiteral, omit } from '../../util/object.js';
|
|
12
12
|
import { normalizeFieldPath } from '../../util/string.js';
|
|
13
13
|
import { randomId } from '../../util/random.js';
|
package/dist/panel/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { Snippet } from 'svelte';
|
|
|
5
5
|
import { Field } from './components/fields/index.js';
|
|
6
6
|
import RelationInline from '../fields/relation/component/RelationInline.svelte';
|
|
7
7
|
import RichTextInline from '../fields/rich-text/component/RichTextInline.svelte';
|
|
8
|
+
import TextInline from '../fields/text/component/TextInline.svelte';
|
|
8
9
|
import RenderFields from './components/fields/RenderFields.svelte';
|
|
9
10
|
import Panel from './components/Root.svelte';
|
|
10
11
|
import Doc from './components/sections/document/Document.svelte';
|
|
@@ -12,17 +13,14 @@ import Button from './components/ui/button/button.svelte';
|
|
|
12
13
|
import Input from './components/ui/input/input.svelte';
|
|
13
14
|
import SpinLoader from './components/ui/spin-loader/SpinLoader.svelte';
|
|
14
15
|
import Area from './pages/area/Area.svelte';
|
|
15
|
-
import ForgotPassword from './pages/auth/forgot-password/ForgotPassword.svelte';
|
|
16
|
-
import ResetPassword from './pages/auth/reset-password/ResetPassword.svelte';
|
|
17
|
-
import SignIn from './pages/auth/sign-in/SignIn.svelte';
|
|
18
16
|
import CollectionDoc from './pages/collection-document/CollectionDocument.svelte';
|
|
19
17
|
import Collection from './pages/collection/Collection.svelte';
|
|
20
18
|
import Dashboard from './pages/dashboard/Dashboard.svelte';
|
|
21
19
|
import Live from './pages/live/Live.svelte';
|
|
22
20
|
import type { Route } from './types.js';
|
|
23
|
-
import { populate } from '
|
|
21
|
+
import { populate } from '../fields/relation/populate.js';
|
|
24
22
|
import { useCommands } from './context/commands.svelte.js';
|
|
25
|
-
export { Area, Button, Collection, CollectionDoc, Dashboard, Doc, Field,
|
|
23
|
+
export { Area, Button, Collection, CollectionDoc, Dashboard, Doc, Field, Input, Live, Panel, RelationInline, RenderFields, RichTextInline, TextInline, SpinLoader, populate, useCommands };
|
|
26
24
|
export declare const CONTEXT: {
|
|
27
25
|
COLLECTION: symbol;
|
|
28
26
|
LIVE: symbol;
|
package/dist/panel/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Field } from './components/fields/index.js';
|
|
2
2
|
import RelationInline from '../fields/relation/component/RelationInline.svelte';
|
|
3
3
|
import RichTextInline from '../fields/rich-text/component/RichTextInline.svelte';
|
|
4
|
+
import TextInline from '../fields/text/component/TextInline.svelte';
|
|
4
5
|
import RenderFields from './components/fields/RenderFields.svelte';
|
|
5
6
|
import Panel from './components/Root.svelte';
|
|
6
7
|
import Doc from './components/sections/document/Document.svelte';
|
|
@@ -9,23 +10,20 @@ import Input from './components/ui/input/input.svelte';
|
|
|
9
10
|
import SpinLoader from './components/ui/spin-loader/SpinLoader.svelte';
|
|
10
11
|
import { API_PROXY } from './context/api-proxy.svelte.js';
|
|
11
12
|
import { COLLECTION_CTX } from './context/collection.svelte.js';
|
|
12
|
-
import { LIVE_KEY } from '
|
|
13
|
+
import { LIVE_KEY } from '../live/context.svelte.js';
|
|
13
14
|
import { LOCALE_CTX } from './context/locale.svelte.js';
|
|
14
15
|
import { USER_CTX } from './context/user.svelte.js';
|
|
15
16
|
import { TITLE_CTX } from './context/title.js';
|
|
16
17
|
import Area from './pages/area/Area.svelte';
|
|
17
|
-
import ForgotPassword from './pages/auth/forgot-password/ForgotPassword.svelte';
|
|
18
|
-
import ResetPassword from './pages/auth/reset-password/ResetPassword.svelte';
|
|
19
|
-
import SignIn from './pages/auth/sign-in/SignIn.svelte';
|
|
20
18
|
import CollectionDoc from './pages/collection-document/CollectionDocument.svelte';
|
|
21
19
|
import Collection from './pages/collection/Collection.svelte';
|
|
22
20
|
import Dashboard from './pages/dashboard/Dashboard.svelte';
|
|
23
21
|
import Live from './pages/live/Live.svelte';
|
|
24
|
-
import { populate } from '
|
|
22
|
+
import { populate } from '../fields/relation/populate.js';
|
|
25
23
|
import { useCommands } from './context/commands.svelte.js';
|
|
26
24
|
export {
|
|
27
25
|
// Components
|
|
28
|
-
Area, Button, Collection, CollectionDoc, Dashboard, Doc, Field,
|
|
26
|
+
Area, Button, Collection, CollectionDoc, Dashboard, Doc, Field, Input, Live, Panel, RelationInline, RenderFields, RichTextInline, TextInline, SpinLoader,
|
|
29
27
|
// A block render's relations, resolved as the API answers them
|
|
30
28
|
populate,
|
|
31
29
|
// The commands a component offers while mounted: palette lines, keys
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
{/if}
|
|
53
53
|
</AuthForm>
|
|
54
54
|
|
|
55
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
55
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
56
56
|
|
|
57
57
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
58
58
|
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
{/snippet}
|
|
126
126
|
</Page>
|
|
127
127
|
|
|
128
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
128
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
129
129
|
|
|
130
130
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
131
131
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
{@render children()}
|
|
39
39
|
</section>
|
|
40
40
|
|
|
41
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
41
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
42
42
|
|
|
43
43
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
44
44
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
background-color: var(--rz-bg-raised);
|
|
59
59
|
box-shadow:
|
|
60
60
|
0 0 0 1px var(--rz-border),
|
|
61
|
-
var(--rz-shadow-raised);
|
|
61
|
+
var(--rz-shadow-raised, 0 0 transparent);
|
|
62
62
|
border-radius: var(--rz-radius-lg);
|
|
63
63
|
overflow: hidden;
|
|
64
64
|
}
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<BulkUploadDialog target={uploadTarget} bind:open={uploadOpen} />
|
|
126
126
|
{/if}
|
|
127
127
|
|
|
128
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
128
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
129
129
|
|
|
130
130
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
131
131
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</a>
|
|
34
34
|
</li>
|
|
35
35
|
|
|
36
|
-
<style>/* A level: its fill, a hairline, its shadow. raised, float. */
|
|
36
|
+
<style>/* A level: its fill, a hairline, and its shadow when it has one. raised has none, float does. */
|
|
37
37
|
|
|
38
38
|
/* A well: an input, a track, a dropzone. Its edge shows on hover. */
|
|
39
39
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// rimecms/panel/public: the panel's pages a visitor opens before signing in. Nothing they import is
|
|
2
|
+
// the rest of the panel or the config, which `public-entries.spec.ts` checks.
|
|
3
|
+
import ForgotPassword from './pages/auth/forgot-password/ForgotPassword.svelte';
|
|
4
|
+
import ResetPassword from './pages/auth/reset-password/ResetPassword.svelte';
|
|
5
|
+
import SignIn from './pages/auth/sign-in/SignIn.svelte';
|
|
6
|
+
export { ForgotPassword, ResetPassword, SignIn };
|