@tunghtml/strapi-plugin-multiselect-checkbox 1.0.2 → 1.0.3

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.
@@ -47,7 +47,7 @@ const index = {
47
47
  app.customFields.register({
48
48
  name: "multiselect-checkbox",
49
49
  pluginId: `${PLUGIN_ID}`,
50
- type: "json",
50
+ type: "text",
51
51
  icon: PluginIcon,
52
52
  intlLabel: {
53
53
  id: `${PLUGIN_ID}.label`,
@@ -44,7 +44,7 @@ const index = {
44
44
  app.customFields.register({
45
45
  name: "multiselect-checkbox",
46
46
  pluginId: `${PLUGIN_ID}`,
47
- type: "json",
47
+ type: "text",
48
48
  icon: PluginIcon,
49
49
  intlLabel: {
50
50
  id: `${PLUGIN_ID}.label`,
@@ -19,12 +19,8 @@ const register = ({ strapi }) => {
19
19
  strapi.customFields.register({
20
20
  name: "multiselect-checkbox",
21
21
  plugin: "multiselect-checkbox",
22
- // The data type stored in the database - JSON array
23
- type: "json",
24
- inputSize: {
25
- default: 12,
26
- isResizable: true
27
- }
22
+ // The data type stored in the database - text (serialized JSON)
23
+ type: "text"
28
24
  });
29
25
  };
30
26
  const contentAPIRoutes = [];
@@ -18,12 +18,8 @@ const register = ({ strapi }) => {
18
18
  strapi.customFields.register({
19
19
  name: "multiselect-checkbox",
20
20
  plugin: "multiselect-checkbox",
21
- // The data type stored in the database - JSON array
22
- type: "json",
23
- inputSize: {
24
- default: 12,
25
- isResizable: true
26
- }
21
+ // The data type stored in the database - text (serialized JSON)
22
+ type: "text"
27
23
  });
28
24
  };
29
25
  const contentAPIRoutes = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tunghtml/strapi-plugin-multiselect-checkbox",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A Strapi v5 custom field plugin with checkbox UI that stores selected values as an array of strings (JSON type) instead of comma-separated strings.",
5
5
  "keywords": [
6
6
  "strapi",