@mosip/json-form-builder 0.1.1-beta.4 → 0.1.1-beta.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.
package/dist/types.d.ts CHANGED
@@ -80,6 +80,8 @@ export interface FormConfig {
80
80
  [id: string]: Label;
81
81
  };
82
82
  };
83
+ resetPasswordChallengeFields: string[];
84
+ prefilledValues?: Record<string, any>;
83
85
  }
84
86
  export interface FileUploadData {
85
87
  value: string | Blob;
@@ -136,4 +138,5 @@ export interface FormState {
136
138
  [id: string]: Label;
137
139
  };
138
140
  isFormInitialized: boolean;
141
+ prefilledValues?: Record<string, any>;
139
142
  }
@@ -116,4 +116,5 @@ declare const emptyInvalidFn: (input: HTMLInputElement | HTMLSelectElement | HTM
116
116
  declare const getAcceptString: (allowedTypes: string[]) => string;
117
117
  declare const mimeToLabel: (mime: string) => string;
118
118
  declare const isSubTypeField: (field: FormField) => field is SubTypeField;
119
- export { getLabelText, getMultiLangText, appendError, handleRequiredValidation, handleRegexValidation, createInfoIcon, getCapsLockSpan, checkCapsLock, disableField, preventDefaultFn, createErrorContainer, buildBidirectionalLanguageMap, enableCapsLockCheck, dataUrlToBlob, validateForm, emptyInvalidFn, getAcceptString, mimeToLabel, isSubTypeField };
119
+ declare const triggerRefreshLabels: (state: FormState) => void;
120
+ export { getLabelText, getMultiLangText, appendError, handleRequiredValidation, handleRegexValidation, createInfoIcon, getCapsLockSpan, checkCapsLock, disableField, preventDefaultFn, createErrorContainer, buildBidirectionalLanguageMap, enableCapsLockCheck, dataUrlToBlob, validateForm, emptyInvalidFn, getAcceptString, mimeToLabel, isSubTypeField, triggerRefreshLabels };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mosip/json-form-builder",
3
- "version": "0.1.1-beta.4",
3
+ "version": "0.1.1-beta.6",
4
4
  "description": "A dynamic JSON form builder with multi-language support, validation, and responsive design",
5
5
  "main": "dist/JsonFormBuilder.umd.js",
6
6
  "module": "dist/JsonFormBuilder.esm.js",
@@ -45,12 +45,14 @@
45
45
  "@rollup/plugin-node-resolve": "^15.2.3",
46
46
  "@rollup/plugin-terser": "^0.4.4",
47
47
  "@rollup/plugin-typescript": "^11.1.6",
48
- "@storybook/addon-essentials": "^8.6.14",
49
- "@storybook/addon-interactions": "^8.6.14",
50
- "@storybook/cli": "^8.6.14",
51
- "@storybook/react-vite": "^8.6.14",
48
+ "@storybook/addon-essentials": "8.6.15",
49
+ "@storybook/addon-interactions": "8.6.15",
50
+ "@storybook/cli": "8.6.15",
51
+ "@storybook/react-vite": "8.6.15",
52
+ "@storybook/test": "8.6.15",
52
53
  "@testing-library/jest-dom": "^6.6.3",
53
54
  "@types/jest": "^29.5.12",
55
+ "@types/mime-types": "^3.0.1",
54
56
  "@types/react": "^18.2.55",
55
57
  "@types/react-dom": "^18.2.19",
56
58
  "@typescript-eslint/eslint-plugin": "^7.0.1",
@@ -63,6 +65,7 @@
63
65
  "prettier": "^3.2.5",
64
66
  "rimraf": "^5.0.5",
65
67
  "rollup": "^4.9.6",
68
+ "rollup-plugin-polyfill-node": "^0.13.0",
66
69
  "ts-jest": "^29.1.2",
67
70
  "tslib": "^2.8.1",
68
71
  "typescript": "^5.3.3",
@@ -73,6 +76,7 @@
73
76
  "react-dom": "^18.2.0"
74
77
  },
75
78
  "dependencies": {
76
- "date-fns": "^4.1.0"
79
+ "date-fns": "^4.1.0",
80
+ "mime-types": "^3.0.2"
77
81
  }
78
82
  }