@squaredr/fieldcraft-pro 1.5.0 → 1.6.0
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/{chunk-BK4SMEW4.mjs → chunk-5LKGCZAW.mjs} +1 -0
- package/dist/{chunk-6LRUDBC7.mjs → chunk-ANBMT5AW.mjs} +1 -53
- package/dist/{chunk-22T5PY6L.mjs → chunk-IKGS2ZXV.mjs} +382 -87
- package/dist/form-builder/index.d.mts +1 -1
- package/dist/form-builder/index.d.ts +1 -1
- package/dist/form-builder/index.js +0 -54
- package/dist/form-builder/index.mjs +1 -1
- package/dist/{index-BHJ4mqHP.d.ts → index-D19524df.d.mts} +1 -12
- package/dist/{index-BHJ4mqHP.d.mts → index-D19524df.d.ts} +1 -12
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +427 -101
- package/dist/index.mjs +4 -4
- package/dist/response-viewer/index.js +1 -0
- package/dist/response-viewer/index.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme-editor/index.d.mts +78 -13
- package/dist/theme-editor/index.d.ts +78 -13
- package/dist/theme-editor/index.js +381 -86
- package/dist/theme-editor/index.mjs +1 -1
- package/package.json +3 -3
- package/theme-editor/styles.css +20 -5
- package/dist/preview-schema-DFvV4y6J.d.mts +0 -66
- package/dist/preview-schema-DFvV4y6J.d.ts +0 -66
|
@@ -4794,58 +4794,6 @@ function FormBuilderInner(props) {
|
|
|
4794
4794
|
// src/form-builder/components/FormBuilderGated.tsx
|
|
4795
4795
|
var FormBuilder = requireLicense(FormBuilderInner, "FormBuilder");
|
|
4796
4796
|
|
|
4797
|
-
// src/form-builder/theme/presets.ts
|
|
4798
|
-
var squaredrDarkPreset = {
|
|
4799
|
-
background: "#0F1A1F",
|
|
4800
|
-
foreground: "#E8EFF1",
|
|
4801
|
-
card: "#16242A",
|
|
4802
|
-
primary: "#63BDB4",
|
|
4803
|
-
primaryForeground: "#0F1A1F",
|
|
4804
|
-
secondary: "#182F31",
|
|
4805
|
-
secondaryForeground: "#E8EFF1",
|
|
4806
|
-
muted: "#182F31",
|
|
4807
|
-
mutedForeground: "#8CA1A9",
|
|
4808
|
-
accent: "#182F31",
|
|
4809
|
-
accentForeground: "#E8EFF1",
|
|
4810
|
-
destructive: "#E08072",
|
|
4811
|
-
destructiveForeground: "#0F1A1F",
|
|
4812
|
-
border: "#2A3B42",
|
|
4813
|
-
input: "#2A3B42",
|
|
4814
|
-
ring: "#63BDB4",
|
|
4815
|
-
radius: "0px",
|
|
4816
|
-
surface: "#16242A",
|
|
4817
|
-
surfaceHover: "#182F31",
|
|
4818
|
-
canvas: "#0F1A1F",
|
|
4819
|
-
panel: "#16242A",
|
|
4820
|
-
borderStrong: "#2F4F4C",
|
|
4821
|
-
textDim: "#5E7680"
|
|
4822
|
-
};
|
|
4823
|
-
var cleanPreset = {
|
|
4824
|
-
background: "#F4F7F8",
|
|
4825
|
-
foreground: "#12222A",
|
|
4826
|
-
card: "#FFFFFF",
|
|
4827
|
-
primary: "#1F6B6E",
|
|
4828
|
-
primaryForeground: "#FFFFFF",
|
|
4829
|
-
secondary: "#EDF3F2",
|
|
4830
|
-
secondaryForeground: "#12222A",
|
|
4831
|
-
muted: "#EDF3F2",
|
|
4832
|
-
mutedForeground: "#6A7B85",
|
|
4833
|
-
accent: "#EDF3F2",
|
|
4834
|
-
accentForeground: "#12222A",
|
|
4835
|
-
destructive: "#B04A3C",
|
|
4836
|
-
destructiveForeground: "#FFFFFF",
|
|
4837
|
-
border: "#DCE4E8",
|
|
4838
|
-
input: "#DCE4E8",
|
|
4839
|
-
ring: "#1F6B6E",
|
|
4840
|
-
radius: "0px",
|
|
4841
|
-
surface: "#FAFCFC",
|
|
4842
|
-
surfaceHover: "#EDF3F2",
|
|
4843
|
-
canvas: "#F4F7F8",
|
|
4844
|
-
panel: "#FFFFFF",
|
|
4845
|
-
borderStrong: "#B9D1CF",
|
|
4846
|
-
textDim: "#6A7B85"
|
|
4847
|
-
};
|
|
4848
|
-
|
|
4849
4797
|
exports.DEFAULT_PALETTE = DEFAULT_PALETTE;
|
|
4850
4798
|
exports.DEFAULT_SCHEMA = DEFAULT_SCHEMA;
|
|
4851
4799
|
exports.FormBuilder = FormBuilder;
|
|
@@ -4854,7 +4802,6 @@ exports.QUESTION_TYPE_INFO = QUESTION_TYPE_INFO;
|
|
|
4854
4802
|
exports.addOption = addOption;
|
|
4855
4803
|
exports.addQuestion = addQuestion;
|
|
4856
4804
|
exports.addSection = addSection;
|
|
4857
|
-
exports.cleanPreset = cleanPreset;
|
|
4858
4805
|
exports.cn = cn;
|
|
4859
4806
|
exports.duplicateQuestion = duplicateQuestion;
|
|
4860
4807
|
exports.duplicateSection = duplicateSection;
|
|
@@ -4870,7 +4817,6 @@ exports.moveSection = moveSection;
|
|
|
4870
4817
|
exports.removeOption = removeOption;
|
|
4871
4818
|
exports.removeQuestion = removeQuestion;
|
|
4872
4819
|
exports.removeSection = removeSection;
|
|
4873
|
-
exports.squaredrDarkPreset = squaredrDarkPreset;
|
|
4874
4820
|
exports.updateOption = updateOption;
|
|
4875
4821
|
exports.updateQuestion = updateQuestion;
|
|
4876
4822
|
exports.updateSection = updateSection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DEFAULT_PALETTE, DEFAULT_SCHEMA, FormBuilder, FormBuilderThemeProvider, QUESTION_TYPE_INFO, addOption, addQuestion, addSection,
|
|
1
|
+
export { DEFAULT_PALETTE, DEFAULT_SCHEMA, FormBuilder, FormBuilderThemeProvider, QUESTION_TYPE_INFO, addOption, addQuestion, addSection, duplicateQuestion, duplicateSection, findQuestion, findSection, generateId, generateOptionId, generateQuestionId, generateSectionId, moveOption, moveQuestion, moveSection, removeOption, removeQuestion, removeSection, updateOption, updateQuestion, updateSection, useBuilderState, useBuilderTheme, useDragDrop, useUndoRedo } from '../chunk-ANBMT5AW.mjs';
|
|
2
2
|
export { cn } from '../chunk-QQ4JZGTD.mjs';
|
|
3
3
|
import '../chunk-VECQKSWS.mjs';
|
|
@@ -228,17 +228,6 @@ type FormBuilderThemeProviderProps = {
|
|
|
228
228
|
};
|
|
229
229
|
declare function FormBuilderThemeProvider({ theme, children }: FormBuilderThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
230
230
|
|
|
231
|
-
/**
|
|
232
|
-
* Drafting Teal dark theme preset.
|
|
233
|
-
* Matches fieldcraft.squaredr.tech dark mode.
|
|
234
|
-
*/
|
|
235
|
-
declare const squaredrDarkPreset: FormBuilderTheme;
|
|
236
|
-
/**
|
|
237
|
-
* Drafting Teal light theme preset (default).
|
|
238
|
-
* Matches fieldcraft.squaredr.tech light mode.
|
|
239
|
-
*/
|
|
240
|
-
declare const cleanPreset: FormBuilderTheme;
|
|
241
|
-
|
|
242
231
|
/**
|
|
243
232
|
* Metadata for all question types available in the Pro palette.
|
|
244
233
|
* Icons are lucide-react component names (imported dynamically via ICON_MAP).
|
|
@@ -395,4 +384,4 @@ declare function useDragDrop(builderState: BuilderStateHook): {
|
|
|
395
384
|
*/
|
|
396
385
|
declare const DEFAULT_SCHEMA: FormEngineSchema;
|
|
397
386
|
|
|
398
|
-
export {
|
|
387
|
+
export { moveSection as A, type BuilderState as B, removeOption as C, DEFAULT_PALETTE as D, removeQuestion as E, FormBuilder as F, removeSection as G, updateOption as H, updateQuestion as I, updateSection as J, useBuilderState as K, useBuilderTheme as L, type MutationAction as M, useDragDrop as N, useUndoRedo as O, type PaletteCategory as P, QUESTION_TYPE_INFO as Q, type SelectedItem as S, type UndoRedoState as U, type BuilderStateHook as a, DEFAULT_SCHEMA as b, type DragItem as c, type DropTarget as d, type FormBuilderPreviewProps as e, type FormBuilderProps as f, type FormBuilderTemplate as g, type FormBuilderTheme as h, FormBuilderThemeProvider as i, type PropertyPanelTab as j, type QuestionTypeCategory as k, type QuestionTypeInfo as l, addOption as m, addQuestion as n, addSection as o, cn as p, duplicateQuestion as q, duplicateSection as r, findQuestion as s, findSection as t, generateId as u, generateOptionId as v, generateQuestionId as w, generateSectionId as x, moveOption as y, moveQuestion as z };
|
|
@@ -228,17 +228,6 @@ type FormBuilderThemeProviderProps = {
|
|
|
228
228
|
};
|
|
229
229
|
declare function FormBuilderThemeProvider({ theme, children }: FormBuilderThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
230
230
|
|
|
231
|
-
/**
|
|
232
|
-
* Drafting Teal dark theme preset.
|
|
233
|
-
* Matches fieldcraft.squaredr.tech dark mode.
|
|
234
|
-
*/
|
|
235
|
-
declare const squaredrDarkPreset: FormBuilderTheme;
|
|
236
|
-
/**
|
|
237
|
-
* Drafting Teal light theme preset (default).
|
|
238
|
-
* Matches fieldcraft.squaredr.tech light mode.
|
|
239
|
-
*/
|
|
240
|
-
declare const cleanPreset: FormBuilderTheme;
|
|
241
|
-
|
|
242
231
|
/**
|
|
243
232
|
* Metadata for all question types available in the Pro palette.
|
|
244
233
|
* Icons are lucide-react component names (imported dynamically via ICON_MAP).
|
|
@@ -395,4 +384,4 @@ declare function useDragDrop(builderState: BuilderStateHook): {
|
|
|
395
384
|
*/
|
|
396
385
|
declare const DEFAULT_SCHEMA: FormEngineSchema;
|
|
397
386
|
|
|
398
|
-
export {
|
|
387
|
+
export { moveSection as A, type BuilderState as B, removeOption as C, DEFAULT_PALETTE as D, removeQuestion as E, FormBuilder as F, removeSection as G, updateOption as H, updateQuestion as I, updateSection as J, useBuilderState as K, useBuilderTheme as L, type MutationAction as M, useDragDrop as N, useUndoRedo as O, type PaletteCategory as P, QUESTION_TYPE_INFO as Q, type SelectedItem as S, type UndoRedoState as U, type BuilderStateHook as a, DEFAULT_SCHEMA as b, type DragItem as c, type DropTarget as d, type FormBuilderPreviewProps as e, type FormBuilderProps as f, type FormBuilderTemplate as g, type FormBuilderTheme as h, FormBuilderThemeProvider as i, type PropertyPanelTab as j, type QuestionTypeCategory as k, type QuestionTypeInfo as l, addOption as m, addQuestion as n, addSection as o, cn as p, duplicateQuestion as q, duplicateSection as r, findQuestion as s, findSection as t, generateId as u, generateOptionId as v, generateQuestionId as w, generateSectionId as x, moveOption as y, moveQuestion as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, ComponentType } from 'react';
|
|
3
|
-
export { B as BuilderState, a as BuilderStateHook, D as DEFAULT_PALETTE, b as DEFAULT_SCHEMA, c as DragItem, d as DropTarget, F as FormBuilder, e as FormBuilderPreviewProps, f as FormBuilderProps, g as FormBuilderTemplate, h as FormBuilderTheme, i as FormBuilderThemeProvider, M as MutationAction, P as PaletteCategory, j as PropertyPanelTab, Q as QUESTION_TYPE_INFO, k as QuestionTypeCategory, l as QuestionTypeInfo, S as SelectedItem, U as UndoRedoState, m as addOption, n as addQuestion, o as addSection, p as
|
|
3
|
+
export { B as BuilderState, a as BuilderStateHook, D as DEFAULT_PALETTE, b as DEFAULT_SCHEMA, c as DragItem, d as DropTarget, F as FormBuilder, e as FormBuilderPreviewProps, f as FormBuilderProps, g as FormBuilderTemplate, h as FormBuilderTheme, i as FormBuilderThemeProvider, M as MutationAction, P as PaletteCategory, j as PropertyPanelTab, Q as QUESTION_TYPE_INFO, k as QuestionTypeCategory, l as QuestionTypeInfo, S as SelectedItem, U as UndoRedoState, m as addOption, n as addQuestion, o as addSection, p as cn, q as duplicateQuestion, r as duplicateSection, s as findQuestion, t as findSection, u as generateId, v as generateOptionId, w as generateQuestionId, x as generateSectionId, y as moveOption, z as moveQuestion, A as moveSection, C as removeOption, E as removeQuestion, G as removeSection, H as updateOption, I as updateQuestion, J as updateSection, K as useBuilderState, L as useBuilderTheme, N as useDragDrop, O as useUndoRedo } from './index-D19524df.mjs';
|
|
4
4
|
import { FieldComponent, FieldProps } from '@squaredr/fieldcraft-react';
|
|
5
5
|
export { ResponseField, ResponseViewer, ResponseViewerProps, ViewMode } from './response-viewer/index.mjs';
|
|
6
|
-
export {
|
|
6
|
+
export { PRESET_FAMILIES, PREVIEW_SCHEMA, PresetFamily, ThemeEditor, ThemeEditorInner, ThemeEditorProps, ThemeEditorTheme, ThemeEditorThemeProvider, resolveThemeFromDOM, themeEditorDarkPreset, themeEditorLightPreset, useEditorTheme } from './theme-editor/index.mjs';
|
|
7
7
|
import '@squaredr/fieldcraft-core';
|
|
8
8
|
import 'clsx';
|
|
9
9
|
import '@dnd-kit/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, ComponentType } from 'react';
|
|
3
|
-
export { B as BuilderState, a as BuilderStateHook, D as DEFAULT_PALETTE, b as DEFAULT_SCHEMA, c as DragItem, d as DropTarget, F as FormBuilder, e as FormBuilderPreviewProps, f as FormBuilderProps, g as FormBuilderTemplate, h as FormBuilderTheme, i as FormBuilderThemeProvider, M as MutationAction, P as PaletteCategory, j as PropertyPanelTab, Q as QUESTION_TYPE_INFO, k as QuestionTypeCategory, l as QuestionTypeInfo, S as SelectedItem, U as UndoRedoState, m as addOption, n as addQuestion, o as addSection, p as
|
|
3
|
+
export { B as BuilderState, a as BuilderStateHook, D as DEFAULT_PALETTE, b as DEFAULT_SCHEMA, c as DragItem, d as DropTarget, F as FormBuilder, e as FormBuilderPreviewProps, f as FormBuilderProps, g as FormBuilderTemplate, h as FormBuilderTheme, i as FormBuilderThemeProvider, M as MutationAction, P as PaletteCategory, j as PropertyPanelTab, Q as QUESTION_TYPE_INFO, k as QuestionTypeCategory, l as QuestionTypeInfo, S as SelectedItem, U as UndoRedoState, m as addOption, n as addQuestion, o as addSection, p as cn, q as duplicateQuestion, r as duplicateSection, s as findQuestion, t as findSection, u as generateId, v as generateOptionId, w as generateQuestionId, x as generateSectionId, y as moveOption, z as moveQuestion, A as moveSection, C as removeOption, E as removeQuestion, G as removeSection, H as updateOption, I as updateQuestion, J as updateSection, K as useBuilderState, L as useBuilderTheme, N as useDragDrop, O as useUndoRedo } from './index-D19524df.js';
|
|
4
4
|
import { FieldComponent, FieldProps } from '@squaredr/fieldcraft-react';
|
|
5
5
|
export { ResponseField, ResponseViewer, ResponseViewerProps, ViewMode } from './response-viewer/index.js';
|
|
6
|
-
export {
|
|
6
|
+
export { PRESET_FAMILIES, PREVIEW_SCHEMA, PresetFamily, ThemeEditor, ThemeEditorInner, ThemeEditorProps, ThemeEditorTheme, ThemeEditorThemeProvider, resolveThemeFromDOM, themeEditorDarkPreset, themeEditorLightPreset, useEditorTheme } from './theme-editor/index.js';
|
|
7
7
|
import '@squaredr/fieldcraft-core';
|
|
8
8
|
import 'clsx';
|
|
9
9
|
import '@dnd-kit/core';
|