@clipform/mcp-server 4.11.2 → 4.11.4

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.
@@ -103,6 +103,16 @@ var FEATURES = {
103
103
  status: "beta",
104
104
  category: "builder"
105
105
  },
106
+ response_trash: {
107
+ name: "Response trash",
108
+ description: "Move responses to the trash and restore them from the Responses tab",
109
+ // Dogfood-only (#2862): invisible beta - enabled:false, never 'live'/'planned' so
110
+ // no public surface lists it. Available to FEATURE_COMPANY_ALLOWLIST.response_trash
111
+ // via companyHasResponseTrash; the global flip (+ wentLiveAt) is the launch step.
112
+ enabled: false,
113
+ status: "beta",
114
+ category: "builder"
115
+ },
106
116
  custom_fonts: {
107
117
  name: "Custom fonts",
108
118
  description: "Upload and use custom fonts in forms",
@@ -388,6 +398,14 @@ var FEATURES = {
388
398
  wentLiveAt: "2026-06-07",
389
399
  category: "analytics"
390
400
  },
401
+ excel_export: {
402
+ name: "Excel export",
403
+ description: "Export response data to an Excel file, with the same columns as the CSV export",
404
+ enabled: true,
405
+ status: "live",
406
+ wentLiveAt: "2026-11-05",
407
+ category: "analytics"
408
+ },
391
409
  // Backfilled (#4338): the Responses table's search box (DataSpreadsheet's
392
410
  // globalFilter, TanStack default `includesString` across every visible
393
411
  // column) already searches every node-response column's displayed value -
@@ -884,6 +902,7 @@ var RESPONSE_FORMATS = ["text", "audio", "video"];
884
902
  var CONSENT_TYPES = ["consent", "opt_in"];
885
903
  var CHOICE_MAX_OPTIONS = 12;
886
904
  var CHOICE_MAX_LETTERS_OPTIONS = 6;
905
+ var CHOICE_MAX_OPTION_LENGTH = 80;
887
906
  var CONTACT_FIELD_TYPES = ["text", "textarea", "email", "tel", "url", "date", "number"];
888
907
  var DRAW_GAME_DEFAULT_TIERS = [
889
908
  { min_score: 0, label: "Scribble" },
@@ -976,7 +995,7 @@ var NODE_TYPES = {
976
995
  max_options: CHOICE_MAX_OPTIONS,
977
996
  // Letters display (A/B/C chips on one row) stops here; List takes the full max_options.
978
997
  max_letters_options: CHOICE_MAX_LETTERS_OPTIONS,
979
- max_option_length: 36,
998
+ max_option_length: CHOICE_MAX_OPTION_LENGTH,
980
999
  is_terminal: false,
981
1000
  show_nav_bar: true,
982
1001
  loading: "eager",
@@ -1313,7 +1332,7 @@ var NODE_TYPES = {
1313
1332
  color: "#E9D5FF",
1314
1333
  description: null,
1315
1334
  category: "action",
1316
- sort_order: 4,
1335
+ sort_order: 8,
1317
1336
  has_options: false,
1318
1337
  is_terminal: false,
1319
1338
  show_nav_bar: true,
@@ -1393,10 +1412,10 @@ var NODE_TYPES = {
1393
1412
  label: "Details",
1394
1413
  shorthand: "Details",
1395
1414
  icon: "User",
1396
- color: "#CFFAFE",
1415
+ color: "#ECFCCB",
1397
1416
  description: "Collect several fields on one screen - name, email, phone, address, date, and more",
1398
1417
  category: "input",
1399
- sort_order: 5,
1418
+ sort_order: 4,
1400
1419
  has_options: false,
1401
1420
  is_terminal: false,
1402
1421
  show_nav_bar: true,
@@ -1417,8 +1436,8 @@ var NODE_TYPES = {
1417
1436
  owner_scoped_config_keys: [],
1418
1437
  default_config: {
1419
1438
  fields: [
1420
- { id: "first_name", type: "first_name", label: "First Name", enabled: true, required: true },
1421
- { id: "email", type: "email", label: "Email", enabled: true, required: true }
1439
+ { id: "first_name", required: true },
1440
+ { id: "email", required: true }
1422
1441
  ],
1423
1442
  // No agreement out of the box - the builder adds one via "Add agreement"
1424
1443
  // when they actually need consent, so a fresh node ships no orphan checkbox. (#1378)
@@ -1583,7 +1602,7 @@ var NODE_TYPES = {
1583
1602
  color: "#ECFCCB",
1584
1603
  description: "Collect file uploads from respondents",
1585
1604
  category: "input",
1586
- sort_order: 6,
1605
+ sort_order: 5,
1587
1606
  has_options: false,
1588
1607
  is_terminal: false,
1589
1608
  show_nav_bar: true,
@@ -1679,10 +1698,10 @@ var NODE_TYPES = {
1679
1698
  label: "Drawing",
1680
1699
  shorthand: "Draw",
1681
1700
  icon: "Pencil",
1682
- color: "#FEF3C7",
1701
+ color: "#ECFCCB",
1683
1702
  description: "Drawing canvas; respondents draw and it is saved as a PNG image",
1684
1703
  category: "input",
1685
- sort_order: 6.5,
1704
+ sort_order: 7,
1686
1705
  has_options: false,
1687
1706
  is_terminal: false,
1688
1707
  show_nav_bar: true,
@@ -1889,10 +1908,10 @@ var NODE_TYPES = {
1889
1908
  label: "Camera",
1890
1909
  shorthand: "Camera",
1891
1910
  icon: "Camera",
1892
- color: "#FCE7F3",
1911
+ color: "#ECFCCB",
1893
1912
  description: "Capture a photo or video from the device camera",
1894
1913
  category: "input",
1895
- sort_order: 6.6,
1914
+ sort_order: 6,
1896
1915
  has_options: false,
1897
1916
  is_terminal: false,
1898
1917
  show_nav_bar: true,
@@ -2080,7 +2099,7 @@ var NODE_TYPES = {
2080
2099
  color: "#E0E7FF",
2081
2100
  description: "Route the flow to different branches based on a score, max score, or category variable.",
2082
2101
  category: "logic",
2083
- sort_order: 6.7,
2102
+ sort_order: 12,
2084
2103
  has_options: true,
2085
2104
  min_options: 2,
2086
2105
  max_options: 10,
@@ -2116,7 +2135,7 @@ var NODE_TYPES = {
2116
2135
  color: "#E9D5FF",
2117
2136
  description: "Collect a payment from respondents inline, charged to a connected Stripe account",
2118
2137
  category: "action",
2119
- sort_order: 7,
2138
+ sort_order: 9,
2120
2139
  has_options: false,
2121
2140
  is_terminal: false,
2122
2141
  show_nav_bar: true,
@@ -2477,7 +2496,7 @@ var NODE_TYPES = {
2477
2496
  color: "#E9D5FF",
2478
2497
  description: "Provide a file for respondents to download",
2479
2498
  category: "action",
2480
- sort_order: 9,
2499
+ sort_order: 11,
2481
2500
  has_options: false,
2482
2501
  is_terminal: false,
2483
2502
  show_nav_bar: true,
@@ -2567,7 +2586,7 @@ var NODE_TYPES = {
2567
2586
  color: "#E9D5FF",
2568
2587
  description: "Product recommendations with direct checkout",
2569
2588
  category: "action",
2570
- sort_order: 8,
2589
+ sort_order: 10,
2571
2590
  has_options: false,
2572
2591
  is_terminal: true,
2573
2592
  show_nav_bar: true,
@@ -3435,6 +3454,72 @@ var CONTACT_FIELDS = [
3435
3454
  var CONTACT_FIELDS_MAP = Object.fromEntries(
3436
3455
  CONTACT_FIELDS.map((f) => [f.id, f])
3437
3456
  );
3457
+ var RETIRED_CONTACT_FIELD_LABELS = {
3458
+ company: "Company",
3459
+ job_title: "Job Title",
3460
+ website: "Website",
3461
+ linkedin: "LinkedIn Profile",
3462
+ message: "Message"
3463
+ };
3464
+ function contactFieldLabel(field) {
3465
+ if (Object.hasOwn(CONTACT_FIELDS_MAP, field.id) && !field.is_custom) {
3466
+ return CONTACT_FIELDS_MAP[field.id].label;
3467
+ }
3468
+ const stored = typeof field.label === "string" ? field.label.trim() : "";
3469
+ if (stored && stored !== field.id) return stored;
3470
+ if (!field.is_custom && Object.hasOwn(RETIRED_CONTACT_FIELD_LABELS, field.id)) {
3471
+ return RETIRED_CONTACT_FIELD_LABELS[field.id];
3472
+ }
3473
+ return field.id;
3474
+ }
3475
+ function normalizeContactFields(fields) {
3476
+ if (!Array.isArray(fields)) return { fields, ignoredLabels: [], keptStandard: [], madeCustom: [] };
3477
+ const ignoredLabels = [];
3478
+ const keptStandard = [];
3479
+ const madeCustom = [];
3480
+ const out = fields.map((field) => {
3481
+ if (!field || typeof field !== "object" || typeof field.id !== "string") return field;
3482
+ if (Object.hasOwn(CONTACT_FIELDS_MAP, field.id)) {
3483
+ const { label, ...rest } = field;
3484
+ const stored = typeof label === "string" ? label.trim() : "";
3485
+ const differs = stored !== "" && stored.toLowerCase() !== CONTACT_FIELDS_MAP[field.id].label.toLowerCase();
3486
+ if (differs) ignoredLabels.push(field.id);
3487
+ else if (field.is_custom === true) keptStandard.push(field.id);
3488
+ return { ...rest, is_custom: false };
3489
+ }
3490
+ if (!field.is_custom && field.id.trim() !== "") {
3491
+ madeCustom.push(field.id);
3492
+ return { ...field, is_custom: true, label: contactFieldLabel(field) };
3493
+ }
3494
+ return field;
3495
+ });
3496
+ return { fields: out, ignoredLabels, keptStandard, madeCustom };
3497
+ }
3498
+ var NOTE_MAX_IDS = 5;
3499
+ var NOTE_MAX_ID_LENGTH = 40;
3500
+ function noteIds(ids) {
3501
+ const unique = [...new Set(ids)];
3502
+ const shown = unique.slice(0, NOTE_MAX_IDS).map((id) => `"${id.length > NOTE_MAX_ID_LENGTH ? id.slice(0, NOTE_MAX_ID_LENGTH) + "..." : id}"`);
3503
+ const more = unique.length - NOTE_MAX_IDS;
3504
+ return shown.join(", ") + (more > 0 ? ` and ${more} more` : "");
3505
+ }
3506
+ var standardNames = (ids) => [...new Set(ids)].map((id) => `"${CONTACT_FIELDS_MAP[id]?.label ?? id}"`).join(", ");
3507
+ function ignoredContactLabelNote(ids) {
3508
+ return `Standard field(s) ${noteIds(ids)} always show their config name (${standardNames(ids)}), so their labels were ignored. For other wording or another language, add a custom field ({ id, is_custom: true, label, type }).`;
3509
+ }
3510
+ function keptStandardContactNote(ids) {
3511
+ return `Standard field(s) ${noteIds(ids)} cannot be custom, so they were kept as the standard field (${standardNames(ids)}).`;
3512
+ }
3513
+ function madeCustomContactNote(ids) {
3514
+ return `Field(s) ${noteIds(ids)} are not standard fields (first_name, last_name, email, phone), so they were saved as custom fields.`;
3515
+ }
3516
+ function contactFieldNotes(result) {
3517
+ const notes = [];
3518
+ if (result.ignoredLabels.length) notes.push(ignoredContactLabelNote(result.ignoredLabels));
3519
+ if (result.keptStandard?.length) notes.push(keptStandardContactNote(result.keptStandard));
3520
+ if (result.madeCustom.length) notes.push(madeCustomContactNote(result.madeCustom));
3521
+ return notes;
3522
+ }
3438
3523
  var COMPOSITION_REGISTRY = [
3439
3524
  // Beds (full-bleed backgrounds)
3440
3525
  { id: "Slideshow", tier: "public", kind: "bed", scene_layer: true },
@@ -3761,6 +3846,8 @@ export {
3761
3846
  PLAN_LIMITS,
3762
3847
  CURRENT_PLAN_VERSIONS,
3763
3848
  CONTACT_FIELDS,
3849
+ normalizeContactFields,
3850
+ contactFieldNotes,
3764
3851
  exposedCompositionIds,
3765
3852
  MCP_TOOL_TIERS,
3766
3853
  MCP_TOOL_TOOLSETS,
@@ -3773,4 +3860,4 @@ export {
3773
3860
  textResult,
3774
3861
  structuredResult
3775
3862
  };
3776
- //# sourceMappingURL=chunk-GDHIIUZR.js.map
3863
+ //# sourceMappingURL=chunk-BUSXPGIE.js.map