@woodylab/payload 0.0.89 → 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.
- package/dist/config/blocks/blockView.d.ts +1 -1
- package/dist/config/blocks/blockView.js +1 -1
- package/dist/config/collections/componentDefinition.d.ts +3 -0
- package/dist/config/collections/componentDefinition.js +34 -0
- package/dist/config/collections/viewModes.d.ts +3 -0
- package/dist/config/collections/viewModes.js +24 -0
- package/package.json +5 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Block } from 'payload';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const blockView: Block;
|
|
@@ -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,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.
|
|
3
|
+
"version": "0.0.91",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"import": "./dist/config/index.js",
|
|
18
18
|
"types": "./dist/config/index.d.ts"
|
|
19
19
|
},
|
|
20
|
+
"./fields": {
|
|
21
|
+
"import": "./dist/fields/index.js",
|
|
22
|
+
"types": "./dist/fields/index.d.ts"
|
|
23
|
+
},
|
|
20
24
|
"./utils": {
|
|
21
25
|
"import": "./dist/utils/index.js",
|
|
22
26
|
"types": "./dist/utils/index.d.ts"
|