@clipform/mcp-server 4.11.3 → 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.
@@ -398,6 +398,14 @@ var FEATURES = {
398
398
  wentLiveAt: "2026-06-07",
399
399
  category: "analytics"
400
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
+ },
401
409
  // Backfilled (#4338): the Responses table's search box (DataSpreadsheet's
402
410
  // globalFilter, TanStack default `includesString` across every visible
403
411
  // column) already searches every node-response column's displayed value -
@@ -1428,8 +1436,8 @@ var NODE_TYPES = {
1428
1436
  owner_scoped_config_keys: [],
1429
1437
  default_config: {
1430
1438
  fields: [
1431
- { id: "first_name", type: "first_name", label: "First Name", enabled: true, required: true },
1432
- { id: "email", type: "email", label: "Email", enabled: true, required: true }
1439
+ { id: "first_name", required: true },
1440
+ { id: "email", required: true }
1433
1441
  ],
1434
1442
  // No agreement out of the box - the builder adds one via "Add agreement"
1435
1443
  // when they actually need consent, so a fresh node ships no orphan checkbox. (#1378)
@@ -3446,6 +3454,72 @@ var CONTACT_FIELDS = [
3446
3454
  var CONTACT_FIELDS_MAP = Object.fromEntries(
3447
3455
  CONTACT_FIELDS.map((f) => [f.id, f])
3448
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
+ }
3449
3523
  var COMPOSITION_REGISTRY = [
3450
3524
  // Beds (full-bleed backgrounds)
3451
3525
  { id: "Slideshow", tier: "public", kind: "bed", scene_layer: true },
@@ -3772,6 +3846,8 @@ export {
3772
3846
  PLAN_LIMITS,
3773
3847
  CURRENT_PLAN_VERSIONS,
3774
3848
  CONTACT_FIELDS,
3849
+ normalizeContactFields,
3850
+ contactFieldNotes,
3775
3851
  exposedCompositionIds,
3776
3852
  MCP_TOOL_TIERS,
3777
3853
  MCP_TOOL_TOOLSETS,
@@ -3784,4 +3860,4 @@ export {
3784
3860
  textResult,
3785
3861
  structuredResult
3786
3862
  };
3787
- //# sourceMappingURL=chunk-7PQJ5FHR.js.map
3863
+ //# sourceMappingURL=chunk-BUSXPGIE.js.map