@action-x/ad-sdk 0.1.2 → 0.1.3

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 +5 -5
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -17,7 +17,7 @@ pnpm add @action-x/ad-sdk
17
17
  **Import styles (required):**
18
18
 
19
19
  ```js
20
- import '@action-x/ad-sdk/dist/style.css';
20
+ import '@action-x/ad-sdk/style.css';
21
21
  ```
22
22
 
23
23
  ---
@@ -37,7 +37,7 @@ Below are AdCard wrapper examples for different frameworks. The component takes
37
37
  <script setup>
38
38
  import { ref, onMounted, onUnmounted } from 'vue';
39
39
  import { AdManager } from '@action-x/ad-sdk';
40
- import '@action-x/ad-sdk/dist/style.css';
40
+ import '@action-x/ad-sdk/style.css';
41
41
 
42
42
  const props = defineProps(['query', 'response']);
43
43
  const adEl = ref(null);
@@ -64,7 +64,7 @@ onUnmounted(() => manager?.destroy());
64
64
  // components/AdCard.tsx
65
65
  import { useEffect, useRef } from 'react';
66
66
  import { AdManager } from '@action-x/ad-sdk';
67
- import '@action-x/ad-sdk/dist/style.css';
67
+ import '@action-x/ad-sdk/style.css';
68
68
 
69
69
  interface Props {
70
70
  query: string;
@@ -99,7 +99,7 @@ export function AdCard({ query, response }: Props) {
99
99
 
100
100
  ```js
101
101
  import { AdManager } from '@action-x/ad-sdk';
102
- import '@action-x/ad-sdk/dist/style.css';
102
+ import '@action-x/ad-sdk/style.css';
103
103
 
104
104
  const manager = new AdManager({
105
105
  apiBaseUrl: 'https://your-api.example.com/api/v1',
@@ -118,7 +118,7 @@ manager.render(document.getElementById('ad-card'));
118
118
  ### CDN (No Build Tool)
119
119
 
120
120
  ```html
121
- <link rel="stylesheet" href="https://unpkg.com/@action-x/ad-sdk/dist/style.css" />
121
+ <link rel="stylesheet" href="https://unpkg.com/@action-x/ad-sdk/style.css" />
122
122
  <script src="https://unpkg.com/@action-x/ad-sdk/dist/index.umd.js"></script>
123
123
 
124
124
  <div id="ad-card"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@action-x/ad-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Zero-dependency ad SDK for ActionX",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -20,7 +20,10 @@
20
20
  "scripts": {
21
21
  "build": "tsc --noEmit && vite build",
22
22
  "dev": "vite build --watch",
23
- "typecheck": "tsc --noEmit"
23
+ "typecheck": "tsc --noEmit",
24
+ "release": "npm version patch && git push && git push --tags",
25
+ "release:minor": "npm version minor && git push && git push --tags",
26
+ "release:major": "npm version major && git push && git push --tags"
24
27
  },
25
28
  "devDependencies": {
26
29
  "typescript": "^5.3.0",