Move 136 prototype mixins under mixins/domain, json-export, and runtime/* so the package root stays navigable. Manifest assign order is unchanged; apply-platform-mixins and runtime registry paths updated. Co-authored-by: Cursor <[email protected]>
35 lines
1.3 KiB
JavaScript
35 lines
1.3 KiB
JavaScript
'use strict'
|
|
|
|
const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const screenJsonMixin = createJsonExportDualHealMixin({
|
|
gossipEntries: [
|
|
{ method: '_shouldGossipScreenRegistryJson', keysField: '_screenRegistryJsonGossipKeys', initMethod: '_initScreenJsonMixinState' },
|
|
{ method: '_shouldGossipSoundboardRegistryExportJson', gossipHashPrefix: 'effective:', keysField: '_soundboardRegistryJsonGossipKeys', initMethod: '_initSoundboardRegistryJsonMixinState' },
|
|
],
|
|
heals: [
|
|
{
|
|
watermarkField: '_screenJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipScreenRegistryJson',
|
|
healMethod: '_healScreenShareExportCursorOnPartition',
|
|
spanKind: 'screen.json',
|
|
healContext: 'heal.screen',
|
|
countField: 'guildScreenJsonCount',
|
|
bridgeKind: 'screen.json',
|
|
listExportsMethod: 'listScreenShareJsonExports'
|
|
},
|
|
{
|
|
watermarkField: '_soundboardRegistryExportJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipSoundboardRegistryExportJson',
|
|
healMethod: '_healSoundboardRegistryExportCursorOnPartition',
|
|
spanKind: 'screen.json',
|
|
healContext: 'heal.soundboard',
|
|
countField: 'guildScreenJsonCount',
|
|
bridgeKind: 'screen.json',
|
|
listExportsMethod: 'listSoundboardRegistryExportJsonExports'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { screenJsonMixin }
|