@oxyhq/services 5.1.31 → 5.1.33

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.
Files changed (2) hide show
  1. package/UI_COMPONENTS.md +23 -1
  2. package/package.json +19 -1
package/UI_COMPONENTS.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  This document provides details about the UI components available in the `@oxyhq/services` package.
4
4
 
5
+ ## Import Guide
6
+
7
+ The package provides different entry points for different use cases:
8
+
9
+ ### For Node.js/Express (Server-side only)
10
+ ```javascript
11
+ // Only core services and models - no UI components
12
+ import { OxyServices } from '@oxyhq/services';
13
+ ```
14
+
15
+ ### For React/React Native apps (UI components only)
16
+ ```javascript
17
+ // UI components and context providers
18
+ import { OxyProvider, OxySignInButton, OxyLogo, Avatar } from '@oxyhq/services/ui';
19
+ ```
20
+
21
+ ### For full package (Core + UI)
22
+ ```javascript
23
+ // Everything - core services, models, and UI components
24
+ import { OxyServices, OxyProvider, OxySignInButton } from '@oxyhq/services/full';
25
+ ```
26
+
5
27
  ## Table of Contents
6
28
 
7
29
  - [OxyProvider](#oxyprovider)
@@ -20,7 +42,7 @@ This document provides details about the UI components available in the `@oxyhq/
20
42
  The main provider component that manages authentication state and exposes the bottom sheet for sign-in, sign-up, and account management.
21
43
 
22
44
  ```tsx
23
- import { OxyProvider } from '@oxyhq/services';
45
+ import { OxyProvider } from '@oxyhq/services/ui';
24
46
 
25
47
  // In your app
26
48
  <OxyProvider
package/package.json CHANGED
@@ -1,12 +1,30 @@
1
1
  {
2
2
  "name": "@oxyhq/services",
3
- "version": "5.1.31",
3
+ "version": "5.1.33",
4
4
  "description": "Reusable OxyHQ module to handle authentication, user management, karma system and more 🚀",
5
5
  "main": "lib/commonjs/node/index.js",
6
6
  "module": "lib/module/node/index.js",
7
7
  "types": "lib/typescript/node/index.d.ts",
8
8
  "react-native": "src/index.ts",
9
9
  "source": "src/index.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./lib/module/node/index.js",
13
+ "require": "./lib/commonjs/node/index.js",
14
+ "types": "./lib/typescript/node/index.d.ts"
15
+ },
16
+ "./ui": {
17
+ "import": "./lib/module/ui/index.js",
18
+ "require": "./lib/commonjs/ui/index.js",
19
+ "types": "./lib/typescript/ui/index.d.ts"
20
+ },
21
+ "./full": {
22
+ "import": "./lib/module/index.js",
23
+ "require": "./lib/commonjs/index.js",
24
+ "types": "./lib/typescript/index.d.ts"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
10
28
  "files": [
11
29
  "src",
12
30
  "lib",