@contentful/experiences-core 3.4.0 → 3.4.1-dev-20250901T1330-2519e19.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/dist/entity/InMemoryEntitiesPublicApi.d.ts +10 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -47
- package/dist/index.js.map +1 -1
- package/dist/utils/debugLogger.d.ts +10 -4
- package/dist/utils/isLink.d.ts +3 -1
- package/package.json +3 -3
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
declare const DEBUG_LEVELS_HIERARCHY: readonly ["error", "warn", "log", "debug"];
|
|
2
|
+
type DEBUG_LEVEL = (typeof DEBUG_LEVELS_HIERARCHY)[number];
|
|
1
3
|
declare class DebugLogger {
|
|
2
4
|
private static instance;
|
|
3
|
-
private
|
|
5
|
+
private activeLevel;
|
|
4
6
|
constructor();
|
|
5
7
|
static getInstance(): DebugLogger;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
getActiveLevel(): "error" | "warn" | "log" | "debug";
|
|
9
|
+
setActiveLevel(level: DEBUG_LEVEL): void;
|
|
8
10
|
private logger;
|
|
9
11
|
error: {
|
|
10
12
|
(...data: any[]): void;
|
|
@@ -24,7 +26,11 @@ declare class DebugLogger {
|
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
declare const debug: DebugLogger;
|
|
29
|
+
/** Set the logging level to `debug` */
|
|
27
30
|
declare const enableDebug: () => void;
|
|
31
|
+
/** Set the debug level to `warn` */
|
|
28
32
|
declare const disableDebug: () => void;
|
|
33
|
+
/** Set the debug level to the provided level */
|
|
34
|
+
declare const setDebugLevel: (level: DEBUG_LEVEL) => void;
|
|
29
35
|
|
|
30
|
-
export { DebugLogger, debug, disableDebug, enableDebug };
|
|
36
|
+
export { DebugLogger, debug, disableDebug, enableDebug, setDebugLevel };
|
package/dist/utils/isLink.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { UnresolvedLink, Entry, Asset } from 'contentful';
|
|
2
2
|
|
|
3
|
-
declare
|
|
3
|
+
declare function isLink(maybeLink: UnresolvedLink<'Entry'> | Entry | undefined): maybeLink is UnresolvedLink<'Entry'>;
|
|
4
|
+
declare function isLink(maybeLink: UnresolvedLink<'Asset'> | Asset | undefined): maybeLink is UnresolvedLink<'Asset'>;
|
|
5
|
+
declare function isLink(maybeLink: unknown): maybeLink is UnresolvedLink<'Entry' | 'Asset'>;
|
|
4
6
|
|
|
5
7
|
export { isLink };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experiences-core",
|
|
3
|
-
"version": "3.4.0",
|
|
3
|
+
"version": "3.4.1-dev-20250901T1330-2519e19.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"vitest": "^2.1.1"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@contentful/experiences-validators": "3.4.0",
|
|
73
|
+
"@contentful/experiences-validators": "3.4.1-dev-20250901T1330-2519e19.0",
|
|
74
74
|
"@contentful/rich-text-types": "^17.0.0",
|
|
75
75
|
"lodash-es": "^4.17.21",
|
|
76
76
|
"zustand": "^4.4.7"
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"contentful": ">=10.6.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "e845529f1b1a8204699b0719171b014f063a0907"
|
|
82
82
|
}
|