Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Run TypeScript type check
run: npm run typecheck

Expand Down Expand Up @@ -106,4 +103,3 @@ jobs:
name: storybook-static
path: storybook-static/
retention-days: 7

10 changes: 3 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
run: |
# Get current version from package.json
CURRENT_VERSION=$(node -p "require('./package.json').version")

# Get previous version from parent commit
git checkout HEAD~1 -- package.json 2>/dev/null || true
PREVIOUS_VERSION=$(node -p "require('./package.json').version" 2>/dev/null || echo "0.0.0")
git checkout HEAD -- package.json

echo "Current version: $CURRENT_VERSION"
echo "Previous version: $PREVIOUS_VERSION"

if [ "$CURRENT_VERSION" != "$PREVIOUS_VERSION" ]; then
echo "Version changed from $PREVIOUS_VERSION to $CURRENT_VERSION"
echo "changed=true" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -69,9 +69,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Run tests
run: npm run test

Expand All @@ -93,4 +90,3 @@ jobs:
prerelease: ${{ contains(needs.check-version.outputs.new_version, '-') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

7 changes: 1 addition & 6 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-docs',
'@storybook/addon-a11y',
'@storybook/addon-vitest',
'@chromatic-com/storybook',
],
addons: ['@storybook/addon-docs'],
framework: '@storybook/react-vite',
docs: {},
typescript: {
Expand Down
7 changes: 0 additions & 7 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ const preview: Preview = {
],
},
layout: 'centered',
a11y: {
test: 'todo',
},
options: {
// Sort stories with Welcome first
storySort: {
Expand All @@ -35,10 +32,6 @@ const preview: Preview = {
],
},
},
// Disable version update notifications
chromatic: {
disableSnapshot: false,
},
},
tags: ['autodocs'],
};
Expand Down
7 changes: 0 additions & 7 deletions .storybook/vitest.setup.ts

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

A sophisticated, elegant, and performant tooltip library for React with an intelligent floating helper system.

![npm version](https://img.shields.io/npm/v/react-tip-magic)
![bundle size](https://img.shields.io/bundlephobia/minzip/react-tip-magic)
![license](https://img.shields.io/npm/l/react-tip-magic)
![npm version](https://img.shields.io/npm/v/@galangel/react-tip-magic)
![bundle size](https://img.shields.io/bundlephobia/minzip/@galangel/react-tip-magic)
![license](https://img.shields.io/npm/l/@galangel/react-tip-magic)

## Features

Expand All @@ -21,14 +21,14 @@ A sophisticated, elegant, and performant tooltip library for React with an intel
### Installation

```bash
npm install react-tip-magic
npm install @galangel/react-tip-magic
```

### Basic Setup

```tsx
import { TipMagicProvider } from 'react-tip-magic';
import 'react-tip-magic/styles.css';
import { TipMagicProvider } from '@galangel/react-tip-magic';
import '@galangel/react-tip-magic/styles.css';

function App() {
return (
Expand Down Expand Up @@ -106,7 +106,7 @@ The Helper is an optional floating element that provides contextual information
### Onboarding Flow Example

```tsx
import { useTipMagic } from 'react-tip-magic';
import { useTipMagic } from '@galangel/react-tip-magic';

function OnboardingFlow() {
const { helper } = useTipMagic();
Expand Down Expand Up @@ -163,7 +163,7 @@ helper.show({
Use the `useTipMagic` hook for full programmatic control:

```tsx
import { useTipMagic } from 'react-tip-magic';
import { useTipMagic } from '@galangel/react-tip-magic';

function MyComponent() {
const { tooltip, helper, config } = useTipMagic();
Expand Down
Loading
Loading