@littlebox/strapi-suite 1.0.54 → 1.0.55

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/README.md CHANGED
@@ -4,32 +4,3 @@ The Littlebox Strapi Suite is a plugin designed to enhance Strapi for building a
4
4
 
5
5
  For installation instructions and detailed documentation, please refer to:
6
6
  [Before Starting - Littlebox Strapi Suite Documentation](https://strapi-suite.littlebox.pt/before-starting)
7
-
8
- ## Content type tabs
9
-
10
- Organize the fields of a collection type or single type in tabs.
11
-
12
- 1. In the Content-Type Builder, open the content type settings and, under **Advanced settings → Tabs**, add, rename and reorder the tabs.
13
- 2. In the advanced settings of each field, pick the **Tab** where it is shown. Fields without a tab stay visible above the tabs.
14
-
15
- The Content Manager edit view shows one tab at a time. Switching tabs keeps unsaved changes, and the active tab is kept in the URL hash (`#ltbTab=<key>`).
16
-
17
- REST read requests (`find` and `findOne`) and the slugs module routes (`/api/littlebox-strapi-suite/modules/pages/home` and `/api/littlebox-strapi-suite/modules/pages?slug=...`) return the fields of each tab inside a property named after the tab. The name is converted to lowercase, accents are removed, spaces become `_` and other special characters are dropped (`"Loja - Vitrine"` → `loja_vitrine`):
18
-
19
- ```json
20
- {
21
- "data": {
22
- "id": 1,
23
- "documentId": "abc",
24
- "title": "Home",
25
- "loja_vitrine": { "banner": {}, "produtos_destaque": [] }
26
- }
27
- }
28
- ```
29
-
30
- Notes:
31
-
32
- - Only the root level of the response is grouped. `filters`, `sort`, `fields` and `populate` keep using the original field names.
33
- - Renaming a tab changes its key in the API.
34
- - A tab whose key is empty or conflicts with a root field is not grouped, and a warning is logged.
35
- - Writes through the REST API and GraphQL are not affected.
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useNavigate, useParams, Routes, Route } from "react-router-dom";
3
3
  import React__default, { useState, useEffect, createContext, useContext, Fragment as Fragment$1, useRef } from "react";
4
4
  import { Box, Loader, Main, Typography, Button, Flex, Breadcrumbs, Crumb, CrumbLink, CardBody, CardContent, CardTitle, CardBadge, CardSubtitle, Card as Card$1, Dialog, IconButton, Toggle, SingleSelect, SingleSelectOption, SearchForm, Searchbar, Table, Thead, Tr, Th, Checkbox, VisuallyHidden, Tbody, Td, EmptyStateLayout, TextInput, Field, Tooltip } from "@strapi/design-system";
5
- import { R as Registry, F as FetchSettings, g as getTranslation, c as config, S as SLUG_LANGUAGE_STRATEGY, a as SLUG_CONTENT_STRATEGY, b as FetchSlugs, d as FetchLocales, e as convertToSlug, A as AI_TRANSLATION_DEFAULT_MODEL, f as fetchTemplates } from "./index-97f0S4q6.mjs";
5
+ import { R as Registry, F as FetchSettings, g as getTranslation, c as config, S as SLUG_LANGUAGE_STRATEGY, a as SLUG_CONTENT_STRATEGY, b as FetchSlugs, d as FetchLocales, e as convertToSlug, A as AI_TRANSLATION_DEFAULT_MODEL, f as fetchTemplates } from "./index-Do7CxfkQ.mjs";
6
6
  import { ArrowLeft, ExternalLink, WarningCircle, Cross, BulletList, Pencil, Trash, Plus, Duplicate, Drag, Check, Sparkle } from "@strapi/icons";
7
7
  import { useIntl } from "react-intl";
8
8
  import styled, { useTheme } from "styled-components";
@@ -717,7 +717,7 @@ const HomePage = () => {
717
717
  style: { marginRight: "10px" },
718
718
  endIcon: /* @__PURE__ */ jsx(ExternalLink, {}),
719
719
  onClick: () => window.open("https://www.npmjs.com/package/@littlebox/strapi-suite", "_blank"),
720
- children: "v1.0.54"
720
+ children: "v1.0.55"
721
721
  }
722
722
  ),
723
723
  /* @__PURE__ */ jsx(
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const reactRouterDom = require("react-router-dom");
5
5
  const React = require("react");
6
6
  const designSystem = require("@strapi/design-system");
7
- const index = require("./index-DnXsi_Ar.js");
7
+ const index = require("./index-Ml4j6jxD.js");
8
8
  const icons = require("@strapi/icons");
9
9
  const reactIntl = require("react-intl");
10
10
  const styled = require("styled-components");
@@ -722,7 +722,7 @@ const HomePage = () => {
722
722
  style: { marginRight: "10px" },
723
723
  endIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.ExternalLink, {}),
724
724
  onClick: () => window.open("https://www.npmjs.com/package/@littlebox/strapi-suite", "_blank"),
725
- children: "v1.0.54"
725
+ children: "v1.0.55"
726
726
  }
727
727
  ),
728
728
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -8,7 +8,7 @@ const designSystem = require("@strapi/design-system");
8
8
  const icons = require("@strapi/icons");
9
9
  const admin = require("@strapi/strapi/admin");
10
10
  const styled = require("styled-components");
11
- const index = require("./index-DnXsi_Ar.js");
11
+ const index = require("./index-Ml4j6jxD.js");
12
12
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
13
13
  function _interopNamespace(e) {
14
14
  if (e && e.__esModule) return e;
@@ -6,7 +6,7 @@ import { useComposedRefs, Field, Box, Typography, TextInput, IconButton, Button
6
6
  import { Pin, Cross } from "@strapi/icons";
7
7
  import { useFocusInputField, unstable_useContentManagerContext } from "@strapi/strapi/admin";
8
8
  import styled from "styled-components";
9
- import { R as Registry, P as PageAttributeUpdated, D as DocumentCustomFieldStarted, h as PluginIcon, g as getTranslation, c as config, e as convertToSlug, d as FetchLocales, i as FetchModuleSettings } from "./index-97f0S4q6.mjs";
9
+ import { R as Registry, P as PageAttributeUpdated, D as DocumentCustomFieldStarted, h as PluginIcon, g as getTranslation, c as config, e as convertToSlug, d as FetchLocales, i as FetchModuleSettings } from "./index-Do7CxfkQ.mjs";
10
10
  const BoxInput = styled(Box)`
11
11
  & > div {
12
12
  width: 100%;
@@ -5482,7 +5482,7 @@ const index = {
5482
5482
  defaultMessage: config.pluginId
5483
5483
  },
5484
5484
  position: 999,
5485
- Component: () => import("./App-BfGB2pF_.mjs")
5485
+ Component: () => import("./App-CwdSC1Y7.mjs")
5486
5486
  });
5487
5487
  app.customFields.register({
5488
5488
  name: "ltbslug",
@@ -5500,7 +5500,7 @@ const index = {
5500
5500
  components: {
5501
5501
  Input: async () => import(
5502
5502
  /* webpackChunkName: "input-slug-component" */
5503
- "./SlugInput-CvgVtZza.mjs"
5503
+ "./SlugInput-xtNYx9gU.mjs"
5504
5504
  )
5505
5505
  },
5506
5506
  options: {
@@ -5502,7 +5502,7 @@ const index = {
5502
5502
  defaultMessage: config.pluginId
5503
5503
  },
5504
5504
  position: 999,
5505
- Component: () => Promise.resolve().then(() => require("./App-B7_8BaVG.js"))
5505
+ Component: () => Promise.resolve().then(() => require("./App-v4u-QmyQ.js"))
5506
5506
  });
5507
5507
  app.customFields.register({
5508
5508
  name: "ltbslug",
@@ -5520,7 +5520,7 @@ const index = {
5520
5520
  components: {
5521
5521
  Input: async () => Promise.resolve().then(() => require(
5522
5522
  /* webpackChunkName: "input-slug-component" */
5523
- "./SlugInput-eCwgqJtH.js"
5523
+ "./SlugInput-B5yuoNLc.js"
5524
5524
  ))
5525
5525
  },
5526
5526
  options: {
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-DnXsi_Ar.js");
2
+ const index = require("../_chunks/index-Ml4j6jxD.js");
3
3
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { j } from "../_chunks/index-97f0S4q6.mjs";
1
+ import { j } from "../_chunks/index-Do7CxfkQ.mjs";
2
2
  export {
3
3
  j as default
4
4
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.54",
2
+ "version": "1.0.55",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "strapi plugin",