@schematichq/schematic-react 1.2.15 → 1.2.16
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.
|
@@ -799,7 +799,7 @@ function contextString(context) {
|
|
|
799
799
|
}, {});
|
|
800
800
|
return JSON.stringify(sortedContext);
|
|
801
801
|
}
|
|
802
|
-
var version = "1.2.
|
|
802
|
+
var version = "1.2.16";
|
|
803
803
|
var anonymousIdKey = "schematicId";
|
|
804
804
|
var Schematic = class {
|
|
805
805
|
additionalHeaders = {};
|
|
@@ -876,8 +876,13 @@ var Schematic = class {
|
|
|
876
876
|
};
|
|
877
877
|
if (options?.storage) {
|
|
878
878
|
this.storage = options.storage;
|
|
879
|
-
} else
|
|
880
|
-
|
|
879
|
+
} else {
|
|
880
|
+
try {
|
|
881
|
+
if (typeof localStorage !== "undefined") {
|
|
882
|
+
this.storage = localStorage;
|
|
883
|
+
}
|
|
884
|
+
} catch {
|
|
885
|
+
}
|
|
881
886
|
}
|
|
882
887
|
if (options?.apiUrl !== void 0) {
|
|
883
888
|
this.apiUrl = options.apiUrl;
|
|
@@ -2197,7 +2202,7 @@ var notifyFlagValueListener = (listener, value) => {
|
|
|
2197
2202
|
var import_react = __toESM(require("react"));
|
|
2198
2203
|
|
|
2199
2204
|
// src/version.ts
|
|
2200
|
-
var version2 = "1.2.
|
|
2205
|
+
var version2 = "1.2.16";
|
|
2201
2206
|
|
|
2202
2207
|
// src/context/schematic.tsx
|
|
2203
2208
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -754,7 +754,7 @@ function contextString(context) {
|
|
|
754
754
|
}, {});
|
|
755
755
|
return JSON.stringify(sortedContext);
|
|
756
756
|
}
|
|
757
|
-
var version = "1.2.
|
|
757
|
+
var version = "1.2.16";
|
|
758
758
|
var anonymousIdKey = "schematicId";
|
|
759
759
|
var Schematic = class {
|
|
760
760
|
additionalHeaders = {};
|
|
@@ -831,8 +831,13 @@ var Schematic = class {
|
|
|
831
831
|
};
|
|
832
832
|
if (options?.storage) {
|
|
833
833
|
this.storage = options.storage;
|
|
834
|
-
} else
|
|
835
|
-
|
|
834
|
+
} else {
|
|
835
|
+
try {
|
|
836
|
+
if (typeof localStorage !== "undefined") {
|
|
837
|
+
this.storage = localStorage;
|
|
838
|
+
}
|
|
839
|
+
} catch {
|
|
840
|
+
}
|
|
836
841
|
}
|
|
837
842
|
if (options?.apiUrl !== void 0) {
|
|
838
843
|
this.apiUrl = options.apiUrl;
|
|
@@ -2152,7 +2157,7 @@ var notifyFlagValueListener = (listener, value) => {
|
|
|
2152
2157
|
import React, { createContext, useEffect, useMemo, useRef } from "react";
|
|
2153
2158
|
|
|
2154
2159
|
// src/version.ts
|
|
2155
|
-
var version2 = "1.2.
|
|
2160
|
+
var version2 = "1.2.16";
|
|
2156
2161
|
|
|
2157
2162
|
// src/context/schematic.tsx
|
|
2158
2163
|
import { jsx } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"main": "dist/schematic-react.cjs.js",
|
|
5
5
|
"module": "dist/schematic-react.esm.js",
|
|
6
6
|
"types": "dist/schematic-react.d.ts",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"prepare": "husky"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@schematichq/schematic-js": "^1.2.
|
|
34
|
+
"@schematichq/schematic-js": "^1.2.16"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^9.39.2",
|
|
38
38
|
"@microsoft/api-extractor": "^7.55.0",
|
|
39
39
|
"@testing-library/dom": "^10.4.1",
|
|
40
40
|
"@testing-library/jest-dom": "^6.9.1",
|
|
41
|
-
"@testing-library/react": "^16.3.
|
|
42
|
-
"@types/react": "^19.2.
|
|
41
|
+
"@testing-library/react": "^16.3.1",
|
|
42
|
+
"@types/react": "^19.2.7",
|
|
43
43
|
"@vitest/browser": "^4.0.8",
|
|
44
|
-
"esbuild": "^0.27.
|
|
44
|
+
"esbuild": "^0.27.1",
|
|
45
45
|
"eslint": "^9.39.2",
|
|
46
46
|
"eslint-plugin-import": "^2.32.0",
|
|
47
47
|
"eslint-plugin-react": "^7.37.5",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"husky": "^9.1.7",
|
|
52
52
|
"jsdom": "^27.2.0",
|
|
53
53
|
"prettier": "^3.7.4",
|
|
54
|
-
"react": "^19.2.
|
|
55
|
-
"react-dom": "^19.2.
|
|
54
|
+
"react": "^19.2.3",
|
|
55
|
+
"react-dom": "^19.2.3",
|
|
56
56
|
"typescript": "^5.9.3",
|
|
57
57
|
"typescript-eslint": "^8.47.0",
|
|
58
58
|
"vitest": "^4.0.8"
|