Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/popup

Package Overview
Dependencies
Maintainers
1
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/popup - npm Package Compare versions

Comparing version 1.23.2 to 1.24.0

dist/cjs/use-get-memoized-merged-trigger-ref-new.js

8

CHANGELOG.md
# @atlaskit/popup
## 1.24.0
### Minor Changes
- [#124840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124840)
[`2e4f70b9a71fa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2e4f70b9a71fa) -
Fix to set ref for trigger in React 18 Strict mode behind feature flag
## 1.23.2

@@ -4,0 +12,0 @@

4

dist/cjs/popup.js

@@ -20,2 +20,3 @@ "use strict";

var _useGetMemoizedMergedTriggerRef = require("./use-get-memoized-merged-trigger-ref");
var _useGetMemoizedMergedTriggerRefNew = require("./use-get-memoized-merged-trigger-ref-new");
/* eslint-disable @repo/internal/react/require-jsdoc */

@@ -74,2 +75,3 @@ /**

var getMergedTriggerRef = (0, _useGetMemoizedMergedTriggerRef.useGetMemoizedMergedTriggerRef)();
var getMergedTriggerRefNew = (0, _useGetMemoizedMergedTriggerRefNew.useGetMemoizedMergedTriggerRefNew)();
var generatedId = (0, _reactUid.useUID)();

@@ -108,3 +110,3 @@ var id = providedId || generatedId;

return trigger({
ref: getMergedTriggerRef(ref, setTriggerRef, isOpen),
ref: !(0, _platformFeatureFlags.fg)('platform-design-system-dsp-20476-dropdown-menu') ? getMergedTriggerRef(ref, setTriggerRef, isOpen) : getMergedTriggerRefNew(ref, setTriggerRef),
'aria-controls': isOpen ? id : undefined,

@@ -111,0 +113,0 @@ 'aria-expanded': isOpen,

@@ -19,2 +19,3 @@ /* eslint-disable @repo/internal/react/require-jsdoc */

import { useGetMemoizedMergedTriggerRef } from './use-get-memoized-merged-trigger-ref';
import { useGetMemoizedMergedTriggerRefNew } from './use-get-memoized-merged-trigger-ref-new';
const defaultLayer = layers.layer();

@@ -53,2 +54,3 @@ const wrapperStyles = xcss({

const getMergedTriggerRef = useGetMemoizedMergedTriggerRef();
const getMergedTriggerRefNew = useGetMemoizedMergedTriggerRefNew();
const generatedId = useUID();

@@ -88,3 +90,3 @@ const id = providedId || generatedId;

return trigger({
ref: getMergedTriggerRef(ref, setTriggerRef, isOpen),
ref: !fg('platform-design-system-dsp-20476-dropdown-menu') ? getMergedTriggerRef(ref, setTriggerRef, isOpen) : getMergedTriggerRefNew(ref, setTriggerRef),
'aria-controls': isOpen ? id : undefined,

@@ -91,0 +93,0 @@ 'aria-expanded': isOpen,

@@ -20,2 +20,3 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";

import { useGetMemoizedMergedTriggerRef } from './use-get-memoized-merged-trigger-ref';
import { useGetMemoizedMergedTriggerRefNew } from './use-get-memoized-merged-trigger-ref-new';
var defaultLayer = layers.layer();

@@ -66,2 +67,3 @@ var wrapperStyles = xcss({

var getMergedTriggerRef = useGetMemoizedMergedTriggerRef();
var getMergedTriggerRefNew = useGetMemoizedMergedTriggerRefNew();
var generatedId = useUID();

@@ -100,3 +102,3 @@ var id = providedId || generatedId;

return trigger({
ref: getMergedTriggerRef(ref, setTriggerRef, isOpen),
ref: !fg('platform-design-system-dsp-20476-dropdown-menu') ? getMergedTriggerRef(ref, setTriggerRef, isOpen) : getMergedTriggerRefNew(ref, setTriggerRef),
'aria-controls': isOpen ? id : undefined,

@@ -103,0 +105,0 @@ 'aria-expanded': isOpen,

{
"name": "@atlaskit/popup",
"version": "1.23.2",
"version": "1.24.0",
"description": "A popup displays brief content in an overlay.",

@@ -32,6 +32,2 @@ "publishConfig": {

"team": "Design System Team",
"productPushConsumption": [
"jira"
],
"releaseModel": "continuous",
"runReact18": true,

@@ -49,3 +45,3 @@ "website": {

"@atlaskit/portal": "^4.9.0",
"@atlaskit/primitives": "^12.0.0",
"@atlaskit/primitives": "^12.1.0",
"@atlaskit/theme": "^13.0.0",

@@ -118,2 +114,5 @@ "@atlaskit/tokens": "^1.59.0",

"type": "boolean"
},
"platform-design-system-dsp-20476-dropdown-menu": {
"type": "boolean"
}

@@ -120,0 +119,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc