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 +1 -1
- package/dist/ShinyUrlInput.js +1 -1
- package/dist/TinyUrlInput.js +1 -1
- package/package.json +1 -1
- package/src/ShinyUrlInput.tsx +1 -1
- package/src/TinyUrlInput.jsx +1 -1
- package/src/TinyUrlInput.tsx +1 -1
package/README.md
CHANGED
package/dist/ShinyUrlInput.js
CHANGED
|
@@ -23,7 +23,7 @@ const getDefaultApiBaseUrl = () => {
|
|
|
23
23
|
// Use same origin if available
|
|
24
24
|
return window.location.origin;
|
|
25
25
|
}
|
|
26
|
-
return '
|
|
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('');
|
package/dist/TinyUrlInput.js
CHANGED
|
@@ -23,7 +23,7 @@ const getDefaultApiBaseUrl = () => {
|
|
|
23
23
|
// Use same origin if available
|
|
24
24
|
return window.location.origin;
|
|
25
25
|
}
|
|
26
|
-
return '
|
|
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
package/src/ShinyUrlInput.tsx
CHANGED
|
@@ -46,7 +46,7 @@ const getDefaultApiBaseUrl = (): string => {
|
|
|
46
46
|
// Use same origin if available
|
|
47
47
|
return window.location.origin;
|
|
48
48
|
}
|
|
49
|
-
return '
|
|
49
|
+
return 'https://shinyurl-backend.onrender.com';
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
const ShinyUrlInput: React.FC<ShinyUrlInputProps> = ({
|
package/src/TinyUrlInput.jsx
CHANGED
package/src/TinyUrlInput.tsx
CHANGED
|
@@ -44,7 +44,7 @@ const getDefaultApiBaseUrl = (): string => {
|
|
|
44
44
|
// Use same origin if available
|
|
45
45
|
return window.location.origin;
|
|
46
46
|
}
|
|
47
|
-
return '
|
|
47
|
+
return 'https://shinyurl-backend.onrender.com';
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
const TinyUrlInput: React.FC<TinyUrlInputProps> = ({
|