@woodylab/payload 0.0.90 → 0.0.91

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,2 +1,2 @@
1
1
  import type { Block } from 'payload';
2
- export declare const BlockViewConfig: Block;
2
+ export declare const blockView: Block;
@@ -1,5 +1,5 @@
1
1
  // @ts-ignore
2
- export const BlockViewConfig = {
2
+ export const blockView = {
3
3
  slug: 'view', // #TODO verificare referenze lato client per rendering
4
4
  labels: {
5
5
  singular: 'View',
@@ -0,0 +1,3 @@
1
+ import { CollectionConfig } from 'payload';
2
+ declare const ComponentDefinitions: CollectionConfig;
3
+ export default ComponentDefinitions;
@@ -0,0 +1,34 @@
1
+ const ComponentDefinitions = {
2
+ slug: 'component-definitions',
3
+ labels: {
4
+ singular: 'Component Definition',
5
+ plural: 'Component Definitions',
6
+ },
7
+ admin: {
8
+ useAsTitle: 'name',
9
+ },
10
+ fields: [
11
+ {
12
+ name: 'name',
13
+ type: 'text',
14
+ required: true,
15
+ unique: true,
16
+ },
17
+ {
18
+ name: 'componentName',
19
+ type: 'text',
20
+ required: true,
21
+ unique: true,
22
+ },
23
+ {
24
+ name: 'defaultStyle',
25
+ type: 'text',
26
+ },
27
+ {
28
+ name: 'propsSchema',
29
+ type: 'json',
30
+ required: false,
31
+ },
32
+ ],
33
+ };
34
+ export default ComponentDefinitions;
@@ -0,0 +1,3 @@
1
+ import { CollectionConfig } from 'payload';
2
+ declare const ViewModes: CollectionConfig;
3
+ export default ViewModes;
@@ -0,0 +1,24 @@
1
+ const ViewModes = {
2
+ slug: 'view-modes',
3
+ labels: {
4
+ plural: 'View Modes',
5
+ singular: 'View Mode',
6
+ },
7
+ admin: {
8
+ useAsTitle: 'name',
9
+ },
10
+ fields: [
11
+ {
12
+ name: 'name',
13
+ type: 'text',
14
+ required: true,
15
+ unique: true,
16
+ },
17
+ {
18
+ name: 'className',
19
+ type: 'text',
20
+ required: true,
21
+ },
22
+ ],
23
+ };
24
+ export default ViewModes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woodylab/payload",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",