@inappstory/react-sdk 1.8.0-rc.9 → 1.8.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.
@@ -56,7 +56,7 @@ export type StoryManagerConfig = {
56
56
  /**
57
57
  * Use anonymous session. Warning: not all functionality will be available.
58
58
  */
59
- anonymous?: boolean
59
+ anonymous?: boolean;
60
60
 
61
61
  /**
62
62
  * The field is responsible for passing user variables and widget variables (for example, the "products" widget)
@@ -67,6 +67,41 @@ export type StoryManagerConfig = {
67
67
  */
68
68
  pos?: string;
69
69
  } & Record<string, any>;
70
+
71
+ /**
72
+ * A local BLOB-based cache used to prefetch data or as a fallback when the standard HTTP cache is unavailable (e.g., in environments with limited WebView).
73
+ * */
74
+ cache?: {
75
+ /** Cache type: 'memory' — fast but temporary; 'indexeddb' — persistent
76
+ * @default "indexeddb"
77
+ */
78
+ type: "memory" | "indexeddb";
79
+
80
+ /** Maximum cache size (e.g., in bytes or number of elements)
81
+ * @default 20
82
+ */
83
+ maxSize?: number;
84
+
85
+ /** Resource lifetime in the cache (in seconds).
86
+ * @default 0 (infinite)
87
+ */
88
+ ttl?: number;
89
+
90
+ /** Cache operation logging (for debugging)
91
+ * @default false
92
+ */
93
+ debug?: boolean;
94
+
95
+ /** Maximum number of parallel requests
96
+ * @default 5
97
+ */
98
+ concurrency?: number;
99
+
100
+ /** Prefetch resources
101
+ * @default false
102
+ */
103
+ prefetch?: boolean;
104
+ };
70
105
  };
71
106
 
72
107
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/react-sdk",
3
- "version": "1.8.0-rc.9",
3
+ "version": "1.8.0",
4
4
  "description": "React SDK",
5
5
  "keywords": [
6
6
  "stories",
@@ -58,7 +58,7 @@
58
58
  "Samsung >= 5"
59
59
  ],
60
60
  "dependencies": {
61
- "@inappstory/slide-api": "^0.1.24",
61
+ "@inappstory/slide-api": "^0.1.25",
62
62
  "async-mutex": "^0.5.0",
63
63
  "bowser": "^2.11.0",
64
64
  "classnames": "^2.5.1",