New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

astro-loading-indicator

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-loading-indicator - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

6

CHANGELOG.md
# astro-loading-indicator
## 0.2.0
### Minor Changes
- 5bdacd7: Removes the integration API and fixes the component
## 0.1.2

@@ -4,0 +10,0 @@

7

package.json
{
"name": "astro-loading-indicator",
"version": "0.1.2",
"version": "0.2.0",
"description": "Display a progress bar between page navigations when using View Transitions",

@@ -12,3 +12,2 @@ "author": {

"keywords": [
"astro-integration",
"astro-component",

@@ -25,4 +24,3 @@ "withastro",

"exports": {
".": "./src/index.ts",
"./deps": "./src/deps.ts"
"./component": "./src/LoadingIndicator.astro"
},

@@ -34,3 +32,2 @@ "type": "module",

"dependencies": {
"astro-integration-kit": "^0.0.2",
"nprogress": "^0.2.0"

@@ -37,0 +34,0 @@ },

@@ -13,55 +13,2 @@ # `astro-loading-indicator`

This package can be used in 2 ways:
- As an integration
- As a component
Scroll down if you want to see how to use the component!
#### Integration
Install the integration **automatically** using the Astro CLI:
```bash
pnpm astro add astro-loading-indicator
```
```bash
npm astro add astro-loading-indicator
```
```bash
yarn astro add astro-loading-indicator
```
Or install it **manually**:
1. Install the required dependencies
```bash
pnpm add astro-loading-indicator
```
```bash
npm install astro-loading-indicator
```
```bash
yarn add astro-loading-indicator
```
2. Add the integration to your astro config
```diff
+import astroLoadingIndicator from "astro-loading-indicator";
export default defineConfig({
integrations: [
+ astroLoadingIndicator({ ... }),
],
});
```
#### Component
Install the package **manually**:

@@ -88,3 +35,3 @@

import { ViewTransitions } from "astro:transitions";
+import { LoadingIndicator } from "astro-loading-indicator"
+import LoadingIndicator from "astro-loading-indicator/component"

@@ -106,3 +53,3 @@ ---

```ts
export type Options = {
export type Props = {
color: string;

@@ -117,17 +64,2 @@ height?: string;

```ts
import { defineConfig } from "astro/config";
import astroLoadingIndicator from "astro-loading-indicator";
export default defineConfig({
integrations: [
astroLoadingIndicator({
color: "#7e22ce",
// color: "red",
// color: "var(--myColor)"
}),
],
});
```
```tsx

@@ -145,16 +77,2 @@ <LoadingIndicator

```ts
import { defineConfig } from "astro/config";
import astroLoadingIndicator from "astro-loading-indicator";
export default defineConfig({
integrations: [
astroLoadingIndicator({
// ...
height: "1rem",
}),
],
});
```
```tsx

@@ -161,0 +79,0 @@ <LoadingIndicator

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc