@dmitryvim/form-builder 0.1.17 → 0.1.19

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.
@@ -88,6 +88,11 @@ function validateSchema(schema) {
88
88
  // Form rendering
89
89
  function renderForm(schema, prefill) {
90
90
  console.log('🔧 FormBuilder.renderForm called with:', { schema, prefill });
91
+ console.log('🔧 Arguments length:', arguments.length);
92
+ console.log('🔧 Argument 0 (schema):', typeof schema, schema?.title);
93
+ console.log('🔧 Argument 1 (prefill):', typeof prefill, prefill);
94
+ console.log('🔧 Prefill keys:', Object.keys(prefill || {}));
95
+ console.log('🔧 Schema element keys:', schema.elements?.map(e => e.key));
91
96
 
92
97
  const errors = validateSchema(schema);
93
98
  if (errors.length > 0) {
@@ -124,7 +129,12 @@ function renderForm(schema, prefill) {
124
129
  }
125
130
 
126
131
  function renderElement(element, ctx) {
127
- console.log(`🔧 renderElement called:`, { element, ctx });
132
+ console.log(`🔧 renderElement called for '${element.key}':`, {
133
+ elementKey: element.key,
134
+ prefillKeys: Object.keys(ctx.prefill || {}),
135
+ prefillValue: ctx.prefill?.[element.key],
136
+ ctx
137
+ });
128
138
 
129
139
  const wrapper = document.createElement('div');
130
140
  wrapper.className = 'mb-6';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.17",
6
+ "version": "0.1.19",
7
7
  "description": "A reusable JSON schema form builder library",
8
8
  "main": "dist/form-builder.js",
9
9
  "files": [