@buoy-gg/floating-tools-core 7.0.40 → 7.0.41

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 (46) hide show
  1. package/lib/commonjs/icons/ask-buoy-icon.native.js +1 -0
  2. package/lib/commonjs/icons/bif-raster-icon.native.js +1 -0
  3. package/lib/commonjs/icons/console-icon.native.js +1 -0
  4. package/lib/commonjs/icons/generated/icon-data.g.js +69 -2
  5. package/lib/commonjs/icons/impersonate-icon.native.js +1 -0
  6. package/lib/commonjs/icons/jotai-icon.native.js +1 -0
  7. package/lib/commonjs/icons/notifications-icon.js +15 -0
  8. package/lib/commonjs/icons/query-icon.native.js +1 -0
  9. package/lib/commonjs/icons/redux-icon.native.js +1 -0
  10. package/lib/commonjs/icons/scenarios-icon.native.js +1 -0
  11. package/lib/commonjs/icons/sentry-icon.native.js +1 -0
  12. package/lib/commonjs/icons/time-machine-icon.native.js +1 -0
  13. package/lib/commonjs/icons/zustand-icon.native.js +1 -0
  14. package/lib/commonjs/index.js +17 -2
  15. package/lib/module/icons/ask-buoy-icon.native.js +1 -0
  16. package/lib/module/icons/bif-raster-icon.native.js +1 -0
  17. package/lib/module/icons/console-icon.native.js +1 -0
  18. package/lib/module/icons/generated/icon-data.g.js +67 -0
  19. package/lib/module/icons/impersonate-icon.native.js +1 -0
  20. package/lib/module/icons/jotai-icon.native.js +1 -0
  21. package/lib/module/icons/notifications-icon.js +6 -0
  22. package/lib/module/icons/query-icon.native.js +1 -0
  23. package/lib/module/icons/redux-icon.native.js +1 -0
  24. package/lib/module/icons/scenarios-icon.native.js +1 -0
  25. package/lib/module/icons/sentry-icon.native.js +1 -0
  26. package/lib/module/icons/time-machine-icon.native.js +1 -0
  27. package/lib/module/icons/zustand-icon.native.js +1 -0
  28. package/lib/module/index.js +2 -1
  29. package/lib/typescript/commonjs/icons/generated/icon-data.g.d.ts +2 -0
  30. package/lib/typescript/commonjs/icons/generated/icon-data.g.d.ts.map +1 -1
  31. package/lib/typescript/commonjs/icons/notifications-icon.d.ts +3 -0
  32. package/lib/typescript/commonjs/icons/notifications-icon.d.ts.map +1 -0
  33. package/lib/typescript/commonjs/index.d.ts +1 -0
  34. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  35. package/lib/typescript/module/icons/generated/icon-data.g.d.ts +2 -0
  36. package/lib/typescript/module/icons/generated/icon-data.g.d.ts.map +1 -1
  37. package/lib/typescript/module/icons/notifications-icon.d.ts +3 -0
  38. package/lib/typescript/module/icons/notifications-icon.d.ts.map +1 -0
  39. package/lib/typescript/module/index.d.ts +1 -0
  40. package/lib/typescript/module/index.d.ts.map +1 -1
  41. package/lib/web/chunks/chunk-2K2AYORW.mjs +493 -0
  42. package/lib/web/chunks/chunk-G4F6TBFE.mjs +488 -0
  43. package/lib/web/chunks/chunk-PUCCT3HF.mjs +2 -0
  44. package/lib/web/floating.mjs +2 -0
  45. package/lib/web/index.mjs +20 -0
  46. package/package.json +33 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/floating-tools-core",
3
- "version": "7.0.40",
3
+ "version": "7.0.41",
4
4
  "description": "Headless core for floating tools - shared logic for web and React Native",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -10,18 +10,26 @@
10
10
  "exports": {
11
11
  ".": {
12
12
  "react-native": "./lib/module/index.js",
13
+ "browser": {
14
+ "types": "./lib/typescript/module/index.d.ts",
15
+ "default": "./lib/web/index.mjs"
16
+ },
13
17
  "import": {
14
- "default": "./lib/module/index.js",
15
- "types": "./lib/typescript/module/index.d.ts"
18
+ "types": "./lib/typescript/module/index.d.ts",
19
+ "default": "./lib/module/index.js"
16
20
  },
17
21
  "require": {
18
- "default": "./lib/commonjs/index.js",
19
- "types": "./lib/typescript/commonjs/index.d.ts"
22
+ "types": "./lib/typescript/commonjs/index.d.ts",
23
+ "default": "./lib/commonjs/index.js"
20
24
  }
21
25
  },
22
26
  "./package.json": "./package.json",
23
27
  "./floating": {
24
28
  "react-native": "./lib/module/floating.js",
29
+ "browser": {
30
+ "types": "./lib/typescript/module/floating.d.ts",
31
+ "default": "./lib/web/floating.mjs"
32
+ },
25
33
  "import": {
26
34
  "types": "./lib/typescript/module/floating.d.ts",
27
35
  "default": "./lib/module/floating.js"
@@ -30,6 +38,14 @@
30
38
  "types": "./lib/typescript/commonjs/floating.d.ts",
31
39
  "default": "./lib/commonjs/floating.js"
32
40
  }
41
+ },
42
+ "./web": {
43
+ "types": "./lib/typescript/module/index.d.ts",
44
+ "default": "./lib/web/index.mjs"
45
+ },
46
+ "./web/floating": {
47
+ "types": "./lib/typescript/module/floating.d.ts",
48
+ "default": "./lib/web/floating.mjs"
33
49
  }
34
50
  },
35
51
  "files": [
@@ -40,11 +56,19 @@
40
56
  "sideEffects": false,
41
57
  "peerDependencies": {
42
58
  "react": "*",
43
- "react-native": "*"
59
+ "react-native": "*",
60
+ "react-native-web": "^0.21.0",
61
+ "react-dom": ">=18"
44
62
  },
45
63
  "peerDependenciesMeta": {
46
64
  "react-native": {
47
65
  "optional": true
66
+ },
67
+ "react-native-web": {
68
+ "optional": true
69
+ },
70
+ "react-dom": {
71
+ "optional": true
48
72
  }
49
73
  },
50
74
  "devDependencies": {
@@ -89,9 +113,10 @@
89
113
  }
90
114
  },
91
115
  "scripts": {
92
- "build": "bob build",
116
+ "build": "bob build && pnpm run build:web",
93
117
  "typecheck": "tsc --noEmit",
94
118
  "clean": "rimraf lib",
95
- "test": "pnpm run typecheck"
119
+ "test": "pnpm run typecheck",
120
+ "build:web": "node ../../scripts/build-web.mjs floating-tools-core"
96
121
  }
97
122
  }