From 4a5e1b1b59c3c0f5976895fda096d9d8609f2a10 Mon Sep 17 00:00:00 2001 From: Amirhossein Alibakhshi Date: Sun, 4 Aug 2024 19:23:21 +0330 Subject: [PATCH] fix: rename pakhage --- Readme.md | 2 +- package.json | 2 +- src/components/{SchemaSaz.tsx => SchemaSaaz.tsx} | 4 ++-- src/index.ts | 4 ++-- src/stories/SchemaBuilder.stories.tsx | 16 ++++++++-------- 5 files changed, 14 insertions(+), 14 deletions(-) rename src/components/{SchemaSaz.tsx => SchemaSaaz.tsx} (94%) diff --git a/Readme.md b/Readme.md index beaa874..c8c4573 100644 --- a/Readme.md +++ b/Readme.md @@ -2,7 +2,7 @@ schema builder logo, a combination of S and B characters in a blue palette -[![npm](https://img.shields.io/npm/v/schema-saz)](https://www.npmjs.com/package/schema-saz) +[![npm](https://img.shields.io/npm/v/schema-saaz)](https://www.npmjs.com/package/schema-saaz) # Schema Sasz diff --git a/package.json b/package.json index e1de84b..ba24497 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "schema-saz", + "name": "schema-saaz", "version": "0.0.0", "description": "A Simple User Interface for creating JSON Schema without writing JSON!", "main": "dist/index.js", diff --git a/src/components/SchemaSaz.tsx b/src/components/SchemaSaaz.tsx similarity index 94% rename from src/components/SchemaSaz.tsx rename to src/components/SchemaSaaz.tsx index b4d85cc..5b6f819 100644 --- a/src/components/SchemaSaz.tsx +++ b/src/components/SchemaSaaz.tsx @@ -14,7 +14,7 @@ type SchemaBuilderProps = { hideFormTab?: boolean; }; -const SchemaSaz = ({ onChange, hideSchemaTab = false, hideFormTab = false }: SchemaBuilderProps) => { +const SchemaSaaz = ({ onChange, hideSchemaTab = false, hideFormTab = false }: SchemaBuilderProps) => { const { schema } = useSchema(); const [highlightedSchema, setHighlightedSchema] = useState(''); const [tab, setTab] = useState(0); @@ -61,4 +61,4 @@ const SchemaSaz = ({ onChange, hideSchemaTab = false, hideFormTab = false }: Sch ); }; -export default SchemaSaz; +export default SchemaSaaz; diff --git a/src/index.ts b/src/index.ts index 5c1fa2b..50fa8ef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ -import SchemaSaz from './components/SchemaSaz'; -export default SchemaSaz; +import SchemaSaaz from './components/SchemaSaaz'; +export default SchemaSaaz; export * from './types'; export { useSchema, SchemaProvider } from './providers/SchemaProvider'; diff --git a/src/stories/SchemaBuilder.stories.tsx b/src/stories/SchemaBuilder.stories.tsx index e6548ec..3099e61 100644 --- a/src/stories/SchemaBuilder.stories.tsx +++ b/src/stories/SchemaBuilder.stories.tsx @@ -2,7 +2,7 @@ // @ts-nocheck import React, { useState } from 'react'; import { Meta, Story } from '@storybook/react'; -import SchemaSaz from '../components/SchemaSaz'; +import SchemaSaaz from '../components/SchemaSaaz'; import { STRING_WIDGETS } from '../constants'; import { SchemaProvider } from '../providers/SchemaProvider'; import { createTheme, ThemeProvider } from '@mui/material'; @@ -98,9 +98,9 @@ const sampleSchema: RJSFSchema = { additionalProperties: false, }; -const meta: Meta = { +const meta: Meta = { title: 'Schema Builder', - component: SchemaSaz, + component: SchemaSaaz, argTypes: { hideSchemaTab: { control: 'boolean', @@ -115,7 +115,7 @@ const meta: Meta = { const PrimitivesTemplate: Story = (args) => ( - + ); @@ -129,7 +129,7 @@ Formats.args = { const DefaultValueTemplate: Story = (args) => ( - + ); @@ -143,7 +143,7 @@ const ThemedTemplate: Story = (args) => { return ( - + ); @@ -196,7 +196,7 @@ const customTemplate = { const FaqTemplate: Story = (args) => ( - + ); export const CustomTemplate = FaqTemplate.bind({}); @@ -210,7 +210,7 @@ const ControlledTemplate: Story = (args) => {
{JSON.stringify(schema, null, 2)}
- setSchema(updatedSchema)} {...args} /> + setSchema(updatedSchema)} {...args} /> );