@nexo-labs/payload-taxonomies 0.9.5 → 0.9.6
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/taxonomy.js +15 -15
- package/package.json +2 -2
package/dist/taxonomy.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export const COLLECTION_SLUG_TAXONOMY =
|
|
1
|
+
export const COLLECTION_SLUG_TAXONOMY = "taxonomy";
|
|
2
2
|
export const taxonomiesCollection = ({ payloadTypescriptSchema, ...config }) => ({
|
|
3
|
-
slug: COLLECTION_SLUG_TAXONOMY,
|
|
4
3
|
...config,
|
|
4
|
+
slug: COLLECTION_SLUG_TAXONOMY,
|
|
5
5
|
labels: {
|
|
6
|
-
singular:
|
|
7
|
-
plural:
|
|
8
|
-
...config.labels
|
|
6
|
+
singular: "Taxonomia",
|
|
7
|
+
plural: "Taxonomias",
|
|
8
|
+
...config.labels,
|
|
9
9
|
},
|
|
10
10
|
admin: {
|
|
11
|
-
useAsTitle:
|
|
12
|
-
group:
|
|
13
|
-
...config.admin
|
|
11
|
+
useAsTitle: "singular_name",
|
|
12
|
+
group: "Contenido",
|
|
13
|
+
...config.admin,
|
|
14
14
|
},
|
|
15
15
|
fields: [
|
|
16
16
|
{
|
|
17
|
-
name:
|
|
18
|
-
label:
|
|
19
|
-
type:
|
|
17
|
+
name: "singular_name",
|
|
18
|
+
label: "Nombre",
|
|
19
|
+
type: "text",
|
|
20
20
|
localized: true,
|
|
21
21
|
required: true,
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
name:
|
|
25
|
-
label:
|
|
26
|
-
type:
|
|
24
|
+
name: "payload",
|
|
25
|
+
label: "Payload Adicional",
|
|
26
|
+
type: "json",
|
|
27
27
|
required: false,
|
|
28
|
-
typescriptSchema: payloadTypescriptSchema
|
|
28
|
+
typescriptSchema: payloadTypescriptSchema,
|
|
29
29
|
},
|
|
30
30
|
...(config.fields ?? []),
|
|
31
31
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexo-labs/payload-taxonomies",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Taxonomies for Payload CMS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@payloadcms/ui": "^3.35.1",
|
|
26
26
|
"payload": "3.35.1",
|
|
27
27
|
"react": "^19.0.0",
|
|
28
|
-
"@types/json-schema": "^7.0.
|
|
28
|
+
"@types/json-schema": "^7.0.11"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|