File tree Expand file tree Collapse file tree 3 files changed +15
-24
lines changed
Expand file tree Collapse file tree 3 files changed +15
-24
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const nonPrimitiveProps: (keyof Config)[] = [
2626 'INCLUDED_PROPS' ,
2727] ;
2828
29- const EA_FEATURES = [ 'ACUL' ] ;
29+ const EA_FEATURES = [ ] ;
3030
3131export const setupContext = async (
3232 config : Config ,
@@ -144,7 +144,7 @@ export const setupContext = async (
144144 : 'features [' + EA_FEATURES . join ( ',' ) + '] are'
145145 } enabled. These are in a pre-release state and may change in future release.`
146146 ) ;
147- } else {
147+ } else if ( EA_FEATURES . length > 0 ) {
148148 log . info (
149149 'To enable experimental early access features use --experimental_ea flag or set AUTH0_EXPERIMENTAL_EA=true in configuration JSON.'
150150 ) ;
Original file line number Diff line number Diff line change @@ -351,15 +351,11 @@ export default class PromptsHandler extends DefaultHandler {
351351 partials,
352352 } ;
353353
354- const includeExperimentalEA = this . config ( 'AUTH0_EXPERIMENTAL_EA' ) || false ;
355-
356- if ( includeExperimentalEA ) {
357- try {
358- const { data } = await this . client . prompts . getAllRenderingSettings ( ) ;
359- prompts . screenRenderers = data ;
360- } catch ( error ) {
361- log . warn ( `Unable to fetch screen renderers: ${ error } ` ) ;
362- }
354+ try {
355+ const { data } = await this . client . prompts . getAllRenderingSettings ( ) ;
356+ prompts . screenRenderers = data ;
357+ } catch ( error ) {
358+ log . warn ( `Unable to fetch screen renderers: ${ error } ` ) ;
363359 }
364360
365361 return prompts ;
@@ -575,19 +571,11 @@ export default class PromptsHandler extends DefaultHandler {
575571 screenRenderer ;
576572 if ( ! prompt || ! screen ) return ;
577573
578- let updatePayload : PatchRenderingRequest = { } ;
579-
580- if ( rendering_mode === PatchRenderingRequestRenderingModeEnum . standard ) {
581- updatePayload = {
582- rendering_mode,
583- } ;
584- } else {
585- updatePayload = {
586- ...updatePrams ,
587- rendering_mode,
588- default_head_tags_disabled : default_head_tags_disabled || undefined ,
589- } ;
590- }
574+ const updatePayload = {
575+ ...updatePrams ,
576+ rendering_mode,
577+ default_head_tags_disabled : default_head_tags_disabled || undefined ,
578+ } ;
591579
592580 try {
593581 await this . client . prompts . updateRendering (
Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ describe('#YAML context validation', () => {
303303 prompts : {
304304 customText : { } ,
305305 partials : { } ,
306+ screenRenderers : [ ] ,
306307 } ,
307308 customDomains : [ ] ,
308309 themes : [ ] ,
@@ -431,6 +432,7 @@ describe('#YAML context validation', () => {
431432 prompts : {
432433 customText : { } ,
433434 partials : { } ,
435+ screenRenderers : [ ] ,
434436 } ,
435437 customDomains : [ ] ,
436438 themes : [ ] ,
@@ -559,6 +561,7 @@ describe('#YAML context validation', () => {
559561 prompts : {
560562 customText : { } ,
561563 partials : { } ,
564+ screenRenderers : [ ] ,
562565 } ,
563566 logStreams : [ ] ,
564567 customDomains : [ ] ,
You can’t perform that action at this time.
0 commit comments