@redocly/revel-reef 0.130.0-next.3 → 0.130.0-next.4

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,5 +1,17 @@
1
1
  # @redocly/revel-reef
2
2
 
3
+ ## 0.130.0-next.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 0c773d5f4b: Added backward compatibility for legacy UI telemetry.
8
+ - Updated dependencies [0c773d5f4b]
9
+ - @redocly/theme@0.62.0-next.2
10
+ - @redocly/asyncapi-docs@1.7.0-next.3
11
+ - @redocly/graphql-docs@1.7.0-next.0
12
+ - @redocly/openapi-docs@3.18.0-next.3
13
+ - @redocly/portal-plugin-mock-server@0.15.0-next.3
14
+
3
15
  ## 0.130.0-next.3
4
16
 
5
17
  ### Minor Changes
@@ -1,3 +1,3 @@
1
- import type { Telemetry } from '@redocly/realm-asyncapi-sdk/ui-telemetry';
2
- export declare const useTelemetry: () => Telemetry;
1
+ import { telemetry } from '../telemetry/index.js';
2
+ export declare const useTelemetry: () => typeof telemetry;
3
3
  //# sourceMappingURL=useTelemetry.d.ts.map
@@ -1,3 +1,13 @@
1
1
  import { Telemetry } from '@redocly/realm-asyncapi-sdk/ui-telemetry';
2
- export declare const telemetry: Telemetry;
2
+ import type { EventPayload, EventType, SendEventParams } from '@redocly/realm-asyncapi-sdk/ui-telemetry';
3
+ declare class UITelemetry extends Telemetry {
4
+ constructor();
5
+ send<TEventType extends EventType>(event: TEventType, data?: EventPayload<TEventType>): void;
6
+ /**
7
+ * @deprecated Use send(event, data) instead.
8
+ */
9
+ send<TEventType extends EventType>(params: SendEventParams<TEventType>): void;
10
+ }
11
+ export declare const telemetry: UITelemetry;
12
+ export {};
3
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- import{Telemetry as e}from"@redocly/realm-asyncapi-sdk/ui-telemetry";const r=new e;export{r as telemetry};
1
+ import{Telemetry as t}from"@redocly/realm-asyncapi-sdk/ui-telemetry";class o extends t{constructor(){super()}send(e,s){typeof e=="string"?super.send(e,s):super.send(e.type,e.payload)}}const r=new o;export{r as telemetry};
@@ -1 +1 @@
1
- import{DEFAULT_SSO_IDP_TITLE as d}from"../../../constants/common.js";import{telemetryTraceStep as u}from"../../../cli/telemetry/helpers/trace-step.js";const f="https://auth.cloud.redocly.com/oidc/.well-known/openid-configuration",y="https://auth.cloud.redocly.com/api/sso/oidc/introspect";async function O(g){return{id:"sso",async processContent(e){await u("build.plugin.sso",async c=>{const o=e.getConfig();if(c?.setAttribute("config",`{"ssoDirect": ${JSON.stringify(o.ssoDirect||{})}}, {"sso": ${JSON.stringify(o.sso||{})}}`),o.ssoDirect&&typeof o.ssoDirect=="object"&&Object.keys(o.ssoDirect).length!==0||o.sso&&Array.isArray(o.sso)&&!o.sso.length)return;const a=!!(o.rbac&&typeof o.rbac=="object"&&Object.keys(o.rbac).length!==0),p=o.requiresLogin;if(!a&&!p)return;let n=f,i=process.env.REDOCLY_OAUTH_USE_INTROSPECT?y:"";const s=o.residency;if(s){const r=s.endsWith("/")?s.slice(0,-1):s;n=`${r.replace("app.","auth.")}/oidc/.well-known/openid-configuration`,i=process.env.REDOCLY_OAUTH_USE_INTROSPECT?`${r}/api/sso/oidc/introspect`:""}let t="AUTO";o.sso&&(Array.isArray(o.sso)?t=o.sso.join(","):t=o.sso);const l={oidc:{title:d,type:"OIDC",configurationUrl:n,clientId:"{{ process.env.OAUTH_CLIENT_ID }}",clientSecret:"{{ process.env.OAUTH_CLIENT_SECRET }}",teamsClaimName:"https://redocly.com/sso/teams",scopes:["openid"],authorizationRequestCustomParams:{login_hint:"{{ process.env.ORG_SLUG }}",login_type:t,prompt:"login"},audience:"{{ process.env.ORG_ID }}",introspectEndpoint:i}};e.setGlobalConfig({ssoDirect:l})})},async afterRoutesCreated(e){}}}export{O as ssoPlugin};
1
+ import{DEFAULT_SSO_IDP_TITLE as d}from"../../../constants/common.js";import{telemetryTraceStep as u}from"../../../cli/telemetry/helpers/trace-step.js";const f="https://auth.cloud.redocly.com/oidc/.well-known/openid-configuration",y="https://auth.cloud.redocly.com/api/sso/oidc/introspect";async function _(g){return{id:"sso",async processContent(e){await u("build.plugin.sso",async c=>{const o=e.getConfig();if(c?.setAttribute("config",`{"ssoDirect": ${JSON.stringify(o.ssoDirect||{})}}, {"sso": ${JSON.stringify(o.sso||{})}}`),o.ssoDirect&&typeof o.ssoDirect=="object"&&Object.keys(o.ssoDirect).length!==0||o.sso&&Array.isArray(o.sso)&&!o.sso.length)return;const a=!!(o.rbac&&typeof o.rbac=="object"&&Object.keys(o.rbac).length!==0),p=o.requiresLogin;if(!a&&!p)return;let n=f,i=process.env.REDOCLY_OAUTH_USE_INTROSPECT?y:"";const s=o.residency;if(s){const r=s.endsWith("/")?s.slice(0,-1):s;n=`${r.replace("app.","auth.")}/oidc/.well-known/openid-configuration`,i=process.env.REDOCLY_OAUTH_USE_INTROSPECT?`${r}/api/sso/oidc/introspect`:""}let t="AUTO";o.sso&&(Array.isArray(o.sso)?t=o.sso.join(","):t=o.sso);const l={oidc:{title:d,type:"OIDC",configurationUrl:n,clientId:"{{ process.env.OAUTH_CLIENT_ID }}",clientSecret:"{{ process.env.OAUTH_CLIENT_SECRET }}",teamsClaimName:"https://redocly.com/sso/teams",scopes:["openid"],authorizationRequestCustomParams:{login_hint:"{{ process.env.ORGANIZATION_SLUG }}",login_type:t,prompt:"login"},audience:"{{ process.env.ORGANIZATION_SLUG }}",introspectEndpoint:i}};e.setGlobalConfig({ssoDirect:l})})},async afterRoutesCreated(e){}}}export{_ as ssoPlugin};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/revel-reef",
3
- "version": "0.130.0-next.3",
3
+ "version": "0.130.0-next.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {
@@ -93,14 +93,14 @@
93
93
  "xml-crypto": "6.0.1",
94
94
  "xpath": "0.0.34",
95
95
  "yaml-ast-parser": "0.0.43",
96
- "@redocly/asyncapi-docs": "1.7.0-next.2",
96
+ "@redocly/asyncapi-docs": "1.7.0-next.3",
97
97
  "@redocly/config": "0.41.2",
98
98
  "@redocly/graphql-docs": "1.7.0-next.0",
99
- "@redocly/openapi-docs": "3.18.0-next.2",
99
+ "@redocly/openapi-docs": "3.18.0-next.3",
100
100
  "@redocly/portal-legacy-ui": "0.13.0-next.0",
101
- "@redocly/portal-plugin-mock-server": "0.15.0-next.2",
101
+ "@redocly/portal-plugin-mock-server": "0.15.0-next.3",
102
102
  "@redocly/realm-asyncapi-sdk": "0.8.0-next.1",
103
- "@redocly/theme": "0.62.0-next.1"
103
+ "@redocly/theme": "0.62.0-next.2"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": "19.2.3",