@orsetra/shared-ui 1.0.6 → 1.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.
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import * as React from "react"
2
4
 
3
5
  const MOBILE_BREAKPOINT = 768
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import { useEffect, useRef, useState } from 'react'
2
4
 
3
5
  interface UseWebSocketReturn<T> {
@@ -1,18 +1,14 @@
1
1
  // Simplified HTTP client without AWS Amplify dependencies
2
2
 
3
3
  class HttpClient {
4
- private static instance: HttpClient;
5
4
  private baseUrl: string;
6
5
 
7
6
  private constructor(baseUrl: string) {
8
- this.baseUrl = baseUrl || process.env.NEXT_PUBLIC_API_URL || '';
7
+ this.baseUrl = baseUrl || '';
9
8
  }
10
9
 
11
10
  public static getInstance(baseUrl: string): HttpClient {
12
- if (!HttpClient.instance) {
13
- HttpClient.instance = new HttpClient(baseUrl);
14
- }
15
- return HttpClient.instance;
11
+ return new HttpClient(baseUrl);
16
12
  }
17
13
 
18
14
  private getFullUrl(path: string): string {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",