@almadar/ui 5.122.3 → 5.122.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/dist/avl/index.cjs +2 -2
- package/dist/avl/index.js +2 -2
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +3 -3
- package/dist/providers/index.cjs +2 -2
- package/dist/providers/index.js +3 -3
- package/dist/runtime/index.cjs +2 -2
- package/dist/runtime/index.js +3 -3
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -5162,7 +5162,7 @@ var init_Modal = __esm({
|
|
|
5162
5162
|
const isDragging = React91.useRef(false);
|
|
5163
5163
|
const [closing, setClosing] = React91.useState(false);
|
|
5164
5164
|
const wasOpenRef = React91.useRef(isOpen);
|
|
5165
|
-
React91.
|
|
5165
|
+
React91.useLayoutEffect(() => {
|
|
5166
5166
|
if (wasOpenRef.current && !isOpen) setClosing(true);
|
|
5167
5167
|
wasOpenRef.current = isOpen;
|
|
5168
5168
|
}, [isOpen]);
|
|
@@ -5367,7 +5367,7 @@ function usePresence(show, opts) {
|
|
|
5367
5367
|
setMounted(false);
|
|
5368
5368
|
onExitedRef.current?.();
|
|
5369
5369
|
}, [clearSafe]);
|
|
5370
|
-
React91.
|
|
5370
|
+
React91.useLayoutEffect(() => {
|
|
5371
5371
|
const moving = animate && isMotionEnabled();
|
|
5372
5372
|
if (show && !prev.current) {
|
|
5373
5373
|
setExiting(false);
|
package/dist/avl/index.js
CHANGED
|
@@ -5116,7 +5116,7 @@ var init_Modal = __esm({
|
|
|
5116
5116
|
const isDragging = useRef(false);
|
|
5117
5117
|
const [closing, setClosing] = useState(false);
|
|
5118
5118
|
const wasOpenRef = useRef(isOpen);
|
|
5119
|
-
|
|
5119
|
+
useLayoutEffect(() => {
|
|
5120
5120
|
if (wasOpenRef.current && !isOpen) setClosing(true);
|
|
5121
5121
|
wasOpenRef.current = isOpen;
|
|
5122
5122
|
}, [isOpen]);
|
|
@@ -5321,7 +5321,7 @@ function usePresence(show, opts) {
|
|
|
5321
5321
|
setMounted(false);
|
|
5322
5322
|
onExitedRef.current?.();
|
|
5323
5323
|
}, [clearSafe]);
|
|
5324
|
-
|
|
5324
|
+
useLayoutEffect(() => {
|
|
5325
5325
|
const moving = animate && isMotionEnabled();
|
|
5326
5326
|
if (show && !prev.current) {
|
|
5327
5327
|
setExiting(false);
|
|
@@ -4122,7 +4122,7 @@ function usePresence(show, opts) {
|
|
|
4122
4122
|
setMounted(false);
|
|
4123
4123
|
onExitedRef.current?.();
|
|
4124
4124
|
}, [clearSafe]);
|
|
4125
|
-
React74.
|
|
4125
|
+
React74.useLayoutEffect(() => {
|
|
4126
4126
|
const moving = animate && isMotionEnabled();
|
|
4127
4127
|
if (show && !prev.current) {
|
|
4128
4128
|
setExiting(false);
|
|
@@ -6168,7 +6168,7 @@ var init_Modal = __esm({
|
|
|
6168
6168
|
const isDragging = React74.useRef(false);
|
|
6169
6169
|
const [closing, setClosing] = React74.useState(false);
|
|
6170
6170
|
const wasOpenRef = React74.useRef(isOpen);
|
|
6171
|
-
React74.
|
|
6171
|
+
React74.useLayoutEffect(() => {
|
|
6172
6172
|
if (wasOpenRef.current && !isOpen) setClosing(true);
|
|
6173
6173
|
wasOpenRef.current = isOpen;
|
|
6174
6174
|
}, [isOpen]);
|
|
@@ -6389,7 +6389,7 @@ interface DataGridProps extends DataDndProps {
|
|
|
6389
6389
|
*/
|
|
6390
6390
|
look?: "dense" | "spacious" | "striped" | "borderless" | "card-rows";
|
|
6391
6391
|
}
|
|
6392
|
-
declare function DataGrid({ entity, fields, columns, itemActions, maxInlineActions, scrollX, cols, gap, minCardWidth, className, isLoading, error, imageField, selectable, selectionEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable, dropEvent, reorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataGridProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> |
|
|
6392
|
+
declare function DataGrid({ entity, fields, columns, itemActions, maxInlineActions, scrollX, cols, gap, minCardWidth, className, isLoading, error, imageField, selectable, selectionEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable, dropEvent, reorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataGridProps): string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
|
|
6393
6393
|
declare namespace DataGrid {
|
|
6394
6394
|
var displayName: string;
|
|
6395
6395
|
}
|
|
@@ -6516,7 +6516,7 @@ interface DataListProps extends DataDndProps {
|
|
|
6516
6516
|
*/
|
|
6517
6517
|
look?: "dense" | "spacious" | "striped" | "borderless" | "card-rows";
|
|
6518
6518
|
}
|
|
6519
|
-
declare function DataList({ entity, fields, columns, itemActions, maxInlineActions, itemClickEvent, gap, variant, groupBy, senderField, currentUser, className, isLoading, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable: sortableProp, dropEvent, reorderEvent: dndReorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataListProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> |
|
|
6519
|
+
declare function DataList({ entity, fields, columns, itemActions, maxInlineActions, itemClickEvent, gap, variant, groupBy, senderField, currentUser, className, isLoading, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable: sortableProp, dropEvent, reorderEvent: dndReorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataListProps): string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
|
|
6520
6520
|
declare namespace DataList {
|
|
6521
6521
|
var displayName: string;
|
|
6522
6522
|
}
|
|
@@ -6389,7 +6389,7 @@ interface DataGridProps extends DataDndProps {
|
|
|
6389
6389
|
*/
|
|
6390
6390
|
look?: "dense" | "spacious" | "striped" | "borderless" | "card-rows";
|
|
6391
6391
|
}
|
|
6392
|
-
declare function DataGrid({ entity, fields, columns, itemActions, maxInlineActions, scrollX, cols, gap, minCardWidth, className, isLoading, error, imageField, selectable, selectionEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable, dropEvent, reorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataGridProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> |
|
|
6392
|
+
declare function DataGrid({ entity, fields, columns, itemActions, maxInlineActions, scrollX, cols, gap, minCardWidth, className, isLoading, error, imageField, selectable, selectionEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable, dropEvent, reorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataGridProps): string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
|
|
6393
6393
|
declare namespace DataGrid {
|
|
6394
6394
|
var displayName: string;
|
|
6395
6395
|
}
|
|
@@ -6516,7 +6516,7 @@ interface DataListProps extends DataDndProps {
|
|
|
6516
6516
|
*/
|
|
6517
6517
|
look?: "dense" | "spacious" | "striped" | "borderless" | "card-rows";
|
|
6518
6518
|
}
|
|
6519
|
-
declare function DataList({ entity, fields, columns, itemActions, maxInlineActions, itemClickEvent, gap, variant, groupBy, senderField, currentUser, className, isLoading, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable: sortableProp, dropEvent, reorderEvent: dndReorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataListProps): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> |
|
|
6519
|
+
declare function DataList({ entity, fields, columns, itemActions, maxInlineActions, itemClickEvent, gap, variant, groupBy, senderField, currentUser, className, isLoading, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable: sortableProp, dropEvent, reorderEvent: dndReorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataListProps): string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
|
|
6520
6520
|
declare namespace DataList {
|
|
6521
6521
|
var displayName: string;
|
|
6522
6522
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React74 from 'react';
|
|
3
|
-
import React74__default, { createContext, useContext, useMemo, useRef, useEffect, useCallback, useState, Suspense, lazy, useSyncExternalStore,
|
|
3
|
+
import React74__default, { createContext, useContext, useMemo, useRef, useEffect, useCallback, useState, useLayoutEffect, Suspense, lazy, useSyncExternalStore, useId } from 'react';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { EventBusContext, useTraitScopeChain, useCurrentPagePath, useGameAudioContextOptional, useEntitySchemaOptional, TraitScopeProvider } from '@almadar/ui/providers';
|
|
@@ -4077,7 +4077,7 @@ function usePresence(show, opts) {
|
|
|
4077
4077
|
setMounted(false);
|
|
4078
4078
|
onExitedRef.current?.();
|
|
4079
4079
|
}, [clearSafe]);
|
|
4080
|
-
|
|
4080
|
+
useLayoutEffect(() => {
|
|
4081
4081
|
const moving = animate && isMotionEnabled();
|
|
4082
4082
|
if (show && !prev.current) {
|
|
4083
4083
|
setExiting(false);
|
|
@@ -6123,7 +6123,7 @@ var init_Modal = __esm({
|
|
|
6123
6123
|
const isDragging = useRef(false);
|
|
6124
6124
|
const [closing, setClosing] = useState(false);
|
|
6125
6125
|
const wasOpenRef = useRef(isOpen);
|
|
6126
|
-
|
|
6126
|
+
useLayoutEffect(() => {
|
|
6127
6127
|
if (wasOpenRef.current && !isOpen) setClosing(true);
|
|
6128
6128
|
wasOpenRef.current = isOpen;
|
|
6129
6129
|
}, [isOpen]);
|
package/dist/providers/index.cjs
CHANGED
|
@@ -1333,7 +1333,7 @@ var init_Modal = __esm({
|
|
|
1333
1333
|
const isDragging = React84.useRef(false);
|
|
1334
1334
|
const [closing, setClosing] = React84.useState(false);
|
|
1335
1335
|
const wasOpenRef = React84.useRef(isOpen);
|
|
1336
|
-
React84.
|
|
1336
|
+
React84.useLayoutEffect(() => {
|
|
1337
1337
|
if (wasOpenRef.current && !isOpen) setClosing(true);
|
|
1338
1338
|
wasOpenRef.current = isOpen;
|
|
1339
1339
|
}, [isOpen]);
|
|
@@ -1538,7 +1538,7 @@ function usePresence(show, opts) {
|
|
|
1538
1538
|
setMounted(false);
|
|
1539
1539
|
onExitedRef.current?.();
|
|
1540
1540
|
}, [clearSafe]);
|
|
1541
|
-
React84.
|
|
1541
|
+
React84.useLayoutEffect(() => {
|
|
1542
1542
|
const moving = animate && isMotionEnabled();
|
|
1543
1543
|
if (show && !prev.current) {
|
|
1544
1544
|
setExiting(false);
|
package/dist/providers/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React84 from 'react';
|
|
2
|
-
import React84__default, { createContext, useContext, useMemo, useRef, useEffect, useCallback, Suspense, useState,
|
|
2
|
+
import React84__default, { createContext, useContext, useMemo, useRef, useEffect, useCallback, Suspense, useState, useLayoutEffect, lazy, useId, useSyncExternalStore } from 'react';
|
|
3
3
|
import { EventBusContext, useTraitScopeChain, useEntitySchemaOptional, TraitScopeProvider, useCurrentPagePath, useGameAudioContextOptional } from '@almadar/ui/providers';
|
|
4
4
|
import { createLogger, isLogLevelEnabled } from '@almadar/logger';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
@@ -1288,7 +1288,7 @@ var init_Modal = __esm({
|
|
|
1288
1288
|
const isDragging = useRef(false);
|
|
1289
1289
|
const [closing, setClosing] = useState(false);
|
|
1290
1290
|
const wasOpenRef = useRef(isOpen);
|
|
1291
|
-
|
|
1291
|
+
useLayoutEffect(() => {
|
|
1292
1292
|
if (wasOpenRef.current && !isOpen) setClosing(true);
|
|
1293
1293
|
wasOpenRef.current = isOpen;
|
|
1294
1294
|
}, [isOpen]);
|
|
@@ -1493,7 +1493,7 @@ function usePresence(show, opts) {
|
|
|
1493
1493
|
setMounted(false);
|
|
1494
1494
|
onExitedRef.current?.();
|
|
1495
1495
|
}, [clearSafe]);
|
|
1496
|
-
|
|
1496
|
+
useLayoutEffect(() => {
|
|
1497
1497
|
const moving = animate && isMotionEnabled();
|
|
1498
1498
|
if (show && !prev.current) {
|
|
1499
1499
|
setExiting(false);
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -1811,7 +1811,7 @@ var init_Modal = __esm({
|
|
|
1811
1811
|
const isDragging = React82.useRef(false);
|
|
1812
1812
|
const [closing, setClosing] = React82.useState(false);
|
|
1813
1813
|
const wasOpenRef = React82.useRef(isOpen);
|
|
1814
|
-
React82.
|
|
1814
|
+
React82.useLayoutEffect(() => {
|
|
1815
1815
|
if (wasOpenRef.current && !isOpen) setClosing(true);
|
|
1816
1816
|
wasOpenRef.current = isOpen;
|
|
1817
1817
|
}, [isOpen]);
|
|
@@ -2016,7 +2016,7 @@ function usePresence(show, opts) {
|
|
|
2016
2016
|
setMounted(false);
|
|
2017
2017
|
onExitedRef.current?.();
|
|
2018
2018
|
}, [clearSafe]);
|
|
2019
|
-
React82.
|
|
2019
|
+
React82.useLayoutEffect(() => {
|
|
2020
2020
|
const moving = animate && isMotionEnabled();
|
|
2021
2021
|
if (show && !prev.current) {
|
|
2022
2022
|
setExiting(false);
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React82 from 'react';
|
|
2
|
-
import React82__default, { createContext, useContext, useMemo, useRef, useEffect, useCallback, Suspense, useState, useSyncExternalStore,
|
|
2
|
+
import React82__default, { createContext, useContext, useMemo, useRef, useEffect, useCallback, Suspense, useState, useSyncExternalStore, useLayoutEffect, lazy, useId } from 'react';
|
|
3
3
|
import { EventBusContext, useTraitScopeChain, useEntitySchemaOptional, useEntitySchema, getAllPages, OrbitalProvider, TraitScopeProvider, ServerBridgeProvider, useCurrentPagePath, useGameAudioContextOptional, VerificationProvider, EntitySchemaProvider, OrbitalThemeProvider, useServerBridge } from '@almadar/ui/providers';
|
|
4
4
|
export { EntitySchemaProvider, ServerBridgeProvider, TraitContext, TraitProvider, useEntitySchema, useEntitySchemaOptional, useServerBridge, useTrait, useTraitContext } from '@almadar/ui/providers';
|
|
5
5
|
import { createLogger, setNamespaceLevel, isLogLevelEnabled } from '@almadar/logger';
|
|
@@ -1767,7 +1767,7 @@ var init_Modal = __esm({
|
|
|
1767
1767
|
const isDragging = useRef(false);
|
|
1768
1768
|
const [closing, setClosing] = useState(false);
|
|
1769
1769
|
const wasOpenRef = useRef(isOpen);
|
|
1770
|
-
|
|
1770
|
+
useLayoutEffect(() => {
|
|
1771
1771
|
if (wasOpenRef.current && !isOpen) setClosing(true);
|
|
1772
1772
|
wasOpenRef.current = isOpen;
|
|
1773
1773
|
}, [isOpen]);
|
|
@@ -1972,7 +1972,7 @@ function usePresence(show, opts) {
|
|
|
1972
1972
|
setMounted(false);
|
|
1973
1973
|
onExitedRef.current?.();
|
|
1974
1974
|
}, [clearSafe]);
|
|
1975
|
-
|
|
1975
|
+
useLayoutEffect(() => {
|
|
1976
1976
|
const moving = animate && isMotionEnabled();
|
|
1977
1977
|
if (show && !prev.current) {
|
|
1978
1978
|
setExiting(false);
|