Skip to content

Commit 65e6924

Browse files
authored
Complete action for VA integrations (#612)
* Update completion action for integrations controlling their own configuration * changeset
1 parent 47a28f9 commit 65e6924

File tree

7 files changed

+20
-6
lines changed

7 files changed

+20
-6
lines changed

.changeset/breezy-apricots-whisper.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@gitbook/integration-github-copilot': minor
3+
'@gitbook/integration-va-auth0': minor
4+
'@gitbook/integration-va-azure': minor
5+
'@gitbook/integration-cognito': minor
6+
'@gitbook/integration-va-okta': minor
7+
'@gitbook/integration-oidc': minor
8+
---
9+
10+
Update the completion action for integrations controlling their own configuration

integrations/cognito/src/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ const configBlock = createComponent<
8787
},
8888
},
8989
);
90-
return element;
90+
91+
return { type: 'complete' };
9192
}
9293
},
9394
render: async (element, context) => {

integrations/github-copilot/src/configuration.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const configurationComponent = createComponent<
5252
}
5353
}
5454

55-
return element;
55+
return { type: 'complete' };
5656
},
5757
render: async (element, context) => {
5858
element.setCache({ maxAge: 0 });

integrations/oidc/src/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ const configBlock = createComponent<OIDCProps, OIDCState, OIDCAction, OIDCRuntim
9191
},
9292
},
9393
);
94-
return element;
94+
95+
return { type: 'complete' };
9596
}
9697
},
9798
render: async (element, context) => {

integrations/va-auth0/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const configBlock = createComponent<Auth0Props, Auth0State, Auth0Action, Auth0Ru
8181
},
8282
);
8383

84-
return element;
84+
return { type: 'complete' };
8585
}
8686
},
8787
render: async (element, context) => {

integrations/va-azure/src/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ const configBlock = createComponent<AzureProps, AzureState, AzureAction, AzureRu
7070
},
7171
},
7272
);
73-
return element;
73+
74+
return { type: 'complete' };
7475
}
7576
},
7677
render: async (element, context) => {

integrations/va-okta/src/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ const configBlock = createComponent<OktaProps, OktaState, OktaAction, OktaRuntim
6969
},
7070
},
7171
);
72-
return element;
72+
73+
return { type: 'complete' };
7374
}
7475
},
7576
render: async (element, context) => {

0 commit comments

Comments
 (0)