@squaredr/fieldcraft-pro 1.6.4 → 1.8.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/LICENSE.txt +51 -51
- package/README.md +139 -139
- package/dist/{chunk-VECQKSWS.mjs → chunk-4MMKB2EW.mjs} +60 -86
- package/dist/{chunk-CFVT2R42.mjs → chunk-CYXJGOQH.mjs} +904 -206
- package/dist/{chunk-ANBMT5AW.mjs → chunk-GXKQCXIB.mjs} +470 -228
- package/dist/chunk-IW654Z3M.mjs +1108 -0
- package/dist/{chunk-5LKGCZAW.mjs → chunk-MLP5EDWP.mjs} +167 -178
- package/dist/form-builder/index.d.mts +176 -6
- package/dist/form-builder/index.d.ts +176 -6
- package/dist/form-builder/index.js +604 -365
- package/dist/form-builder/index.mjs +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3221 -984
- package/dist/index.mjs +332 -125
- package/dist/response-viewer/index.d.mts +1 -1
- package/dist/response-viewer/index.d.ts +1 -1
- package/dist/response-viewer/index.js +169 -204
- package/dist/response-viewer/index.mjs +2 -2
- package/dist/styles.css +1 -1
- package/dist/templates/index.d.mts +43 -0
- package/dist/templates/index.d.ts +43 -0
- package/dist/templates/index.js +1116 -0
- package/dist/templates/index.mjs +1 -0
- package/dist/theme-editor/index.d.mts +11 -5
- package/dist/theme-editor/index.d.ts +11 -5
- package/dist/theme-editor/index.js +907 -232
- package/dist/theme-editor/index.mjs +2 -2
- package/dist/types-bFHsZT1n.d.mts +217 -0
- package/dist/types-bFHsZT1n.d.ts +217 -0
- package/package.json +23 -11
- package/theme-editor/styles.css +468 -466
- package/dist/index-D19524df.d.mts +0 -387
- package/dist/index-D19524df.d.ts +0 -387
|
@@ -1,3 +1,3 @@
|
|
|
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-
|
|
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-GXKQCXIB.mjs';
|
|
2
2
|
export { cn } from '../chunk-QQ4JZGTD.mjs';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-4MMKB2EW.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, ComponentType } from 'react';
|
|
3
|
-
export {
|
|
3
|
+
export { BuilderStateHook, DEFAULT_PALETTE, DEFAULT_SCHEMA, FormBuilder, FormBuilderThemeProvider, QUESTION_TYPE_INFO, UndoRedoState, addOption, addQuestion, addSection, cn, duplicateQuestion, duplicateSection, findQuestion, findSection, generateId, generateOptionId, generateQuestionId, generateSectionId, moveOption, moveQuestion, moveSection, removeOption, removeQuestion, removeSection, updateOption, updateQuestion, updateSection, useBuilderState, useBuilderTheme, useDragDrop, useUndoRedo } from './form-builder/index.mjs';
|
|
4
|
+
export { B as BuilderState, D as DragItem, a as DropTarget, F as FormBuilderPreviewProps, b as FormBuilderProps, c as FormBuilderTemplate, d as FormBuilderTheme, M as MutationAction, P as PaletteCategory, e as PropertyPanelTab, Q as QuestionTypeCategory, f as QuestionTypeInfo, S as SelectedItem } from './types-bFHsZT1n.mjs';
|
|
4
5
|
import { FieldComponent, FieldProps } from '@squaredr/fieldcraft-react';
|
|
5
|
-
export { ResponseField, ResponseViewer, ResponseViewerProps, ViewMode } from './response-viewer/index.mjs';
|
|
6
|
+
export { FieldRenderer, ResponseField, ResponseViewer, ResponseViewerProps, ViewMode } from './response-viewer/index.mjs';
|
|
6
7
|
export { PRESET_FAMILIES, PREVIEW_SCHEMA, PresetFamily, ThemeEditor, ThemeEditorProps, ThemeEditorTheme, ThemeEditorThemeProvider, resolveThemeFromDOM, themeEditorDarkPreset, themeEditorLightPreset, useEditorTheme } from './theme-editor/index.mjs';
|
|
7
|
-
|
|
8
|
+
export { consultationBooking, consultationBookingMeta, consultationBookingSchema, ecommerceCheckout, ecommerceCheckoutMeta, ecommerceCheckoutSchema, proTemplates } from './templates/index.mjs';
|
|
9
|
+
export { FormEngineSchema, FormEngineTheme, FormResponse, Question, Section } from '@squaredr/fieldcraft-core';
|
|
8
10
|
import 'clsx';
|
|
9
11
|
import '@dnd-kit/core';
|
|
10
12
|
|
|
11
13
|
type LicenseStatus = "validating" | "valid" | "invalid" | "expired" | "revoked" | "domain_mismatch";
|
|
12
|
-
type LicenseTier = "starter" | "pro" | "business" | "enterprise";
|
|
13
14
|
type LicenseContext = {
|
|
14
15
|
status: LicenseStatus;
|
|
15
|
-
tier: LicenseTier | null;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
type FieldCraftProProviderProps = {
|
|
@@ -65,7 +65,7 @@ declare function isProductionEnvironment(): boolean;
|
|
|
65
65
|
* 3. `config.serverUrl` — SaaS mode (POST to create intent)
|
|
66
66
|
* 4. Nothing — show setup message
|
|
67
67
|
*
|
|
68
|
-
* Requires `@squaredr/paykit-react` and `@squaredr/paykit
|
|
68
|
+
* Requires `@squaredr/paykit-react` and `@squaredr/paykit/stripe/client` as peer deps.
|
|
69
69
|
*/
|
|
70
70
|
declare function ProPaymentField(props: FieldProps): react_jsx_runtime.JSX.Element;
|
|
71
71
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, ComponentType } from 'react';
|
|
3
|
-
export {
|
|
3
|
+
export { BuilderStateHook, DEFAULT_PALETTE, DEFAULT_SCHEMA, FormBuilder, FormBuilderThemeProvider, QUESTION_TYPE_INFO, UndoRedoState, addOption, addQuestion, addSection, cn, duplicateQuestion, duplicateSection, findQuestion, findSection, generateId, generateOptionId, generateQuestionId, generateSectionId, moveOption, moveQuestion, moveSection, removeOption, removeQuestion, removeSection, updateOption, updateQuestion, updateSection, useBuilderState, useBuilderTheme, useDragDrop, useUndoRedo } from './form-builder/index.js';
|
|
4
|
+
export { B as BuilderState, D as DragItem, a as DropTarget, F as FormBuilderPreviewProps, b as FormBuilderProps, c as FormBuilderTemplate, d as FormBuilderTheme, M as MutationAction, P as PaletteCategory, e as PropertyPanelTab, Q as QuestionTypeCategory, f as QuestionTypeInfo, S as SelectedItem } from './types-bFHsZT1n.js';
|
|
4
5
|
import { FieldComponent, FieldProps } from '@squaredr/fieldcraft-react';
|
|
5
|
-
export { ResponseField, ResponseViewer, ResponseViewerProps, ViewMode } from './response-viewer/index.js';
|
|
6
|
+
export { FieldRenderer, ResponseField, ResponseViewer, ResponseViewerProps, ViewMode } from './response-viewer/index.js';
|
|
6
7
|
export { PRESET_FAMILIES, PREVIEW_SCHEMA, PresetFamily, ThemeEditor, ThemeEditorProps, ThemeEditorTheme, ThemeEditorThemeProvider, resolveThemeFromDOM, themeEditorDarkPreset, themeEditorLightPreset, useEditorTheme } from './theme-editor/index.js';
|
|
7
|
-
|
|
8
|
+
export { consultationBooking, consultationBookingMeta, consultationBookingSchema, ecommerceCheckout, ecommerceCheckoutMeta, ecommerceCheckoutSchema, proTemplates } from './templates/index.js';
|
|
9
|
+
export { FormEngineSchema, FormEngineTheme, FormResponse, Question, Section } from '@squaredr/fieldcraft-core';
|
|
8
10
|
import 'clsx';
|
|
9
11
|
import '@dnd-kit/core';
|
|
10
12
|
|
|
11
13
|
type LicenseStatus = "validating" | "valid" | "invalid" | "expired" | "revoked" | "domain_mismatch";
|
|
12
|
-
type LicenseTier = "starter" | "pro" | "business" | "enterprise";
|
|
13
14
|
type LicenseContext = {
|
|
14
15
|
status: LicenseStatus;
|
|
15
|
-
tier: LicenseTier | null;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
type FieldCraftProProviderProps = {
|
|
@@ -65,7 +65,7 @@ declare function isProductionEnvironment(): boolean;
|
|
|
65
65
|
* 3. `config.serverUrl` — SaaS mode (POST to create intent)
|
|
66
66
|
* 4. Nothing — show setup message
|
|
67
67
|
*
|
|
68
|
-
* Requires `@squaredr/paykit-react` and `@squaredr/paykit
|
|
68
|
+
* Requires `@squaredr/paykit-react` and `@squaredr/paykit/stripe/client` as peer deps.
|
|
69
69
|
*/
|
|
70
70
|
declare function ProPaymentField(props: FieldProps): react_jsx_runtime.JSX.Element;
|
|
71
71
|
|