@payloadcms/plugin-form-builder 3.1.1 → 3.1.2-canary.eb1a61e

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.
@@ -0,0 +1,3 @@
1
+ import type { Field } from 'payload';
2
+ export declare const defaultPaymentFields: Field;
3
+ //# sourceMappingURL=defaultPaymentFields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultPaymentFields.d.ts","sourceRoot":"","sources":["../../../../src/collections/FormSubmissions/fields/defaultPaymentFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,eAAO,MAAM,oBAAoB,EAAE,KAmDlC,CAAA"}
@@ -0,0 +1,54 @@
1
+ export const defaultPaymentFields = {
2
+ name: 'payment',
3
+ type: 'group',
4
+ admin: {
5
+ readOnly: true
6
+ },
7
+ fields: [
8
+ {
9
+ name: 'field',
10
+ type: 'text',
11
+ label: 'Field'
12
+ },
13
+ {
14
+ name: 'status',
15
+ type: 'text',
16
+ label: 'Status'
17
+ },
18
+ {
19
+ name: 'amount',
20
+ type: 'number',
21
+ admin: {
22
+ description: 'Amount in cents'
23
+ }
24
+ },
25
+ {
26
+ name: 'paymentProcessor',
27
+ type: 'text'
28
+ },
29
+ {
30
+ name: 'creditCard',
31
+ type: 'group',
32
+ fields: [
33
+ {
34
+ name: 'token',
35
+ type: 'text',
36
+ label: 'token'
37
+ },
38
+ {
39
+ name: 'brand',
40
+ type: 'text',
41
+ label: 'Brand'
42
+ },
43
+ {
44
+ name: 'number',
45
+ type: 'text',
46
+ label: 'Number'
47
+ }
48
+ ],
49
+ label: 'Credit Card'
50
+ }
51
+ ]
52
+ };
53
+
54
+ //# sourceMappingURL=defaultPaymentFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/collections/FormSubmissions/fields/defaultPaymentFields.ts"],"sourcesContent":["import type { Field } from 'payload'\n\nexport const defaultPaymentFields: Field = {\n name: 'payment',\n type: 'group',\n admin: {\n readOnly: true,\n },\n fields: [\n {\n name: 'field',\n type: 'text',\n label: 'Field',\n },\n {\n name: 'status',\n type: 'text',\n label: 'Status',\n },\n {\n name: 'amount',\n type: 'number',\n admin: {\n description: 'Amount in cents',\n },\n },\n {\n name: 'paymentProcessor',\n type: 'text',\n },\n {\n name: 'creditCard',\n type: 'group',\n fields: [\n {\n name: 'token',\n type: 'text',\n label: 'token',\n },\n {\n name: 'brand',\n type: 'text',\n label: 'Brand',\n },\n {\n name: 'number',\n type: 'text',\n label: 'Number',\n },\n ],\n label: 'Credit Card',\n },\n ],\n}\n"],"names":["defaultPaymentFields","name","type","admin","readOnly","fields","label","description"],"mappings":"AAEA,OAAO,MAAMA,uBAA8B;IACzCC,MAAM;IACNC,MAAM;IACNC,OAAO;QACLC,UAAU;IACZ;IACAC,QAAQ;QACN;YACEJ,MAAM;YACNC,MAAM;YACNI,OAAO;QACT;QACA;YACEL,MAAM;YACNC,MAAM;YACNI,OAAO;QACT;QACA;YACEL,MAAM;YACNC,MAAM;YACNC,OAAO;gBACLI,aAAa;YACf;QACF;QACA;YACEN,MAAM;YACNC,MAAM;QACR;QACA;YACED,MAAM;YACNC,MAAM;YACNG,QAAQ;gBACN;oBACEJ,MAAM;oBACNC,MAAM;oBACNI,OAAO;gBACT;gBACA;oBACEL,MAAM;oBACNC,MAAM;oBACNI,OAAO;gBACT;gBACA;oBACEL,MAAM;oBACNC,MAAM;oBACNI,OAAO;gBACT;aACD;YACDA,OAAO;QACT;KACD;AACH,EAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collections/FormSubmissions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAS,MAAM,SAAS,CAAA;AAEtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAM7D,eAAO,MAAM,4BAA4B,eAC3B,uBAAuB,KAClC,gBA+JF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collections/FormSubmissions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAS,MAAM,SAAS,CAAA;AAEtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAO7D,eAAO,MAAM,4BAA4B,eAC3B,uBAAuB,KAClC,gBAwGF,CAAA"}
@@ -1,8 +1,10 @@
1
+ import { defaultPaymentFields } from './fields/defaultPaymentFields.js';
1
2
  import { createCharge } from './hooks/createCharge.js';
2
3
  import { sendEmail } from './hooks/sendEmail.js';
3
4
  // all settings can be overridden by the config
4
5
  export const generateSubmissionCollection = (formConfig)=>{
5
6
  const formSlug = formConfig?.formOverrides?.slug || 'forms';
7
+ const enablePaymentFields = Boolean(formConfig?.fields?.payment);
6
8
  const defaultFields = [
7
9
  {
8
10
  name: 'form',
@@ -62,7 +64,10 @@ export const generateSubmissionCollection = (formConfig)=>{
62
64
  }
63
65
  }
64
66
  ]
65
- }
67
+ },
68
+ ...enablePaymentFields ? [
69
+ defaultPaymentFields
70
+ ] : []
66
71
  ];
67
72
  const newConfig = {
68
73
  ...formConfig?.formSubmissionOverrides || {},
@@ -89,61 +94,6 @@ export const generateSubmissionCollection = (formConfig)=>{
89
94
  ]
90
95
  }
91
96
  };
92
- const paymentFieldConfig = formConfig?.fields?.payment;
93
- if (paymentFieldConfig) {
94
- newConfig.fields.push({
95
- name: 'payment',
96
- type: 'group',
97
- admin: {
98
- readOnly: true
99
- },
100
- fields: [
101
- {
102
- name: 'field',
103
- type: 'text',
104
- label: 'Field'
105
- },
106
- {
107
- name: 'status',
108
- type: 'text',
109
- label: 'Status'
110
- },
111
- {
112
- name: 'amount',
113
- type: 'number',
114
- admin: {
115
- description: 'Amount in cents'
116
- }
117
- },
118
- {
119
- name: 'paymentProcessor',
120
- type: 'text'
121
- },
122
- {
123
- name: 'creditCard',
124
- type: 'group',
125
- fields: [
126
- {
127
- name: 'token',
128
- type: 'text',
129
- label: 'token'
130
- },
131
- {
132
- name: 'brand',
133
- type: 'text',
134
- label: 'Brand'
135
- },
136
- {
137
- name: 'number',
138
- type: 'text',
139
- label: 'Number'
140
- }
141
- ],
142
- label: 'Credit Card'
143
- }
144
- ]
145
- });
146
- }
147
97
  return newConfig;
148
98
  };
149
99
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/collections/FormSubmissions/index.ts"],"sourcesContent":["import type { CollectionConfig, Field } from 'payload'\n\nimport type { FormBuilderPluginConfig } from '../../types.js'\n\nimport { createCharge } from './hooks/createCharge.js'\nimport { sendEmail } from './hooks/sendEmail.js'\n\n// all settings can be overridden by the config\nexport const generateSubmissionCollection = (\n formConfig: FormBuilderPluginConfig,\n): CollectionConfig => {\n const formSlug = formConfig?.formOverrides?.slug || 'forms'\n\n const defaultFields: Field[] = [\n {\n name: 'form',\n type: 'relationship',\n admin: {\n readOnly: true,\n },\n relationTo: formSlug,\n required: true,\n validate: async (value, { req: { payload }, req }) => {\n /* Don't run in the client side */\n if (!payload) {\n return true\n }\n\n if (payload) {\n let _existingForm\n\n try {\n _existingForm = await payload.findByID({\n id: value,\n collection: formSlug,\n req,\n })\n\n return true\n } catch (error) {\n return 'Cannot create this submission because this form does not exist.'\n }\n }\n },\n },\n {\n name: 'submissionData',\n type: 'array',\n admin: {\n readOnly: true,\n },\n fields: [\n {\n name: 'field',\n type: 'text',\n required: true,\n },\n {\n name: 'value',\n type: 'text',\n required: true,\n validate: (value: unknown) => {\n // TODO:\n // create a validation function that dynamically\n // relies on the field type and its options as configured.\n\n // How to access sibling data from this field?\n // Need the `name` of the field in order to validate it.\n\n // Might not be possible to use this validation function.\n // Instead, might need to do all validation in a `beforeValidate` collection hook.\n\n if (typeof value !== 'undefined') {\n return true\n }\n\n return 'This field is required.'\n },\n },\n ],\n },\n ]\n\n const newConfig: CollectionConfig = {\n ...(formConfig?.formSubmissionOverrides || {}),\n slug: formConfig?.formSubmissionOverrides?.slug || 'form-submissions',\n access: {\n create: () => true,\n read: ({ req: { user } }) => !!user, // logged-in users,\n update: () => false,\n ...(formConfig?.formSubmissionOverrides?.access || {}),\n },\n admin: {\n ...(formConfig?.formSubmissionOverrides?.admin || {}),\n enableRichTextRelationship: false,\n },\n fields:\n formConfig?.formSubmissionOverrides?.fields &&\n typeof formConfig?.formSubmissionOverrides?.fields === 'function'\n ? formConfig.formSubmissionOverrides.fields({ defaultFields })\n : defaultFields,\n hooks: {\n ...(formConfig?.formSubmissionOverrides?.hooks || {}),\n beforeChange: [\n (data) => createCharge(data, formConfig),\n (data) => sendEmail(data, formConfig),\n ...(formConfig?.formSubmissionOverrides?.hooks?.beforeChange || []),\n ],\n },\n }\n\n const paymentFieldConfig = formConfig?.fields?.payment\n\n if (paymentFieldConfig) {\n newConfig.fields.push({\n name: 'payment',\n type: 'group',\n admin: {\n readOnly: true,\n },\n fields: [\n {\n name: 'field',\n type: 'text',\n label: 'Field',\n },\n {\n name: 'status',\n type: 'text',\n label: 'Status',\n },\n {\n name: 'amount',\n type: 'number',\n admin: {\n description: 'Amount in cents',\n },\n },\n {\n name: 'paymentProcessor',\n type: 'text',\n },\n {\n name: 'creditCard',\n type: 'group',\n fields: [\n {\n name: 'token',\n type: 'text',\n label: 'token',\n },\n {\n name: 'brand',\n type: 'text',\n label: 'Brand',\n },\n {\n name: 'number',\n type: 'text',\n label: 'Number',\n },\n ],\n label: 'Credit Card',\n },\n ],\n })\n }\n\n return newConfig\n}\n"],"names":["createCharge","sendEmail","generateSubmissionCollection","formConfig","formSlug","formOverrides","slug","defaultFields","name","type","admin","readOnly","relationTo","required","validate","value","req","payload","_existingForm","findByID","id","collection","error","fields","newConfig","formSubmissionOverrides","access","create","read","user","update","enableRichTextRelationship","hooks","beforeChange","data","paymentFieldConfig","payment","push","label","description"],"mappings":"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"}
1
+ {"version":3,"sources":["../../../src/collections/FormSubmissions/index.ts"],"sourcesContent":["import type { CollectionConfig, Field } from 'payload'\n\nimport type { FormBuilderPluginConfig } from '../../types.js'\n\nimport { defaultPaymentFields } from './fields/defaultPaymentFields.js'\nimport { createCharge } from './hooks/createCharge.js'\nimport { sendEmail } from './hooks/sendEmail.js'\n\n// all settings can be overridden by the config\nexport const generateSubmissionCollection = (\n formConfig: FormBuilderPluginConfig,\n): CollectionConfig => {\n const formSlug = formConfig?.formOverrides?.slug || 'forms'\n\n const enablePaymentFields = Boolean(formConfig?.fields?.payment)\n\n const defaultFields: Field[] = [\n {\n name: 'form',\n type: 'relationship',\n admin: {\n readOnly: true,\n },\n relationTo: formSlug,\n required: true,\n validate: async (value, { req: { payload }, req }) => {\n /* Don't run in the client side */\n if (!payload) {\n return true\n }\n\n if (payload) {\n let _existingForm\n\n try {\n _existingForm = await payload.findByID({\n id: value,\n collection: formSlug,\n req,\n })\n\n return true\n } catch (error) {\n return 'Cannot create this submission because this form does not exist.'\n }\n }\n },\n },\n {\n name: 'submissionData',\n type: 'array',\n admin: {\n readOnly: true,\n },\n fields: [\n {\n name: 'field',\n type: 'text',\n required: true,\n },\n {\n name: 'value',\n type: 'text',\n required: true,\n validate: (value: unknown) => {\n // TODO:\n // create a validation function that dynamically\n // relies on the field type and its options as configured.\n\n // How to access sibling data from this field?\n // Need the `name` of the field in order to validate it.\n\n // Might not be possible to use this validation function.\n // Instead, might need to do all validation in a `beforeValidate` collection hook.\n\n if (typeof value !== 'undefined') {\n return true\n }\n\n return 'This field is required.'\n },\n },\n ],\n },\n ...(enablePaymentFields ? [defaultPaymentFields] : []),\n ]\n\n const newConfig: CollectionConfig = {\n ...(formConfig?.formSubmissionOverrides || {}),\n slug: formConfig?.formSubmissionOverrides?.slug || 'form-submissions',\n access: {\n create: () => true,\n read: ({ req: { user } }) => !!user, // logged-in users,\n update: () => false,\n ...(formConfig?.formSubmissionOverrides?.access || {}),\n },\n admin: {\n ...(formConfig?.formSubmissionOverrides?.admin || {}),\n enableRichTextRelationship: false,\n },\n fields:\n formConfig?.formSubmissionOverrides?.fields &&\n typeof formConfig?.formSubmissionOverrides?.fields === 'function'\n ? formConfig.formSubmissionOverrides.fields({ defaultFields })\n : defaultFields,\n hooks: {\n ...(formConfig?.formSubmissionOverrides?.hooks || {}),\n beforeChange: [\n (data) => createCharge(data, formConfig),\n (data) => sendEmail(data, formConfig),\n ...(formConfig?.formSubmissionOverrides?.hooks?.beforeChange || []),\n ],\n },\n }\n return newConfig\n}\n"],"names":["defaultPaymentFields","createCharge","sendEmail","generateSubmissionCollection","formConfig","formSlug","formOverrides","slug","enablePaymentFields","Boolean","fields","payment","defaultFields","name","type","admin","readOnly","relationTo","required","validate","value","req","payload","_existingForm","findByID","id","collection","error","newConfig","formSubmissionOverrides","access","create","read","user","update","enableRichTextRelationship","hooks","beforeChange","data"],"mappings":"AAIA,SAASA,oBAAoB,QAAQ,mCAAkC;AACvE,SAASC,YAAY,QAAQ,0BAAyB;AACtD,SAASC,SAAS,QAAQ,uBAAsB;AAEhD,+CAA+C;AAC/C,OAAO,MAAMC,+BAA+B,CAC1CC;IAEA,MAAMC,WAAWD,YAAYE,eAAeC,QAAQ;IAEpD,MAAMC,sBAAsBC,QAAQL,YAAYM,QAAQC;IAExD,MAAMC,gBAAyB;QAC7B;YACEC,MAAM;YACNC,MAAM;YACNC,OAAO;gBACLC,UAAU;YACZ;YACAC,YAAYZ;YACZa,UAAU;YACVC,UAAU,OAAOC,OAAO,EAAEC,KAAK,EAAEC,OAAO,EAAE,EAAED,GAAG,EAAE;gBAC/C,gCAAgC,GAChC,IAAI,CAACC,SAAS;oBACZ,OAAO;gBACT;gBAEA,IAAIA,SAAS;oBACX,IAAIC;oBAEJ,IAAI;wBACFA,gBAAgB,MAAMD,QAAQE,QAAQ,CAAC;4BACrCC,IAAIL;4BACJM,YAAYrB;4BACZgB;wBACF;wBAEA,OAAO;oBACT,EAAE,OAAOM,OAAO;wBACd,OAAO;oBACT;gBACF;YACF;QACF;QACA;YACEd,MAAM;YACNC,MAAM;YACNC,OAAO;gBACLC,UAAU;YACZ;YACAN,QAAQ;gBACN;oBACEG,MAAM;oBACNC,MAAM;oBACNI,UAAU;gBACZ;gBACA;oBACEL,MAAM;oBACNC,MAAM;oBACNI,UAAU;oBACVC,UAAU,CAACC;wBACT,QAAQ;wBACR,gDAAgD;wBAChD,0DAA0D;wBAE1D,8CAA8C;wBAC9C,wDAAwD;wBAExD,yDAAyD;wBACzD,kFAAkF;wBAElF,IAAI,OAAOA,UAAU,aAAa;4BAChC,OAAO;wBACT;wBAEA,OAAO;oBACT;gBACF;aACD;QACH;WACIZ,sBAAsB;YAACR;SAAqB,GAAG,EAAE;KACtD;IAED,MAAM4B,YAA8B;QAClC,GAAIxB,YAAYyB,2BAA2B,CAAC,CAAC;QAC7CtB,MAAMH,YAAYyB,yBAAyBtB,QAAQ;QACnDuB,QAAQ;YACNC,QAAQ,IAAM;YACdC,MAAM,CAAC,EAAEX,KAAK,EAAEY,IAAI,EAAE,EAAE,GAAK,CAAC,CAACA;YAC/BC,QAAQ,IAAM;YACd,GAAI9B,YAAYyB,yBAAyBC,UAAU,CAAC,CAAC;QACvD;QACAf,OAAO;YACL,GAAIX,YAAYyB,yBAAyBd,SAAS,CAAC,CAAC;YACpDoB,4BAA4B;QAC9B;QACAzB,QACEN,YAAYyB,yBAAyBnB,UACrC,OAAON,YAAYyB,yBAAyBnB,WAAW,aACnDN,WAAWyB,uBAAuB,CAACnB,MAAM,CAAC;YAAEE;QAAc,KAC1DA;QACNwB,OAAO;YACL,GAAIhC,YAAYyB,yBAAyBO,SAAS,CAAC,CAAC;YACpDC,cAAc;gBACZ,CAACC,OAASrC,aAAaqC,MAAMlC;gBAC7B,CAACkC,OAASpC,UAAUoC,MAAMlC;mBACtBA,YAAYyB,yBAAyBO,OAAOC,gBAAgB,EAAE;aACnE;QACH;IACF;IACA,OAAOT;AACT,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/plugin-form-builder",
3
- "version": "3.1.1",
3
+ "version": "3.1.2-canary.eb1a61e",
4
4
  "description": "Form builder plugin for Payload CMS",
5
5
  "keywords": [
6
6
  "payload",
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "escape-html": "^1.0.3",
55
- "@payloadcms/ui": "3.1.1"
55
+ "@payloadcms/ui": "3.1.2-canary.eb1a61e"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/escape-html": "^1.0.4",
@@ -60,13 +60,13 @@
60
60
  "@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
61
61
  "copyfiles": "^2.4.1",
62
62
  "cross-env": "^7.0.3",
63
- "payload": "3.1.1",
64
- "@payloadcms/eslint-config": "3.0.0"
63
+ "@payloadcms/eslint-config": "3.0.0",
64
+ "payload": "3.1.2-canary.eb1a61e"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
68
68
  "react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
69
- "payload": "3.1.1"
69
+ "payload": "3.1.2-canary.eb1a61e"
70
70
  },
71
71
  "publishConfig": {
72
72
  "registry": "https://registry.npmjs.org/"