@licklist/design 0.71.5-dev.4 → 0.71.5-dev.5

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.
@@ -1,7 +1,6 @@
1
1
  export declare const useValidationOptions: () => {
2
2
  start: {
3
3
  required: string;
4
- validate: (value: any) => string | true;
5
4
  };
6
5
  end: {
7
6
  required: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useValidationOptions.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/hooks/useValidationOptions.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;kBASrB,MAAM;;;;kBAWN,MAAM;;;CAWjB,CAAA"}
1
+ {"version":3,"file":"useValidationOptions.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/hooks/useValidationOptions.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;kBASrB,MAAM;;;kBAMN,MAAM;;;CAWjB,CAAA"}
@@ -16,12 +16,7 @@ var useValidationOptions = function() {
16
16
  start: {
17
17
  required: t('Validation:fieldRequired', {
18
18
  attribute: t('start')
19
- }),
20
- // TODO: uncomment when event splitting is implemented
21
- // and extract into plugins
22
- validate: function(value) {
23
- return DateTime.fromISO(value).diffNow().toMillis() > 0 || t('Validation:fieldValidEventStart');
24
- }
19
+ })
25
20
  },
26
21
  end: {
27
22
  required: t('Validation:fieldRequired', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.71.5-dev.4",
3
+ "version": "0.71.5-dev.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -12,11 +12,6 @@ export const useValidationOptions = () => {
12
12
  required: t('Validation:fieldRequired', {
13
13
  attribute: t('start'),
14
14
  }) as string,
15
- // TODO: uncomment when event splitting is implemented
16
- // and extract into plugins
17
- validate: (value) =>
18
- DateTime.fromISO(value).diffNow().toMillis() > 0 ||
19
- (t('Validation:fieldValidEventStart') as string),
20
15
  },
21
16
 
22
17
  end: {