@carbonorm/carbonreact 4.0.6 → 4.0.8
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/dist/CarbonReact.d.ts +4 -3
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/WebSocket/CarbonWebSocket.d.ts +3 -3
- package/dist/index.cjs.js +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/CarbonReact.tsx +8 -6
- package/src/components/Alert/Alert.tsx +3 -3
- package/src/components/WebSocket/CarbonWebSocket.tsx +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -4363,8 +4363,11 @@ class CarbonReact extends Component {
|
|
|
4363
4363
|
context = createContext(this.state);
|
|
4364
4364
|
target;
|
|
4365
4365
|
static _instance;
|
|
4366
|
+
static getInstance() {
|
|
4367
|
+
return this._instance;
|
|
4368
|
+
}
|
|
4366
4369
|
static get instance() {
|
|
4367
|
-
return this;
|
|
4370
|
+
return this.getInstance();
|
|
4368
4371
|
}
|
|
4369
4372
|
static set instance(instance) {
|
|
4370
4373
|
this._instance = instance;
|