@carbon/upgrade 11.26.0-rc.0 → 11.27.0-rc.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/README.md CHANGED
@@ -73,6 +73,251 @@ The output of a codemod may not match your codebase's formatting style. It is
73
73
  recommended to always run the result of a codemod through an autoformatter like
74
74
  [Prettier](https://prettier.io/).
75
75
 
76
+ ### Feature Flag Codemods
77
+
78
+ The following codemods help you adopt changes introduced by feature flags in
79
+ preparation for Carbon v12. Each codemod transforms your code to work with
80
+ specific feature flags enabled.
81
+
82
+ ### Enable v12 tile default icons
83
+
84
+ Enables default icons for Tile components.
85
+
86
+ **Usage:**
87
+
88
+ ```bash
89
+ npx @carbon/upgrade migrate enable-v12-tile-default-icons --write
90
+ ```
91
+
92
+ This codemod wraps Tile components with
93
+ `<FeatureFlags enableV12TileDefaultIcons>` and adds the necessary imports.
94
+
95
+ **Example:**
96
+
97
+ ```jsx
98
+ // Before
99
+ import { Tile } from '@carbon/react';
100
+
101
+ <Tile>Content</Tile>;
102
+
103
+ // After
104
+ import { Tile } from '@carbon/react';
105
+ import { FeatureFlags } from '@carbon/feature-flags';
106
+
107
+ <FeatureFlags enableV12TileDefaultIcons>
108
+ <Tile>Content</Tile>
109
+ </FeatureFlags>;
110
+ ```
111
+
112
+ ### Enable v12 overflowmenu
113
+
114
+ Updates OverflowMenu to use the new Menu-based implementation.
115
+
116
+ **Usage:**
117
+
118
+ The OverflowMenu codemod provides two different options:
119
+
120
+ 1. With FeatureFlags wrapping (default):
121
+
122
+ ```bash
123
+ npx @carbon/upgrade migrate enable-v12-overflowmenu --write
124
+ ```
125
+
126
+ 2. API migration only (for apps already using FeatureFlags at the root):
127
+
128
+ ```bash
129
+ npx @carbon/upgrade migrate enable-v12-overflowmenu --wrap=false --write
130
+ ```
131
+
132
+ This codemod:
133
+
134
+ - Converts `OverflowMenuItem` to `MenuItem` components
135
+ - Maps props: `itemText` → `label`, `isDelete` → `kind="danger"`
136
+ - Adds `MenuItemDivider` for items with `hasDivider`
137
+ - Optionally wraps with `<FeatureFlags enableV12Overflowmenu>` based on your
138
+ needs
139
+
140
+ **Example with wrapping:**
141
+
142
+ ```jsx
143
+ // Before
144
+ <OverflowMenu>
145
+ <OverflowMenuItem itemText="Option 1" />
146
+ <OverflowMenuItem itemText="Delete" isDelete />
147
+ </OverflowMenu>
148
+
149
+ // After
150
+ <FeatureFlags enableV12Overflowmenu>
151
+ <OverflowMenu>
152
+ <MenuItem label="Option 1" />
153
+ <MenuItem label="Delete" kind="danger" />
154
+ </OverflowMenu>
155
+ </FeatureFlags>
156
+ ```
157
+
158
+ **Example without wrapping (API changes only):**
159
+
160
+ ```jsx
161
+ // Before
162
+ <OverflowMenu>
163
+ <OverflowMenuItem itemText="Option 1" />
164
+ <OverflowMenuItem itemText="Delete" isDelete />
165
+ </OverflowMenu>
166
+
167
+ // After
168
+ <OverflowMenu>
169
+ <MenuItem label="Option 1" />
170
+ <MenuItem label="Delete" kind="danger" />
171
+ </OverflowMenu>
172
+ ```
173
+
174
+ ### Enable v12 tile radio icons
175
+
176
+ Enables default icons for RadioTile components.
177
+
178
+ **Usage:**
179
+
180
+ ```bash
181
+ npx @carbon/upgrade migrate enable-v12-tile-radio-icons --write
182
+ ```
183
+
184
+ This codemod wraps RadioTile components and TileGroups containing RadioTiles
185
+ with `<FeatureFlags enableV12TileRadioIcons>`.
186
+
187
+ **Example:**
188
+
189
+ ```jsx
190
+ // Before
191
+ <RadioTile value="option1">Option 1</RadioTile>
192
+
193
+ // After
194
+ <FeatureFlags enableV12TileRadioIcons>
195
+ <RadioTile value="option1">Option 1</RadioTile>
196
+ </FeatureFlags>
197
+ ```
198
+
199
+ ### Enable v12 structured list visible icons
200
+
201
+ Makes icon components within StructuredList always visible.
202
+
203
+ **Usage:**
204
+
205
+ ```bash
206
+ npx @carbon/upgrade migrate enable-v12-structured-list-visible-icons --write
207
+ ```
208
+
209
+ This codemod:
210
+
211
+ - Adds the `selection` attribute to StructuredListRow components
212
+ - Removes custom CheckmarkFilled icons from cells
213
+ - Works with both direct components and those generated by functions
214
+
215
+ **Example:**
216
+
217
+ ```jsx
218
+ // Before
219
+ <StructuredListWrapper selection>
220
+ <StructuredListRow>
221
+ <StructuredListCell>Data</StructuredListCell>
222
+ <StructuredListCell>
223
+ {isSelected && <CheckmarkFilled />}
224
+ </StructuredListCell>
225
+ </StructuredListRow>
226
+ </StructuredListWrapper>
227
+
228
+ // After
229
+ <StructuredListWrapper selection>
230
+ <StructuredListRow selection>
231
+ <StructuredListCell>Data</StructuredListCell>
232
+ </StructuredListRow>
233
+ </StructuredListWrapper>
234
+ ```
235
+
236
+ ## Other V12 Codemods
237
+
238
+ ### Light to layer
239
+
240
+ Replaces deprecated `light` prop with `Layer` component wrapping.
241
+
242
+ **Usage:**
243
+
244
+ ```bash
245
+ npx @carbon/upgrade migrate refactor-light-to-layer --write
246
+ ```
247
+
248
+ This codemod:
249
+
250
+ - Finds all components with the `light` prop
251
+ - Removes the `light` prop
252
+ - Wraps the component with `<Layer>`
253
+ - Adds the necessary Layer import
254
+
255
+ **Example:**
256
+
257
+ ```jsx
258
+ // Before
259
+ import { Button } from '@carbon/react';
260
+
261
+ <Button light>Click me</Button>;
262
+
263
+ // After
264
+ import { Button, Layer } from '@carbon/react';
265
+
266
+ <Layer>
267
+ <Button>Click me</Button>
268
+ </Layer>;
269
+ ```
270
+
271
+ ### Slug to decorator
272
+
273
+ Changes all occurrences of the `slug` prop to `decorator`.
274
+
275
+ **Usage:**
276
+
277
+ ```bash
278
+ npx @carbon/upgrade migrate slug-prop-to-decorator-prop --write
279
+ ```
280
+
281
+ **Example:**
282
+
283
+ ```jsx
284
+ // Before
285
+ <Component slug="my-identifier">Content</Component>
286
+
287
+ // After
288
+ <Component decorator="my-identifier">Content</Component>
289
+ ```
290
+
291
+ ### FeatureFlag deprecate flags prop
292
+
293
+ Updates FeatureFlags component to use individual boolean props instead of the
294
+ `flags` object.
295
+
296
+ **Usage:**
297
+
298
+ ```bash
299
+ npx @carbon/upgrade migrate featureflag-deprecate-flags-prop --write
300
+ ```
301
+
302
+ **Example:**
303
+
304
+ ```jsx
305
+ // Before
306
+ <FeatureFlags flags={{ 'enable-v12-tile-default-icons': true }}>
307
+ <App />
308
+ </FeatureFlags>
309
+
310
+ // After
311
+ <FeatureFlags enableV12TileDefaultIcons>
312
+ <App />
313
+ </FeatureFlags>
314
+ ```
315
+
316
+ ## TypeScript Support
317
+
318
+ All codemods support TypeScript files (`.ts` and `.tsx`) in addition to
319
+ JavaScript files (`.js` and `.jsx`).
320
+
76
321
  ## 🙌 Contributing
77
322
 
78
323
  If you have ideas on how we could make your migration experience easier, please
@@ -7,8 +7,6 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- /* eslint-disable no-console */
11
-
12
10
  'use strict';
13
11
 
14
12
  // Makes the script crash on unhandled rejections instead of silently
package/cli.js CHANGED
@@ -45881,114 +45881,107 @@ var require_Immutable = __commonJS({
45881
45881
  }
45882
45882
  });
45883
45883
 
45884
- // ../../node_modules/react-is/cjs/react-is.production.min.js
45885
- var require_react_is_production_min = __commonJS({
45886
- "../../node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
45887
- "use strict";
45888
- var b = Symbol.for("react.element");
45889
- var c = Symbol.for("react.portal");
45890
- var d = Symbol.for("react.fragment");
45891
- var e = Symbol.for("react.strict_mode");
45892
- var f = Symbol.for("react.profiler");
45893
- var g = Symbol.for("react.provider");
45894
- var h = Symbol.for("react.context");
45895
- var k = Symbol.for("react.server_context");
45896
- var l = Symbol.for("react.forward_ref");
45897
- var m = Symbol.for("react.suspense");
45898
- var n = Symbol.for("react.suspense_list");
45899
- var p = Symbol.for("react.memo");
45900
- var q = Symbol.for("react.lazy");
45901
- var t = Symbol.for("react.offscreen");
45902
- var u;
45903
- u = Symbol.for("react.module.reference");
45904
- function v(a) {
45905
- if ("object" === typeof a && null !== a) {
45906
- var r = a.$$typeof;
45907
- switch (r) {
45908
- case b:
45909
- switch (a = a.type, a) {
45910
- case d:
45911
- case f:
45912
- case e:
45913
- case m:
45914
- case n:
45915
- return a;
45884
+ // ../../node_modules/react-is/cjs/react-is.production.js
45885
+ var require_react_is_production = __commonJS({
45886
+ "../../node_modules/react-is/cjs/react-is.production.js"(exports2) {
45887
+ "use strict";
45888
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
45889
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
45890
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
45891
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
45892
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
45893
+ Symbol.for("react.provider");
45894
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
45895
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
45896
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
45897
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
45898
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
45899
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
45900
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
45901
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
45902
+ var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
45903
+ function typeOf(object) {
45904
+ if ("object" === typeof object && null !== object) {
45905
+ var $$typeof = object.$$typeof;
45906
+ switch ($$typeof) {
45907
+ case REACT_ELEMENT_TYPE:
45908
+ switch (object = object.type, object) {
45909
+ case REACT_FRAGMENT_TYPE:
45910
+ case REACT_PROFILER_TYPE:
45911
+ case REACT_STRICT_MODE_TYPE:
45912
+ case REACT_SUSPENSE_TYPE:
45913
+ case REACT_SUSPENSE_LIST_TYPE:
45914
+ return object;
45916
45915
  default:
45917
- switch (a = a && a.$$typeof, a) {
45918
- case k:
45919
- case h:
45920
- case l:
45921
- case q:
45922
- case p:
45923
- case g:
45924
- return a;
45916
+ switch (object = object && object.$$typeof, object) {
45917
+ case REACT_CONTEXT_TYPE:
45918
+ case REACT_FORWARD_REF_TYPE:
45919
+ case REACT_LAZY_TYPE:
45920
+ case REACT_MEMO_TYPE:
45921
+ return object;
45922
+ case REACT_CONSUMER_TYPE:
45923
+ return object;
45925
45924
  default:
45926
- return r;
45925
+ return $$typeof;
45927
45926
  }
45928
45927
  }
45929
- case c:
45930
- return r;
45928
+ case REACT_PORTAL_TYPE:
45929
+ return $$typeof;
45931
45930
  }
45932
45931
  }
45933
45932
  }
45934
- exports2.ContextConsumer = h;
45935
- exports2.ContextProvider = g;
45936
- exports2.Element = b;
45937
- exports2.ForwardRef = l;
45938
- exports2.Fragment = d;
45939
- exports2.Lazy = q;
45940
- exports2.Memo = p;
45941
- exports2.Portal = c;
45942
- exports2.Profiler = f;
45943
- exports2.StrictMode = e;
45944
- exports2.Suspense = m;
45945
- exports2.SuspenseList = n;
45946
- exports2.isAsyncMode = function() {
45947
- return false;
45948
- };
45949
- exports2.isConcurrentMode = function() {
45950
- return false;
45933
+ exports2.ContextConsumer = REACT_CONSUMER_TYPE;
45934
+ exports2.ContextProvider = REACT_CONTEXT_TYPE;
45935
+ exports2.Element = REACT_ELEMENT_TYPE;
45936
+ exports2.ForwardRef = REACT_FORWARD_REF_TYPE;
45937
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
45938
+ exports2.Lazy = REACT_LAZY_TYPE;
45939
+ exports2.Memo = REACT_MEMO_TYPE;
45940
+ exports2.Portal = REACT_PORTAL_TYPE;
45941
+ exports2.Profiler = REACT_PROFILER_TYPE;
45942
+ exports2.StrictMode = REACT_STRICT_MODE_TYPE;
45943
+ exports2.Suspense = REACT_SUSPENSE_TYPE;
45944
+ exports2.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
45945
+ exports2.isContextConsumer = function(object) {
45946
+ return typeOf(object) === REACT_CONSUMER_TYPE;
45951
45947
  };
45952
- exports2.isContextConsumer = function(a) {
45953
- return v(a) === h;
45948
+ exports2.isContextProvider = function(object) {
45949
+ return typeOf(object) === REACT_CONTEXT_TYPE;
45954
45950
  };
45955
- exports2.isContextProvider = function(a) {
45956
- return v(a) === g;
45951
+ exports2.isElement = function(object) {
45952
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
45957
45953
  };
45958
- exports2.isElement = function(a) {
45959
- return "object" === typeof a && null !== a && a.$$typeof === b;
45954
+ exports2.isForwardRef = function(object) {
45955
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
45960
45956
  };
45961
- exports2.isForwardRef = function(a) {
45962
- return v(a) === l;
45957
+ exports2.isFragment = function(object) {
45958
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
45963
45959
  };
45964
- exports2.isFragment = function(a) {
45965
- return v(a) === d;
45960
+ exports2.isLazy = function(object) {
45961
+ return typeOf(object) === REACT_LAZY_TYPE;
45966
45962
  };
45967
- exports2.isLazy = function(a) {
45968
- return v(a) === q;
45963
+ exports2.isMemo = function(object) {
45964
+ return typeOf(object) === REACT_MEMO_TYPE;
45969
45965
  };
45970
- exports2.isMemo = function(a) {
45971
- return v(a) === p;
45966
+ exports2.isPortal = function(object) {
45967
+ return typeOf(object) === REACT_PORTAL_TYPE;
45972
45968
  };
45973
- exports2.isPortal = function(a) {
45974
- return v(a) === c;
45969
+ exports2.isProfiler = function(object) {
45970
+ return typeOf(object) === REACT_PROFILER_TYPE;
45975
45971
  };
45976
- exports2.isProfiler = function(a) {
45977
- return v(a) === f;
45972
+ exports2.isStrictMode = function(object) {
45973
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
45978
45974
  };
45979
- exports2.isStrictMode = function(a) {
45980
- return v(a) === e;
45975
+ exports2.isSuspense = function(object) {
45976
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
45981
45977
  };
45982
- exports2.isSuspense = function(a) {
45983
- return v(a) === m;
45978
+ exports2.isSuspenseList = function(object) {
45979
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
45984
45980
  };
45985
- exports2.isSuspenseList = function(a) {
45986
- return v(a) === n;
45981
+ exports2.isValidElementType = function(type) {
45982
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
45987
45983
  };
45988
- exports2.isValidElementType = function(a) {
45989
- return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false;
45990
- };
45991
- exports2.typeOf = v;
45984
+ exports2.typeOf = typeOf;
45992
45985
  }
45993
45986
  });
45994
45987
 
@@ -45996,181 +45989,93 @@ var require_react_is_production_min = __commonJS({
45996
45989
  var require_react_is_development = __commonJS({
45997
45990
  "../../node_modules/react-is/cjs/react-is.development.js"(exports2) {
45998
45991
  "use strict";
45999
- if (process.env.NODE_ENV !== "production") {
46000
- (function() {
46001
- "use strict";
46002
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
46003
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
46004
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
46005
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
46006
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
46007
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
46008
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
46009
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
46010
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
46011
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
46012
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
46013
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
46014
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
46015
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
46016
- var enableScopeAPI = false;
46017
- var enableCacheElement = false;
46018
- var enableTransitionTracing = false;
46019
- var enableLegacyHidden = false;
46020
- var enableDebugTracing = false;
46021
- var REACT_MODULE_REFERENCE;
46022
- {
46023
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
46024
- }
46025
- function isValidElementType(type) {
46026
- if (typeof type === "string" || typeof type === "function") {
46027
- return true;
46028
- }
46029
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
46030
- return true;
46031
- }
46032
- if (typeof type === "object" && type !== null) {
46033
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
46034
- // types supported by any Flight configuration anywhere since
46035
- // we don't know which Flight build this will end up being used
46036
- // with.
46037
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
46038
- return true;
46039
- }
46040
- }
46041
- return false;
46042
- }
46043
- function typeOf(object) {
46044
- if (typeof object === "object" && object !== null) {
46045
- var $$typeof = object.$$typeof;
46046
- switch ($$typeof) {
46047
- case REACT_ELEMENT_TYPE:
46048
- var type = object.type;
46049
- switch (type) {
46050
- case REACT_FRAGMENT_TYPE:
46051
- case REACT_PROFILER_TYPE:
46052
- case REACT_STRICT_MODE_TYPE:
46053
- case REACT_SUSPENSE_TYPE:
46054
- case REACT_SUSPENSE_LIST_TYPE:
46055
- return type;
46056
- default:
46057
- var $$typeofType = type && type.$$typeof;
46058
- switch ($$typeofType) {
46059
- case REACT_SERVER_CONTEXT_TYPE:
46060
- case REACT_CONTEXT_TYPE:
46061
- case REACT_FORWARD_REF_TYPE:
46062
- case REACT_LAZY_TYPE:
46063
- case REACT_MEMO_TYPE:
46064
- case REACT_PROVIDER_TYPE:
46065
- return $$typeofType;
46066
- default:
46067
- return $$typeof;
46068
- }
46069
- }
46070
- case REACT_PORTAL_TYPE:
46071
- return $$typeof;
46072
- }
46073
- }
46074
- return void 0;
46075
- }
46076
- var ContextConsumer = REACT_CONTEXT_TYPE;
46077
- var ContextProvider = REACT_PROVIDER_TYPE;
46078
- var Element = REACT_ELEMENT_TYPE;
46079
- var ForwardRef = REACT_FORWARD_REF_TYPE;
46080
- var Fragment = REACT_FRAGMENT_TYPE;
46081
- var Lazy = REACT_LAZY_TYPE;
46082
- var Memo = REACT_MEMO_TYPE;
46083
- var Portal = REACT_PORTAL_TYPE;
46084
- var Profiler = REACT_PROFILER_TYPE;
46085
- var StrictMode = REACT_STRICT_MODE_TYPE;
46086
- var Suspense = REACT_SUSPENSE_TYPE;
46087
- var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
46088
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
46089
- var hasWarnedAboutDeprecatedIsConcurrentMode = false;
46090
- function isAsyncMode(object) {
46091
- {
46092
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
46093
- hasWarnedAboutDeprecatedIsAsyncMode = true;
46094
- console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
46095
- }
46096
- }
46097
- return false;
46098
- }
46099
- function isConcurrentMode(object) {
46100
- {
46101
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
46102
- hasWarnedAboutDeprecatedIsConcurrentMode = true;
46103
- console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
46104
- }
45992
+ "production" !== process.env.NODE_ENV && function() {
45993
+ function typeOf(object) {
45994
+ if ("object" === typeof object && null !== object) {
45995
+ var $$typeof = object.$$typeof;
45996
+ switch ($$typeof) {
45997
+ case REACT_ELEMENT_TYPE:
45998
+ switch (object = object.type, object) {
45999
+ case REACT_FRAGMENT_TYPE:
46000
+ case REACT_PROFILER_TYPE:
46001
+ case REACT_STRICT_MODE_TYPE:
46002
+ case REACT_SUSPENSE_TYPE:
46003
+ case REACT_SUSPENSE_LIST_TYPE:
46004
+ return object;
46005
+ default:
46006
+ switch (object = object && object.$$typeof, object) {
46007
+ case REACT_CONTEXT_TYPE:
46008
+ case REACT_FORWARD_REF_TYPE:
46009
+ case REACT_LAZY_TYPE:
46010
+ case REACT_MEMO_TYPE:
46011
+ return object;
46012
+ case REACT_CONSUMER_TYPE:
46013
+ return object;
46014
+ default:
46015
+ return $$typeof;
46016
+ }
46017
+ }
46018
+ case REACT_PORTAL_TYPE:
46019
+ return $$typeof;
46105
46020
  }
46106
- return false;
46107
46021
  }
46108
- function isContextConsumer(object) {
46109
- return typeOf(object) === REACT_CONTEXT_TYPE;
46110
- }
46111
- function isContextProvider(object) {
46112
- return typeOf(object) === REACT_PROVIDER_TYPE;
46113
- }
46114
- function isElement(object) {
46115
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
46116
- }
46117
- function isForwardRef(object) {
46118
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
46119
- }
46120
- function isFragment(object) {
46121
- return typeOf(object) === REACT_FRAGMENT_TYPE;
46122
- }
46123
- function isLazy(object) {
46124
- return typeOf(object) === REACT_LAZY_TYPE;
46125
- }
46126
- function isMemo(object) {
46127
- return typeOf(object) === REACT_MEMO_TYPE;
46128
- }
46129
- function isPortal(object) {
46130
- return typeOf(object) === REACT_PORTAL_TYPE;
46131
- }
46132
- function isProfiler(object) {
46133
- return typeOf(object) === REACT_PROFILER_TYPE;
46134
- }
46135
- function isStrictMode(object) {
46136
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
46137
- }
46138
- function isSuspense(object) {
46139
- return typeOf(object) === REACT_SUSPENSE_TYPE;
46140
- }
46141
- function isSuspenseList(object) {
46142
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
46143
- }
46144
- exports2.ContextConsumer = ContextConsumer;
46145
- exports2.ContextProvider = ContextProvider;
46146
- exports2.Element = Element;
46147
- exports2.ForwardRef = ForwardRef;
46148
- exports2.Fragment = Fragment;
46149
- exports2.Lazy = Lazy;
46150
- exports2.Memo = Memo;
46151
- exports2.Portal = Portal;
46152
- exports2.Profiler = Profiler;
46153
- exports2.StrictMode = StrictMode;
46154
- exports2.Suspense = Suspense;
46155
- exports2.SuspenseList = SuspenseList;
46156
- exports2.isAsyncMode = isAsyncMode;
46157
- exports2.isConcurrentMode = isConcurrentMode;
46158
- exports2.isContextConsumer = isContextConsumer;
46159
- exports2.isContextProvider = isContextProvider;
46160
- exports2.isElement = isElement;
46161
- exports2.isForwardRef = isForwardRef;
46162
- exports2.isFragment = isFragment;
46163
- exports2.isLazy = isLazy;
46164
- exports2.isMemo = isMemo;
46165
- exports2.isPortal = isPortal;
46166
- exports2.isProfiler = isProfiler;
46167
- exports2.isStrictMode = isStrictMode;
46168
- exports2.isSuspense = isSuspense;
46169
- exports2.isSuspenseList = isSuspenseList;
46170
- exports2.isValidElementType = isValidElementType;
46171
- exports2.typeOf = typeOf;
46172
- })();
46173
- }
46022
+ }
46023
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
46024
+ Symbol.for("react.provider");
46025
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
46026
+ exports2.ContextConsumer = REACT_CONSUMER_TYPE;
46027
+ exports2.ContextProvider = REACT_CONTEXT_TYPE;
46028
+ exports2.Element = REACT_ELEMENT_TYPE;
46029
+ exports2.ForwardRef = REACT_FORWARD_REF_TYPE;
46030
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
46031
+ exports2.Lazy = REACT_LAZY_TYPE;
46032
+ exports2.Memo = REACT_MEMO_TYPE;
46033
+ exports2.Portal = REACT_PORTAL_TYPE;
46034
+ exports2.Profiler = REACT_PROFILER_TYPE;
46035
+ exports2.StrictMode = REACT_STRICT_MODE_TYPE;
46036
+ exports2.Suspense = REACT_SUSPENSE_TYPE;
46037
+ exports2.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
46038
+ exports2.isContextConsumer = function(object) {
46039
+ return typeOf(object) === REACT_CONSUMER_TYPE;
46040
+ };
46041
+ exports2.isContextProvider = function(object) {
46042
+ return typeOf(object) === REACT_CONTEXT_TYPE;
46043
+ };
46044
+ exports2.isElement = function(object) {
46045
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
46046
+ };
46047
+ exports2.isForwardRef = function(object) {
46048
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
46049
+ };
46050
+ exports2.isFragment = function(object) {
46051
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
46052
+ };
46053
+ exports2.isLazy = function(object) {
46054
+ return typeOf(object) === REACT_LAZY_TYPE;
46055
+ };
46056
+ exports2.isMemo = function(object) {
46057
+ return typeOf(object) === REACT_MEMO_TYPE;
46058
+ };
46059
+ exports2.isPortal = function(object) {
46060
+ return typeOf(object) === REACT_PORTAL_TYPE;
46061
+ };
46062
+ exports2.isProfiler = function(object) {
46063
+ return typeOf(object) === REACT_PROFILER_TYPE;
46064
+ };
46065
+ exports2.isStrictMode = function(object) {
46066
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
46067
+ };
46068
+ exports2.isSuspense = function(object) {
46069
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
46070
+ };
46071
+ exports2.isSuspenseList = function(object) {
46072
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
46073
+ };
46074
+ exports2.isValidElementType = function(type) {
46075
+ return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
46076
+ };
46077
+ exports2.typeOf = typeOf;
46078
+ }();
46174
46079
  }
46175
46080
  });
46176
46081
 
@@ -46179,7 +46084,7 @@ var require_react_is = __commonJS({
46179
46084
  "../../node_modules/react-is/index.js"(exports2, module2) {
46180
46085
  "use strict";
46181
46086
  if (process.env.NODE_ENV === "production") {
46182
- module2.exports = require_react_is_production_min();
46087
+ module2.exports = require_react_is_production();
46183
46088
  } else {
46184
46089
  module2.exports = require_react_is_development();
46185
46090
  }
@@ -53048,7 +52953,7 @@ var upgrades = [
53048
52953
  var package_default = {
53049
52954
  name: "@carbon/upgrade",
53050
52955
  description: "A tool for upgrading Carbon versions",
53051
- version: "11.26.0-rc.0",
52956
+ version: "11.27.0-rc.0",
53052
52957
  license: "Apache-2.0",
53053
52958
  bin: {
53054
52959
  "carbon-upgrade": "./bin/carbon-upgrade.js"
@@ -53285,12 +53190,12 @@ fill-range/index.js:
53285
53190
  * Licensed under the MIT License.
53286
53191
  *)
53287
53192
 
53288
- react-is/cjs/react-is.production.min.js:
53193
+ react-is/cjs/react-is.production.js:
53289
53194
  (**
53290
53195
  * @license React
53291
- * react-is.production.min.js
53196
+ * react-is.production.js
53292
53197
  *
53293
- * Copyright (c) Facebook, Inc. and its affiliates.
53198
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
53294
53199
  *
53295
53200
  * This source code is licensed under the MIT license found in the
53296
53201
  * LICENSE file in the root directory of this source tree.
@@ -53301,7 +53206,7 @@ react-is/cjs/react-is.development.js:
53301
53206
  * @license React
53302
53207
  * react-is.development.js
53303
53208
  *
53304
- * Copyright (c) Facebook, Inc. and its affiliates.
53209
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
53305
53210
  *
53306
53211
  * This source code is licensed under the MIT license found in the
53307
53212
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/upgrade",
3
3
  "description": "A tool for upgrading Carbon versions",
4
- "version": "11.26.0-rc.0",
4
+ "version": "11.27.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
7
7
  "carbon-upgrade": "./bin/carbon-upgrade.js"
@@ -61,5 +61,5 @@
61
61
  "@ibm/telemetry-js": "^1.5.0",
62
62
  "jscodeshift": "^17.0.0"
63
63
  },
64
- "gitHead": "0d87b91846d3b2a877f9f385f4f4b16214388315"
64
+ "gitHead": "3b78e2acacf62b0a9e5425e5f3b43e6798cd209f"
65
65
  }