strapi-plugin-hubspot 0.8.0 → 0.10.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/CHANGELOG.md +36 -0
- package/README.md +28 -0
- package/dist/_chunks/{Forms-77Mornxt.mjs → Forms-BGdNbq-k.mjs} +348 -33
- package/dist/_chunks/{Forms-B8kkPY0c.js → Forms-BVkE1C46.js} +345 -30
- package/dist/_chunks/{HubspotFormInput-BVknnlmR.mjs → HubspotFormInput-QJldybwT.mjs} +1 -1
- package/dist/_chunks/{HubspotFormInput-kx3LlQYF.js → HubspotFormInput-ddrrD-GJ.js} +1 -1
- package/dist/_chunks/{HubspotObjectInput-B-Y1PZ6c.mjs → HubspotObjectInput-B_W9dpvD.mjs} +3 -3
- package/dist/_chunks/{HubspotObjectInput-BOO1PvOj.js → HubspotObjectInput-DZ4H-vju.js} +3 -3
- package/dist/_chunks/{HubspotPropertyInput-awfD1opH.js → HubspotPropertyInput-BJHUy5Zr.js} +3 -3
- package/dist/_chunks/{HubspotPropertyInput-Drxn_Ddt.mjs → HubspotPropertyInput-CiVxcnEt.mjs} +3 -3
- package/dist/_chunks/{Settings-DrujhMxS.mjs → Settings-B0NyQtsh.mjs} +2 -2
- package/dist/_chunks/{Settings-BT1NhvxO.js → Settings-DaFRUzjG.js} +2 -2
- package/dist/_chunks/{en-BYKKi1LK.mjs → en-D1sHFQdN.mjs} +48 -1
- package/dist/_chunks/{en-B8adhJhO.js → en-zJv-SuNb.js} +48 -1
- package/dist/_chunks/{fr-DzgArgi3.mjs → fr-E3zTW7pq.mjs} +48 -1
- package/dist/_chunks/{fr-DnKtGXaB.js → fr-fh0uH6Rp.js} +48 -1
- package/dist/_chunks/{index-LrCSAHoH.mjs → index-BpapRdHX.mjs} +6 -6
- package/dist/_chunks/{index-P7p8ASb6.js → index-rgjWxSn4.js} +6 -6
- package/dist/_chunks/{objectLabels-yNrnTOBo.mjs → objectLabels-DQYwGDr3.mjs} +1 -1
- package/dist/_chunks/{objectLabels-Dn-zriuZ.js → objectLabels-mBjwR5EE.js} +1 -1
- package/dist/_chunks/{useHubspotSchema-BottzdRR.js → useHubspotSchema-CJEiHbjz.js} +1 -1
- package/dist/_chunks/{useHubspotSchema-DccG2KbZ.mjs → useHubspotSchema-DX4JTPFt.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/builder/types.d.ts +28 -1
- package/dist/admin/src/pages/Forms.d.ts +5 -1
- package/dist/admin/src/pages/Submissions.d.ts +8 -0
- package/dist/server/index.js +353 -14
- package/dist/server/index.mjs +353 -14
- package/dist/server/src/__tests__/importHubspot.test.d.ts +1 -0
- package/dist/server/src/__tests__/submissions.test.d.ts +1 -0
- package/dist/server/src/conditions.d.ts +3 -1
- package/dist/server/src/formsAdmin.d.ts +13 -0
- package/dist/server/src/importHubspot.d.ts +85 -0
- package/dist/server/src/index.d.ts +28 -1
- package/dist/server/src/submissions.d.ts +28 -0
- package/dist/shared/types.d.ts +15 -1
- package/package.json +1 -1
|
@@ -206,6 +206,53 @@ const en = {
|
|
|
206
206
|
"panel.persist": "Answer memory",
|
|
207
207
|
"panel.persist-session": "This visit only",
|
|
208
208
|
"panel.persist-days30": "30 days (non-identifying fields only)",
|
|
209
|
-
"panel.class": "CSS classes"
|
|
209
|
+
"panel.class": "CSS classes",
|
|
210
|
+
"forms.col-submissions": "Submissions",
|
|
211
|
+
"forms.submissions": "Submissions",
|
|
212
|
+
"forms.import-hubspot-title": "Import from your HubSpot portal",
|
|
213
|
+
"forms.import-hubspot-hint": "Translates a form built in HubSpot into a draft here, CRM mapping included. What the builder can't express is skipped and reported. Re-importing overwrites the draft.",
|
|
214
|
+
"forms.import-hubspot-source": "HubSpot form to import",
|
|
215
|
+
"forms.hubspot-list-error": "Could not list the portal's forms — the token needs the `forms` read scope.",
|
|
216
|
+
"forms.report-title": "Imported with gaps",
|
|
217
|
+
"forms.report-dismiss": "Dismiss",
|
|
218
|
+
"forms.report-open": "Open the form",
|
|
219
|
+
"forms.skipped-field-type": '"{label}" skipped — unsupported type ({detail})',
|
|
220
|
+
"forms.skipped-hidden": '"{label}" skipped — hidden fields are not supported yet',
|
|
221
|
+
"forms.skipped-object": '"{label}" skipped — unmapped object ({detail})',
|
|
222
|
+
"forms.skipped-duplicate": '"{label}" skipped — the name "{detail}" is already used',
|
|
223
|
+
"forms.skipped-condition": 'Condition on "{label}" dropped — no equivalent operator ({detail})',
|
|
224
|
+
"forms.skipped-rich-text": "A content block was skipped — the builder has no rich-text element",
|
|
225
|
+
"forms.skipped-consent": "The GDPR consent block was skipped — rebuild it as a field if needed",
|
|
226
|
+
"submissions.title": "Submissions",
|
|
227
|
+
"submissions.subtitle": "Every answer received by the built forms — stored whatever the CRM's mood.",
|
|
228
|
+
"submissions.back": "Back to the forms",
|
|
229
|
+
"submissions.filter": "Filter by form",
|
|
230
|
+
"submissions.all-forms": "All forms",
|
|
231
|
+
"submissions.export": "Export CSV",
|
|
232
|
+
"submissions.export-pick": "Pick a form to export",
|
|
233
|
+
"submissions.export-error": "Could not export the submissions.",
|
|
234
|
+
"submissions.load-error": "Could not load the submissions.",
|
|
235
|
+
"submissions.loading": "Loading…",
|
|
236
|
+
"submissions.empty": "No submission yet.",
|
|
237
|
+
"submissions.empty-form": "No submission for this form yet.",
|
|
238
|
+
"submissions.col-date": "Date",
|
|
239
|
+
"submissions.col-form": "Form",
|
|
240
|
+
"submissions.col-email": "Email",
|
|
241
|
+
"submissions.col-answers": "Answers",
|
|
242
|
+
"submissions.col-crm": "CRM",
|
|
243
|
+
"submissions.synced": "Synced",
|
|
244
|
+
"submissions.not-synced": "Not synced",
|
|
245
|
+
"submissions.count": "{total, plural, one {# submission} other {# submissions}}",
|
|
246
|
+
"submissions.prev": "Previous",
|
|
247
|
+
"submissions.next": "Next",
|
|
248
|
+
"submissions.page": "{page} / {pages}",
|
|
249
|
+
"submissions.meta-page": "Submitted from",
|
|
250
|
+
"condition.op.in": "is any of",
|
|
251
|
+
"condition.op.notIn": "is none of",
|
|
252
|
+
"condition.op.notContains": "doesn't contain",
|
|
253
|
+
"condition.op.startsWith": "starts with",
|
|
254
|
+
"condition.op.endsWith": "ends with",
|
|
255
|
+
"condition.values": "Values",
|
|
256
|
+
"condition.values-placeholder": "value1, value2…"
|
|
210
257
|
};
|
|
211
258
|
exports.default = en;
|
|
@@ -204,7 +204,54 @@ const fr = {
|
|
|
204
204
|
"panel.persist": "Mémoire de la réponse",
|
|
205
205
|
"panel.persist-session": "Cette visite seulement",
|
|
206
206
|
"panel.persist-days30": "30 jours (champs non identifiants uniquement)",
|
|
207
|
-
"panel.class": "Classes CSS"
|
|
207
|
+
"panel.class": "Classes CSS",
|
|
208
|
+
"forms.col-submissions": "Soumissions",
|
|
209
|
+
"forms.submissions": "Soumissions",
|
|
210
|
+
"forms.import-hubspot-title": "Importer depuis votre portail HubSpot",
|
|
211
|
+
"forms.import-hubspot-hint": "Traduit un formulaire construit dans HubSpot en brouillon ici, mapping CRM inclus. Ce que le builder ne sait pas exprimer est écarté et signalé. Ré-importer écrase le brouillon.",
|
|
212
|
+
"forms.import-hubspot-source": "Formulaire HubSpot à importer",
|
|
213
|
+
"forms.hubspot-list-error": "Impossible de lister les formulaires du portail — le jeton a besoin du scope de lecture `forms`.",
|
|
214
|
+
"forms.report-title": "Importé avec des manques",
|
|
215
|
+
"forms.report-dismiss": "Fermer",
|
|
216
|
+
"forms.report-open": "Ouvrir le formulaire",
|
|
217
|
+
"forms.skipped-field-type": "« {label} » écarté — type non supporté ({detail})",
|
|
218
|
+
"forms.skipped-hidden": "« {label} » écarté — les champs cachés ne sont pas encore supportés",
|
|
219
|
+
"forms.skipped-object": "« {label} » écarté — objet non mappé ({detail})",
|
|
220
|
+
"forms.skipped-duplicate": "« {label} » écarté — le nom « {detail} » est déjà utilisé",
|
|
221
|
+
"forms.skipped-condition": "Condition de « {label} » abandonnée — opérateur sans équivalent ({detail})",
|
|
222
|
+
"forms.skipped-rich-text": "Un bloc de contenu a été écarté — le builder n'a pas d'élément texte riche",
|
|
223
|
+
"forms.skipped-consent": "Le bloc de consentement RGPD a été écarté — recréez-le en champ si besoin",
|
|
224
|
+
"submissions.title": "Soumissions",
|
|
225
|
+
"submissions.subtitle": "Toutes les réponses reçues par les formulaires construits — conservées quoi qu'il arrive côté CRM.",
|
|
226
|
+
"submissions.back": "Retour aux formulaires",
|
|
227
|
+
"submissions.filter": "Filtrer par formulaire",
|
|
228
|
+
"submissions.all-forms": "Tous les formulaires",
|
|
229
|
+
"submissions.export": "Exporter en CSV",
|
|
230
|
+
"submissions.export-pick": "Choisissez un formulaire à exporter",
|
|
231
|
+
"submissions.export-error": "Impossible d'exporter les soumissions.",
|
|
232
|
+
"submissions.load-error": "Impossible de charger les soumissions.",
|
|
233
|
+
"submissions.loading": "Chargement…",
|
|
234
|
+
"submissions.empty": "Aucune soumission pour le moment.",
|
|
235
|
+
"submissions.empty-form": "Aucune soumission pour ce formulaire pour le moment.",
|
|
236
|
+
"submissions.col-date": "Date",
|
|
237
|
+
"submissions.col-form": "Formulaire",
|
|
238
|
+
"submissions.col-email": "Email",
|
|
239
|
+
"submissions.col-answers": "Réponses",
|
|
240
|
+
"submissions.col-crm": "CRM",
|
|
241
|
+
"submissions.synced": "Synchronisée",
|
|
242
|
+
"submissions.not-synced": "Non synchronisée",
|
|
243
|
+
"submissions.count": "{total, plural, one {# soumission} other {# soumissions}}",
|
|
244
|
+
"submissions.prev": "Précédent",
|
|
245
|
+
"submissions.next": "Suivant",
|
|
246
|
+
"submissions.page": "{page} / {pages}",
|
|
247
|
+
"submissions.meta-page": "Envoyée depuis",
|
|
248
|
+
"condition.op.in": "est parmi",
|
|
249
|
+
"condition.op.notIn": "n'est pas parmi",
|
|
250
|
+
"condition.op.notContains": "ne contient pas",
|
|
251
|
+
"condition.op.startsWith": "commence par",
|
|
252
|
+
"condition.op.endsWith": "finit par",
|
|
253
|
+
"condition.values": "Valeurs",
|
|
254
|
+
"condition.values-placeholder": "valeur1, valeur2…"
|
|
208
255
|
};
|
|
209
256
|
export {
|
|
210
257
|
fr as default
|
|
@@ -206,6 +206,53 @@ const fr = {
|
|
|
206
206
|
"panel.persist": "Mémoire de la réponse",
|
|
207
207
|
"panel.persist-session": "Cette visite seulement",
|
|
208
208
|
"panel.persist-days30": "30 jours (champs non identifiants uniquement)",
|
|
209
|
-
"panel.class": "Classes CSS"
|
|
209
|
+
"panel.class": "Classes CSS",
|
|
210
|
+
"forms.col-submissions": "Soumissions",
|
|
211
|
+
"forms.submissions": "Soumissions",
|
|
212
|
+
"forms.import-hubspot-title": "Importer depuis votre portail HubSpot",
|
|
213
|
+
"forms.import-hubspot-hint": "Traduit un formulaire construit dans HubSpot en brouillon ici, mapping CRM inclus. Ce que le builder ne sait pas exprimer est écarté et signalé. Ré-importer écrase le brouillon.",
|
|
214
|
+
"forms.import-hubspot-source": "Formulaire HubSpot à importer",
|
|
215
|
+
"forms.hubspot-list-error": "Impossible de lister les formulaires du portail — le jeton a besoin du scope de lecture `forms`.",
|
|
216
|
+
"forms.report-title": "Importé avec des manques",
|
|
217
|
+
"forms.report-dismiss": "Fermer",
|
|
218
|
+
"forms.report-open": "Ouvrir le formulaire",
|
|
219
|
+
"forms.skipped-field-type": "« {label} » écarté — type non supporté ({detail})",
|
|
220
|
+
"forms.skipped-hidden": "« {label} » écarté — les champs cachés ne sont pas encore supportés",
|
|
221
|
+
"forms.skipped-object": "« {label} » écarté — objet non mappé ({detail})",
|
|
222
|
+
"forms.skipped-duplicate": "« {label} » écarté — le nom « {detail} » est déjà utilisé",
|
|
223
|
+
"forms.skipped-condition": "Condition de « {label} » abandonnée — opérateur sans équivalent ({detail})",
|
|
224
|
+
"forms.skipped-rich-text": "Un bloc de contenu a été écarté — le builder n'a pas d'élément texte riche",
|
|
225
|
+
"forms.skipped-consent": "Le bloc de consentement RGPD a été écarté — recréez-le en champ si besoin",
|
|
226
|
+
"submissions.title": "Soumissions",
|
|
227
|
+
"submissions.subtitle": "Toutes les réponses reçues par les formulaires construits — conservées quoi qu'il arrive côté CRM.",
|
|
228
|
+
"submissions.back": "Retour aux formulaires",
|
|
229
|
+
"submissions.filter": "Filtrer par formulaire",
|
|
230
|
+
"submissions.all-forms": "Tous les formulaires",
|
|
231
|
+
"submissions.export": "Exporter en CSV",
|
|
232
|
+
"submissions.export-pick": "Choisissez un formulaire à exporter",
|
|
233
|
+
"submissions.export-error": "Impossible d'exporter les soumissions.",
|
|
234
|
+
"submissions.load-error": "Impossible de charger les soumissions.",
|
|
235
|
+
"submissions.loading": "Chargement…",
|
|
236
|
+
"submissions.empty": "Aucune soumission pour le moment.",
|
|
237
|
+
"submissions.empty-form": "Aucune soumission pour ce formulaire pour le moment.",
|
|
238
|
+
"submissions.col-date": "Date",
|
|
239
|
+
"submissions.col-form": "Formulaire",
|
|
240
|
+
"submissions.col-email": "Email",
|
|
241
|
+
"submissions.col-answers": "Réponses",
|
|
242
|
+
"submissions.col-crm": "CRM",
|
|
243
|
+
"submissions.synced": "Synchronisée",
|
|
244
|
+
"submissions.not-synced": "Non synchronisée",
|
|
245
|
+
"submissions.count": "{total, plural, one {# soumission} other {# soumissions}}",
|
|
246
|
+
"submissions.prev": "Précédent",
|
|
247
|
+
"submissions.next": "Suivant",
|
|
248
|
+
"submissions.page": "{page} / {pages}",
|
|
249
|
+
"submissions.meta-page": "Envoyée depuis",
|
|
250
|
+
"condition.op.in": "est parmi",
|
|
251
|
+
"condition.op.notIn": "n'est pas parmi",
|
|
252
|
+
"condition.op.notContains": "ne contient pas",
|
|
253
|
+
"condition.op.startsWith": "commence par",
|
|
254
|
+
"condition.op.endsWith": "finit par",
|
|
255
|
+
"condition.values": "Valeurs",
|
|
256
|
+
"condition.values-placeholder": "valeur1, valeur2…"
|
|
210
257
|
};
|
|
211
258
|
exports.default = fr;
|
|
@@ -25,7 +25,7 @@ const index = {
|
|
|
25
25
|
icon: PaperPlane,
|
|
26
26
|
intlLabel: { id: `${PLUGIN_ID}.menu.label`, defaultMessage: "HubSpot Forms" },
|
|
27
27
|
permissions: [{ action: `plugin::${PLUGIN_ID}.forms`, subject: null }],
|
|
28
|
-
Component: async () => (await import("./Forms-
|
|
28
|
+
Component: async () => (await import("./Forms-BGdNbq-k.mjs")).default
|
|
29
29
|
});
|
|
30
30
|
app.customFields.register({
|
|
31
31
|
name: "property",
|
|
@@ -40,7 +40,7 @@ const index = {
|
|
|
40
40
|
defaultMessage: "Picked from the portal's real properties"
|
|
41
41
|
},
|
|
42
42
|
components: {
|
|
43
|
-
Input: async () => import("./HubspotPropertyInput-
|
|
43
|
+
Input: async () => import("./HubspotPropertyInput-CiVxcnEt.mjs")
|
|
44
44
|
},
|
|
45
45
|
// Exposed in the Content-Type Builder. Without this, `objectField` could
|
|
46
46
|
// only be set by hand-editing schema.json — which is not how anyone
|
|
@@ -103,7 +103,7 @@ const index = {
|
|
|
103
103
|
defaultMessage: "Picked from the portal's configured objects"
|
|
104
104
|
},
|
|
105
105
|
components: {
|
|
106
|
-
Input: async () => import("./HubspotObjectInput-
|
|
106
|
+
Input: async () => import("./HubspotObjectInput-B_W9dpvD.mjs")
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
app.customFields.register({
|
|
@@ -119,7 +119,7 @@ const index = {
|
|
|
119
119
|
defaultMessage: "A form built in the HubSpot form builder, stored by slug"
|
|
120
120
|
},
|
|
121
121
|
components: {
|
|
122
|
-
Input: async () => import("./HubspotFormInput-
|
|
122
|
+
Input: async () => import("./HubspotFormInput-QJldybwT.mjs")
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
app.createSettingSection(
|
|
@@ -135,7 +135,7 @@ const index = {
|
|
|
135
135
|
// Mirrors the RBAC action registered server-side: a role without it
|
|
136
136
|
// doesn't see the link at all — the routes refuse it anyway.
|
|
137
137
|
permissions: [{ action: `plugin::${PLUGIN_ID}.settings`, subject: null }],
|
|
138
|
-
Component: async () => (await import("./Settings-
|
|
138
|
+
Component: async () => (await import("./Settings-B0NyQtsh.mjs")).default
|
|
139
139
|
}
|
|
140
140
|
]
|
|
141
141
|
);
|
|
@@ -145,7 +145,7 @@ const index = {
|
|
|
145
145
|
return Promise.all(
|
|
146
146
|
locales.map(async (locale) => {
|
|
147
147
|
try {
|
|
148
|
-
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-
|
|
148
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-D1sHFQdN.mjs"), "./translations/fr.json": () => import("./fr-E3zTW7pq.mjs") }), `./translations/${locale}.json`, 3);
|
|
149
149
|
return { data: prefixPluginTranslations(data), locale };
|
|
150
150
|
} catch {
|
|
151
151
|
return { data: {}, locale };
|
|
@@ -26,7 +26,7 @@ const index = {
|
|
|
26
26
|
icon: icons.PaperPlane,
|
|
27
27
|
intlLabel: { id: `${PLUGIN_ID}.menu.label`, defaultMessage: "HubSpot Forms" },
|
|
28
28
|
permissions: [{ action: `plugin::${PLUGIN_ID}.forms`, subject: null }],
|
|
29
|
-
Component: async () => (await Promise.resolve().then(() => require("./Forms-
|
|
29
|
+
Component: async () => (await Promise.resolve().then(() => require("./Forms-BVkE1C46.js"))).default
|
|
30
30
|
});
|
|
31
31
|
app.customFields.register({
|
|
32
32
|
name: "property",
|
|
@@ -41,7 +41,7 @@ const index = {
|
|
|
41
41
|
defaultMessage: "Picked from the portal's real properties"
|
|
42
42
|
},
|
|
43
43
|
components: {
|
|
44
|
-
Input: async () => Promise.resolve().then(() => require("./HubspotPropertyInput-
|
|
44
|
+
Input: async () => Promise.resolve().then(() => require("./HubspotPropertyInput-BJHUy5Zr.js"))
|
|
45
45
|
},
|
|
46
46
|
// Exposed in the Content-Type Builder. Without this, `objectField` could
|
|
47
47
|
// only be set by hand-editing schema.json — which is not how anyone
|
|
@@ -104,7 +104,7 @@ const index = {
|
|
|
104
104
|
defaultMessage: "Picked from the portal's configured objects"
|
|
105
105
|
},
|
|
106
106
|
components: {
|
|
107
|
-
Input: async () => Promise.resolve().then(() => require("./HubspotObjectInput-
|
|
107
|
+
Input: async () => Promise.resolve().then(() => require("./HubspotObjectInput-DZ4H-vju.js"))
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
app.customFields.register({
|
|
@@ -120,7 +120,7 @@ const index = {
|
|
|
120
120
|
defaultMessage: "A form built in the HubSpot form builder, stored by slug"
|
|
121
121
|
},
|
|
122
122
|
components: {
|
|
123
|
-
Input: async () => Promise.resolve().then(() => require("./HubspotFormInput-
|
|
123
|
+
Input: async () => Promise.resolve().then(() => require("./HubspotFormInput-ddrrD-GJ.js"))
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
app.createSettingSection(
|
|
@@ -136,7 +136,7 @@ const index = {
|
|
|
136
136
|
// Mirrors the RBAC action registered server-side: a role without it
|
|
137
137
|
// doesn't see the link at all — the routes refuse it anyway.
|
|
138
138
|
permissions: [{ action: `plugin::${PLUGIN_ID}.settings`, subject: null }],
|
|
139
|
-
Component: async () => (await Promise.resolve().then(() => require("./Settings-
|
|
139
|
+
Component: async () => (await Promise.resolve().then(() => require("./Settings-DaFRUzjG.js"))).default
|
|
140
140
|
}
|
|
141
141
|
]
|
|
142
142
|
);
|
|
@@ -146,7 +146,7 @@ const index = {
|
|
|
146
146
|
return Promise.all(
|
|
147
147
|
locales.map(async (locale) => {
|
|
148
148
|
try {
|
|
149
|
-
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
|
149
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-zJv-SuNb.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-fh0uH6Rp.js")) }), `./translations/${locale}.json`, 3);
|
|
150
150
|
return { data: prefixPluginTranslations(data), locale };
|
|
151
151
|
} catch {
|
|
152
152
|
return { data: {}, locale };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const React = require("react");
|
|
3
3
|
const admin = require("@strapi/strapi/admin");
|
|
4
|
-
const index = require("./index-
|
|
4
|
+
const index = require("./index-rgjWxSn4.js");
|
|
5
5
|
function _interopNamespace(e) {
|
|
6
6
|
if (e && e.__esModule) return e;
|
|
7
7
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useFetchClient } from "@strapi/strapi/admin";
|
|
3
|
-
import { P as PLUGIN_ID } from "./index-
|
|
3
|
+
import { P as PLUGIN_ID } from "./index-BpapRdHX.mjs";
|
|
4
4
|
let cached = null;
|
|
5
5
|
let inFlight = null;
|
|
6
6
|
const listeners = /* @__PURE__ */ new Set();
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/** Client-side mirror of the server's definition types (server/src/conditions.ts). */
|
|
2
|
-
export type Operator = "eq" | "neq" | "contains" | "empty" | "notEmpty" | "gt" | "lt";
|
|
2
|
+
export type Operator = "eq" | "neq" | "contains" | "notContains" | "startsWith" | "endsWith" | "empty" | "notEmpty" | "gt" | "lt" | "in" | "notIn";
|
|
3
3
|
export interface Rule {
|
|
4
4
|
field: string;
|
|
5
5
|
operator: Operator;
|
|
6
6
|
value?: string;
|
|
7
|
+
/** For `in` / `notIn`: the values any one of which satisfies the rule. */
|
|
8
|
+
values?: string[];
|
|
7
9
|
}
|
|
8
10
|
export interface Condition {
|
|
9
11
|
logic: "and" | "or";
|
|
@@ -68,6 +70,31 @@ export interface FormListRow {
|
|
|
68
70
|
published: boolean;
|
|
69
71
|
steps: number;
|
|
70
72
|
fields: number;
|
|
73
|
+
submissions: number;
|
|
74
|
+
}
|
|
75
|
+
/** One form of the connected portal, offered for import. */
|
|
76
|
+
export interface HubspotSource {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
updatedAt?: string;
|
|
80
|
+
}
|
|
81
|
+
/** What a HubSpot import couldn't carry over (mirrors server SkippedItem). */
|
|
82
|
+
export interface SkippedItem {
|
|
83
|
+
code: "field-type" | "hidden-field" | "object" | "duplicate" | "condition" | "rich-text" | "legal-consent";
|
|
84
|
+
label?: string;
|
|
85
|
+
detail?: string;
|
|
86
|
+
}
|
|
87
|
+
/** One stored submission, as the admin list serves it. */
|
|
88
|
+
export interface SubmissionRowDto {
|
|
89
|
+
documentId: string;
|
|
90
|
+
form: string;
|
|
91
|
+
formTitle?: string | null;
|
|
92
|
+
email?: string | null;
|
|
93
|
+
values: Record<string, string | number | boolean>;
|
|
94
|
+
meta?: Record<string, string> | null;
|
|
95
|
+
locale?: string | null;
|
|
96
|
+
hubspotSynced?: boolean;
|
|
97
|
+
createdAt?: string;
|
|
71
98
|
}
|
|
72
99
|
export interface DefinitionError {
|
|
73
100
|
code: "duplicate-name" | "missing-name" | "unknown-field" | "forward-reference" | "missing-value";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The Forms menu entry: the list at the root, the submissions browser at
|
|
4
|
+
* /submissions (static, so it wins over the param route), the builder at
|
|
5
|
+
* /:documentId.
|
|
6
|
+
*/
|
|
3
7
|
declare const Forms: () => import("react").JSX.Element;
|
|
4
8
|
export default Forms;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The submissions browser: every stored answer, filterable by form, with a
|
|
4
|
+
* per-form CSV export. Reading happens here; deleting stays in the Content
|
|
5
|
+
* Manager, where the type is visible on purpose.
|
|
6
|
+
*/
|
|
7
|
+
declare const Submissions: () => React.JSX.Element;
|
|
8
|
+
export default Submissions;
|