shiny-url-input-box 1.0.0 → 1.0.1

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
@@ -35,7 +35,7 @@ function App() {
35
35
  // With explicit API URL
36
36
  return (
37
37
  <ShinyUrlInput
38
- apiBaseUrl="http://localhost:5000"
38
+ apiBaseUrl="https://shinyurl-backend.onrender.com"
39
39
  onSuccess={handleSuccess}
40
40
  onError={handleError}
41
41
  label="Enter URL to shorten"
@@ -23,7 +23,7 @@ const getDefaultApiBaseUrl = () => {
23
23
  // Use same origin if available
24
24
  return window.location.origin;
25
25
  }
26
- return 'http://localhost:5000';
26
+ return 'https://shinyurl-backend.onrender.com';
27
27
  };
28
28
  const ShinyUrlInput = ({ apiKey, apiBaseUrl, onSuccess, onError, label = 'Enter URL to shorten', buttonText = 'Shorten URL', className = '', installationPageUrl }) => {
29
29
  const [url, setUrl] = useState('');
@@ -23,7 +23,7 @@ const getDefaultApiBaseUrl = () => {
23
23
  // Use same origin if available
24
24
  return window.location.origin;
25
25
  }
26
- return 'http://localhost:5000';
26
+ return 'https://shinyurl-backend.onrender.com';
27
27
  };
28
28
  const TinyUrlInput = ({ apiBaseUrl, onSuccess, onError, label = 'Enter URL to shorten', buttonText = 'Shorten URL', className = '' }) => {
29
29
  const [url, setUrl] = useState('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiny-url-input-box",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A reusable React component for generating ShinyURLs",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -46,7 +46,7 @@ const getDefaultApiBaseUrl = (): string => {
46
46
  // Use same origin if available
47
47
  return window.location.origin;
48
48
  }
49
- return 'http://localhost:5000';
49
+ return 'https://shinyurl-backend.onrender.com';
50
50
  };
51
51
 
52
52
  const ShinyUrlInput: React.FC<ShinyUrlInputProps> = ({
@@ -23,7 +23,7 @@ const getDefaultApiBaseUrl = () => {
23
23
  // Use same origin if available
24
24
  return window.location.origin;
25
25
  }
26
- return 'http://localhost:5000';
26
+ return 'https://shinyurl-backend.onrender.com';
27
27
  };
28
28
 
29
29
  const TinyUrlInput = ({
@@ -44,7 +44,7 @@ const getDefaultApiBaseUrl = (): string => {
44
44
  // Use same origin if available
45
45
  return window.location.origin;
46
46
  }
47
- return 'http://localhost:5000';
47
+ return 'https://shinyurl-backend.onrender.com';
48
48
  };
49
49
 
50
50
  const TinyUrlInput: React.FC<TinyUrlInputProps> = ({