Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hadi/react-sdk'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.yarn/install-state.gz
#	apps/express-trial/src/main.ts
#	examples/frontend/react/package.json
#	examples/frontend/react/yarn.lock
#	examples/fullstack/nextjs/app/package.json
#	examples/fullstack/nextjs/pages/package.json
#	package.json
#	packages/@justaname.id/react/CHANGELOG.md
#	packages/@justaname.id/react/package.json
#	packages/@justaname.id/react/src/lib/hooks/index.ts
#	packages/@justaname.id/react/src/lib/hooks/useAccountSubnames.ts
#	packages/@justaname.id/react/src/lib/hooks/useAddSubname.ts
#	packages/@justaname.id/react/src/lib/hooks/useUpdateSubname.ts
#	packages/@justaname.id/react/src/lib/providers/JustaNameProvider.tsx
#	packages/@justaname.id/sdk/package.json
#	packages/@justaname.id/sdk/src/lib/api/routes/index.ts
#	packages/@justaname.id/sdk/src/lib/features/subnames/index.ts
#	packages/@justaname.id/sdk/src/lib/types/subnames/index.ts
#	yarn.lock
  • Loading branch information
HadiKhai committed May 1, 2024
2 parents 49911fc + ef98973 commit 67ca34e
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ const queryClient = new QueryClient({
}
});


/**
* Type definition for the properties available in the JustaNameContext.
*
*
* @typedef JustaNameContextProps
* @type {object}
* @property {JustaName | null} justaname - The JustaName SDK instance.
Expand All @@ -47,7 +48,7 @@ const JustaNameContext = React.createContext<JustaNameContextProps>({

/**
* Props for the JustaNameProvider component.
*
*
* @typedef JustaNameProvider
* @type {object}
* @property {React.ReactNode} children - The child components.
Expand All @@ -65,7 +66,7 @@ export interface JustaNameProvider {
/**
* Provides JustaName context to child components, allowing them to access and interact
* with the JustaName service.
*
*
* @component
* @param {JustaNameProviderProps} props - The props for the JustaNameProvider component.
* @returns {React.ReactNode} The provider component wrapping children.
Expand Down Expand Up @@ -112,7 +113,7 @@ export default JustaNameProvider;

/**
* Custom hook for accessing the JustaNameContext.
*
*
* @hook
* @returns {JustaNameContextProps} The context value with JustaName service instance and configuration.
* @throws {Error} If the hook is used outside a JustaNameProvider.
Expand Down
24 changes: 24 additions & 0 deletions packages/@justaname.id/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
## 0.2.0 (2024-03-29)


### 🚀 Features

- change claim to add ([3d11958](https://github.com/JustaName-id/JustaName-sdk/commit/3d11958))

- added documentation to package ([f9e8bfe](https://github.com/JustaName-id/JustaName-sdk/commit/f9e8bfe))

- claim to accept ([582863c](https://github.com/JustaName-id/JustaName-sdk/commit/582863c))


### 🩹 Fixes

- origin in create-justaname-app ([#6](https://github.com/JustaName-id/JustaName-sdk/pull/6))


### ❤️ Thank You

- AngeloAyranji @AngeloAyranji
- anthony2399
- HadiKhai
- JustHadi @HadiKhai

## 0.0.4 (2024-03-21)


Expand Down
2 changes: 1 addition & 1 deletion packages/@justaname.id/sdk/src/lib/types/subnames/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export * from './reserve';
export * from './revoke';
export * from './search-subnames';
export * from './update';
export * from './accept'
export * from './accept'
23 changes: 23 additions & 0 deletions packages/create-justaname-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## 0.3.0 (2024-03-29)


### 🚀 Features

- remove docusaurus ([24983e1](https://github.com/JustaName-id/JustaName-sdk/commit/24983e1))

- expo basic ([ca621da](https://github.com/JustaName-id/JustaName-sdk/commit/ca621da))

- added documentation to package ([f9e8bfe](https://github.com/JustaName-id/JustaName-sdk/commit/f9e8bfe))


### 🩹 Fixes

- origin in create-justaname-app ([#6](https://github.com/JustaName-id/JustaName-sdk/pull/6))


### ❤️ Thank You

- AngeloAyranji @AngeloAyranji
- HadiKhai
- JustHadi @HadiKhai

## 0.0.4 (2024-03-21)


Expand Down
2 changes: 1 addition & 1 deletion packages/create-justaname-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-justaname-app",
"version": "0.1.2",
"version": "0.3.0",
"dependencies": {
"@inquirer/prompts": "^4.3.0",
"@rollup/plugin-commonjs": "^25.0.7",
Expand Down

0 comments on commit 67ca34e

Please sign in to comment.