mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 23:23:08 -04:00
[nextgen/cardstack] add slot support to components
- migrate existing code to slots - add interactiveComponent.activeColor to overwrite the default "selected" button style - improve handling of cached components
This commit is contained in:
parent
e2c8a368c6
commit
668bb946a7
5 changed files with 173 additions and 88 deletions
|
@ -1,8 +1,7 @@
|
|||
const { wolframAlpha, wolframSupplemental} = require("#api");
|
||||
const { paginator } = require('#client');
|
||||
const { PERMISSION_GROUPS } = require('#constants');
|
||||
|
||||
const { createEmbed, formatPaginationEmbeds, page } = require('#utils/embed');
|
||||
const { createEmbed, page } = require('#utils/embed');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
const { citation, smallIconPill } = require('#utils/markdown');
|
||||
const { editOrReply } = require('#utils/message')
|
||||
|
@ -84,7 +83,6 @@ module.exports = {
|
|||
interactive: {
|
||||
state_buttons: {
|
||||
type: InteractiveComponentTypes.BUTTON_GENERATOR,
|
||||
inline: true,
|
||||
// Resolve Components
|
||||
resolveComponents: (pg)=>{
|
||||
if(!pg.getState("supplemental") || pg.getState("supplemental").length === 0) return [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue