rimecms 0.25.3 → 0.25.4

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.
@@ -1,12 +1,13 @@
1
1
  import { FieldBuilder } from '../../core/fields/builders/field-builder.js';
2
- import type { GenericDoc } from '../../core/types/doc.js';
3
2
  import type { Field, FieldAccess } from '../types.js';
4
3
  import type { DocumentFormContext } from '../../panel/context/documentForm.svelte.js';
4
+ import type { GenericDoc } from '../../types.js';
5
+ import type { WithOptional } from '../../util/types.js';
5
6
  import type { Component } from 'svelte';
6
7
  type TypedComponent = Component<{
7
8
  path: string;
8
9
  config: ComponentField;
9
- form: DocumentFormContext<GenericDoc>;
10
+ form: DocumentFormContext<WithOptional<GenericDoc, 'id'>>;
10
11
  }>;
11
12
  export declare const component: (component: TypedComponent) => ComponentFieldBuilder;
12
13
  export declare class ComponentFieldBuilder extends FieldBuilder<ComponentField> {
@@ -40,9 +40,9 @@
40
40
  {#each authorizedFields as field, index (index)}
41
41
  {#if !form.isLive || (form.isLive && isLiveField(field.raw))}
42
42
  {#if field instanceof ComponentFieldBuilder}
43
- {@const FieldComponent = field.component}
43
+ {@const FieldComponent = field.raw.component}
44
44
  <div data-type={field.type} class="rz-render-fields__field rz-render-fields__field--full">
45
- <FieldComponent {path} config={field} {form} />
45
+ <FieldComponent {path} config={field.raw} {form} />
46
46
  </div>
47
47
  {:else if isPresentative(field.raw)}
48
48
  {@const Separator = field.component}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimecms",
3
- "version": "0.25.3",
3
+ "version": "0.25.4",
4
4
  "homepage": "https://github.com/bienbiendev/rime",
5
5
  "scripts": {
6
6
  "dev": "vite dev",