@tamagui/floating 1.15.13 → 1.15.15

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.
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.tsx"],
4
- "sourcesContent": ["export * from '@floating-ui/react-dom'\n"],
5
4
  "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,mCAAd;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.native.tsx"],
4
- "sourcesContent": ["import { ComputePositionReturn } from '@floating-ui/react-native'\nimport { RefObject } from 'react'\n\nexport * from '@floating-ui/react-native'\n\nexport declare type UseFloatingReturn = Data & {\n update: () => void\n offsetParent: (node: any) => void\n floating: (node: any) => void\n reference: (node: any) => void\n refs: {\n reference: RefObject<any>\n floating: RefObject<any>\n offsetParent: RefObject<any>\n setReference: (node: any) => void\n setFloating: (node: any) => void\n setOffsetParent: (node: any) => void\n }\n elements: {\n reference: any\n floating: any\n offsetParent: any\n }\n scrollProps: {\n onScroll: (event: {\n nativeEvent: {\n contentOffset: {\n x: number\n y: number\n }\n }\n }) => void\n scrollEventThrottle: 16\n }\n}\n\ntype Data = Omit<ComputePositionReturn, 'x' | 'y'> & {\n x: number | null\n y: number | null\n}\n"],
5
4
  "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAGA,oCAAc,sCAHd;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export * from './Floating'\nexport {\n useFloating,\n FloatingOverrideContext,\n type UseFloatingProps,\n type UseFloatingReturn,\n type UseFloatingFn,\n} from './useFloating'\n"],
5
4
  "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,uBAAd;AACA,yBAMO;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useFloating.tsx"],
4
- "sourcesContent": ["import { useContext, createContext } from 'react';\nimport * as Floating from './Floating'\n\nexport type UseFloatingFn = typeof Floating.useFloating;\n\ntype InferFloatingProps = UseFloatingFn extends (props: infer Props) => any\n ? Props\n : never\n\nexport type UseFloatingProps = InferFloatingProps & {\n sameScrollView?: boolean\n}\n\nexport type UseFloatingReturn = Floating.UseFloatingReturn & {\n context?: any\n getFloatingProps?: (props: { ref: any; [key: string]: any }) => any\n getReferenceProps?: (props: { ref: any; [key: string]: any }) => any\n}\n\nexport const FloatingOverrideContext = createContext<UseFloatingFn | null>(null)\n\nexport const useFloating = (props: UseFloatingProps):UseFloatingReturn => {\n const context = useContext(FloatingOverrideContext)\n return (context || Floating.useFloating)?.(props)\n}"],
5
4
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0C;AAC1C,eAA0B;AAkBnB,MAAM,8BAA0B,4BAAoC,IAAI;AAExE,MAAM,cAAc,CAAC,UAA8C;AArB1E;AAsBE,QAAM,cAAU,yBAAW,uBAAuB;AAClD,UAAQ,gBAAW,SAAS,gBAApB,mBAAmC;AAC7C;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.tsx"],
4
- "sourcesContent": ["export * from '@floating-ui/react-dom'\n"],
5
4
  "mappings": "AAAA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.tsx"],
4
- "sourcesContent": ["export * from '@floating-ui/react-dom'\n"],
5
4
  "mappings": "AAAA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.native.tsx"],
4
- "sourcesContent": ["import { ComputePositionReturn } from '@floating-ui/react-native'\nimport { RefObject } from 'react'\n\nexport * from '@floating-ui/react-native'\n\nexport declare type UseFloatingReturn = Data & {\n update: () => void\n offsetParent: (node: any) => void\n floating: (node: any) => void\n reference: (node: any) => void\n refs: {\n reference: RefObject<any>\n floating: RefObject<any>\n offsetParent: RefObject<any>\n setReference: (node: any) => void\n setFloating: (node: any) => void\n setOffsetParent: (node: any) => void\n }\n elements: {\n reference: any\n floating: any\n offsetParent: any\n }\n scrollProps: {\n onScroll: (event: {\n nativeEvent: {\n contentOffset: {\n x: number\n y: number\n }\n }\n }) => void\n scrollEventThrottle: 16\n }\n}\n\ntype Data = Omit<ComputePositionReturn, 'x' | 'y'> & {\n x: number | null\n y: number | null\n}\n"],
5
4
  "mappings": "AAGA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.native.tsx"],
4
- "sourcesContent": ["import { ComputePositionReturn } from '@floating-ui/react-native'\nimport { RefObject } from 'react'\n\nexport * from '@floating-ui/react-native'\n\nexport declare type UseFloatingReturn = Data & {\n update: () => void\n offsetParent: (node: any) => void\n floating: (node: any) => void\n reference: (node: any) => void\n refs: {\n reference: RefObject<any>\n floating: RefObject<any>\n offsetParent: RefObject<any>\n setReference: (node: any) => void\n setFloating: (node: any) => void\n setOffsetParent: (node: any) => void\n }\n elements: {\n reference: any\n floating: any\n offsetParent: any\n }\n scrollProps: {\n onScroll: (event: {\n nativeEvent: {\n contentOffset: {\n x: number\n y: number\n }\n }\n }) => void\n scrollEventThrottle: 16\n }\n}\n\ntype Data = Omit<ComputePositionReturn, 'x' | 'y'> & {\n x: number | null\n y: number | null\n}\n"],
5
4
  "mappings": "AAGA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export * from './Floating'\nexport {\n useFloating,\n FloatingOverrideContext,\n type UseFloatingProps,\n type UseFloatingReturn,\n type UseFloatingFn,\n} from './useFloating'\n"],
5
4
  "mappings": "AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,OAIK;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export * from './Floating'\nexport {\n useFloating,\n FloatingOverrideContext,\n type UseFloatingProps,\n type UseFloatingReturn,\n type UseFloatingFn,\n} from './useFloating'\n"],
5
4
  "mappings": "AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,OAIK;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useFloating.tsx"],
4
- "sourcesContent": ["import { useContext, createContext } from 'react';\nimport * as Floating from './Floating'\n\nexport type UseFloatingFn = typeof Floating.useFloating;\n\ntype InferFloatingProps = UseFloatingFn extends (props: infer Props) => any\n ? Props\n : never\n\nexport type UseFloatingProps = InferFloatingProps & {\n sameScrollView?: boolean\n}\n\nexport type UseFloatingReturn = Floating.UseFloatingReturn & {\n context?: any\n getFloatingProps?: (props: { ref: any; [key: string]: any }) => any\n getReferenceProps?: (props: { ref: any; [key: string]: any }) => any\n}\n\nexport const FloatingOverrideContext = createContext<UseFloatingFn | null>(null)\n\nexport const useFloating = (props: UseFloatingProps):UseFloatingReturn => {\n const context = useContext(FloatingOverrideContext)\n return (context || Floating.useFloating)?.(props)\n}"],
5
4
  "mappings": "AAAA,SAAS,YAAY,qBAAqB;AAC1C,YAAY,cAAc;AAkBnB,MAAM,0BAA0B,cAAoC,IAAI;AAExE,MAAM,cAAc,CAAC,UAA8C;AArB1E;AAsBE,QAAM,UAAU,WAAW,uBAAuB;AAClD,UAAQ,gBAAW,SAAS,gBAApB,mBAAmC;AAC7C;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useFloating.tsx"],
4
- "sourcesContent": ["import { useContext, createContext } from 'react';\nimport * as Floating from './Floating'\n\nexport type UseFloatingFn = typeof Floating.useFloating;\n\ntype InferFloatingProps = UseFloatingFn extends (props: infer Props) => any\n ? Props\n : never\n\nexport type UseFloatingProps = InferFloatingProps & {\n sameScrollView?: boolean\n}\n\nexport type UseFloatingReturn = Floating.UseFloatingReturn & {\n context?: any\n getFloatingProps?: (props: { ref: any; [key: string]: any }) => any\n getReferenceProps?: (props: { ref: any; [key: string]: any }) => any\n}\n\nexport const FloatingOverrideContext = createContext<UseFloatingFn | null>(null)\n\nexport const useFloating = (props: UseFloatingProps):UseFloatingReturn => {\n const context = useContext(FloatingOverrideContext)\n return (context || Floating.useFloating)?.(props)\n}"],
5
4
  "mappings": "AAAA,SAAS,YAAY,qBAAqB;AAC1C,YAAY,cAAc;AAkBnB,MAAM,0BAA0B,cAAoC,IAAI;AAExE,MAAM,cAAc,CAAC,UAA8C;AArB1E;AAsBE,QAAM,UAAU,WAAW,uBAAuB;AAClD,UAAQ,gBAAW,SAAS,gBAApB,mBAAmC;AAC7C;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.tsx"],
4
- "sourcesContent": ["export * from '@floating-ui/react-dom'\n"],
5
4
  "mappings": "AAAA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.tsx"],
4
- "sourcesContent": ["export * from '@floating-ui/react-dom'\n"],
5
4
  "mappings": "AAAA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.native.tsx"],
4
- "sourcesContent": ["import { ComputePositionReturn } from '@floating-ui/react-native'\nimport { RefObject } from 'react'\n\nexport * from '@floating-ui/react-native'\n\nexport declare type UseFloatingReturn = Data & {\n update: () => void\n offsetParent: (node: any) => void\n floating: (node: any) => void\n reference: (node: any) => void\n refs: {\n reference: RefObject<any>\n floating: RefObject<any>\n offsetParent: RefObject<any>\n setReference: (node: any) => void\n setFloating: (node: any) => void\n setOffsetParent: (node: any) => void\n }\n elements: {\n reference: any\n floating: any\n offsetParent: any\n }\n scrollProps: {\n onScroll: (event: {\n nativeEvent: {\n contentOffset: {\n x: number\n y: number\n }\n }\n }) => void\n scrollEventThrottle: 16\n }\n}\n\ntype Data = Omit<ComputePositionReturn, 'x' | 'y'> & {\n x: number | null\n y: number | null\n}\n"],
5
4
  "mappings": "AAGA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Floating.native.tsx"],
4
- "sourcesContent": ["import { ComputePositionReturn } from '@floating-ui/react-native'\nimport { RefObject } from 'react'\n\nexport * from '@floating-ui/react-native'\n\nexport declare type UseFloatingReturn = Data & {\n update: () => void\n offsetParent: (node: any) => void\n floating: (node: any) => void\n reference: (node: any) => void\n refs: {\n reference: RefObject<any>\n floating: RefObject<any>\n offsetParent: RefObject<any>\n setReference: (node: any) => void\n setFloating: (node: any) => void\n setOffsetParent: (node: any) => void\n }\n elements: {\n reference: any\n floating: any\n offsetParent: any\n }\n scrollProps: {\n onScroll: (event: {\n nativeEvent: {\n contentOffset: {\n x: number\n y: number\n }\n }\n }) => void\n scrollEventThrottle: 16\n }\n}\n\ntype Data = Omit<ComputePositionReturn, 'x' | 'y'> & {\n x: number | null\n y: number | null\n}\n"],
5
4
  "mappings": "AAGA,cAAc;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export * from './Floating'\nexport {\n useFloating,\n FloatingOverrideContext,\n type UseFloatingProps,\n type UseFloatingReturn,\n type UseFloatingFn,\n} from './useFloating'\n"],
5
4
  "mappings": "AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,OAIK;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export * from './Floating'\nexport {\n useFloating,\n FloatingOverrideContext,\n type UseFloatingProps,\n type UseFloatingReturn,\n type UseFloatingFn,\n} from './useFloating'\n"],
5
4
  "mappings": "AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,OAIK;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useFloating.tsx"],
4
- "sourcesContent": ["import { useContext, createContext } from 'react';\nimport * as Floating from './Floating'\n\nexport type UseFloatingFn = typeof Floating.useFloating;\n\ntype InferFloatingProps = UseFloatingFn extends (props: infer Props) => any\n ? Props\n : never\n\nexport type UseFloatingProps = InferFloatingProps & {\n sameScrollView?: boolean\n}\n\nexport type UseFloatingReturn = Floating.UseFloatingReturn & {\n context?: any\n getFloatingProps?: (props: { ref: any; [key: string]: any }) => any\n getReferenceProps?: (props: { ref: any; [key: string]: any }) => any\n}\n\nexport const FloatingOverrideContext = createContext<UseFloatingFn | null>(null)\n\nexport const useFloating = (props: UseFloatingProps):UseFloatingReturn => {\n const context = useContext(FloatingOverrideContext)\n return (context || Floating.useFloating)?.(props)\n}"],
5
4
  "mappings": "AAAA,SAAS,YAAY,qBAAqB;AAC1C,YAAY,cAAc;AAkBnB,MAAM,0BAA0B,cAAoC,IAAI;AAExE,MAAM,cAAc,CAAC,UAA8C;AACxE,QAAM,UAAU,WAAW,uBAAuB;AAClD,UAAQ,WAAW,SAAS,eAAe,KAAK;AAClD;",
6
5
  "names": []
7
6
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useFloating.tsx"],
4
- "sourcesContent": ["import { useContext, createContext } from 'react';\nimport * as Floating from './Floating'\n\nexport type UseFloatingFn = typeof Floating.useFloating;\n\ntype InferFloatingProps = UseFloatingFn extends (props: infer Props) => any\n ? Props\n : never\n\nexport type UseFloatingProps = InferFloatingProps & {\n sameScrollView?: boolean\n}\n\nexport type UseFloatingReturn = Floating.UseFloatingReturn & {\n context?: any\n getFloatingProps?: (props: { ref: any; [key: string]: any }) => any\n getReferenceProps?: (props: { ref: any; [key: string]: any }) => any\n}\n\nexport const FloatingOverrideContext = createContext<UseFloatingFn | null>(null)\n\nexport const useFloating = (props: UseFloatingProps):UseFloatingReturn => {\n const context = useContext(FloatingOverrideContext)\n return (context || Floating.useFloating)?.(props)\n}"],
5
4
  "mappings": "AAAA,SAAS,YAAY,qBAAqB;AAC1C,YAAY,cAAc;AAkBnB,MAAM,0BAA0B,cAAoC,IAAI;AAExE,MAAM,cAAc,CAAC,UAA8C;AACxE,QAAM,UAAU,WAAW,uBAAuB;AAClD,UAAQ,WAAW,SAAS,eAAe,KAAK;AAClD;",
6
5
  "names": []
7
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/floating",
3
- "version": "1.15.13",
3
+ "version": "1.15.15",
4
4
  "sideEffects": true,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "@floating-ui/react-native": "^0.9.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@tamagui/build": "1.15.13",
42
+ "@tamagui/build": "1.15.15",
43
43
  "react": "^18.2.0",
44
44
  "react-native": "^0.71.4"
45
45
  }