strapi-plugin-hubspot 0.4.0 → 0.4.1

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.
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { u as useIntl, o as objectLabel } from "./objectLabels-CJTKZ4vT.mjs";
3
+ import { u as useIntl, o as objectLabel } from "./objectLabels-DKr0yCaU.mjs";
4
4
  import { Field, Flex, Loader, SingleSelect, SingleSelectOption } from "@strapi/design-system";
5
5
  import { useFetchClient } from "@strapi/strapi/admin";
6
- import { P as PLUGIN_ID, g as getTranslation } from "./index-BudHTwSw.mjs";
6
+ import { P as PLUGIN_ID, g as getTranslation } from "./index-ymm9UsG8.mjs";
7
7
  const HubspotObjectInput = React.forwardRef(
8
8
  ({ name, value, onChange, disabled, error, required, label, hint, labelAction }, ref) => {
9
9
  const intl = useIntl();
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const objectLabels = require("./objectLabels-GRmYGCIn.js");
5
+ const objectLabels = require("./objectLabels-CORLL0o7.js");
6
6
  const designSystem = require("@strapi/design-system");
7
7
  const admin = require("@strapi/strapi/admin");
8
- const index = require("./index-Tlw1p93d.js");
8
+ const index = require("./index-CDpmcrIu.js");
9
9
  function _interopNamespace(e) {
10
10
  if (e && e.__esModule) return e;
11
11
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -1,9 +1,15 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { u as useIntl, o as objectLabel } from "./objectLabels-CJTKZ4vT.mjs";
3
+ import { u as useIntl, o as objectLabel } from "./objectLabels-DKr0yCaU.mjs";
4
4
  import { Field, Flex, Loader, Combobox, ComboboxOption, Button, Typography, Link } from "@strapi/design-system";
5
5
  import { useFetchClient, useField } from "@strapi/strapi/admin";
6
- import { P as PLUGIN_ID, g as getTranslation } from "./index-BudHTwSw.mjs";
6
+ import { P as PLUGIN_ID, g as getTranslation } from "./index-ymm9UsG8.mjs";
7
+ const oneLine = {
8
+ display: "block",
9
+ whiteSpace: "nowrap",
10
+ overflow: "hidden",
11
+ textOverflow: "ellipsis"
12
+ };
7
13
  const HubspotPropertyInput = React.forwardRef(
8
14
  ({ name, value, onChange, attribute, disabled, error, required, label, hint, labelAction }, ref) => {
9
15
  const intl = useIntl();
@@ -125,7 +131,7 @@ const HubspotPropertyInput = React.forwardRef(
125
131
  }),
126
132
  creatable: true,
127
133
  onCreateOption: emit,
128
- children: options.map((o) => /* @__PURE__ */ jsx(ComboboxOption, { value: o.value, children: o.label }, o.value))
134
+ children: options.map((o) => /* @__PURE__ */ jsx(ComboboxOption, { value: o.value, textValue: o.label, children: /* @__PURE__ */ jsx("span", { title: o.label, style: oneLine, children: o.label }) }, o.value))
129
135
  }
130
136
  ) : /* @__PURE__ */ jsx(
131
137
  Field.Input,
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const objectLabels = require("./objectLabels-GRmYGCIn.js");
5
+ const objectLabels = require("./objectLabels-CORLL0o7.js");
6
6
  const designSystem = require("@strapi/design-system");
7
7
  const admin = require("@strapi/strapi/admin");
8
- const index = require("./index-Tlw1p93d.js");
8
+ const index = require("./index-CDpmcrIu.js");
9
9
  function _interopNamespace(e) {
10
10
  if (e && e.__esModule) return e;
11
11
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -24,6 +24,12 @@ function _interopNamespace(e) {
24
24
  return Object.freeze(n);
25
25
  }
26
26
  const React__namespace = /* @__PURE__ */ _interopNamespace(React);
27
+ const oneLine = {
28
+ display: "block",
29
+ whiteSpace: "nowrap",
30
+ overflow: "hidden",
31
+ textOverflow: "ellipsis"
32
+ };
27
33
  const HubspotPropertyInput = React__namespace.forwardRef(
28
34
  ({ name, value, onChange, attribute, disabled, error, required, label, hint, labelAction }, ref) => {
29
35
  const intl = objectLabels.useIntl();
@@ -145,7 +151,7 @@ const HubspotPropertyInput = React__namespace.forwardRef(
145
151
  }),
146
152
  creatable: true,
147
153
  onCreateOption: emit,
148
- children: options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.ComboboxOption, { value: o.value, children: o.label }, o.value))
154
+ children: options.map((o) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.ComboboxOption, { value: o.value, textValue: o.label, children: /* @__PURE__ */ jsxRuntime.jsx("span", { title: o.label, style: oneLine, children: o.label }) }, o.value))
149
155
  }
150
156
  ) : /* @__PURE__ */ jsxRuntime.jsx(
151
157
  designSystem.Field.Input,
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { u as useIntl, o as objectLabel } from "./objectLabels-CJTKZ4vT.mjs";
3
+ import { u as useIntl, o as objectLabel } from "./objectLabels-DKr0yCaU.mjs";
4
4
  import { Flex, Divider, Typography, Button, Box, Link as Link$1, Badge, Loader, Field } from "@strapi/design-system";
5
5
  import { useFetchClient } from "@strapi/strapi/admin";
6
- import { g as getTranslation, P as PLUGIN_ID } from "./index-BudHTwSw.mjs";
6
+ import { g as getTranslation, P as PLUGIN_ID } from "./index-ymm9UsG8.mjs";
7
7
  import "react-dom";
8
8
  /**
9
9
  * @remix-run/router v1.23.3
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const objectLabels = require("./objectLabels-GRmYGCIn.js");
5
+ const objectLabels = require("./objectLabels-CORLL0o7.js");
6
6
  const designSystem = require("@strapi/design-system");
7
7
  const admin = require("@strapi/strapi/admin");
8
- const index = require("./index-Tlw1p93d.js");
8
+ const index = require("./index-CDpmcrIu.js");
9
9
  require("react-dom");
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -33,7 +33,7 @@ const index = {
33
33
  defaultMessage: "Picked from the portal's real properties"
34
34
  },
35
35
  components: {
36
- Input: async () => Promise.resolve().then(() => require("./HubspotPropertyInput-B-Jg0x68.js"))
36
+ Input: async () => Promise.resolve().then(() => require("./HubspotPropertyInput-YKXA_-Sk.js"))
37
37
  },
38
38
  // Exposed in the Content-Type Builder. Without this, `objectField` could
39
39
  // only be set by hand-editing schema.json — which is not how anyone
@@ -96,7 +96,7 @@ const index = {
96
96
  defaultMessage: "Picked from the portal's configured objects"
97
97
  },
98
98
  components: {
99
- Input: async () => Promise.resolve().then(() => require("./HubspotObjectInput-DAq_W1rA.js"))
99
+ Input: async () => Promise.resolve().then(() => require("./HubspotObjectInput-Dqgz6Epv.js"))
100
100
  }
101
101
  });
102
102
  app.createSettingSection(
@@ -112,7 +112,7 @@ const index = {
112
112
  // Mirrors the RBAC action registered server-side: a role without it
113
113
  // doesn't see the link at all — the routes refuse it anyway.
114
114
  permissions: [{ action: `plugin::${PLUGIN_ID}.settings`, subject: null }],
115
- Component: async () => (await Promise.resolve().then(() => require("./Settings-CryiUgSe.js"))).default
115
+ Component: async () => (await Promise.resolve().then(() => require("./Settings-D34hp54b.js"))).default
116
116
  }
117
117
  ]
118
118
  );
@@ -32,7 +32,7 @@ const index = {
32
32
  defaultMessage: "Picked from the portal's real properties"
33
33
  },
34
34
  components: {
35
- Input: async () => import("./HubspotPropertyInput-Cv77QiS6.mjs")
35
+ Input: async () => import("./HubspotPropertyInput-BUbQk1CX.mjs")
36
36
  },
37
37
  // Exposed in the Content-Type Builder. Without this, `objectField` could
38
38
  // only be set by hand-editing schema.json — which is not how anyone
@@ -95,7 +95,7 @@ const index = {
95
95
  defaultMessage: "Picked from the portal's configured objects"
96
96
  },
97
97
  components: {
98
- Input: async () => import("./HubspotObjectInput-G-A_pL2j.mjs")
98
+ Input: async () => import("./HubspotObjectInput-DiYaEyE7.mjs")
99
99
  }
100
100
  });
101
101
  app.createSettingSection(
@@ -111,7 +111,7 @@ const index = {
111
111
  // Mirrors the RBAC action registered server-side: a role without it
112
112
  // doesn't see the link at all — the routes refuse it anyway.
113
113
  permissions: [{ action: `plugin::${PLUGIN_ID}.settings`, subject: null }],
114
- Component: async () => (await import("./Settings-58edRL5D.mjs")).default
114
+ Component: async () => (await import("./Settings-B_lg_AaC.mjs")).default
115
115
  }
116
116
  ]
117
117
  );
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const React = require("react");
3
- const index = require("./index-Tlw1p93d.js");
3
+ const index = require("./index-CDpmcrIu.js");
4
4
  function _interopNamespace(e) {
5
5
  if (e && e.__esModule) return e;
6
6
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { g as getTranslation } from "./index-BudHTwSw.mjs";
2
+ import { g as getTranslation } from "./index-ymm9UsG8.mjs";
3
3
  var __assign = function() {
4
4
  __assign = Object.assign || function __assign2(t) {
5
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-Tlw1p93d.js");
2
+ const index = require("../_chunks/index-CDpmcrIu.js");
3
3
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "../_chunks/index-BudHTwSw.mjs";
1
+ import { i } from "../_chunks/index-ymm9UsG8.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-hubspot",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "HubSpot integration for Strapi — pick CRM properties from a searchable list filtered by object, and catch bad mappings before they reach the API.",
5
5
  "keywords": [
6
6
  "strapi",