@etsoo/react 1.8.21 → 1.8.23

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 (135) hide show
  1. package/__tests__/EventWatcher.tsx +2 -1
  2. package/__tests__/States.tsx +27 -29
  3. package/__tests__/tsconfig.json +5 -4
  4. package/lib/cjs/app/CoreConstants.js +17 -0
  5. package/lib/cjs/app/EventWatcher.js +45 -0
  6. package/lib/cjs/app/InputDialogProps.js +2 -0
  7. package/lib/cjs/app/ReactUtils.js +173 -0
  8. package/lib/cjs/components/DnDList.js +136 -0
  9. package/lib/cjs/components/DynamicRouter.js +39 -0
  10. package/lib/cjs/components/GridColumn.js +46 -0
  11. package/lib/cjs/components/GridLoader.js +49 -0
  12. package/lib/cjs/components/GridMethodRef.js +2 -0
  13. package/lib/cjs/components/ListItemReact.js +2 -0
  14. package/lib/cjs/components/ScrollRestoration.js +37 -0
  15. package/lib/cjs/components/ScrollerGrid.js +254 -0
  16. package/lib/cjs/components/ScrollerList.js +205 -0
  17. package/lib/cjs/custom/CustomFieldReact.js +2 -0
  18. package/lib/cjs/index.js +54 -0
  19. package/lib/cjs/notifier/Notifier.js +82 -0
  20. package/lib/cjs/states/CultureState.js +46 -0
  21. package/lib/cjs/states/IState.js +2 -0
  22. package/lib/cjs/states/PageState.js +46 -0
  23. package/lib/cjs/states/State.js +48 -0
  24. package/lib/cjs/states/UserState.js +80 -0
  25. package/lib/cjs/uses/useAsyncState.js +39 -0
  26. package/lib/cjs/uses/useCombinedRefs.js +29 -0
  27. package/lib/cjs/uses/useDelayedExecutor.js +17 -0
  28. package/lib/cjs/uses/useDimensions.js +98 -0
  29. package/lib/cjs/uses/useParamsEx.js +15 -0
  30. package/lib/cjs/uses/useRefs.js +17 -0
  31. package/lib/cjs/uses/useRequiredContext.js +19 -0
  32. package/lib/cjs/uses/useSearchParamsEx.js +19 -0
  33. package/lib/cjs/uses/useTimeout.js +29 -0
  34. package/lib/cjs/uses/useWindowScroll.js +53 -0
  35. package/lib/cjs/uses/useWindowSize.js +53 -0
  36. package/lib/mjs/app/CoreConstants.d.ts +13 -0
  37. package/lib/mjs/app/EventWatcher.d.ts +35 -0
  38. package/lib/mjs/app/InputDialogProps.d.ts +19 -0
  39. package/lib/mjs/app/ReactUtils.d.ts +41 -0
  40. package/lib/mjs/components/DnDList.d.ts +74 -0
  41. package/lib/mjs/components/DynamicRouter.d.ts +24 -0
  42. package/lib/mjs/components/GridColumn.d.ts +193 -0
  43. package/lib/mjs/components/GridLoader.d.ts +155 -0
  44. package/lib/mjs/components/GridMethodRef.d.ts +31 -0
  45. package/lib/mjs/components/ListItemReact.d.ts +6 -0
  46. package/lib/mjs/components/ScrollRestoration.d.ts +4 -0
  47. package/lib/mjs/components/ScrollerGrid.d.ts +112 -0
  48. package/lib/mjs/components/ScrollerList.d.ts +66 -0
  49. package/lib/mjs/custom/CustomFieldReact.d.ts +22 -0
  50. package/lib/mjs/index.d.ts +33 -0
  51. package/lib/mjs/notifier/Notifier.d.ts +143 -0
  52. package/lib/mjs/states/CultureState.d.ts +41 -0
  53. package/lib/mjs/states/IState.d.ts +49 -0
  54. package/lib/mjs/states/PageState.d.ts +61 -0
  55. package/lib/mjs/states/State.d.ts +18 -0
  56. package/lib/mjs/states/UserState.d.ts +56 -0
  57. package/lib/mjs/uses/useAsyncState.d.ts +11 -0
  58. package/lib/mjs/uses/useCombinedRefs.d.ts +6 -0
  59. package/lib/mjs/uses/useDelayedExecutor.d.ts +5 -0
  60. package/lib/mjs/uses/useDimensions.d.ts +17 -0
  61. package/lib/mjs/uses/useParamsEx.d.ts +6 -0
  62. package/lib/mjs/uses/useRefs.d.ts +8 -0
  63. package/lib/mjs/uses/useRequiredContext.d.ts +7 -0
  64. package/lib/mjs/uses/useSearchParamsEx.d.ts +6 -0
  65. package/lib/mjs/uses/useTimeout.d.ts +8 -0
  66. package/lib/mjs/uses/useWindowScroll.d.ts +12 -0
  67. package/lib/mjs/uses/useWindowSize.d.ts +10 -0
  68. package/package.json +21 -24
  69. package/tsconfig.cjs.json +20 -0
  70. package/tsconfig.json +3 -3
  71. package/vite.config.ts +11 -0
  72. /package/lib/{app → cjs/app}/CoreConstants.d.ts +0 -0
  73. /package/lib/{app → cjs/app}/EventWatcher.d.ts +0 -0
  74. /package/lib/{app → cjs/app}/InputDialogProps.d.ts +0 -0
  75. /package/lib/{app → cjs/app}/ReactUtils.d.ts +0 -0
  76. /package/lib/{components → cjs/components}/DnDList.d.ts +0 -0
  77. /package/lib/{components → cjs/components}/DynamicRouter.d.ts +0 -0
  78. /package/lib/{components → cjs/components}/GridColumn.d.ts +0 -0
  79. /package/lib/{components → cjs/components}/GridLoader.d.ts +0 -0
  80. /package/lib/{components → cjs/components}/GridMethodRef.d.ts +0 -0
  81. /package/lib/{components → cjs/components}/ListItemReact.d.ts +0 -0
  82. /package/lib/{components → cjs/components}/ScrollRestoration.d.ts +0 -0
  83. /package/lib/{components → cjs/components}/ScrollerGrid.d.ts +0 -0
  84. /package/lib/{components → cjs/components}/ScrollerList.d.ts +0 -0
  85. /package/lib/{custom → cjs/custom}/CustomFieldReact.d.ts +0 -0
  86. /package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
  87. /package/lib/{notifier → cjs/notifier}/Notifier.d.ts +0 -0
  88. /package/lib/{states → cjs/states}/CultureState.d.ts +0 -0
  89. /package/lib/{states → cjs/states}/IState.d.ts +0 -0
  90. /package/lib/{states → cjs/states}/PageState.d.ts +0 -0
  91. /package/lib/{states → cjs/states}/State.d.ts +0 -0
  92. /package/lib/{states → cjs/states}/UserState.d.ts +0 -0
  93. /package/lib/{uses → cjs/uses}/useAsyncState.d.ts +0 -0
  94. /package/lib/{uses → cjs/uses}/useCombinedRefs.d.ts +0 -0
  95. /package/lib/{uses → cjs/uses}/useDelayedExecutor.d.ts +0 -0
  96. /package/lib/{uses → cjs/uses}/useDimensions.d.ts +0 -0
  97. /package/lib/{uses → cjs/uses}/useParamsEx.d.ts +0 -0
  98. /package/lib/{uses → cjs/uses}/useRefs.d.ts +0 -0
  99. /package/lib/{uses → cjs/uses}/useRequiredContext.d.ts +0 -0
  100. /package/lib/{uses → cjs/uses}/useSearchParamsEx.d.ts +0 -0
  101. /package/lib/{uses → cjs/uses}/useTimeout.d.ts +0 -0
  102. /package/lib/{uses → cjs/uses}/useWindowScroll.d.ts +0 -0
  103. /package/lib/{uses → cjs/uses}/useWindowSize.d.ts +0 -0
  104. /package/lib/{app → mjs/app}/CoreConstants.js +0 -0
  105. /package/lib/{app → mjs/app}/EventWatcher.js +0 -0
  106. /package/lib/{app → mjs/app}/InputDialogProps.js +0 -0
  107. /package/lib/{app → mjs/app}/ReactUtils.js +0 -0
  108. /package/lib/{components → mjs/components}/DnDList.js +0 -0
  109. /package/lib/{components → mjs/components}/DynamicRouter.js +0 -0
  110. /package/lib/{components → mjs/components}/GridColumn.js +0 -0
  111. /package/lib/{components → mjs/components}/GridLoader.js +0 -0
  112. /package/lib/{components → mjs/components}/GridMethodRef.js +0 -0
  113. /package/lib/{components → mjs/components}/ListItemReact.js +0 -0
  114. /package/lib/{components → mjs/components}/ScrollRestoration.js +0 -0
  115. /package/lib/{components → mjs/components}/ScrollerGrid.js +0 -0
  116. /package/lib/{components → mjs/components}/ScrollerList.js +0 -0
  117. /package/lib/{custom → mjs/custom}/CustomFieldReact.js +0 -0
  118. /package/lib/{index.js → mjs/index.js} +0 -0
  119. /package/lib/{notifier → mjs/notifier}/Notifier.js +0 -0
  120. /package/lib/{states → mjs/states}/CultureState.js +0 -0
  121. /package/lib/{states → mjs/states}/IState.js +0 -0
  122. /package/lib/{states → mjs/states}/PageState.js +0 -0
  123. /package/lib/{states → mjs/states}/State.js +0 -0
  124. /package/lib/{states → mjs/states}/UserState.js +0 -0
  125. /package/lib/{uses → mjs/uses}/useAsyncState.js +0 -0
  126. /package/lib/{uses → mjs/uses}/useCombinedRefs.js +0 -0
  127. /package/lib/{uses → mjs/uses}/useDelayedExecutor.js +0 -0
  128. /package/lib/{uses → mjs/uses}/useDimensions.js +0 -0
  129. /package/lib/{uses → mjs/uses}/useParamsEx.js +0 -0
  130. /package/lib/{uses → mjs/uses}/useRefs.js +0 -0
  131. /package/lib/{uses → mjs/uses}/useRequiredContext.js +0 -0
  132. /package/lib/{uses → mjs/uses}/useSearchParamsEx.js +0 -0
  133. /package/lib/{uses → mjs/uses}/useTimeout.js +0 -0
  134. /package/lib/{uses → mjs/uses}/useWindowScroll.js +0 -0
  135. /package/lib/{uses → mjs/uses}/useWindowSize.js +0 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+ "target": "ES2020",
5
+ "allowJs": false,
6
+ "module": "NodeNext",
7
+ "moduleResolution": "NodeNext",
8
+ "resolveJsonModule": true,
9
+ "isolatedModules": true,
10
+ "outDir": "./lib/cjs",
11
+ "noEmit": false,
12
+ "declaration": true,
13
+ "strict": true,
14
+ "esModuleInterop": true,
15
+ "skipLibCheck": false,
16
+ "jsx": "react-jsx",
17
+ "forceConsistentCasingInFileNames": true
18
+ },
19
+ "include": ["src"]
20
+ }
package/tsconfig.json CHANGED
@@ -2,16 +2,16 @@
2
2
  "compilerOptions": {
3
3
  /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
4
  "target": "ES2020",
5
- "module": "ESNext",
5
+ "module": "ES2020",
6
6
  "moduleResolution": "bundler",
7
7
  "allowJs": false,
8
8
  "isolatedModules": true,
9
- "outDir": "./lib",
9
+ "outDir": "./lib/mjs",
10
10
  "noEmit": false,
11
11
  "declaration": true,
12
12
  "strict": true,
13
13
  "esModuleInterop": true,
14
- "skipLibCheck": true,
14
+ "skipLibCheck": false,
15
15
  "jsx": "react-jsx",
16
16
  "forceConsistentCasingInFileNames": true
17
17
  },
package/vite.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from "vitest/config";
2
+ import react from "@vitejs/plugin-react";
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ test: {
7
+ globals: true,
8
+ environment: "jsdom",
9
+ include: ["__tests__/**/*.ts(x)?"]
10
+ }
11
+ });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes