@coralogix/browser 3.22.1 → 3.23.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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.23.0 (2026-08-17)
2
+
3
+ ### 🚀 Features
4
+
5
+ - Add support for the Coralogix Product Analytics tool
6
+
1
7
  ## 3.22.1 (2026-08-16)
2
8
 
3
9
  ### 🩹 Fixes
package/index.esm2.js CHANGED
@@ -5196,7 +5196,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
5196
5196
  return resolvedUrlBlueprinters;
5197
5197
  }
5198
5198
 
5199
- var SDK_VERSION = '3.22.1';
5199
+ var SDK_VERSION = '3.23.0';
5200
5200
 
5201
5201
  function shouldDropEvent(cxRumEvent, options) {
5202
5202
  if (isDocumentErrorWithoutMessage(cxRumEvent)) {
@@ -6153,6 +6153,39 @@ var CoralogixRum = {
6153
6153
  var _a, _b;
6154
6154
  return (_b = (_a = getSessionManager()) === null || _a === void 0 ? void 0 : _a.getSession()) === null || _b === void 0 ? void 0 : _b.sessionId;
6155
6155
  },
6156
+ getResolvedName: function (element) {
6157
+ if (!isInited) {
6158
+ console.debug('CoralogixRum must be initiated before resolving element names');
6159
+ return;
6160
+ }
6161
+ try {
6162
+ return extractResolvedName({
6163
+ element: element,
6164
+ config: getSdkConfig(),
6165
+ actionName: extractActionName(element),
6166
+ ariaLabel: extractAriaLabel(element),
6167
+ });
6168
+ }
6169
+ catch (err) {
6170
+ return;
6171
+ }
6172
+ },
6173
+ getViewName: function () {
6174
+ var _a;
6175
+ if (!isInited) {
6176
+ console.debug('CoralogixRum must be initiated before resolving the view name');
6177
+ return;
6178
+ }
6179
+ try {
6180
+ return (_a = resolvePageContext(CxGlobal.location.href)) === null || _a === void 0 ? void 0 : _a.page_fragments;
6181
+ }
6182
+ catch (err) {
6183
+ return;
6184
+ }
6185
+ },
6186
+ getSdkVersion: function () {
6187
+ return SDK_VERSION;
6188
+ },
6156
6189
  createNewSession: function () {
6157
6190
  var _a;
6158
6191
  if (!isInited) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "3.22.1",
3
+ "version": "3.23.0",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
package/src/types.d.ts CHANGED
@@ -189,6 +189,9 @@ export interface CoralogixOtelWebType extends SendLog {
189
189
  measureUserAgentSpecificMemory: () => void;
190
190
  getUserContext: () => UserContextConfig | undefined;
191
191
  getSessionId: () => string | undefined;
192
+ getResolvedName: (element: Element) => string | undefined;
193
+ getViewName: () => string | undefined;
194
+ getSdkVersion: () => string;
192
195
  createNewSession: () => void;
193
196
  stopSessionRecording: () => void;
194
197
  startSessionRecording: () => void;
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.22.1";
1
+ export declare const SDK_VERSION = "3.23.0";