@simula/ads 1.1.0

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.
@@ -0,0 +1,22 @@
1
+ import { SimulaTheme } from '../types';
2
+ /**
3
+ * Validates SimulaProvider props
4
+ * Throws descriptive errors for invalid props
5
+ */
6
+ export declare const validateSimulaProviderProps: (props: any) => void;
7
+ /**
8
+ * Validates InChatAdSlot props
9
+ * Throws descriptive errors for invalid props
10
+ */
11
+ export declare const validateInChatAdSlotProps: (props: any) => void;
12
+ /**
13
+ * Validates formats - accepts string or string[]
14
+ * Throws descriptive errors for invalid formats
15
+ */
16
+ export declare const validateFormats: (formats?: string | string[]) => void;
17
+ /**
18
+ * Validates theme object
19
+ * Throws descriptive errors for invalid theme properties
20
+ */
21
+ export declare const validateTheme: (theme?: SimulaTheme) => void;
22
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAOvC;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GAAI,OAAO,GAAG,KAAG,IA8BxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,GAAI,OAAO,GAAG,KAAG,IA0EtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,GAAG,MAAM,EAAE,KAAG,IAgB7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,WAAW,KAAG,IAmEnD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@simula/ads",
3
+ "version": "1.1.0",
4
+ "description": "React SDK for integrating contextual AI ads with Simula",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist/",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "scripts": {
22
+ "build": "rollup -c",
23
+ "dev": "rollup -c -w",
24
+ "prepublishOnly": "npm run build",
25
+ "type-check": "tsc --noEmit"
26
+ },
27
+ "keywords": [
28
+ "react",
29
+ "ai",
30
+ "ads",
31
+ "sdk",
32
+ "contextual",
33
+ "llm",
34
+ "chatbot",
35
+ "monetization",
36
+ "typescript"
37
+ ],
38
+ "author": {
39
+ "name": "Simula",
40
+ "email": "support@simula.ad",
41
+ "url": "https://simula.ad"
42
+ },
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/Simula-AI-SDK/simula-ad-sdk.git"
46
+ },
47
+ "bugs": {
48
+ "url": "https://github.com/Simula-AI-SDK/simula-ad-sdk/issues"
49
+ },
50
+ "homepage": "https://simula.ad/",
51
+ "license": "MIT",
52
+ "peerDependencies": {
53
+ "react": ">=16.8.0",
54
+ "react-dom": ">=16.8.0"
55
+ },
56
+ "dependencies": {
57
+ "@fingerprintjs/botd": "^1.9.1",
58
+ "uuid": "^13.0.0"
59
+ },
60
+ "devDependencies": {
61
+ "@rollup/plugin-commonjs": "^25.0.7",
62
+ "@rollup/plugin-node-resolve": "^15.2.3",
63
+ "@rollup/plugin-typescript": "^11.1.5",
64
+ "@types/react": "^18.2.45",
65
+ "@types/react-dom": "^18.2.18",
66
+ "@types/uuid": "^10.0.0",
67
+ "rollup": "^4.9.1",
68
+ "rollup-plugin-dts": "^6.1.0",
69
+ "rollup-plugin-peer-deps-external": "^2.2.4",
70
+ "tslib": "^2.6.2",
71
+ "typescript": "^5.3.3"
72
+ },
73
+ "engines": {
74
+ "node": ">=16.0.0"
75
+ }
76
+ }