@hanzogui/popper 7.3.1 → 8.0.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzogui/popper",
3
- "version": "7.3.1",
3
+ "version": "8.0.0",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -8,9 +8,7 @@
8
8
  "dist"
9
9
  ],
10
10
  "type": "module",
11
- "sideEffects": [
12
- "*.css"
13
- ],
11
+ "sideEffects": false,
14
12
  "main": "dist/cjs",
15
13
  "module": "dist/esm",
16
14
  "types": "./types/index.d.ts",
@@ -30,38 +28,28 @@
30
28
  "access": "public"
31
29
  },
32
30
  "scripts": {
33
- "build": "gui-build",
34
- "watch": "gui-build --watch",
35
- "clean": "gui-build clean",
36
- "clean:build": "gui-build clean:build"
31
+ "build": "hanzogui-build",
32
+ "watch": "hanzogui-build --watch",
33
+ "clean": "hanzogui-build clean",
34
+ "clean:build": "hanzogui-build clean:build"
37
35
  },
38
36
  "dependencies": {
39
- "@hanzogui/compose-refs": "7.3.1",
40
- "@hanzogui/constants": "7.3.1",
41
- "@hanzogui/core": "7.3.1",
42
- "@hanzogui/floating": "7.3.1",
43
- "@hanzogui/get-token": "7.3.1",
44
- "@hanzogui/stacks": "7.3.1",
45
- "@hanzogui/start-transition": "7.3.1",
46
- "@hanzogui/use-controllable-state": "7.3.1",
47
- "react-dom": "^19.1.0",
48
- "react-native-web": "^0.21.0"
37
+ "@hanzogui/compose-refs": "8.0.0",
38
+ "@hanzogui/constants": "8.0.0",
39
+ "@hanzogui/core": "8.0.0",
40
+ "@hanzogui/floating": "8.0.0",
41
+ "@hanzogui/get-token": "8.0.0",
42
+ "@hanzogui/stacks": "8.0.0",
43
+ "@hanzogui/start-transition": "8.0.0",
44
+ "@hanzogui/use-controllable-state": "8.0.0"
49
45
  },
50
46
  "devDependencies": {
51
- "@hanzogui/build": "7.3.1",
47
+ "@hanzogui/build": "8.0.0",
52
48
  "react": ">=19",
53
49
  "react-native": "0.83.2"
54
50
  },
55
51
  "peerDependencies": {
56
- "react": ">=19",
57
- "react-native": "*"
52
+ "react": ">=19"
58
53
  },
59
- "module:jsx": "dist/jsx",
60
- "license": "BSD-3-Clause",
61
- "author": "Hanzo AI <dev@hanzo.ai>",
62
- "peerDependenciesMeta": {
63
- "react-native": {
64
- "optional": true
65
- }
66
- }
54
+ "module:jsx": "dist/jsx"
67
55
  }
package/src/Popper.tsx CHANGED
@@ -262,10 +262,10 @@ const transformOriginMiddleware = (options: {
262
262
  },
263
263
  })
264
264
 
265
- // replaces floating-ui's autoUpdate with gui's batched IO measurement loop
265
+ // replaces floating-ui's autoUpdate with hanzogui's batched IO measurement loop
266
266
  // keeps scroll/resize listeners for immediate response, but replaces per-element
267
267
  // ResizeObserver + IntersectionObserver with the shared layoutOnAnimationFrame loop
268
- function guiAutoUpdate(
268
+ function hanzoguiAutoUpdate(
269
269
  reference: ReferenceType,
270
270
  floating: HTMLElement,
271
271
  update: () => void
@@ -286,7 +286,7 @@ function guiAutoUpdate(
286
286
  },
287
287
  ]
288
288
 
289
- // watch reference element via gui's IO measurement loop
289
+ // watch reference element via hanzogui's IO measurement loop
290
290
  // only watch reference, NOT floating — watching floating causes loops
291
291
  // (computePosition sets position → rect changes → update → repeat)
292
292
  if (reference instanceof HTMLElement) {
@@ -388,19 +388,19 @@ export function Popper(props: PopperProps) {
388
388
  const { width: anchorWidth, height: anchorHeight } = rects.reference
389
389
  const contentStyle = elements.floating.style
390
390
  contentStyle.setProperty(
391
- '--gui-popper-available-width',
391
+ '--hanzogui-popper-available-width',
392
392
  `${availableWidth}px`
393
393
  )
394
394
  contentStyle.setProperty(
395
- '--gui-popper-available-height',
395
+ '--hanzogui-popper-available-height',
396
396
  `${availableHeight}px`
397
397
  )
398
398
  contentStyle.setProperty(
399
- '--gui-popper-anchor-width',
399
+ '--hanzogui-popper-anchor-width',
400
400
  `${anchorWidth}px`
401
401
  )
402
402
  contentStyle.setProperty(
403
- '--gui-popper-anchor-height',
403
+ '--hanzogui-popper-anchor-height',
404
404
  `${anchorHeight}px`
405
405
  )
406
406
  },
@@ -421,7 +421,7 @@ export function Popper(props: PopperProps) {
421
421
  strategy,
422
422
  placement,
423
423
  sameScrollView: false, // this only takes effect on native
424
- whileElementsMounted: !isOpen ? undefined : guiAutoUpdate,
424
+ whileElementsMounted: !isOpen ? undefined : hanzoguiAutoUpdate,
425
425
  platform:
426
426
  (disableRTL ?? setupOptions.disableRTL)
427
427
  ? {
@@ -554,7 +554,7 @@ export const PopperAnchor = YStack.styleable<PopperAnchorExtraProps>(
554
554
 
555
555
  React.useEffect(() => {
556
556
  if (virtualRef) {
557
- refs?.setReference(virtualRef.current)
557
+ refs.setReference(virtualRef.current)
558
558
  // recompute position after setting virtual reference
559
559
  update()
560
560
  }
@@ -570,7 +570,7 @@ export const PopperAnchor = YStack.styleable<PopperAnchorExtraProps>(
570
570
  const safeSetReference = React.useCallback(
571
571
  (node: any) => {
572
572
  startTransition(() => {
573
- refs?.setReference(node)
573
+ refs.setReference(node)
574
574
  })
575
575
  },
576
576
  // it was refs.setRefernce but its stable and refs is undefined on server
@@ -604,7 +604,7 @@ export const PopperAnchor = YStack.styleable<PopperAnchorExtraProps>(
604
604
  onMouseEnter: (e) => {
605
605
  const el = (e.currentTarget ?? ref.current) as HTMLElement | null
606
606
  if (el instanceof HTMLElement) {
607
- flushSync(() => refs?.setReference(el))
607
+ flushSync(() => refs.setReference(el))
608
608
  update()
609
609
 
610
610
  if (!refProps) return
@@ -661,6 +661,14 @@ export const PopperContentFrame = styled(YStack, {
661
661
 
662
662
  export const PopperContent = React.forwardRef<PopperContentElement, PopperContentProps>(
663
663
  function PopperContent(props, forwardedRef) {
664
+ // detect controlled animatePosition before destructuring. when the user passes
665
+ // animatePosition (even with a currently-falsy value like undefined or false),
666
+ // toggling it later must not flip 'transition' presence on the inner View - that
667
+ // would change useComponentState's hasAnimationProp mid-life, conditionally calling
668
+ // useAnimations/usePresence and tripping React's "Should have a queue" invariant.
669
+ const isAnimatePosControlled =
670
+ 'animatePosition' in props || 'enableAnimationForPositionChange' in props
671
+
664
672
  const {
665
673
  scope,
666
674
  animatePosition,
@@ -801,11 +809,15 @@ export const PopperContent = React.forwardRef<PopperContentElement, PopperConten
801
809
  left: 0,
802
810
  position: strategy,
803
811
  opacity: hide ? 0 : 1,
804
- ...(animatePos && {
805
- transition: rest.transition,
812
+ // when animatePosition is controlled by the user, always emit these keys with
813
+ // safe no-op values (transition: undefined, animateOnly: []) so the inner
814
+ // View's hook count stays stable across animatePos toggles. animatePresence
815
+ // must always be false here too, to short-circuit usePresence consistently.
816
+ ...(isAnimatePosControlled && {
817
+ transition: animatePos ? rest.transition : undefined,
806
818
  // animateOnly: [] turns off transitions while keeping styles applied,
807
819
  // letting the element move to its position silently before animations start
808
- animateOnly: disableAnimation ? [] : rest.animateOnly,
820
+ animateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],
809
821
  animatePresence: false,
810
822
  }),
811
823
  }
@@ -921,6 +933,8 @@ type Sides = keyof typeof opposites
921
933
 
922
934
  export const PopperArrow = React.forwardRef<GuiElement, PopperArrowProps>(
923
935
  function PopperArrow(propsIn, forwardedRef) {
936
+ // see PopperContent for why we detect controlled animatePosition before destructuring
937
+ const isAnimatePosControlled = 'animatePosition' in propsIn
924
938
  const { scope, animatePosition, transition, ...rest } = propsIn
925
939
  const { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest
926
940
 
@@ -985,9 +999,9 @@ export const PopperArrow = React.forwardRef<GuiElement, PopperArrowProps>(
985
999
  ref={refs}
986
1000
  {...arrowStyle}
987
1001
  {...(!arrowPositioned && { opacity: 0 })}
988
- {...(animatePosition && {
989
- transition,
990
- animateOnly: ['transform'],
1002
+ {...(isAnimatePosControlled && {
1003
+ transition: animatePosition ? transition : undefined,
1004
+ animateOnly: animatePosition ? ['transform'] : [],
991
1005
  animatePresence: false,
992
1006
  })}
993
1007
  >
package/types/Popper.d.ts CHANGED
@@ -41,7 +41,7 @@ export declare const usePopperContextSlow: (scope?: string) => PopperContextSlow
41
41
  export declare const PopperProvider: ({ scope, children, ...context }: PopperContextValue & {
42
42
  scope?: string;
43
43
  children?: React.ReactNode;
44
- }) => React.JSX.Element;
44
+ }) => import("react/jsx-runtime").JSX.Element;
45
45
  export type PopperProps = {
46
46
  /**
47
47
  * Popper is a component used by other components to create interfaces, so scope is required
@@ -91,16 +91,16 @@ export type PopperSetupOptions = {
91
91
  disableRTL?: boolean;
92
92
  };
93
93
  export declare function setupPopper(options?: PopperSetupOptions): void;
94
- export declare function Popper(props: PopperProps): React.JSX.Element;
94
+ export declare function Popper(props: PopperProps): import("react/jsx-runtime").JSX.Element;
95
95
  export type PopperAnchorExtraProps = {
96
96
  virtualRef?: React.RefObject<any>;
97
97
  scope?: string;
98
98
  };
99
99
  export type PopperAnchorProps = YStackProps;
100
- export declare const PopperAnchor: import("@hanzogui/core").GuiComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
100
+ export declare const PopperAnchor: import("@hanzogui/core").GuiComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
101
101
  elevation?: number | SizeTokens | undefined;
102
102
  fullscreen?: boolean | undefined;
103
- }>, keyof PopperAnchorExtraProps> & PopperAnchorExtraProps, GuiElement, import("@hanzogui/core").RNViewNonStyleProps & PopperAnchorExtraProps, import("@hanzogui/core").StackStyleBase, {
103
+ }>, keyof PopperAnchorExtraProps> & PopperAnchorExtraProps, GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & PopperAnchorExtraProps, import("@hanzogui/core").StackStyleBase, {
104
104
  elevation?: number | SizeTokens | undefined;
105
105
  fullscreen?: boolean | undefined;
106
106
  }, import("@hanzogui/core").StaticConfigPublic>;
@@ -114,13 +114,13 @@ export type PopperContentProps = SizableStackProps & {
114
114
  enableAnimationForPositionChange?: boolean | 'even-when-repositioning';
115
115
  passThrough?: boolean;
116
116
  };
117
- export declare const PopperContentFrame: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, GuiElement, import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
117
+ export declare const PopperContentFrame: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
118
118
  size?: SizeTokens | undefined;
119
119
  unstyled?: boolean | undefined;
120
120
  elevation?: number | SizeTokens | undefined;
121
121
  fullscreen?: boolean | undefined;
122
122
  }, import("@hanzogui/core").StaticConfigPublic>;
123
- export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").RNViewNonStyleProps, "size" | "unstyled" | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "transparent" | "circular" | "elevate" | "bordered" | "chromeless"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
123
+ export declare const PopperContent: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").RNGuiViewNonStyleProps, "size" | "unstyled" | "elevation" | keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "transparent" | "circular" | "elevate" | "bordered" | "chromeless"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & {
124
124
  size?: import("@hanzogui/core").SizeTokens | undefined;
125
125
  unstyled?: boolean | undefined;
126
126
  elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
@@ -170,12 +170,12 @@ export type PopperArrowExtraProps = {
170
170
  animatePosition?: boolean;
171
171
  };
172
172
  export type PopperArrowProps = YStackProps & PopperArrowExtraProps;
173
- export declare const PopperArrowFrame: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, GuiElement, import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
173
+ export declare const PopperArrowFrame: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
174
174
  unstyled?: boolean | undefined;
175
175
  elevation?: number | SizeTokens | undefined;
176
176
  fullscreen?: boolean | undefined;
177
177
  }, import("@hanzogui/core").StaticConfigPublic>;
178
- export declare const PopperArrow: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
178
+ export declare const PopperArrow: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
179
179
  elevation?: number | SizeTokens | undefined;
180
180
  fullscreen?: boolean | undefined;
181
181
  }>, keyof import("@hanzogui/stacks").StackVariants> & import("@hanzogui/stacks").StackVariants & PopperArrowExtraProps & React.RefAttributes<GuiElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../src/Popper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAa,MAAM,gBAAgB,CAAA;AASvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD,OAAO,KAAK,EACV,MAAM,EAEN,aAAa,EACb,SAAS,EAGT,WAAW,EACX,QAAQ,EACR,iBAAiB,EAClB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAEL,IAAI,EAIJ,KAAK,EAGN,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGtE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,KAAK,UAAU,GAAG,OAAO,KAAK,SAAS,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK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ACjC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;+CAyFxB,CAAA;AAQD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,yBAAyB,CAAA;IACrD,gDAAgD;IAChD,gCAAgC,CAAC,EAAE,OAAO,GAAG,yBAAyB,CAAA;IACtE,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;+CAiB7B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA7BhB,MAAM;IACd;;OAEG;sBACe,OAAO,GAAG,yBAAyB;IACrD,gDAAgD;uCACb,OAAO,GAAG,yBAAyB;kBACxD,OAAO;oCAoOtB,CAAA;AAMD,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,qBAAqB,CAAA;AAElE,eAAO,MAAM,gBAAgB;;;;+CAgB3B,CAAA;AAgCF,eAAO,MAAM,WAAW;;;yJAoGvB,CAAA"}
package/LICENSE DELETED
@@ -1,42 +0,0 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2026-present, Hanzo AI, Inc.
4
-
5
- Portions of this software are derived from upstream code originally licensed under
6
- the MIT License, with the following copyright notices retained per its terms:
7
-
8
- Copyright (c) 2020 Nate Wienert
9
- Copyright (c) 2015-present, Nicolas Gallagher.
10
- Copyright (c) 2015-present, Facebook, Inc.
11
- Copyright (c) 2021 Radix
12
- Copyright (c) 2017 Carmelo Pullara
13
- Copyright (c) 2018 Framer B.V.
14
- Copyright (c) 2022 WorkOS
15
-
16
- All rights reserved.
17
-
18
- Redistribution and use in source and binary forms, with or without
19
- modification, are permitted provided that the following conditions are met:
20
-
21
- 1. Redistributions of source code must retain the above copyright notice, this
22
- list of conditions and the following disclaimer.
23
-
24
- 2. Redistributions in binary form must reproduce the above copyright notice,
25
- this list of conditions and the following disclaimer in the documentation
26
- and/or other materials provided with the distribution.
27
-
28
- 3. Neither the name of the copyright holder nor the names of its contributors
29
- may be used to endorse or promote products derived from this software
30
- without specific prior written permission.
31
-
32
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
36
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
39
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
40
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
41
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42
- POSSIBILITY OF SUCH DAMAGE.