slice-machine-ui 1.20.1-dev-environments.2 → 1.20.1-dev-next-release.4
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/components/Navigation/index.tsx +13 -17
- package/components/ReviewModal/ReviewForm.tsx +2 -2
- package/components/ReviewModal/ReviewModal.tsx +7 -0
- package/out/404.html +1 -1
- package/out/_next/static/SPzizBxxX94N8BI0V2i0y/_buildManifest.js +1 -0
- package/out/_next/static/chunks/{18539003-371d86ea83e7293b.js → 18539003-5d8b6a04053638af.js} +2 -2
- package/out/_next/static/chunks/{482-39cef3a713901788.js → 482-30c0f114c7213fa3.js} +1 -1
- package/out/_next/static/chunks/{125-f0e2eb84ee39757a.js → 505-fa47e200ac3a012d.js} +1 -1
- package/out/_next/static/chunks/{550-e72c08c598051224.js → 550-abf97d3008006056.js} +1 -1
- package/out/_next/static/chunks/{80-821a0b5d4ad61185.js → 80-72d903b2a0bd5dc3.js} +1 -1
- package/out/_next/static/chunks/{840-5b485c737b24324b.js → 840-6e00e3fb69984e18.js} +1 -1
- package/out/_next/static/chunks/{904-6204ab2ad8798857.js → 904-5e18cdb44800ba7f.js} +1 -1
- package/out/_next/static/chunks/958-8f814daf5896ff97.js +1 -0
- package/out/_next/static/chunks/pages/{_app-61dfd5e4a504dad6.js → _app-dd11be4278a2b98f.js} +44 -44
- package/out/_next/static/chunks/pages/{changes-db6e8c6be5ae076e.js → changes-64686146a8087d29.js} +1 -1
- package/out/_next/static/chunks/pages/index-d8e3a2c0d712904f.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-79a62d775e64898c.js → simulator-7b17cb59d0db03b5.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/{[variation]-724893d27ffa426c.js → [variation]-3d8beb33e88d9e35.js} +1 -1
- package/out/_next/static/css/31841735992dea23.css +1 -0
- package/out/_next/static/css/58a89606d9ca9093.css +1 -0
- package/out/_next/static/css/5d18ccf403d4649a.css +1 -0
- package/out/_next/static/css/{51597cd1f01c4889.css → 78250665d395ea50.css} +1 -1
- package/out/_next/static/css/{16b41648cd1de03b.css → b0be58d878c0fac3.css} +1 -1
- package/out/_next/static/css/e1564cb89a3a9960.css +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +7 -7
- package/pages/_app.tsx +39 -35
- package/src/components/Counter/Counter.css.ts +26 -0
- package/src/components/Counter/Counter.stories.tsx +17 -0
- package/src/components/Counter/Counter.tsx +16 -0
- package/src/components/Counter/index.ts +1 -0
- package/src/features/inAppGuide/InAppGuideContext.tsx +47 -0
- package/src/features/inAppGuide/InAppGuideDialog.tsx +97 -0
- package/src/features/inAppGuide/inAppGuideContent.tsx +65 -0
- package/src/hooks/usePersistedState.ts +34 -0
- package/src/hooks/useRepositoryInformation.ts +24 -0
- package/src/icons/FlowerBackgroundIcon.tsx +17 -0
- package/src/icons/HelpIcon.tsx +19 -0
- package/out/_next/static/chunks/958-c90d60818f1c468a.js +0 -1
- package/out/_next/static/chunks/pages/index-941b44c74dd339e4.js +0 -1
- package/out/_next/static/css/009bd7f5ac85fc6a.css +0 -1
- package/out/_next/static/css/3e88bd24e38f18d0.css +0 -1
- package/out/_next/static/css/6e4843007ff41825.css +0 -1
- package/out/_next/static/css/867d8d7ab4a75762.css +0 -1
- package/out/_next/static/eEMbH0pyO9pWG3REga3T2/_buildManifest.js +0 -1
- /package/out/_next/static/{eEMbH0pyO9pWG3REga3T2 → SPzizBxxX94N8BI0V2i0y}/_ssgManifest.js +0 -0
|
@@ -24,31 +24,27 @@ import { FolderIcon } from "@src/icons/FolderIcon";
|
|
|
24
24
|
import { userHasSeenTutorialsToolTip } from "@src/modules/userContext";
|
|
25
25
|
import { SliceMachineStoreType } from "@src/redux/type";
|
|
26
26
|
import useSliceMachineActions from "@src/modules/useSliceMachineActions";
|
|
27
|
-
import {
|
|
28
|
-
getApiEndpoint,
|
|
29
|
-
getChangelog,
|
|
30
|
-
getRepoName,
|
|
31
|
-
} from "@src/modules/environment";
|
|
27
|
+
import { getChangelog } from "@src/modules/environment";
|
|
32
28
|
import { CUSTOM_TYPES_MESSAGES } from "@src/features/customTypes/customTypesMessages";
|
|
29
|
+
import { useRepositoryInformation } from "@src/hooks/useRepositoryInformation";
|
|
30
|
+
|
|
33
31
|
import { ChangesListItem } from "./ChangesListItem";
|
|
34
32
|
import { Environment } from "./Environment";
|
|
35
33
|
|
|
36
34
|
import * as styles from "./index.css";
|
|
37
35
|
|
|
38
36
|
const Navigation: FC = () => {
|
|
39
|
-
const { changelog,
|
|
40
|
-
|
|
37
|
+
const { changelog, hasSeenTutorialsToolTip } = useSelector(
|
|
38
|
+
(store: SliceMachineStoreType) => ({
|
|
41
39
|
changelog: getChangelog(store),
|
|
42
|
-
repoName: getRepoName(store),
|
|
43
|
-
apiEndpoint: getApiEndpoint(store),
|
|
44
40
|
hasSeenTutorialsToolTip: userHasSeenTutorialsToolTip(store),
|
|
45
|
-
})
|
|
41
|
+
}),
|
|
42
|
+
);
|
|
46
43
|
const router = useRouter();
|
|
47
|
-
const repoDomain = new URL(apiEndpoint).hostname.replace(".cdn", "");
|
|
48
|
-
const repoAddress = apiEndpoint.replace(".cdn.", ".").replace("/api/v2", "");
|
|
49
|
-
|
|
50
44
|
const { setUpdatesViewed, setSeenTutorialsToolTip } =
|
|
51
45
|
useSliceMachineActions();
|
|
46
|
+
const { repositoryName, repositoryDomain, repositoryUrl } =
|
|
47
|
+
useRepositoryInformation();
|
|
52
48
|
|
|
53
49
|
return (
|
|
54
50
|
<SideNav>
|
|
@@ -65,9 +61,9 @@ const Navigation: FC = () => {
|
|
|
65
61
|
/>
|
|
66
62
|
|
|
67
63
|
<SideNavRepository
|
|
68
|
-
repositoryName={
|
|
69
|
-
repositoryDomain={
|
|
70
|
-
href={
|
|
64
|
+
repositoryName={repositoryName}
|
|
65
|
+
repositoryDomain={repositoryDomain}
|
|
66
|
+
href={repositoryUrl}
|
|
71
67
|
/>
|
|
72
68
|
|
|
73
69
|
<SideNavList>
|
|
@@ -140,7 +136,7 @@ const Navigation: FC = () => {
|
|
|
140
136
|
<SideNavList position="bottom">
|
|
141
137
|
<SideNavLink
|
|
142
138
|
title="Invite team"
|
|
143
|
-
href={`${
|
|
139
|
+
href={`${repositoryUrl}/settings/users`}
|
|
144
140
|
Icon={(props) => <MathPlusIcon {...props} />}
|
|
145
141
|
onClick={() => {
|
|
146
142
|
void telemetry.track({
|
|
@@ -6,10 +6,12 @@ import { getLastSyncChange, getUserReview } from "@src/modules/userContext";
|
|
|
6
6
|
import { selectAllCustomTypes } from "@src/modules/availableCustomTypes";
|
|
7
7
|
import { getLibraries } from "@src/modules/slices";
|
|
8
8
|
import { hasLocal } from "@lib/models/common/ModelData";
|
|
9
|
+
import { useInAppGuide } from "@src/features/inAppGuide/InAppGuideContext";
|
|
9
10
|
|
|
10
11
|
import { ReviewForm } from "./ReviewForm";
|
|
11
12
|
|
|
12
13
|
export const ReviewModal: FC = () => {
|
|
14
|
+
const { isInAppGuideOpen } = useInAppGuide();
|
|
13
15
|
const { userReview, customTypes, libraries, lastSyncChange } = useSelector(
|
|
14
16
|
(store: SliceMachineStoreType) => ({
|
|
15
17
|
userReview: getUserReview(store),
|
|
@@ -19,6 +21,11 @@ export const ReviewModal: FC = () => {
|
|
|
19
21
|
}),
|
|
20
22
|
);
|
|
21
23
|
|
|
24
|
+
// Opt out directly if the in-app guide is open
|
|
25
|
+
if (isInAppGuideOpen) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
const sliceCount =
|
|
23
30
|
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
24
31
|
libraries && libraries.length
|
package/out/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/e1564cb89a3a9960.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e1564cb89a3a9960.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-dd11be4278a2b98f.js" defer=""></script><script src="/_next/static/chunks/pages/_error-69b4f498bafdd188.js" defer=""></script><script src="/_next/static/SPzizBxxX94N8BI0V2i0y/_buildManifest.js" defer=""></script><script src="/_next/static/SPzizBxxX94N8BI0V2i0y/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"SPzizBxxX94N8BI0V2i0y","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,b,u,l){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[c,i,n,"static/chunks/pages/index-d8e3a2c0d712904f.js"],"/_error":["static/chunks/pages/_error-69b4f498bafdd188.js"],"/changelog":["static/chunks/870-0c7a8a9622de78b7.js","static/chunks/pages/changelog-4b8369d91d82b28b.js"],"/changes":[a,"static/chunks/8eec4907-b712959d9f984b68.js","static/chunks/918-38d08f1e885b222d.js",s,e,"static/css/78250665d395ea50.css","static/chunks/pages/changes-64686146a8087d29.js"],"/custom-types":[c,i,n,"static/chunks/pages/custom-types-2f5664d9492b13fb.js"],"/custom-types/[customTypeId]":[b,s,c,t,u,l,"static/chunks/pages/custom-types/[customTypeId]-3a37eb3373bb8823.js"],"/labs":["static/chunks/pages/labs-2922105ab714d32a.js"],"/page-types/[pageTypeId]":[b,s,c,t,u,l,"static/chunks/pages/page-types/[pageTypeId]-733f3890c0466a05.js"],"/slices":[a,s,e,"static/css/58a89606d9ca9093.css","static/chunks/pages/slices-93b7af2624c85b8e.js"],"/slices/[lib]/[sliceName]/[variation]":[a,s,e,t,"static/css/31841735992dea23.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-3d8beb33e88d9e35.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[a,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/18539003-5d8b6a04053638af.js","static/chunks/505-fa47e200ac3a012d.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-7b17cb59d0db03b5.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/958-8f814daf5896ff97.js","static/chunks/550-abf97d3008006056.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/80-72d903b2a0bd5dc3.js","static/chunks/482-30c0f114c7213fa3.js","static/chunks/840-6e00e3fb69984e18.js","static/css/b0be58d878c0fac3.css","static/chunks/474-2393e400314474be.js","static/chunks/904-5e18cdb44800ba7f.js","static/css/5d18ccf403d4649a.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|