Skip to content

Commit

Permalink
feat: masonry build work
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuever committed Dec 23, 2024
1 parent 81c6975 commit 714984f
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 29 deletions.
1 change: 1 addition & 0 deletions model/masonry-dimensions/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as MasonryDimensions } from './MasonryDimensions';
export * from './types';
3 changes: 0 additions & 3 deletions model/masonry-dimensions/src/types/masonry.types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { ListDimensionsModelProps } from '@infinite-list/dimensions-model';

import { GenericItemT } from './generic.types';
// import { ListDimensionsModelProps } from './ListDimensionsModel.types';
// import { ListStateResult } from './ListBaseDimensions.types';
import MasonryDimensionsModel from '../MasonryDimensionsModel';
import { ListIndexInfo } from '@infinite-list/item-meta';
// import { ListBaseDimensionsProps } from './ListBaseDimensions.types';

import {
ListStateResult,
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion ui/masonry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
}
},
"dependencies": {
"@infinite-list/data-model": "workspace:*",
"@infinite-list/scroller": "workspace:*"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion ui/masonry/src/react-native/ColumnStateRender.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment } from 'react';

import { GenericItemT, RecycleStateResult } from '@infinite-list/data-model';
import { GenericItemT, RecycleStateResult } from '@infinite-list/strategies';
import { ColumnStateRendererProps } from './types';

import RecycleItem from './RecycleItem';
Expand Down
4 changes: 2 additions & 2 deletions ui/masonry/src/react-native/MasonryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {
} from 'react-native';
import {
GenericItemT,
MasonryDimension,
MasonryDimensions as MasonryDimension,
MasonryStateResults,
} from '@infinite-list/data-model';
} from '@infinite-list/masonry-dimensions';
import { ColumnDimensionInfo, MasonryListProps } from './types';
import ColumnStateRenderer from './ColumnStateRender';
import { ScrollViewContext } from '@infinite-list/scroller/react-native';
Expand Down
2 changes: 1 addition & 1 deletion ui/masonry/src/react-native/RecycleItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useMemo, useRef } from 'react';
import { GenericItemT } from '@infinite-list/data-model';
import { GenericItemT } from '@infinite-list/item-meta';
import { RecycleItemProps } from './types';
import { View, ViewStyle } from 'react-native';

Expand Down
2 changes: 1 addition & 1 deletion ui/masonry/src/react-native/SpaceItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useMemo, useRef } from 'react';
import { View } from 'react-native';
import { GenericItemT } from '@infinite-list/data-model';
import { GenericItemT } from '@infinite-list/item-meta';
import { SpaceItemProps } from './types';

const Item = <ItemT extends GenericItemT>(props: SpaceItemProps<ItemT>) => {
Expand Down
2 changes: 1 addition & 1 deletion ui/masonry/src/react-native/types/list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ItemMeta, GenericItemT } from '@infinite-list/data-model';
import { ItemMeta, GenericItemT } from '@infinite-list/item-meta';

export type RenderItemInfo<ItemT extends GenericItemT = GenericItemT> = {
item: ItemT;
Expand Down
9 changes: 4 additions & 5 deletions ui/masonry/src/react-native/types/masonryList.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {
GenericItemT,
RecycleStateToken,
SpaceStateToken,
MasonryDimension,
MasonryDimensions as MasonryDimension,
MasonryColumnStateResults,
MasonryDimensionsModelProps,
} from '@infinite-list/data-model';
} from '@infinite-list/masonry-dimensions';
import { RecycleStateToken, SpaceStateToken } from '@infinite-list/strategies';
import { GenericItemT } from '@infinite-list/item-meta';
import { ScrollView, View } from 'react-native';
import { RefObject } from 'react';
import { RenderItem } from './list';
Expand Down
2 changes: 1 addition & 1 deletion ui/masonry/src/react/ColumnStateRender.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment } from 'react';

import { GenericItemT, RecycleStateResult } from '@infinite-list/data-model';
import { GenericItemT, RecycleStateResult } from '@infinite-list/strategies';
import { ColumnStateRendererProps } from './types';

import RecycleItem from './RecycleItem';
Expand Down
4 changes: 2 additions & 2 deletions ui/masonry/src/react/MasonryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
} from 'react';
import {
GenericItemT,
MasonryDimension,
MasonryDimensions as MasonryDimension,
MasonryStateResults,
} from '@infinite-list/data-model';
} from '@infinite-list/masonry-dimensions';
import { ColumnDimensionInfo, MasonryListProps } from './types';
import ColumnStateRenderer from './ColumnStateRender';
import { ScrollTracker } from '@infinite-list/scroller/web';
Expand Down
2 changes: 1 addition & 1 deletion ui/masonry/src/react/RecycleItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CSSProperties, useEffect, useMemo, useRef } from 'react';
import { GenericItemT } from '@infinite-list/data-model';
import { GenericItemT } from '@infinite-list/types';
import { RecycleItemProps } from './types';

const RecycleItem = <ItemT extends GenericItemT>(
Expand Down
2 changes: 1 addition & 1 deletion ui/masonry/src/react/SpaceItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useMemo, useRef } from 'react';
import { GenericItemT } from '@infinite-list/data-model';
import { GenericItemT } from '@infinite-list/types';
import { SpaceItemProps } from './types';

const Item = <ItemT extends GenericItemT>(props: SpaceItemProps<ItemT>) => {
Expand Down
2 changes: 1 addition & 1 deletion ui/masonry/src/react/types/list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ItemMeta, GenericItemT } from '@infinite-list/data-model';
import { ItemMeta, GenericItemT } from '@infinite-list/item-meta';

export type RenderItemInfo<ItemT extends GenericItemT = GenericItemT> = {
item: ItemT;
Expand Down
9 changes: 4 additions & 5 deletions ui/masonry/src/react/types/masonryList.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {
GenericItemT,
RecycleStateToken,
SpaceStateToken,
MasonryDimension,
MasonryDimensions as MasonryDimension,
MasonryColumnStateResults,
MasonryDimensionsModelProps,
} from '@infinite-list/data-model';
} from '@infinite-list/masonry-dimensions';
import { RecycleStateToken, SpaceStateToken } from '@infinite-list/strategies';
import { GenericItemT } from '@infinite-list/item-meta';
import { RenderItem } from './list';
import { ForwardedRef } from 'react';

Expand Down

0 comments on commit 714984f

Please sign in to comment.