@ikas/popup-renderer 1.0.4 → 1.0.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.
@@ -1,17 +1,10 @@
1
1
  import React from "react";
2
2
  import { DashboardComponents, Popup, PopupProductDictionary } from "../models";
3
+ import { PopupRendererSaveCustomerInput } from "popup-renderer/models/modal/step/elements/form";
3
4
  import "../style.css";
4
5
  export type SFProps = {
5
6
  onModalClose: () => void;
6
- onCustomerSave: (customer: {
7
- firstName: string;
8
- lastName: string;
9
- email?: string | null;
10
- phone?: string | null;
11
- birthday?: string | null;
12
- gender?: string | null;
13
- hasPermission?: boolean | null;
14
- }) => Promise<void>;
7
+ onCustomerSave: (customer: PopupRendererSaveCustomerInput) => Promise<void>;
15
8
  };
16
9
  type Props = {
17
10
  popup: Popup;
@@ -19,6 +19,15 @@ export declare enum FormItemTypeEnum {
19
19
  CHECKBOX_FORM_ITEM = "CHECKBOX_FORM_ITEM",
20
20
  CUSTOMER_ATTRIBUTE = "CUSTOMER_ATTRIBUTE"
21
21
  }
22
+ export type PopupRendererSaveCustomerInput = {
23
+ firstName: string;
24
+ lastName: string;
25
+ email?: string | null;
26
+ phone?: string | null;
27
+ birthday?: string | null;
28
+ gender?: string | null;
29
+ hasPermission?: boolean | null;
30
+ };
22
31
  export type FormItem = CustomerNameFormItem | CustomerSurnameFormItem | CustomerEmailFormItem | CustomerPhoneFormItem | CustomerBirthdayFormItem | CustomerGenderFormItem | CheckboxFormItem | CustomerAttributeFormItem;
23
32
  export declare class FormElement extends BaseElement {
24
33
  type: PopupElementTypeEnum;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/popup-renderer",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "author": "ucy",
6
6
  "license": "ISC",