slice-machine-ui 1.23.2-alpha.bmo-add-github-settings-page.3 → 1.23.2-alpha.fix-telemetry-enabled-check.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 (77) hide show
  1. package/.depcheckrc +0 -3
  2. package/components/DeleteVariationModal/index.tsx +0 -1
  3. package/components/Forms/RenameVariationModal/RenameVariationModal.tsx +1 -0
  4. package/components/ModalFormCard/index.tsx +1 -0
  5. package/components/Navigation/index.tsx +12 -25
  6. package/components/ReviewModal/ReviewForm.tsx +1 -0
  7. package/lib/builders/common/EditModal/Form.jsx +1 -0
  8. package/lib/builders/common/Zone/Card/components/NewField.tsx +1 -0
  9. package/out/404.html +1 -1
  10. package/out/_next/static/chunks/18539003-5cc559566b738915.js +97 -0
  11. package/out/_next/static/chunks/318-ce7e74f18f2d5b22.js +1 -0
  12. package/out/_next/static/chunks/376-7e784d6069e01654.js +8 -0
  13. package/out/_next/static/chunks/{727-2235967a881f9035.js → 727-3a3bc32518778317.js} +1 -1
  14. package/out/_next/static/chunks/731-501990ebe6a71b32.js +1 -0
  15. package/out/_next/static/chunks/904-9a4c1264727ae89a.js +1 -0
  16. package/out/_next/static/chunks/pages/_app-36d458fc21f76416.js +432 -0
  17. package/out/_next/static/chunks/pages/{changelog-02cd80dad6f40878.js → changelog-afd18276fe018b24.js} +1 -1
  18. package/out/_next/static/chunks/pages/{changes-8de69920dfb5a48f.js → changes-2a976f9efeb719aa.js} +1 -1
  19. package/out/_next/static/chunks/pages/{labs-39b50541a4c370bf.js → labs-ee206005948f8e87.js} +1 -1
  20. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-b12346e58ac9abea.js → simulator-897ca93c114a1435.js} +1 -1
  21. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-b2a9d773ce5d7739.js +1 -0
  22. package/out/_next/static/chunks/pages/slices-e9c70c082ca3e3f9.js +1 -0
  23. package/out/_next/static/css/200244e3e0463c39.css +1 -0
  24. package/out/_next/static/css/{838fd8bb5a7c32b0.css → 37153180c3b0dd66.css} +1 -1
  25. package/out/_next/static/uTquSQH-Tq6izLpiXgFd4/_buildManifest.js +1 -0
  26. package/out/changelog.html +1 -1
  27. package/out/changes.html +1 -1
  28. package/out/custom-types/[customTypeId].html +1 -1
  29. package/out/custom-types.html +1 -1
  30. package/out/index.html +1 -1
  31. package/out/labs.html +1 -1
  32. package/out/page-types/[pageTypeId].html +1 -1
  33. package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  34. package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
  35. package/out/slices.html +1 -1
  36. package/package.json +6 -9
  37. package/src/components/FieldSet/FieldSet.stories.tsx +11 -20
  38. package/src/features/environments/actions/setEnvironment.ts +2 -2
  39. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewSliceDialog.tsx +1 -0
  40. package/src/features/slices/convertLegacySlice/ConvertLegacySliceAsNewVariationDialog.tsx +1 -0
  41. package/src/features/slices/convertLegacySlice/ConvertLegacySliceMergeWithIdenticalDialog.tsx +1 -0
  42. package/test/src/modules/__fixtures__/serverState.ts +2 -1
  43. package/out/_next/static/Os2LJkq4DesS0VqWYg8UC/_buildManifest.js +0 -1
  44. package/out/_next/static/chunks/18539003-5f78714a35fde4a1.js +0 -97
  45. package/out/_next/static/chunks/318-bd030cc1725e23b5.js +0 -1
  46. package/out/_next/static/chunks/731-a9b66ccdc3fae2c2.js +0 -1
  47. package/out/_next/static/chunks/777-8c5507e3b119b5dc.js +0 -8
  48. package/out/_next/static/chunks/904-6d6937d53ea2761e.js +0 -1
  49. package/out/_next/static/chunks/pages/_app-dee45e83f6837a4d.js +0 -434
  50. package/out/_next/static/chunks/pages/settings-386e0971d78f7d57.js +0 -1
  51. package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-62b55bae7f1b3793.js +0 -1
  52. package/out/_next/static/chunks/pages/slices-81e382c3374273df.js +0 -1
  53. package/out/_next/static/css/3c26dbbbd8f4be12.css +0 -1
  54. package/out/_next/static/css/ca32882a5d2d8d88.css +0 -1
  55. package/out/settings.html +0 -1
  56. package/pages/settings.tsx +0 -1
  57. package/postcss.config.js +0 -10
  58. package/src/components/RelativeTime/RelativeTime.stories.tsx +0 -25
  59. package/src/components/RelativeTime/RelativeTime.tsx +0 -40
  60. package/src/components/RelativeTime/index.ts +0 -1
  61. package/src/features/settings/SettingsPage.tsx +0 -29
  62. package/src/features/settings/git/ConnectGitRepository.tsx +0 -97
  63. package/src/features/settings/git/ConnectGitRepositoryBlankSlate.tsx +0 -33
  64. package/src/features/settings/git/GitOwnerSelect.tsx +0 -71
  65. package/src/features/settings/git/GitProvider.ts +0 -40
  66. package/src/features/settings/git/GitProviderConnectButtons.tsx +0 -63
  67. package/src/features/settings/git/GitRepositoriesList.tsx +0 -76
  68. package/src/features/settings/git/GitRepositoriesSearch.tsx +0 -69
  69. package/src/features/settings/git/GitRepositoryConnectDialog.tsx +0 -86
  70. package/src/features/settings/git/GitRepositoryDisconnectDialog.tsx +0 -64
  71. package/src/features/settings/git/useGitOwners.ts +0 -12
  72. package/src/features/settings/git/useGitRepos.ts +0 -24
  73. package/src/features/settings/git/useLinkedGitRepos.ts +0 -41
  74. package/src/features/settings/git/useWriteAPIToken.ts +0 -30
  75. package/src/hooks/useUser.ts +0 -14
  76. package/src/icons/SettingsIcon.tsx +0 -19
  77. /package/out/_next/static/{Os2LJkq4DesS0VqWYg8UC → uTquSQH-Tq6izLpiXgFd4}/_ssgManifest.js +0 -0
package/.depcheckrc CHANGED
@@ -6,9 +6,6 @@ ignores:
6
6
  "@vitest/coverage-v8",
7
7
  "monocle-ts",
8
8
  "newtype-ts",
9
- "postcss",
10
- "postcss-flexbugs-fixes",
11
- "postcss-preset-env",
12
9
  "semver",
13
10
  "start-slicemachine",
14
11
  "stylelint-config-css-modules",
@@ -52,7 +52,6 @@ export const DeleteVariationModal: FC<DeleteVariationModalProps> = ({
52
52
  <DialogActions
53
53
  ok={{
54
54
  text: "Delete",
55
- color: "tomato",
56
55
  onClick: () => {
57
56
  if (!variation) return;
58
57
  void (async () => {
@@ -45,6 +45,7 @@ export const RenameVariationModal: FC<RenameVariationModalProps> = ({
45
45
  <DialogHeader icon="edit" title="Rename variation" />
46
46
  <DialogContent>
47
47
  <Formik
48
+ validateOnChange
48
49
  validateOnMount
49
50
  initialValues={{ variationName: variation?.name ?? "" }}
50
51
  validate={(values) => {
@@ -81,6 +81,7 @@ function ModalCard<Values extends FormikValues>({
81
81
  }}
82
82
  >
83
83
  <Formik
84
+ validateOnChange
84
85
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
85
86
  initialValues={initialValues}
86
87
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return
@@ -8,7 +8,6 @@ import { telemetry } from "@src/apiClient";
8
8
  import VideoItem from "@components/Navigation/VideoItem";
9
9
  import { LightningIcon } from "@src/icons/Lightning";
10
10
  import { MathPlusIcon } from "@src/icons/MathPlusIcon";
11
- import { SettingsIcon } from "@src/icons/SettingsIcon";
12
11
  import { CUSTOM_TYPES_CONFIG } from "@src/features/customTypes/customTypesConfig";
13
12
  import {
14
13
  SideNavSeparator,
@@ -142,19 +141,17 @@ const Navigation: FC = () => {
142
141
  )}
143
142
 
144
143
  <SideNavList position="bottom">
145
- <SideNavListItem>
146
- <SideNavLink
147
- title="Invite team"
148
- href={`${repositoryUrl}/settings/users`}
149
- Icon={MathPlusIcon}
150
- onClick={() => {
151
- void telemetry.track({
152
- event: "users-invite-button-clicked",
153
- });
154
- }}
155
- target="_blank"
156
- />
157
- </SideNavListItem>
144
+ <SideNavLink
145
+ title="Invite team"
146
+ href={`${repositoryUrl}/settings/users`}
147
+ Icon={(props) => <MathPlusIcon {...props} />}
148
+ onClick={() => {
149
+ void telemetry.track({
150
+ event: "users-invite-button-clicked",
151
+ });
152
+ }}
153
+ target="_blank"
154
+ />
158
155
 
159
156
  <ErrorBoundary>
160
157
  <Suspense>
@@ -165,21 +162,11 @@ const Navigation: FC = () => {
165
162
  </Suspense>
166
163
  </ErrorBoundary>
167
164
 
168
- <SideNavListItem>
169
- <SideNavLink
170
- title="Settings"
171
- href="/settings"
172
- Icon={SettingsIcon}
173
- active={router.asPath.startsWith("/settings")}
174
- component={Link}
175
- />
176
- </SideNavListItem>
177
-
178
165
  <SideNavListItem>
179
166
  <SideNavLink
180
167
  title="Changelog"
181
168
  href="/changelog"
182
- Icon={LightningIcon}
169
+ Icon={(props) => <LightningIcon {...props} />}
183
170
  active={router.asPath.startsWith("/changelog")}
184
171
  component={Link}
185
172
  RightElement={
@@ -94,6 +94,7 @@ export const ReviewForm: FC<ReviewFormProps> = (props) => {
94
94
  >
95
95
  <Formik
96
96
  validateOnMount
97
+ validateOnChange
97
98
  initialValues={{
98
99
  rating: 0,
99
100
  comment: "",
@@ -13,6 +13,7 @@ const WidgetForm = ({
13
13
  return (
14
14
  <Box>
15
15
  <Formik
16
+ validateOnChange
16
17
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
17
18
  initialValues={initialValues}
18
19
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-assignment
@@ -114,6 +114,7 @@ const NewField: React.FC<NewField> = ({
114
114
 
115
115
  return (
116
116
  <Formik
117
+ validateOnChange
117
118
  onSubmit={onSave}
118
119
  validationSchema={validationSchema}
119
120
  initialValues={initialValues}
package/out/404.html CHANGED
@@ -1 +1 @@
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/3c26dbbbd8f4be12.css" as="style"/><link rel="stylesheet" href="/_next/static/css/3c26dbbbd8f4be12.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-dee45e83f6837a4d.js" defer=""></script><script src="/_next/static/chunks/pages/_error-69b4f498bafdd188.js" defer=""></script><script src="/_next/static/Os2LJkq4DesS0VqWYg8UC/_buildManifest.js" defer=""></script><script src="/_next/static/Os2LJkq4DesS0VqWYg8UC/_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":"Os2LJkq4DesS0VqWYg8UC","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
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/200244e3e0463c39.css" as="style"/><link rel="stylesheet" href="/_next/static/css/200244e3e0463c39.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-36d458fc21f76416.js" defer=""></script><script src="/_next/static/chunks/pages/_error-69b4f498bafdd188.js" defer=""></script><script src="/_next/static/uTquSQH-Tq6izLpiXgFd4/_buildManifest.js" defer=""></script><script src="/_next/static/uTquSQH-Tq6izLpiXgFd4/_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":"uTquSQH-Tq6izLpiXgFd4","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>