@nexo-labs/payload-taxonomies 0.9.4 → 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.
@@ -2,7 +2,7 @@ import { JSONSchema4 } from "json-schema";
2
2
  import type { CollectionConfig } from "payload";
3
3
  export declare const COLLECTION_SLUG_TAXONOMY: "taxonomy";
4
4
  type TaxonomyTypescriptSchema = {
5
- payloadTypescriptSchema: Array<(args: {
5
+ payloadTypescriptSchema?: Array<(args: {
6
6
  jsonSchema: JSONSchema4;
7
7
  }) => JSONSchema4>;
8
8
  };
package/dist/taxonomy.js CHANGED
@@ -1,31 +1,31 @@
1
- export const COLLECTION_SLUG_TAXONOMY = '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: 'Taxonomia',
7
- plural: 'Taxonomias',
8
- ...config.labels
6
+ singular: "Taxonomia",
7
+ plural: "Taxonomias",
8
+ ...config.labels,
9
9
  },
10
10
  admin: {
11
- useAsTitle: 'title',
12
- group: 'Contenido',
13
- ...config.admin
11
+ useAsTitle: "singular_name",
12
+ group: "Contenido",
13
+ ...config.admin,
14
14
  },
15
15
  fields: [
16
16
  {
17
- name: 'title',
18
- label: 'Título',
19
- type: 'text',
17
+ name: "singular_name",
18
+ label: "Nombre",
19
+ type: "text",
20
20
  localized: true,
21
21
  required: true,
22
22
  },
23
23
  {
24
- name: 'payload',
25
- label: 'Payload Adicional',
26
- type: 'json',
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.4",
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.15"
28
+ "@types/json-schema": "^7.0.11"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",