mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
[nextgen/cardstack] add BUTTON_GENERATOR
- support dynamic button resolving - update all commands using dynstack to latest api - add supplemental to wolfram
This commit is contained in:
parent
3a016dde3d
commit
ecaaba9d3c
10 changed files with 356 additions and 176 deletions
|
@ -22,12 +22,32 @@ module.exports.STACK_CACHE_KEYS = Object.freeze({
|
|||
* - This callback type will also unselect the button
|
||||
* - `REPLACE_ROOT_STACK` - Replaces the root stack
|
||||
* - This callback type will also unselect the button
|
||||
*
|
||||
* @readonly
|
||||
* @enum {number}
|
||||
*/
|
||||
module.exports.ResolveCallbackTypes = Object.freeze({
|
||||
SUBSTACK: 0,
|
||||
REPLACE_PARENT_CARD: 1,
|
||||
REPLACE_STACK: 2,
|
||||
0: "SUBSTACK",
|
||||
1: "REPLACE_PARENT_CARD",
|
||||
2: "REPLACE_STACK",
|
||||
})
|
||||
UNKNOWN_CALLBACK_TYPE: 0,
|
||||
SUBSTACK: 1,
|
||||
REPLACE_PARENT_CARD: 2,
|
||||
REPLACE_STACK: 3
|
||||
})
|
||||
|
||||
/**
|
||||
* @typedef {number} InteractiveComponentTypes
|
||||
**/
|
||||
|
||||
/**
|
||||
* Interactive Component Type
|
||||
*
|
||||
* @readonly
|
||||
* @enum {InteractiveComponentTypes}
|
||||
*/
|
||||
module.exports.InteractiveComponentTypes = Object.freeze({
|
||||
/** Unknown Component Value */
|
||||
UNKNOWN_COMPONENT_TYPE: 0,
|
||||
/** A singular dynamic button */
|
||||
BUTTON: 1,
|
||||
/** Button generator that can return as many buttons as are necessary. */
|
||||
BUTTON_GENERATOR: 2
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue