@box/blueprint-web 17.22.4 → 18.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.
@@ -3,7 +3,6 @@ export * from './actionable-inline-notice';
3
3
  export * from './avatar';
4
4
  export * from './badge';
5
5
  export * from './blueprint-configuration-context';
6
- export * from './blueprint-modernization-context';
7
6
  export * from './branding-styles';
8
7
  export * from './breadcrumb';
9
8
  export * from './button';
@@ -8,9 +8,6 @@ export { BlueprintConfigurationContext, BlueprintProvider } from './blueprint-co
8
8
  export { BlueprintConfigurationOptions } from './blueprint-configuration-context/consts.js';
9
9
  export { useBlueprintConfiguration } from './blueprint-configuration-context/useBlueprintConfiguration.js';
10
10
  export { useNoopTreatment } from './blueprint-configuration-context/utils.js';
11
- export { BlueprintModernizationContext, BlueprintModernizationProvider } from './blueprint-modernization-context/blueprint-modernization-context.js';
12
- export { BLUEPRINT_UPLIFT_FEATURE_FLAG } from './blueprint-modernization-context/consts.js';
13
- export { useBlueprintModernization } from './blueprint-modernization-context/useBlueprintModernization.js';
14
11
  export { BrandingStyles } from './branding-styles/branding-styles.js';
15
12
  export { getBrandingTokensCssRule, useCustomBranding } from './branding-styles/useCustomBranding.js';
16
13
  export { Breadcrumb } from './breadcrumb/breadcrumb.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "17.22.4",
3
+ "version": "18.0.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -55,7 +55,7 @@
55
55
  "dependencies": {
56
56
  "@ariakit/react": "0.4.21",
57
57
  "@ariakit/react-core": "0.4.21",
58
- "@box/blueprint-web-assets": "^5.11.13",
58
+ "@box/blueprint-web-assets": "^5.11.14",
59
59
  "@internationalized/date": "^3.12.0",
60
60
  "@radix-ui/react-accordion": "1.1.2",
61
61
  "@radix-ui/react-checkbox": "1.0.4",
@@ -86,7 +86,7 @@
86
86
  "devDependencies": {
87
87
  "@box/box-test-client": "^3.2.7",
88
88
  "@box/playwright-utils": "^2.8.5",
89
- "@box/storybook-utils": "^1.4.8",
89
+ "@box/storybook-utils": "^1.4.9",
90
90
  "@figma/code-connect": "1.4.4",
91
91
  "@playwright/test": "1.46.1",
92
92
  "@types/js-yaml": "^4.0.9",
@@ -1,28 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- /**
3
- * @deprecated Modernized Blueprint UI is always on. Blueprint components no longer read this context.
4
- * The API remains for consumer compatibility and will be removed in Q3FY27.
5
- */
6
- export interface BlueprintModernizationContextValue {
7
- /**
8
- * @deprecated Ignored by Blueprint components — modern UI is always on. Will be removed in Q3FY27.
9
- */
10
- enableModernizedComponents: boolean;
11
- }
12
- /**
13
- * @deprecated Modernized Blueprint UI is always on. Blueprint components no longer read this context.
14
- * The API remains for consumer compatibility and will be removed in Q3FY27.
15
- */
16
- export declare const BlueprintModernizationContext: import("react").Context<BlueprintModernizationContextValue>;
17
- /**
18
- * @deprecated Modernized Blueprint UI is always on. Blueprint components ignore `enableModernizedComponents`.
19
- * Will be removed in Q3FY27.
20
- */
21
- export declare const BlueprintModernizationProvider: ({ children, enableModernizedComponents, }: {
22
- children: ReactNode;
23
- /**
24
- * @deprecated Ignored by Blueprint components — modern UI is always on. Optional for TypeScript
25
- * compatibility; will be removed in Q3FY27.
26
- */
27
- enableModernizedComponents?: boolean;
28
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,28 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { createContext, useMemo } from 'react';
3
-
4
- /**
5
- * @deprecated Modernized Blueprint UI is always on. Blueprint components no longer read this context.
6
- * The API remains for consumer compatibility and will be removed in Q3FY27.
7
- */
8
- const BlueprintModernizationContext = /*#__PURE__*/createContext({
9
- enableModernizedComponents: true
10
- });
11
- /**
12
- * @deprecated Modernized Blueprint UI is always on. Blueprint components ignore `enableModernizedComponents`.
13
- * Will be removed in Q3FY27.
14
- */
15
- const BlueprintModernizationProvider = ({
16
- children,
17
- enableModernizedComponents = true
18
- }) => {
19
- const value = useMemo(() => ({
20
- enableModernizedComponents
21
- }), [enableModernizedComponents]);
22
- return jsx(BlueprintModernizationContext.Provider, {
23
- value: value,
24
- children: children
25
- });
26
- };
27
-
28
- export { BlueprintModernizationContext, BlueprintModernizationProvider };
@@ -1 +0,0 @@
1
- export declare const BLUEPRINT_UPLIFT_FEATURE_FLAG = "launchpad_blueprint_ui_uplift";
@@ -1,3 +0,0 @@
1
- const BLUEPRINT_UPLIFT_FEATURE_FLAG = 'launchpad_blueprint_ui_uplift';
2
-
3
- export { BLUEPRINT_UPLIFT_FEATURE_FLAG };
@@ -1,7 +0,0 @@
1
- /**
2
- * @deprecated Modernized Blueprint UI is always on. This module remains for consumer compatibility
3
- * and will be removed in Q3FY27. See LEGACY_REMOVAL_PLAN.md.
4
- */
5
- export { BlueprintModernizationContext, BlueprintModernizationProvider, type BlueprintModernizationContextValue, } from './blueprint-modernization-context';
6
- export { BLUEPRINT_UPLIFT_FEATURE_FLAG } from './consts';
7
- export { useBlueprintModernization } from './useBlueprintModernization';
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated Modernized Blueprint UI is always on. Blueprint components no longer use this hook.
3
- * The API remains for consumer compatibility and will be removed in Q3FY27.
4
- */
5
- export declare const useBlueprintModernization: () => import("./blueprint-modernization-context").BlueprintModernizationContextValue;
@@ -1,16 +0,0 @@
1
- import { useContext } from 'react';
2
- import { BlueprintModernizationContext } from './blueprint-modernization-context.js';
3
-
4
- /**
5
- * @deprecated Modernized Blueprint UI is always on. Blueprint components no longer use this hook.
6
- * The API remains for consumer compatibility and will be removed in Q3FY27.
7
- */
8
- const useBlueprintModernization = () => {
9
- const context = useContext(BlueprintModernizationContext);
10
- if (context === undefined) {
11
- throw new Error('useBlueprintModernization must be used within a BlueprintModernizationProvider');
12
- }
13
- return context;
14
- };
15
-
16
- export { useBlueprintModernization };