@cmssy/react 0.1.3 → 0.1.4

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/index.cjs CHANGED
@@ -421,7 +421,9 @@ var FORM_QUERY = `query PublicForm($formId: ID!) {
421
421
  description
422
422
  fields {
423
423
  id name fieldType label placeholder helpText
424
- defaultValue options validation width order showIf
424
+ defaultValue width order showIf
425
+ options { value label disabled }
426
+ validation { required minLength maxLength minValue maxValue pattern customMessage }
425
427
  }
426
428
  settings {
427
429
  actionType submitButtonLabel successMessage errorMessage
package/dist/index.d.cts CHANGED
@@ -155,7 +155,7 @@ interface SubmitFormInput {
155
155
  data: Record<string, unknown>;
156
156
  website?: string;
157
157
  }
158
- declare const FORM_QUERY = "query PublicForm($formId: ID!) {\n publicForm(formId: $formId) {\n id\n name\n slug\n description\n fields {\n id name fieldType label placeholder helpText\n defaultValue options validation width order showIf\n }\n settings {\n actionType submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin enableCaptcha\n }\n }\n}";
158
+ declare const FORM_QUERY = "query PublicForm($formId: ID!) {\n publicForm(formId: $formId) {\n id\n name\n slug\n description\n fields {\n id name fieldType label placeholder helpText\n defaultValue width order showIf\n options { value label disabled }\n validation { required minLength maxLength minValue maxValue pattern customMessage }\n }\n settings {\n actionType submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin enableCaptcha\n }\n }\n}";
159
159
  declare const SUBMIT_FORM_MUTATION = "mutation SubmitForm($formId: ID!, $input: SubmitFormInput!) {\n submitForm(formId: $formId, input: $input) {\n success message submissionId redirectUrl accessToken customer\n }\n}";
160
160
 
161
161
  interface CmssyBlockProps {
package/dist/index.d.ts CHANGED
@@ -155,7 +155,7 @@ interface SubmitFormInput {
155
155
  data: Record<string, unknown>;
156
156
  website?: string;
157
157
  }
158
- declare const FORM_QUERY = "query PublicForm($formId: ID!) {\n publicForm(formId: $formId) {\n id\n name\n slug\n description\n fields {\n id name fieldType label placeholder helpText\n defaultValue options validation width order showIf\n }\n settings {\n actionType submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin enableCaptcha\n }\n }\n}";
158
+ declare const FORM_QUERY = "query PublicForm($formId: ID!) {\n publicForm(formId: $formId) {\n id\n name\n slug\n description\n fields {\n id name fieldType label placeholder helpText\n defaultValue width order showIf\n options { value label disabled }\n validation { required minLength maxLength minValue maxValue pattern customMessage }\n }\n settings {\n actionType submitButtonLabel successMessage errorMessage\n redirectUrl requireLogin enableCaptcha\n }\n }\n}";
159
159
  declare const SUBMIT_FORM_MUTATION = "mutation SubmitForm($formId: ID!, $input: SubmitFormInput!) {\n submitForm(formId: $formId, input: $input) {\n success message submissionId redirectUrl accessToken customer\n }\n}";
160
160
 
161
161
  interface CmssyBlockProps {
package/dist/index.js CHANGED
@@ -419,7 +419,9 @@ var FORM_QUERY = `query PublicForm($formId: ID!) {
419
419
  description
420
420
  fields {
421
421
  id name fieldType label placeholder helpText
422
- defaultValue options validation width order showIf
422
+ defaultValue width order showIf
423
+ options { value label disabled }
424
+ validation { required minLength maxLength minValue maxValue pattern customMessage }
423
425
  }
424
426
  settings {
425
427
  actionType submitButtonLabel successMessage errorMessage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/react",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "React blocks, renderers, data client and editor bridge for cmssy headless sites",
5
5
  "keywords": [
6
6
  "cmssy",