strapi-plugin-hubspot 0.16.0 → 0.16.2
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 +15 -0
- package/README.md +4 -4
- package/dist/_chunks/{Forms-6EoEYzAc.mjs → Forms-BOQWely0.mjs} +240 -114
- package/dist/_chunks/{Forms-BW_zGc1P.js → Forms-mMNP7hc9.js} +238 -112
- package/dist/_chunks/{HubspotFormInput-V5w4y1fb.mjs → HubspotFormInput-DCkoavrN.mjs} +1 -1
- package/dist/_chunks/{HubspotFormInput-oMhm1UJm.js → HubspotFormInput-DI35Aqiu.js} +1 -1
- package/dist/_chunks/{HubspotObjectInput-DhsnSguG.mjs → HubspotObjectInput-BbnvhdbD.mjs} +3 -3
- package/dist/_chunks/{HubspotObjectInput-Bmo6YQgs.js → HubspotObjectInput-Cq1TuL_l.js} +3 -3
- package/dist/_chunks/{HubspotPropertyInput-CrYP4pc0.mjs → HubspotPropertyInput-BHfpBD36.mjs} +3 -3
- package/dist/_chunks/{HubspotPropertyInput-luFfnxqy.js → HubspotPropertyInput-BLZzsW08.js} +3 -3
- package/dist/_chunks/{Settings-B3A22i7Z.js → Settings-BAsx0LGv.js} +2 -2
- package/dist/_chunks/{Settings-CjcWj9I6.mjs → Settings-DqRpHtnT.mjs} +2 -2
- package/dist/_chunks/{en-D6GHgMOt.mjs → en-Djd3TID0.mjs} +7 -3
- package/dist/_chunks/{en-C7ls2EUl.js → en-sfzopB5K.js} +7 -3
- package/dist/_chunks/{fr-CfohMY8n.mjs → fr-C7t1elmR.mjs} +7 -3
- package/dist/_chunks/{fr-pOP8ZXqM.js → fr-sF5Josfh.js} +7 -3
- package/dist/_chunks/{index-7cL9PRh1.mjs → index-CLAy5dVN.mjs} +6 -6
- package/dist/_chunks/{index-CodpLKZx.js → index-R3ReZXF1.js} +6 -6
- package/dist/_chunks/{objectLabels-Dnj14fsp.mjs → objectLabels--zOmqsfm.mjs} +1 -1
- package/dist/_chunks/{objectLabels-CSWGIgNb.js → objectLabels-CW2iBOkD.js} +1 -1
- package/dist/_chunks/{useHubspotSchema-DiRN3HrN.js → useHubspotSchema-BRzzvs9t.js} +1 -1
- package/dist/_chunks/{useHubspotSchema-BsmQgJgx.mjs → useHubspotSchema-Bz2o1BU-.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/builder/Sortable.d.ts +25 -12
- package/dist/admin/src/builder/__tests__/relocateField.test.d.ts +1 -0
- package/dist/admin/src/builder/relocateField.d.ts +14 -0
- package/dist/server/index.js +129 -12
- package/dist/server/index.mjs +129 -12
- package/dist/server/src/formsAdmin.d.ts +8 -3
- package/dist/server/src/importHubspot.d.ts +12 -0
- package/dist/server/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -50,11 +50,16 @@ export declare function createFormsAdminController(strapi: Core.Strapi): {
|
|
|
50
50
|
listHubspotSources(ctx: Ctx): Promise<void>;
|
|
51
51
|
/**
|
|
52
52
|
* Converts one portal form into a plugin form draft, in the current
|
|
53
|
-
* locale.
|
|
54
|
-
*
|
|
55
|
-
*
|
|
53
|
+
* locale. Matching prefers the linked HubSpot GUID, then the slug.
|
|
54
|
+
* Re-importing merges: mapped fields update in place, new ones append,
|
|
55
|
+
* Strapi steps stay. Never the published version, never the portal.
|
|
56
56
|
*/
|
|
57
57
|
runHubspotImport(ctx: Ctx): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Pull the linked HubSpot marketing form back into this draft: mapped
|
|
60
|
+
* fields update in place, new ones append, Strapi steps and extras stay.
|
|
61
|
+
*/
|
|
62
|
+
resync(ctx: Ctx): Promise<void>;
|
|
58
63
|
/**
|
|
59
64
|
* Copies a form (every locale of its draft) into a new draft document —
|
|
60
65
|
* the quickest way to A/B a variant or to start from an existing form.
|
|
@@ -79,6 +79,18 @@ export interface RawHubspotForm {
|
|
|
79
79
|
} | null;
|
|
80
80
|
}
|
|
81
81
|
export declare function convertHubspotForm(raw: RawHubspotForm): ConvertedHubspotForm;
|
|
82
|
+
export interface HubspotMergeResult {
|
|
83
|
+
definition: FormDefinition;
|
|
84
|
+
added: string[];
|
|
85
|
+
updated: string[];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Fold a freshly converted HubSpot form into an existing builder definition.
|
|
89
|
+
* Mapped fields are updated in place (label, type, required, options…) so
|
|
90
|
+
* Strapi steps, ids, conditions and extra fields survive. New HubSpot fields
|
|
91
|
+
* are appended to the last step. Nothing is deleted.
|
|
92
|
+
*/
|
|
93
|
+
export declare function mergeHubspotImport(current: FormDefinition, incoming: FormDefinition): HubspotMergeResult;
|
|
82
94
|
/** Every regular form of the portal, name-sorted. Needs the `forms` scope. */
|
|
83
95
|
export declare function listHubspotForms(apiKey: string): Promise<HubspotFormSummary[]>;
|
|
84
96
|
/** One form, full definition. */
|
|
@@ -280,6 +280,7 @@ declare const _default: {
|
|
|
280
280
|
runImport(ctx: import("./formsAdmin").Ctx): Promise<void>;
|
|
281
281
|
listHubspotSources(ctx: import("./formsAdmin").Ctx): Promise<void>;
|
|
282
282
|
runHubspotImport(ctx: import("./formsAdmin").Ctx): Promise<void>;
|
|
283
|
+
resync(ctx: import("./formsAdmin").Ctx): Promise<void>;
|
|
283
284
|
duplicate(ctx: import("./formsAdmin").Ctx): Promise<void>;
|
|
284
285
|
remove(ctx: import("./formsAdmin").Ctx): Promise<void>;
|
|
285
286
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strapi-plugin-hubspot",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "The form builder for HubSpot in Strapi — multi-step forms with conditional fields mapped to real CRM properties, a public submit pipeline with retries, and save-time mapping validation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|