Upgrade other react dependencies

This commit is contained in:
Jamie
2026-03-17 13:42:29 -07:00
committed by GitHub
parent fcafec550e
commit 3851a3905a
19 changed files with 1668 additions and 1938 deletions
+2 -2
View File
@@ -140,7 +140,6 @@ const NODE_PACKAGES = new Set([
// Packages that use DOM APIs
const DOM_PACKAGES = new Set([
'@popperjs/core',
'@radix-ui/react-tooltip',
'@react-aria/focus',
'@react-aria/interactions',
'@react-aria/utils',
@@ -237,7 +236,8 @@ const STD_PACKAGES = new Set([
'filesize',
'firstline',
'form-data',
'framer-motion',
'motion',
'motion/react',
'fuse.js',
'google-libphonenumber',
'heic-convert',
+225 -49
View File
@@ -423,30 +423,6 @@ Signal Desktop makes use of the following open source projects.
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## @radix-ui/react-tooltip
MIT License
Copyright (c) 2022 WorkOS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
## @react-aria/focus
Apache License
@@ -857,7 +833,207 @@ Signal Desktop makes use of the following open source projects.
## @react-aria/utils
License: Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2019 Adobe
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
## @react-spring/web
@@ -3922,30 +4098,6 @@ Signal Desktop makes use of the following open source projects.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
## framer-motion
The MIT License (MIT)
Copyright (c) 2018 Framer B.V.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
## fs-extra
(The MIT License)
@@ -4611,6 +4763,30 @@ Signal Desktop makes use of the following open source projects.
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
## motion
The MIT License (MIT)
Copyright (c) 2024 [Motion](https://motion.dev) B.V.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
## mp4box
Copyright (c) 2012. Telecom ParisTech/TSI/MM/GPAC Cyril Concolato
+11 -13
View File
@@ -125,14 +125,13 @@
"@indutny/range-finder": "1.3.4",
"@indutny/simple-windows-notifications": "2.0.16",
"@indutny/sneequals": "4.0.0",
"@internationalized/date": "3.7.0",
"@internationalized/date": "3.12.0",
"@popperjs/core": "2.11.8",
"@radix-ui/react-tooltip": "1.2.7",
"@react-aria/focus": "3.19.1",
"@react-aria/interactions": "3.23.0",
"@react-aria/utils": "3.25.3",
"@react-aria/focus": "3.21.5",
"@react-aria/interactions": "3.27.1",
"@react-aria/utils": "3.33.1",
"@react-spring/web": "10.0.3",
"@react-types/shared": "3.27.0",
"@react-types/shared": "3.33.1",
"@signalapp/libsignal-client": "0.88.3",
"@signalapp/minimask": "1.0.1",
"@signalapp/mute-state-change": "workspace:1.0.0",
@@ -168,7 +167,6 @@
"firstline": "2.0.2",
"focus-trap-react": "10.3.1",
"form-data": "4.0.1",
"framer-motion": "6.5.1",
"fs-extra": "11.2.0",
"fuse.js": "6.5.3",
"google-libphonenumber": "3.2.39",
@@ -183,6 +181,7 @@
"lru-cache": "11.0.2",
"memoizee": "0.4.17",
"moment": "2.30.1",
"motion": "12.35.1",
"mp4box": "0.5.3",
"node-fetch": "2.6.7",
"nop": "1.0.0",
@@ -195,10 +194,10 @@
"pino": "9.8.0",
"proxy-agent": "6.4.0",
"qrcode-generator": "1.4.4",
"radix-ui": "1.4.2",
"radix-ui": "1.4.3",
"react": "19.2.4",
"react-aria": "3.35.1",
"react-aria-components": "1.4.1",
"react-aria": "3.47.0",
"react-aria-components": "1.16.0",
"react-blurhash": "0.3.0",
"react-dom": "19.2.4",
"react-intl": "7.1.11",
@@ -283,7 +282,7 @@
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@types/react-redux": "7.1.34",
"@types/react-virtualized": "9.22.2",
"@types/react-virtualized": "9.22.3",
"@types/redux-logger": "3.0.13",
"@types/semver": "7.5.8",
"@types/sinon": "17.0.3",
@@ -392,7 +391,6 @@
"app-builder-lib": "patches/app-builder-lib.patch",
"dmg-builder": "patches/dmg-builder.patch",
"eslint-plugin-better-tailwindcss": "patches/eslint-plugin-better-tailwindcss.patch",
"framer-motion@6.5.1": "patches/framer-motion@6.5.1.patch",
"fs-xattr": "patches/fs-xattr.patch",
"@types/chai": "patches/@types__chai.patch"
},
@@ -705,7 +703,7 @@
"node_modules/@signalapp/quill-cjs/dist/*.css",
"!node_modules/node_modules/fabric/src/**",
"!node_modules/react-blurhash/docs/**",
"!node_modules/framer-motion/**",
"!node_modules/motion/**",
"!node_modules/intl-tel-input/**",
"!node_modules/@motionone/**",
"!node_modules/@swc/**",
-66
View File
@@ -1,66 +0,0 @@
diff --git a/dist/index.d.ts b/dist/index.d.ts
index cf899fa204912a35c556a9fa94c58e6ac37ab6f9..db4f388608b7d0912ab12ac167796cf5df73a44b 100644
--- a/dist/index.d.ts
+++ b/dist/index.d.ts
@@ -1,9 +1,15 @@
/// <reference types="react" />
import * as React$1 from 'react';
-import { RefObject, CSSProperties, SVGAttributes, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, ReactHTML, DetailedHTMLFactory, HTMLAttributes, useEffect } from 'react';
+import { JSX, RefObject, CSSProperties, SVGAttributes, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, DetailedHTMLProps, HTMLAttributes, useEffect } from 'react';
import { Easing as Easing$1, SpringOptions } from 'popmotion';
import { ScrollOptions, InViewOptions } from '@motionone/dom';
+type HTMLTagName = {
+ [K in keyof JSX.IntrinsicElements]: JSX.IntrinsicElements[K] extends HTMLAttributes<HTMLElement> ? K : never
+}[keyof JSX.IntrinsicElements];
+
+type HTMLIntrinsicElements = Pick<JSX.IntrinsicElements, HTMLTagName>;
+
/**
* @public
*/
@@ -2670,22 +2676,22 @@ declare type ForwardRefComponent<T, P> = ForwardRefExoticComponent<PropsWithoutR
/**
* Support for React component props
*/
-declare type UnwrapFactoryAttributes<F> = F extends DetailedHTMLFactory<infer P, any> ? P : never;
-declare type UnwrapFactoryElement<F> = F extends DetailedHTMLFactory<any, infer P> ? P : never;
+declare type UnwrapFactoryAttributes<F> = F extends DetailedHTMLProps<infer P, any> ? P : never;
+declare type UnwrapFactoryElement<F> = F extends DetailedHTMLProps<HTMLAttributes<any>, infer P> ? P : never;
declare type HTMLAttributesWithoutMotionProps<Attributes extends HTMLAttributes<Element>, Element extends HTMLElement> = {
[K in Exclude<keyof Attributes, keyof MotionProps>]?: Attributes[K];
};
/**
* @public
*/
-declare type HTMLMotionProps<TagName extends keyof ReactHTML> = HTMLAttributesWithoutMotionProps<UnwrapFactoryAttributes<ReactHTML[TagName]>, UnwrapFactoryElement<ReactHTML[TagName]>> & MotionProps;
+declare type HTMLMotionProps<TagName extends keyof HTMLIntrinsicElements> = HTMLAttributesWithoutMotionProps<UnwrapFactoryAttributes<HTMLIntrinsicElements[TagName]>, UnwrapFactoryElement<HTMLIntrinsicElements[TagName]>> & MotionProps;
/**
* Motion-optimised versions of React's HTML components.
*
* @public
*/
declare type HTMLMotionComponents = {
- [K in HTMLElements]: ForwardRefComponent<UnwrapFactoryElement<ReactHTML[K]>, HTMLMotionProps<K>>;
+ [K in HTMLElements]: ForwardRefComponent<UnwrapFactoryElement<HTMLIntrinsicElements[K]>, HTMLMotionProps<K>>;
};
interface SVGAttributesWithoutMotionProps<T> extends Pick<SVGAttributes<T>, Exclude<keyof SVGAttributes<T>, keyof MotionProps>> {
@@ -3023,7 +3029,7 @@ interface Props$1<V> {
*
* @public
*/
- as?: keyof ReactHTML;
+ as?: keyof HTMLIntrinsicElements;
/**
* The value in the list that this component represents.
*
@@ -3045,7 +3051,7 @@ interface Props<V> {
*
* @public
*/
- as?: keyof ReactHTML;
+ as?: keyof HTMLIntrinsicElements;
/**
* The axis to reorder along. By default, items will be draggable on this axis.
* To make draggable on both axes, set `<Reorder.Item drag />`
+1397 -1478
View File
File diff suppressed because it is too large Load Diff
@@ -9,8 +9,8 @@ import type {
ReactNode,
} from 'react';
import React, { forwardRef, memo, useId, useMemo } from 'react';
import type { Transition } from 'framer-motion';
import { motion } from 'framer-motion';
import type { Transition } from 'motion/react';
import { motion } from 'motion/react';
import type { TailwindStyles } from '../tw.dom.js';
import { tw } from '../tw.dom.js';
import { ExperimentalAxoBadge } from '../AxoBadge.dom.js';
@@ -190,7 +190,6 @@ export namespace ExperimentalAxoBaseSegmentedControl {
{isSelected && (
<motion.span
layoutId={`${context.id}.Indicator`}
layoutDependency={isSelected}
className={config.indicatorStyles}
transition={IndicatorTransition}
style={{ borderRadius: 14 }}
@@ -6,7 +6,7 @@
import React, { useCallback, useEffect, useRef, useState } from 'react';
import lodash from 'lodash';
import classNames from 'classnames';
import { AnimatePresence, motion } from 'framer-motion';
import { AnimatePresence, motion } from 'motion/react';
import { Avatar, AvatarSize } from './Avatar.dom.js';
import { ContactName } from './conversation/ContactName.dom.js';
+2 -2
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import React, { useState, useCallback } from 'react';
import { AnimatePresence, motion } from 'framer-motion';
import { AnimatePresence, motion } from 'motion/react';
import { AxoSymbol } from '../axo/AxoSymbol.dom.js';
import { AxoButton } from '../axo/AxoButton.dom.js';
@@ -240,7 +240,7 @@ function KeyTransparency({
'pressed:bg-fill-secondary-pressed'
)}
>
<AnimatePresence exitBeforeEnter initial={false}>
<AnimatePresence mode="wait" initial={false}>
<motion.div
className={tw('flex h-5 items-center')}
key={status}
@@ -3,8 +3,8 @@
import React, { type ReactNode } from 'react';
import lodash from 'lodash';
import type { Transition } from 'framer-motion';
import { motion } from 'framer-motion';
import type { Transition } from 'motion/react';
import { motion } from 'motion/react';
import type { ReadonlyDeep } from 'type-fest';
import { tw } from '../../../axo/tw.dom.js';
@@ -3,7 +3,7 @@
import type { ForwardedRef, ReactNode } from 'react';
import React, { forwardRef, memo, useCallback, useMemo, useState } from 'react';
import { Tabs } from 'radix-ui';
import { AnimatePresence, motion } from 'framer-motion';
import { AnimatePresence, motion } from 'motion/react';
import type { LocalizerType } from '../../../types/I18N.std.js';
import { tw } from '../../../axo/tw.dom.js';
import { AxoIconButton } from '../../../axo/AxoIconButton.dom.js';
@@ -3,7 +3,7 @@
import React, { memo, useState, useEffect, useRef } from 'react';
import { Checkbox } from 'radix-ui';
import { AnimatePresence, motion } from 'framer-motion';
import { AnimatePresence, motion } from 'motion/react';
import { type TailwindStyles, tw } from '../../../axo/tw.dom.js';
import { AxoButton } from '../../../axo/AxoButton.dom.js';
import { AxoSymbol } from '../../../axo/AxoSymbol.dom.js';
@@ -356,7 +356,7 @@ export function PollMessageContents({
</div>
<div className={tw('mt-4 flex h-10 items-center justify-center')}>
<AnimatePresence exitBeforeEnter initial={false}>
<AnimatePresence mode="wait" initial={false}>
{totalVotes > 0 ? (
<motion.div
key="view-votes"
+1 -1
View File
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
import type { Placement } from 'react-aria';
import { Dialog, Popover } from 'react-aria-components';
import classNames from 'classnames';
import * as Tooltip from '@radix-ui/react-tooltip';
import { Tooltip } from 'radix-ui';
import { ThemeType } from '../../../types/Util.std.js';
export type FunPopoverProps = Readonly<{
+2 -2
View File
@@ -1,8 +1,8 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import classNames from 'classnames';
import type { Transition } from 'framer-motion';
import { motion } from 'framer-motion';
import type { Transition } from 'motion/react';
import { motion } from 'motion/react';
import type { ReactNode, Ref } from 'react';
import React, {
createContext,
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { Transition } from 'framer-motion';
import { AnimatePresence, motion } from 'framer-motion';
import type { Transition } from 'motion/react';
import { AnimatePresence, motion } from 'motion/react';
import type { ReactNode } from 'react';
import React, { useCallback, useId } from 'react';
import type { Key } from 'react-aria';
+7 -3
View File
@@ -1,9 +1,13 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React, { useRef, useState, type ReactNode } from 'react';
import * as Tooltip from '@radix-ui/react-tooltip';
import { useLayoutEffect } from '@react-aria/utils';
import React, {
useRef,
useState,
useLayoutEffect,
type ReactNode,
} from 'react';
import { Tooltip } from 'radix-ui';
import { strictAssert } from '../../../util/assert.std.js';
export type FunTooltipProps = Readonly<{
@@ -10,7 +10,7 @@ import {
Popover,
} from 'react-aria-components';
import { VisuallyHidden } from 'react-aria';
import * as Tooltip from '@radix-ui/react-tooltip';
import { Tooltip } from 'radix-ui';
import type { LocalizerType } from '../../../types/I18N.std.js';
import { strictAssert } from '../../../util/assert.std.js';
import { missingCaseError } from '../../../util/missingCaseError.std.js';
@@ -14,7 +14,7 @@ import React, {
} from 'react';
import { VisuallyHidden } from 'react-aria';
import { LRUCache } from 'lru-cache';
import { AnimatePresence, motion } from 'framer-motion';
import { AnimatePresence, motion } from 'motion/react';
import { FunItemButton } from '../base/FunItem.dom.js';
import {
FunPanel,
@@ -405,6 +405,13 @@ export function FunPanelStickers({
[onSelectTimeSticker, onClose]
);
const showAddStickerPackButton = onAddStickerPack != null;
const handleAddStickerPack = useCallback(() => {
strictAssert(onAddStickerPack, 'Missing onAddStickerPack');
onAddStickerPack();
onClose();
}, [onAddStickerPack, onClose]);
return (
<FunPanel>
<FunPanelHeader>
@@ -454,9 +461,9 @@ export function FunPanelStickers({
</FunSubNavListBox>
)}
</FunSubNavScroller>
{onAddStickerPack != null && (
{showAddStickerPackButton && (
<FunSubNavButtons>
<FunSubNavButton onClick={onAddStickerPack}>
<FunSubNavButton onClick={handleAddStickerPack}>
<VisuallyHidden>
{i18n('icu:FunPanelStickers__SubNavButton--AddStickerPack')}
</VisuallyHidden>
-307
View File
@@ -15,69 +15,6 @@
"updated": "2018-09-18T19:19:27.699Z",
"reasonDetail": "Part of runtime library for C++ transpiled code"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const isOpenDelayedRef = React.useRef(true);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const isPointerInTransitRef = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const skipDelayTimerRef = React.useRef(0);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const openTimerRef = React.useRef(0);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const wasOpenDelayedRef = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const ref = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const isPointerDownRef = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const hasPointerMoveOpenedRef = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "React-useRef",
"path": "node_modules/@radix-ui/react-tooltip/dist/index.js",
"line": " const ref = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-05-30T20:26:57.154Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/@signalapp/quill-cjs/core/editor.js",
@@ -304,250 +241,6 @@
"reasonCategory": "usageTrusted",
"updated": "2024-11-14T01:39:46.132Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var visualElementRef = React.useRef(undefined);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var ref = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " * const ref = useRef(null)",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var isPressing = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var cancelPointerEndListeners = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var state = React.useRef({",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var panSession = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var isMounted = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var presentChildren = React.useRef(childrenToRender);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var allChildren = React.useRef(new Map()).current;",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var isInitialRender = React.useRef(true);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var context = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var loadedRenderer = React.useRef(undefined);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var isReordering = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var measuredLayout = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var activeSpringAnimation = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/cjs/index.js",
"line": " var index = React.useRef(0);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var visualElementRef = React.useRef(undefined);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var ref = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " * const ref = useRef(null)",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var isPressing = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var cancelPointerEndListeners = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var state = React.useRef({",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var panSession = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var isMounted = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var presentChildren = React.useRef(childrenToRender);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var allChildren = React.useRef(new Map()).current;",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var isInitialRender = React.useRef(true);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var context = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var loadedRenderer = React.useRef(undefined);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var isReordering = React.useRef(false);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var measuredLayout = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var activeSpringAnimation = React.useRef(null);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.dev.js",
"line": " var index = React.useRef(0);",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "React-useRef",
"path": "node_modules/framer-motion/dist/framer-motion.js",
"reasonCategory": "usageTrusted",
"updated": "2025-02-19T20:14:46.879Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/google-libphonenumber/dist/libphonenumber.js",