@squaredr/fieldcraft-pro 1.4.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.
@@ -1745,6 +1745,7 @@ function ResponseViewerInner({
1745
1745
  return /* @__PURE__ */ jsxs(
1746
1746
  "div",
1747
1747
  {
1748
+ "data-fcrv-root": "",
1748
1749
  className: "flex flex-col border border-border rounded-lg overflow-hidden bg-background text-foreground",
1749
1750
  style: { height: heightValue, width: widthValue },
1750
1751
  children: [
@@ -453,6 +453,14 @@ var QUESTION_TYPE_INFO = {
453
453
  icon: "Phone",
454
454
  description: "US phone number input"
455
455
  },
456
+ phone_international: {
457
+ type: "phone_international",
458
+ label: "Intl Phone",
459
+ category: "text",
460
+ icon: "Globe2",
461
+ description: "Phone with country code",
462
+ defaultConfig: { type: "phone_international", defaultCountry: "US" }
463
+ },
456
464
  url: {
457
465
  type: "url",
458
466
  label: "URL",
@@ -546,6 +554,14 @@ var QUESTION_TYPE_INFO = {
546
554
  requiresOptions: true,
547
555
  defaultConfig: { type: "ranking", items: [] }
548
556
  },
557
+ country_select: {
558
+ type: "country_select",
559
+ label: "Country",
560
+ category: "selection",
561
+ icon: "Globe",
562
+ description: "Country dropdown with search",
563
+ defaultConfig: { type: "country_select" }
564
+ },
549
565
  // ── Date/Time ──
550
566
  date: {
551
567
  type: "date",
@@ -597,6 +613,14 @@ var QUESTION_TYPE_INFO = {
597
613
  description: "Canvas signature pad",
598
614
  defaultConfig: { type: "signature" }
599
615
  },
616
+ image_capture: {
617
+ type: "image_capture",
618
+ label: "Camera",
619
+ category: "media",
620
+ icon: "Camera",
621
+ description: "Capture photo from camera",
622
+ defaultConfig: { type: "image_capture", allowGallery: true }
623
+ },
600
624
  date_range: {
601
625
  type: "date_range",
602
626
  label: "Date Range",
@@ -605,6 +629,14 @@ var QUESTION_TYPE_INFO = {
605
629
  description: "Start and end date picker",
606
630
  defaultConfig: { type: "date_range" }
607
631
  },
632
+ appointment: {
633
+ type: "appointment",
634
+ label: "Appointment",
635
+ category: "datetime",
636
+ icon: "CalendarCheck",
637
+ description: "Date & time slot booking",
638
+ defaultConfig: { type: "appointment", duration: 30 }
639
+ },
608
640
  // ── Advanced ──
609
641
  repeater: {
610
642
  type: "repeater",
@@ -676,6 +708,14 @@ var QUESTION_TYPE_INFO = {
676
708
  description: "Hidden value from URL or static",
677
709
  defaultConfig: { type: "hidden", source: "static" }
678
710
  },
711
+ payment: {
712
+ type: "payment",
713
+ label: "Payment",
714
+ category: "advanced",
715
+ icon: "CreditCard",
716
+ description: "Collect payment via Stripe",
717
+ defaultConfig: { type: "payment", provider: "stripe", publicKey: "", currency: "USD" }
718
+ },
679
719
  // ── Structural ──
680
720
  section_header: {
681
721
  type: "section_header",
@@ -780,7 +820,7 @@ var DEFAULT_PALETTE = [
780
820
  {
781
821
  category: "text",
782
822
  label: "Text Input",
783
- types: ["short_text", "long_text", "email", "phone", "url", "legal_name", "address"]
823
+ types: ["short_text", "long_text", "email", "phone", "phone_international", "url", "legal_name", "address"]
784
824
  },
785
825
  {
786
826
  category: "numeric",
@@ -790,17 +830,17 @@ var DEFAULT_PALETTE = [
790
830
  {
791
831
  category: "selection",
792
832
  label: "Selection",
793
- types: ["single_select", "multi_select", "dropdown", "boolean", "ranking"]
833
+ types: ["single_select", "multi_select", "dropdown", "boolean", "ranking", "country_select"]
794
834
  },
795
835
  {
796
836
  category: "datetime",
797
837
  label: "Date & Time",
798
- types: ["date", "time", "date_range"]
838
+ types: ["date", "time", "date_range", "appointment"]
799
839
  },
800
840
  {
801
841
  category: "media",
802
842
  label: "Media",
803
- types: ["file_upload", "signature"]
843
+ types: ["file_upload", "signature", "image_capture"]
804
844
  },
805
845
  {
806
846
  category: "content",
@@ -815,7 +855,7 @@ var DEFAULT_PALETTE = [
815
855
  {
816
856
  category: "advanced",
817
857
  label: "Advanced",
818
- types: ["repeater", "likert", "scoring", "matrix", "calculated", "hidden"]
858
+ types: ["repeater", "likert", "scoring", "matrix", "calculated", "hidden", "payment"]
819
859
  }
820
860
  ];
821
861
 
@@ -4427,56 +4467,4 @@ function FormBuilderInner(props) {
4427
4467
  // src/form-builder/components/FormBuilderGated.tsx
4428
4468
  var FormBuilder = requireLicense(FormBuilderInner, "FormBuilder");
4429
4469
 
4430
- // src/form-builder/theme/presets.ts
4431
- var squaredrDarkPreset = {
4432
- background: "#0F1A1F",
4433
- foreground: "#E8EFF1",
4434
- card: "#16242A",
4435
- primary: "#63BDB4",
4436
- primaryForeground: "#0F1A1F",
4437
- secondary: "#182F31",
4438
- secondaryForeground: "#E8EFF1",
4439
- muted: "#182F31",
4440
- mutedForeground: "#8CA1A9",
4441
- accent: "#182F31",
4442
- accentForeground: "#E8EFF1",
4443
- destructive: "#E08072",
4444
- destructiveForeground: "#0F1A1F",
4445
- border: "#2A3B42",
4446
- input: "#2A3B42",
4447
- ring: "#63BDB4",
4448
- radius: "0px",
4449
- surface: "#16242A",
4450
- surfaceHover: "#182F31",
4451
- canvas: "#0F1A1F",
4452
- panel: "#16242A",
4453
- borderStrong: "#2F4F4C",
4454
- textDim: "#5E7680"
4455
- };
4456
- var cleanPreset = {
4457
- background: "#F4F7F8",
4458
- foreground: "#12222A",
4459
- card: "#FFFFFF",
4460
- primary: "#1F6B6E",
4461
- primaryForeground: "#FFFFFF",
4462
- secondary: "#EDF3F2",
4463
- secondaryForeground: "#12222A",
4464
- muted: "#EDF3F2",
4465
- mutedForeground: "#6A7B85",
4466
- accent: "#EDF3F2",
4467
- accentForeground: "#12222A",
4468
- destructive: "#B04A3C",
4469
- destructiveForeground: "#FFFFFF",
4470
- border: "#DCE4E8",
4471
- input: "#DCE4E8",
4472
- ring: "#1F6B6E",
4473
- radius: "0px",
4474
- surface: "#FAFCFC",
4475
- surfaceHover: "#EDF3F2",
4476
- canvas: "#F4F7F8",
4477
- panel: "#FFFFFF",
4478
- borderStrong: "#B9D1CF",
4479
- textDim: "#6A7B85"
4480
- };
4481
-
4482
- export { DEFAULT_PALETTE, DEFAULT_SCHEMA, FormBuilder, FormBuilderThemeProvider, QUESTION_TYPE_INFO, addOption, addQuestion, addSection, cleanPreset, duplicateQuestion, duplicateSection, findQuestion, findSection, generateId, generateOptionId, generateQuestionId, generateSectionId, moveOption, moveQuestion, moveSection, removeOption, removeQuestion, removeSection, squaredrDarkPreset, updateOption, updateQuestion, updateSection, useBuilderState, useBuilderTheme, useDragDrop, useUndoRedo };
4470
+ 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 };