@pushwoosh/websdk-common 0.0.0 → 6.16.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.
package/package.json CHANGED
@@ -1,23 +1,44 @@
1
1
  {
2
2
  "name": "@pushwoosh/websdk-common",
3
- "version": "0.0.0",
4
- "description": "Framework-agnostic code shared by the Pushwoosh WebSDK and the Control Panel",
3
+ "version": "6.16.0",
4
+ "description": "Code shared by the Pushwoosh WebSDK and the Control Panel, one entry point per module (web-popups: web popup model and renderer)",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "types": "index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "default": "./index.js"
12
+ },
13
+ "./web-popups": {
14
+ "types": "./web-popups/index.d.ts",
15
+ "default": "./web-popups/index.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
8
19
  "sideEffects": false,
9
20
  "publishConfig": {
10
21
  "access": "public",
11
22
  "directory": "dist"
12
23
  },
24
+ "devDependencies": {
25
+ "@types/react": "^18.3.31",
26
+ "react": "^18.3.1",
27
+ "typescript": "^6.0.3",
28
+ "vitest": "^4.1.10"
29
+ },
30
+ "peerDependencies": {
31
+ "react": ">=18.0.0"
32
+ },
13
33
  "engines": {
14
34
  "node": ">= 24"
15
35
  },
16
36
  "scripts": {
17
37
  "build": "pushwoosh-engine lib:build",
18
38
  "check": "pnpm run check:lint && pnpm run check:types",
19
- "check:lint": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src",
20
- "check:lint-fix": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src --fix",
21
- "check:types": "echo \"Run check:types\" && pushwoosh-engine lib:check-types"
39
+ "check:lint": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src ./tests",
40
+ "check:lint-fix": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src ./tests --fix",
41
+ "check:types": "echo \"Run check:types\" && pushwoosh-engine lib:check-types && tsc --noEmit -p tsconfig.json",
42
+ "test": "vitest run"
22
43
  }
23
44
  }
@@ -0,0 +1,4 @@
1
+ import { type WebPopupBoxProps, type WebPopupReaderProps, type WebPopupSlotViewProps } from './types';
2
+ export declare function WebPopupSlotView({ slot, align, inverse, colors, mode, onRequestClose, onPageChange, onSubmitForm, onSubmitChoice, onSubmitRating, onRequestSubscribe, }: WebPopupSlotViewProps): import("react").JSX.Element;
3
+ export declare function WebPopupBox({ page, params, mode, colorScheme, leafRenderers, animatePage, onRequestClose, onPageChange, onSubmitForm, onSubmitChoice, onSubmitRating, onRequestSubscribe, }: WebPopupBoxProps): import("react").JSX.Element;
4
+ export declare function WebPopupReader({ params, mode, colorScheme, onRequestClose, onSubmitForm, onSubmitChoice, onSubmitRating, onRequestSubscribe, leafRenderers, }: WebPopupReaderProps): import("react").JSX.Element | null;