Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@expo/metro-runtime": "~56.0.13",
"@react-native-community/netinfo": "12.0.1",
"@shopify/flash-list": "2.0.2",
"@shopify/flash-list": "2.3.1",
"@shopify/react-native-skia": "2.6.2",
"@tailwindcss/postcss": "^4.3.0",
"@wcpos/components": "workspace:*",
Expand Down Expand Up @@ -87,7 +87,7 @@
"react-native-worklets": "~0.8.3",
"tailwindcss": "^4.3.0",
"uniwind": "npm:uniwind-pro@1.3.0",
"victory-native": "^41.20.3"
"victory-native": "^41.24.0"
},
"devDependencies": {
"@babel/core": "^7.29.7",
Expand Down
2 changes: 1 addition & 1 deletion apps/main/public/opfs.worker.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/template-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"check:gallery-previews": "tsx --tsconfig tsconfig.json scripts/generate-gallery-previews.ts --check"
},
"dependencies": {
"@codemirror/autocomplete": "^6.20.2",
"@codemirror/autocomplete": "^6.20.3",
"@codemirror/commands": "^6.10.3",
"@codemirror/lang-html": "^6.4.11",
"@codemirror/lang-php": "^6.0.2",
Expand All @@ -26,7 +26,7 @@
"@wcpos/receipt-renderer": "workspace:*",
"react": "19.2.3",
"react-dom": "19.2.3",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"vite": "8.0.16",
"zod": "^4.4.3"
},
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Root Jest config for monorepo - enables Cursor's Jest extension to run tests from any package
module.exports = {
// Limit workers to prevent resource exhaustion when multiple sessions run tests
maxWorkers: 2,
maxWorkers: 1,
projects: [
'<rootDir>/packages/core',
'<rootDir>/packages/components',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"expo": "~56.0.8"
},
"dependencies": {
"turbo": "^2.9.14",
"typescript": "^5.9.3"
"turbo": "^2.9.16",
"typescript": "^6.0.3"
}
}
10 changes: 5 additions & 5 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.8.1",
"@atlaskit/pragmatic-drag-and-drop-flourish": "^2.0.15",
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.2.0",
"@mgcrea/react-native-dnd": "^2.5.3",
"@rn-primitives/accordion": "^1.4.0",
"@rn-primitives/alert-dialog": "^1.4.0",
Expand Down Expand Up @@ -129,16 +129,16 @@
"@rn-primitives/types": "^1.4.0",
"@rn-primitives/utils": "^1.4.0",
"@tanstack/react-table": "^8.21.3",
"@tanstack/react-virtual": "^3.13.26",
"@uiw/react-json-view": "2.0.0-alpha.32",
"@tanstack/react-virtual": "^3.14.2",
"@uiw/react-json-view": "2.0.0-alpha.43",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.1.1",
"date-fns": "^4.3.0",
"date-fns": "^4.4.0",
"html-entities": "2.6.0",
"localized-address-format": "1.3.3",
"lodash": "^4.18.1",
"react-hook-form": "^7.76.1",
"react-hook-form": "^7.77.0",
"react-native-calendars": "^1.1314.0",
"react-native-keyboard-controller": "1.21.6",
"react-native-resizable-panels": "^0.0.3",
Expand Down
28 changes: 16 additions & 12 deletions packages/components/src/virtualized-list/virtualized-list.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ItemContext, RootContext, useItemContext, useRootContext } from './util
import { useOnEndReached } from './utils/use-on-end-reached';

import type { ReactVirtualizerOptions } from '@tanstack/react-virtual';
import type { PartialKeys, VirtualItem, Virtualizer } from '@tanstack/virtual-core';
import type { PartialKeys, VirtualItem } from '@tanstack/virtual-core';
import type { ItemContext as BaseItemContext, ItemProps, ListProps, RootProps } from './types';

/**
Expand All @@ -27,13 +27,6 @@ import type { ItemContext as BaseItemContext, ItemProps, ListProps, RootProps }
* </VirtualizedList.Root>
*/

// Web-specific extended context that includes virtualizer data
interface WebItemContext<T> extends BaseItemContext<T> {
rowVirtualizer: Virtualizer<HTMLDivElement, Element>;
vItem: VirtualItem;
horizontal: boolean;
}

/**
* React Compiler breaks @tanstack/react-virtual
* https://github.com/TanStack/virtual/issues/736
Expand All @@ -48,6 +41,13 @@ function useVirtualWrapper(options: VirtualizerInput) {
return { ...useVirtualizer(options) };
}

// Web-specific extended context that includes virtualizer data
interface WebItemContext<T> extends BaseItemContext<T> {
rowVirtualizer: ReturnType<typeof useVirtualWrapper>;
vItem: VirtualItem;
horizontal: boolean;
}

/**
* Root - The scroll container for virtualized content.
* Height is automatically set by List based on content size.
Expand Down Expand Up @@ -204,12 +204,16 @@ function List<T>({
// Include extraDataKey in the key to force re-render when extraData changes
const baseKey = keyExtractor ? keyExtractor(item, vItem.index) : String(vItem.key);
const key = extraDataKey ? `${baseKey}-${extraDataKey}` : baseKey;
const itemContext: WebItemContext<T> = {
item,
index: vItem.index,
rowVirtualizer,
vItem,
horizontal: horizontal ?? false,
};

return (
<ItemContext.Provider
key={key}
value={{ item, index: vItem.index, rowVirtualizer, vItem } as WebItemContext<T>}
>
<ItemContext.Provider key={key} value={itemContext}>
{renderItem({ item, index: vItem.index, target: 'Cell' })}
</ItemContext.Provider>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/core/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
displayName: '@wcpos/core',
preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', { tsconfig: 'tsconfig.jest.json' }],
'^.+\\.(ts|tsx)$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.jest.json' }],
},
testRegex: TEST_REGEX,
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
Expand Down
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@
"@date-fns/utc": "^2.1.1",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "^5.4.0",
"@novu/js": "^3.16.0",
"@novu/js": "^3.17.0",
"@tanstack/react-table": "^8.21.3",
"@wcpos/components": "workspace:*",
"@wcpos/database": "workspace:*",
"@wcpos/hooks": "workspace:*",
"@wcpos/printer": "workspace:*",
"@wcpos/query": "workspace:*",
"@wcpos/utils": "workspace:*",
"@widgetbot/react-embed": "^1.11.2",
"date-fns": "4.3.0",
"@widgetbot/react-embed": "^1.11.3",
"date-fns": "4.4.0",
"html-entities": "2.6.0",
"i18next": "^26.2.0",
"i18next": "^26.3.1",
"lodash": "^4.18.1",
"mustache": "^4.2.0",
"observable-hooks": "4.2.4",
Expand Down Expand Up @@ -128,6 +128,6 @@
"react-native-screens": "4.25.2",
"react-native-svg": "15.15.4",
"ts-jest": "^29.4.11",
"victory-native": "^41.20.3"
"victory-native": "^41.24.0"
}
}
6 changes: 4 additions & 2 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strict": true
"strict": true,
"rootDir": "../..",
"types": ["jest", "node"]
},
"include": [
"src/**/*"
]
}
}
2 changes: 1 addition & 1 deletion packages/database/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
tsconfig: '<rootDir>/tsconfig.json',
isolatedModules: true,
},
],
Expand Down
4 changes: 2 additions & 2 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"fast-text-encoding": "^1.0.6",
"lodash": "^4.18.1",
"observable-hooks": "4.2.4",
"rxdb": "17.2.0",
"rxdb": "17.3.0",
"rxdb-old": "npm:rxdb@16.21.1",
"rxdb-premium": "17.2.0",
"rxdb-premium": "17.3.0",
"rxdb-premium-old": "npm:rxdb-premium@16.21.1",
"rxjs": "7.8.2",
"uuid": "^14.0.0"
Expand Down
6 changes: 4 additions & 2 deletions packages/database/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strict": true
"strict": true,
"rootDir": "../..",
"types": ["jest"]
},
"include": [
"src/**/*"
]
}
}
2 changes: 1 addition & 1 deletion packages/hooks/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
tsconfig: '<rootDir>/tsconfig.json',
isolatedModules: true,
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"react-native-reanimated": "~4.3.1"
},
"dependencies": {
"axios": "^1.16.1",
"axios": "^1.17.0",
"bottleneck": "^2.19.5",
"lodash": "^4.18.1",
"observable-hooks": "4.2.4",
Expand Down
4 changes: 3 additions & 1 deletion packages/hooks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strict": true
"strict": true,
"rootDir": "../..",
"types": ["jest", "node"]
},
"include": [
"src/**/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"lodash": "^4.18.1",
"observable-hooks": "^4.2.4",
"rxdb": "17.2.0",
"rxdb": "17.3.0",
"rxjs": "7.8.2",
"uuid": "^14.0.0"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"noEmit": true,
"rootDir": "../..",
"isolatedModules": true,
"ignoreDeprecations": "6.0",
"types": ["jest"],
"baseUrl": ".",
"paths": {
"@wcpos/utils/*": ["../utils/src/*"],
Expand Down
2 changes: 1 addition & 1 deletion packages/receipt-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@point-of-sale/receipt-printer-encoder": "^3.0.3",
"@xmldom/xmldom": "0.9.10",
"bwip-js": "4.11.1",
"dompurify": "^3.4.5",
"dompurify": "^3.4.8",
"iconv-lite": "0.7.2",
"mustache": "^4.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: 'tsconfig.json',
tsconfig: '<rootDir>/tsconfig.json',
isolatedModules: true,
},
],
Expand Down
4 changes: 3 additions & 1 deletion packages/utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"strict": true
"strict": true,
"rootDir": "../..",
"types": ["jest", "node"]
},
"include": [
"src/**/*"
Expand Down
Loading
Loading