@stoker-platform/web-app 0.5.212 → 0.5.213

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.213
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: fix collection change UI flicker
8
+
3
9
  ## 0.5.212
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.212",
3
+ "version": "0.5.213",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
@@ -2051,6 +2051,9 @@ function Collection({
2051
2051
  relationList ? "xl:flex-row" : "lg:flex-row",
2052
2052
  )}
2053
2053
  >
2054
+ {!isInitialized && !relationList && (
2055
+ <div className="hidden lg:block h-9 shrink-0" aria-hidden="true" />
2056
+ )}
2054
2057
  {isInitialized && (
2055
2058
  <>
2056
2059
  {formList && (
@@ -1,8 +1,13 @@
1
1
  import { flushSync } from "react-dom"
2
2
 
3
+ const isWebKit =
4
+ typeof navigator !== "undefined" &&
5
+ /AppleWebKit/.test(navigator.userAgent) &&
6
+ !/Chrom(e|ium)|Edg|OPR|Android/.test(navigator.userAgent)
7
+
3
8
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
9
  export const runViewTransition = (callback: () => any) => {
5
- if (document.startViewTransition && document.visibilityState === "visible") {
10
+ if (!isWebKit && document.startViewTransition && document.visibilityState === "visible") {
6
11
  try {
7
12
  const transition = document.startViewTransition(() => {
8
13
  flushSync(() => {