@strapi/admin 5.16.0 → 5.16.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.
Files changed (41) hide show
  1. package/dist/admin/admin/src/components/MainNav/NavUser.js +4 -15
  2. package/dist/admin/admin/src/components/MainNav/NavUser.js.map +1 -1
  3. package/dist/admin/admin/src/components/MainNav/NavUser.mjs +4 -15
  4. package/dist/admin/admin/src/components/MainNav/NavUser.mjs.map +1 -1
  5. package/dist/admin/admin/src/components/Providers.js +10 -5
  6. package/dist/admin/admin/src/components/Providers.js.map +1 -1
  7. package/dist/admin/admin/src/components/Providers.mjs +10 -5
  8. package/dist/admin/admin/src/components/Providers.mjs.map +1 -1
  9. package/dist/admin/admin/src/components/SearchInput.js +5 -0
  10. package/dist/admin/admin/src/components/SearchInput.js.map +1 -1
  11. package/dist/admin/admin/src/components/SearchInput.mjs +5 -0
  12. package/dist/admin/admin/src/components/SearchInput.mjs.map +1 -1
  13. package/dist/admin/admin/src/components/UnstableGuidedTour/Context.js +66 -0
  14. package/dist/admin/admin/src/components/UnstableGuidedTour/Context.js.map +1 -0
  15. package/dist/admin/admin/src/components/UnstableGuidedTour/Context.mjs +43 -0
  16. package/dist/admin/admin/src/components/UnstableGuidedTour/Context.mjs.map +1 -0
  17. package/dist/admin/admin/src/components/UnstableGuidedTour/Step.js +137 -0
  18. package/dist/admin/admin/src/components/UnstableGuidedTour/Step.js.map +1 -0
  19. package/dist/admin/admin/src/components/UnstableGuidedTour/Step.mjs +116 -0
  20. package/dist/admin/admin/src/components/UnstableGuidedTour/Step.mjs.map +1 -0
  21. package/dist/admin/admin/src/components/UnstableGuidedTour/Tours.js +116 -0
  22. package/dist/admin/admin/src/components/UnstableGuidedTour/Tours.js.map +1 -0
  23. package/dist/admin/admin/src/components/UnstableGuidedTour/Tours.mjs +94 -0
  24. package/dist/admin/admin/src/components/UnstableGuidedTour/Tours.mjs.map +1 -0
  25. package/dist/admin/admin/src/translations/en.json.js +9 -1
  26. package/dist/admin/admin/src/translations/en.json.js.map +1 -1
  27. package/dist/admin/admin/src/translations/en.json.mjs +9 -1
  28. package/dist/admin/admin/src/translations/en.json.mjs.map +1 -1
  29. package/dist/admin/admin/src/translations/fr.json.js +3 -0
  30. package/dist/admin/admin/src/translations/fr.json.js.map +1 -1
  31. package/dist/admin/admin/src/translations/fr.json.mjs +3 -0
  32. package/dist/admin/admin/src/translations/fr.json.mjs.map +1 -1
  33. package/dist/admin/index.js +2 -0
  34. package/dist/admin/index.js.map +1 -1
  35. package/dist/admin/index.mjs +1 -0
  36. package/dist/admin/index.mjs.map +1 -1
  37. package/dist/admin/src/components/UnstableGuidedTour/Context.d.ts +28 -0
  38. package/dist/admin/src/components/UnstableGuidedTour/Step.d.ts +35 -0
  39. package/dist/admin/src/components/UnstableGuidedTour/Tours.d.ts +24 -0
  40. package/dist/admin/src/index.d.ts +1 -0
  41. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"fr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"fr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -17,6 +17,7 @@ var ContentBox = require('./admin/src/components/ContentBox.js');
17
17
  var SubNav = require('./admin/src/components/SubNav.js');
18
18
  var GradientBadge = require('./admin/src/components/GradientBadge.js');
19
19
  var Provider = require('./admin/src/components/GuidedTour/Provider.js');
20
+ var Tours = require('./admin/src/components/UnstableGuidedTour/Tours.js');
20
21
  var Tracking = require('./admin/src/features/Tracking.js');
21
22
  var StrapiApp = require('./admin/src/features/StrapiApp.js');
22
23
  var Notifications = require('./admin/src/features/Notifications.js');
@@ -62,6 +63,7 @@ exports.ContentBox = ContentBox.ContentBox;
62
63
  exports.SubNav = SubNav.SubNav;
63
64
  exports.GradientBadge = GradientBadge.GradientBadge;
64
65
  exports.useGuidedTour = Provider.useGuidedTour;
66
+ exports.unstable_tours = Tours.tours;
65
67
  exports.useTracking = Tracking.useTracking;
66
68
  exports.useStrapiApp = StrapiApp.useStrapiApp;
67
69
  exports.NotificationsProvider = Notifications.NotificationsProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -15,6 +15,7 @@ export { ContentBox } from './admin/src/components/ContentBox.mjs';
15
15
  export { SubNav } from './admin/src/components/SubNav.mjs';
16
16
  export { GradientBadge } from './admin/src/components/GradientBadge.mjs';
17
17
  export { useGuidedTour } from './admin/src/components/GuidedTour/Provider.mjs';
18
+ export { tours as unstable_tours } from './admin/src/components/UnstableGuidedTour/Tours.mjs';
18
19
  export { useTracking } from './admin/src/features/Tracking.mjs';
19
20
  export { useStrapiApp } from './admin/src/features/StrapiApp.mjs';
20
21
  export { NotificationsProvider, useNotification } from './admin/src/features/Notifications.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import type { Tours } from './Tours';
3
+ type ValidTourName = keyof Tours;
4
+ type Action = {
5
+ type: 'next_step';
6
+ payload: ValidTourName;
7
+ } | {
8
+ type: 'skip_tour';
9
+ payload: ValidTourName;
10
+ };
11
+ type State = {
12
+ tours: Record<ValidTourName, {
13
+ currentStep: number;
14
+ length: number;
15
+ isCompleted: boolean;
16
+ }>;
17
+ };
18
+ declare const unstableUseGuidedTour: <Selected, ShouldThrow extends boolean = true>(consumerName: string, selector: (value: {
19
+ state: State;
20
+ dispatch: React.Dispatch<Action>;
21
+ }) => Selected, shouldThrowOnMissingContext?: ShouldThrow | undefined) => ShouldThrow extends true ? Selected : Selected | undefined;
22
+ declare function reducer(state: State, action: Action): State;
23
+ declare const UnstableGuidedTourContext: ({ children, tours: registeredTours, }: {
24
+ children: React.ReactNode;
25
+ tours: Tours;
26
+ }) => import("react/jsx-runtime").JSX.Element;
27
+ export type { Action, State, ValidTourName };
28
+ export { UnstableGuidedTourContext, unstableUseGuidedTour, reducer };
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ import { Popover } from '@strapi/design-system';
3
+ import { type MessageDescriptor } from 'react-intl';
4
+ import { ValidTourName } from './Context';
5
+ type WithChildren = {
6
+ children: React.ReactNode;
7
+ id?: never;
8
+ defaultMessage?: never;
9
+ };
10
+ type WithIntl = {
11
+ children?: undefined;
12
+ id: MessageDescriptor['id'];
13
+ defaultMessage: MessageDescriptor['defaultMessage'];
14
+ };
15
+ type WithActionsChildren = {
16
+ children: React.ReactNode;
17
+ showStepCount?: boolean;
18
+ showSkip?: boolean;
19
+ };
20
+ type WithActionsProps = {
21
+ children?: undefined;
22
+ showStepCount?: boolean;
23
+ showSkip?: boolean;
24
+ };
25
+ type StepProps = WithChildren | WithIntl;
26
+ type ActionsProps = WithActionsChildren | WithActionsProps;
27
+ type Step = {
28
+ Root: React.ForwardRefExoticComponent<React.ComponentProps<typeof Popover.Content>>;
29
+ Title: (props: StepProps) => React.ReactNode;
30
+ Content: (props: StepProps) => React.ReactNode;
31
+ Actions: (props: ActionsProps) => React.ReactNode;
32
+ };
33
+ declare const createStepComponents: (tourName: ValidTourName) => Step;
34
+ export type { Step };
35
+ export { createStepComponents };
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import { type State, type Action } from './Context';
3
+ import { Step } from './Step';
4
+ declare const tours: {
5
+ readonly contentManager: {
6
+ Introduction: React.ComponentType<{
7
+ children: React.ReactNode;
8
+ }>;
9
+ };
10
+ };
11
+ type Tours = typeof tours;
12
+ type Content = (Step: Step, { state, dispatch, }: {
13
+ state: State;
14
+ dispatch: React.Dispatch<Action>;
15
+ }) => React.ReactNode;
16
+ export declare const GuidedTourOverlay: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("@strapi/design-system").TransientBoxProps & {
17
+ children?: React.ReactNode;
18
+ } & import("@strapi/design-system/dist/types").AsProp<React.ElementType<any, keyof React.JSX.IntrinsicElements>> & Omit<Omit<any, "ref">, "children" | keyof import("@strapi/design-system/dist/types").AsProp<C> | keyof import("@strapi/design-system").TransientBoxProps> & {
19
+ ref?: any;
20
+ }, "ref"> & {
21
+ ref?: any;
22
+ }, never>> & Omit<import("@strapi/design-system").BoxComponent<"div">, keyof React.Component<any, {}, any>>;
23
+ export type { Content, Tours };
24
+ export { tours };
@@ -23,6 +23,7 @@ export * from './components/ContentBox';
23
23
  export * from './components/SubNav';
24
24
  export * from './components/GradientBadge';
25
25
  export { useGuidedTour } from './components/GuidedTour/Provider';
26
+ export { tours as unstable_tours } from './components/UnstableGuidedTour/Tours';
26
27
  /**
27
28
  * Features
28
29
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/admin",
3
- "version": "5.16.0",
3
+ "version": "5.16.1",
4
4
  "description": "Strapi Admin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -84,12 +84,12 @@
84
84
  "@radix-ui/react-context": "1.0.1",
85
85
  "@radix-ui/react-toolbar": "1.0.4",
86
86
  "@reduxjs/toolkit": "1.9.7",
87
- "@strapi/design-system": "2.0.0-rc.26",
88
- "@strapi/icons": "2.0.0-rc.26",
89
- "@strapi/permissions": "5.16.0",
90
- "@strapi/types": "5.16.0",
91
- "@strapi/typescript-utils": "5.16.0",
92
- "@strapi/utils": "5.16.0",
87
+ "@strapi/design-system": "2.0.0-rc.27",
88
+ "@strapi/icons": "2.0.0-rc.27",
89
+ "@strapi/permissions": "5.16.1",
90
+ "@strapi/types": "5.16.1",
91
+ "@strapi/typescript-utils": "5.16.1",
92
+ "@strapi/utils": "5.16.1",
93
93
  "@testing-library/dom": "10.1.0",
94
94
  "@testing-library/react": "15.0.7",
95
95
  "@testing-library/user-event": "14.5.2",
@@ -143,8 +143,8 @@
143
143
  "zod": "3.24.2"
144
144
  },
145
145
  "devDependencies": {
146
- "@strapi/admin-test-utils": "5.16.0",
147
- "@strapi/data-transfer": "5.16.0",
146
+ "@strapi/admin-test-utils": "5.16.1",
147
+ "@strapi/data-transfer": "5.16.1",
148
148
  "@types/codemirror5": "npm:@types/codemirror@^5.60.15",
149
149
  "@types/fs-extra": "11.0.4",
150
150
  "@types/invariant": "2.2.36",