@primer/react 0.0.0-20260325223604 → 0.0.0-20260325232301
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/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260325232301
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
+
- [#7700](https://github.com/primer/react/pull/7700) [`91bf343`](https://github.com/primer/react/commit/91bf343210483be373f7ec5ce1ba652518a9ce4c) Thanks [@francinelucca](https://github.com/francinelucca)! - ActionMenu: Graduate `primer_react_action_menu_display_in_viewport_inside_dialog` feature flag. ActionMenu now automatically uses `displayInViewport` when rendered inside a Dialog, without requiring the feature flag.
|
|
8
|
+
|
|
7
9
|
- [#7699](https://github.com/primer/react/pull/7699) [`1505d9b`](https://github.com/primer/react/commit/1505d9b06bbcbb1d6bf87b4d21461d79b71eff10) Thanks [@francinelucca](https://github.com/francinelucca)! - SelectPanel: Add `displayInViewport` prop
|
|
8
10
|
|
|
9
11
|
- [#7662](https://github.com/primer/react/pull/7662) [`39c8cf3`](https://github.com/primer/react/commit/39c8cf30254268d770422b9d890d96da51d35d89) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Timeline: Update `clipSidebar` prop to accept `'start'`, `'end'`, or `'both'` in addition to `boolean`. Use `'start'` to only clip the top, `'end'` to only clip the bottom, or `'both'`/`true` to clip both ends.
|
|
@@ -20,6 +22,8 @@
|
|
|
20
22
|
|
|
21
23
|
- [#7676](https://github.com/primer/react/pull/7676) [`35ca056`](https://github.com/primer/react/commit/35ca05690910ffb8286a2aeef01c043af377a6c2) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Remove link underline effect on hover for both Link (inline) and Button with variant link (no visuals)
|
|
22
24
|
|
|
25
|
+
- [#7631](https://github.com/primer/react/pull/7631) [`0ecaf6f`](https://github.com/primer/react/commit/0ecaf6f64c50235081416515b7d5b6b2e364b33f) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add test to validate that the `muted` prop is not leaked as a bare DOM attribute on `Link`
|
|
26
|
+
|
|
23
27
|
## 38.17.0
|
|
24
28
|
|
|
25
29
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/ActionMenu/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8D,MAAM,OAAO,CAAA;AAGlF,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAA;AAE5D,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAI5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAA;AAC1C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAIrD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAK/F,OAAO,KAAK,EAAC,gBAAgB,EAAE,cAAc,EAAC,MAAM,sBAAsB,CAAA;AAI1E,MAAM,MAAM,gBAAgB,GAAG,CAC7B,OAAO,EAAE,cAAc,GAAG,eAAe,GAAG,QAAQ,GAAG,KAAK,GAAG,aAAa,GAAG,YAAY,GAAG,OAAO,KAClG,IAAI,CAAA;AAET,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,oBAAoB,EACpB,WAAW,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAC9D,GAAG;IACF,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAGD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IAEH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,GAAG,KA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AgB,CAAC,EAAE,CAAC,EAAC,QAAQ,EAAC,EAAE;QAAC,QAAQ,EAAE,cAAc,CAAA;KAAC,KAAK,IAAI,CAAA;CACpE,CAAA;AA6GH,eAAO,MAAM,UAAU;;;kBA1LP,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC;aAC5B,MAAM;;;;CAyL4E,CAAA"}
|
|
@@ -264,7 +264,6 @@ const Overlay = ({
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}, [anchorRef]);
|
|
267
|
-
const featureFlagDisplayInViewportInsideDialog = useFeatureFlag('primer_react_action_menu_display_in_viewport_inside_dialog');
|
|
268
267
|
const featureFlagMaxHeightClampToViewport = useFeatureFlag('primer_react_overlay_max_height_clamp_to_viewport');
|
|
269
268
|
const isInsideDialog = useContext(DialogContext) !== undefined;
|
|
270
269
|
return /*#__PURE__*/jsx(AnchoredOverlay, {
|
|
@@ -284,7 +283,7 @@ const Overlay = ({
|
|
|
284
283
|
},
|
|
285
284
|
onPositionChange: onPositionChange,
|
|
286
285
|
variant: variant,
|
|
287
|
-
displayInViewport: displayInViewport !== undefined ? displayInViewport :
|
|
286
|
+
displayInViewport: displayInViewport !== undefined ? displayInViewport : isInsideDialog,
|
|
288
287
|
children: /*#__PURE__*/jsx("div", {
|
|
289
288
|
ref: containerRef,
|
|
290
289
|
className: styles.ActionMenuContainer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAS9B,CAAA"}
|
|
@@ -8,7 +8,6 @@ const DefaultFeatureFlags = FeatureFlagScope.create({
|
|
|
8
8
|
primer_react_select_panel_order_selected_at_top: false,
|
|
9
9
|
primer_react_select_panel_remove_active_descendant: false,
|
|
10
10
|
primer_react_spinner_synchronize_animations: false,
|
|
11
|
-
primer_react_action_menu_display_in_viewport_inside_dialog: false,
|
|
12
11
|
primer_react_overlay_max_height_clamp_to_viewport: false
|
|
13
12
|
});
|
|
14
13
|
|
package/dist/Link/Link.js
CHANGED
|
@@ -10,6 +10,7 @@ const UnwrappedLink = (props, ref) => {
|
|
|
10
10
|
as: Component = 'a',
|
|
11
11
|
className,
|
|
12
12
|
inline,
|
|
13
|
+
muted,
|
|
13
14
|
hoverColor,
|
|
14
15
|
...restProps
|
|
15
16
|
} = props;
|
|
@@ -32,7 +33,7 @@ const UnwrappedLink = (props, ref) => {
|
|
|
32
33
|
}
|
|
33
34
|
return /*#__PURE__*/jsx(Component, {
|
|
34
35
|
className: clsx(className, classes.Link),
|
|
35
|
-
"data-muted":
|
|
36
|
+
"data-muted": muted,
|
|
36
37
|
"data-inline": inline,
|
|
37
38
|
"data-hover-color": hoverColor,
|
|
38
39
|
...restProps,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-20260325232301",
|
|
5
5
|
"description": "An implementation of GitHub's Primer Design System using React",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"build": "./script/build",
|
|
40
40
|
"clean": "rimraf dist generated",
|
|
41
41
|
"start": "concurrently npm:start:*",
|
|
42
|
-
"start:storybook": "STORYBOOK=true storybook dev -p 6006
|
|
42
|
+
"start:storybook": "STORYBOOK=true storybook dev -p 6006",
|
|
43
43
|
"build:storybook": "storybook build",
|
|
44
44
|
"build:docs": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs",
|
|
45
45
|
"build:docs:preview": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview",
|
|
@@ -115,12 +115,11 @@
|
|
|
115
115
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
116
116
|
"@rollup/plugin-typescript": "12.3.0",
|
|
117
117
|
"@rollup/plugin-virtual": "3.0.2",
|
|
118
|
-
"@storybook/addon-a11y": "^10.
|
|
119
|
-
"@storybook/addon-docs": "^10.
|
|
120
|
-
"@storybook/addon-links": "^10.
|
|
121
|
-
"@storybook/addon-mcp": "^0.4.2",
|
|
118
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
119
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
120
|
+
"@storybook/addon-links": "^10.1.11",
|
|
122
121
|
"@storybook/icons": "^2.0.1",
|
|
123
|
-
"@storybook/react-vite": "^10.
|
|
122
|
+
"@storybook/react-vite": "^10.1.11",
|
|
124
123
|
"@testing-library/dom": "^10.4.0",
|
|
125
124
|
"@testing-library/jest-dom": "^6.4.5",
|
|
126
125
|
"@testing-library/react": "^16.3.0",
|
|
@@ -174,7 +173,7 @@
|
|
|
174
173
|
"rimraf": "5.0.5",
|
|
175
174
|
"rollup": "4.59.0",
|
|
176
175
|
"rollup-plugin-import-css": "^0.0.0",
|
|
177
|
-
"storybook": "^10.
|
|
176
|
+
"storybook": "^10.1.11",
|
|
178
177
|
"terser": "5.36.0",
|
|
179
178
|
"ts-toolbelt": "9.6.0",
|
|
180
179
|
"tsx": "4.20.3",
|