@tagadapay/plugin-sdk 2.0.1 → 2.0.2

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/README.md +4 -46
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -122,11 +122,11 @@ npm install @tagadapay/plugin-sdk
122
122
 
123
123
  ```tsx
124
124
  import React from 'react';
125
- import {
126
- TagadaProvider,
125
+ import {
126
+ TagadaProvider,
127
127
  usePluginConfig,
128
128
  useGoogleAutocomplete,
129
- useISOData
129
+ useISOData,
130
130
  } from '@tagadapay/plugin-sdk/react';
131
131
 
132
132
  function MyPlugin() {
@@ -134,7 +134,7 @@ function MyPlugin() {
134
134
 
135
135
  // Optional: Add address autocomplete
136
136
  const { searchPlaces, predictions } = useGoogleAutocomplete({
137
- apiKey: config?.googleMapsApiKey || 'YOUR_API_KEY'
137
+ apiKey: config?.googleMapsApiKey || 'YOUR_API_KEY',
138
138
  });
139
139
 
140
140
  // Optional: Add country/region data
@@ -347,48 +347,6 @@ npx @tagadapay/plugin-cli deploy --env production
347
347
  }
348
348
  ```
349
349
 
350
- ### Environment Variables
351
-
352
- ```env
353
- TAGADAPAY_API_KEY=your_api_key
354
- TAGADAPAY_ENVIRONMENT=sandbox
355
- TAGADAPAY_STORE_ID=your_store_id
356
- ```
357
-
358
- ## 🎨 Styling & Themes
359
-
360
- ### CSS Custom Properties
361
-
362
- ```css
363
- :root {
364
- --tagada-primary: #007bff;
365
- --tagada-secondary: #6c757d;
366
- --tagada-success: #28a745;
367
- --tagada-danger: #dc3545;
368
- --tagada-border-radius: 4px;
369
- --tagada-font-family: -apple-system, BlinkMacSystemFont, sans-serif;
370
- }
371
- ```
372
-
373
- ### Component Styling
374
-
375
- ```typescript
376
- import { styled } from '@tagadapay/plugin-sdk';
377
-
378
- const StyledButton = styled.button`
379
- background: var(--tagada-primary);
380
- color: white;
381
- border-radius: var(--tagada-border-radius);
382
- padding: 12px 24px;
383
- border: none;
384
- cursor: pointer;
385
-
386
- &:hover {
387
- opacity: 0.9;
388
- }
389
- `;
390
- ```
391
-
392
350
  ## 🔐 Security
393
351
 
394
352
  ### Best Practices
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagadapay/plugin-sdk",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Modern React SDK for building Tagada Pay plugins",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",