sanity 5.25.0-next.22 → 5.25.0-next.23
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/lib/_chunks-es/version.js +2 -2
- package/lib/index.js +15 -5
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "5.25.0-next.
|
|
1
|
+
var version = "5.25.0-next.23";
|
|
2
2
|
let buildVersion;
|
|
3
3
|
try {
|
|
4
4
|
buildVersion = process.env.PKG_BUILD_VERSION;
|
|
@@ -7,7 +7,7 @@ try {
|
|
|
7
7
|
try {
|
|
8
8
|
buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
|
|
9
9
|
// and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
|
|
10
|
-
"5.25.0-next.
|
|
10
|
+
"5.25.0-next.23";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -90937,6 +90937,10 @@ const WorkspaceFeaturesObserved = defineEvent({
|
|
|
90937
90937
|
name: "Workspace Features Observed",
|
|
90938
90938
|
version: 1,
|
|
90939
90939
|
description: "Feature flags enabled for the current workspace"
|
|
90940
|
+
}), StudioLoaded = defineEvent({
|
|
90941
|
+
name: "Studio Loaded",
|
|
90942
|
+
version: 1,
|
|
90943
|
+
description: "Fired once per studio mount with studio version and environment metadata"
|
|
90940
90944
|
}), PerformanceINPMeasured = defineEvent({
|
|
90941
90945
|
name: "Performance INP Measured",
|
|
90942
90946
|
// Sample at most every minute
|
|
@@ -91161,12 +91165,18 @@ function StudioTelemetryProvider(props2) {
|
|
|
91161
91165
|
}
|
|
91162
91166
|
}, [client, projectId]), store = useMemo(() => createBatchedStore(sessionId, storeOptions), [storeOptions]);
|
|
91163
91167
|
useEffect(() => {
|
|
91164
|
-
!isClient || !contextRef.current
|
|
91165
|
-
|
|
91166
|
-
|
|
91167
|
-
reactVersion: version,
|
|
91168
|
+
if (!isClient || !contextRef.current) return;
|
|
91169
|
+
const ctx = contextRef.current;
|
|
91170
|
+
store.logger.log(StudioLoaded, {
|
|
91168
91171
|
studioVersion: SANITY_VERSION,
|
|
91169
|
-
|
|
91172
|
+
reactVersion: version,
|
|
91173
|
+
environment: ctx.environment,
|
|
91174
|
+
userAgent: ctx.userAgent,
|
|
91175
|
+
screenDensity: ctx.screen.density,
|
|
91176
|
+
screenHeight: ctx.screen.height,
|
|
91177
|
+
screenWidth: ctx.screen.width,
|
|
91178
|
+
screenInnerHeight: ctx.screen.innerHeight,
|
|
91179
|
+
screenInnerWidth: ctx.screen.innerWidth
|
|
91170
91180
|
});
|
|
91171
91181
|
}, [store.logger]);
|
|
91172
91182
|
const advancedVersionControlEnabled = workspace.advancedVersionControl?.enabled ?? !1;
|