@league-of-foundry-developers/foundry-vtt-types 12.331.1-beta → 12.331.3-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -3
- package/package.json +14 -15
- package/src/foundry/client/apps/app.d.mts +8 -1
- package/src/foundry/client/apps/form.d.mts +50 -35
- package/src/foundry/client/apps/forms/combat-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/grid-config.d.mts +1 -5
- package/src/foundry/client/apps/forms/sheet-config.d.mts +2 -1
- package/src/foundry/client/apps/i18n.d.mts +59 -0
- package/src/foundry/client/apps/placeables/note-config.d.mts +3 -3
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +7 -7
- package/src/foundry/client/apps/sidebar/document-directory.d.mts +1 -2
- package/src/foundry/client/apps/templates.d.mts +78 -138
- package/src/foundry/client/av/master.d.mts +2 -2
- package/src/foundry/client/config.d.mts +473 -167
- package/src/foundry/client/core/gamepad.d.mts +15 -1
- package/src/foundry/client/core/image.d.mts +81 -32
- package/src/foundry/client/core/index.d.mts +1 -0
- package/src/foundry/client/core/keybindings.d.mts +128 -27
- package/src/foundry/client/core/keyboard.d.mts +54 -7
- package/src/foundry/client/core/packages.d.mts +18 -2
- package/src/foundry/client/core/settings.d.mts +115 -14
- package/src/foundry/client/core/socket.d.mts +47 -1
- package/src/foundry/client/data/abstract/canvas-document.d.mts +9 -3
- package/src/foundry/client/data/abstract/client-document.d.mts +5 -5
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +1 -1
- package/src/foundry/client/data/abstract/document-collection.d.mts +25 -11
- package/src/foundry/client/data/abstract/world-collection.d.mts +6 -12
- package/src/foundry/client/data/collections/actors.d.mts +9 -1
- package/src/foundry/client/data/collections/compendium-collection.d.mts +49 -61
- package/src/foundry/client/data/collections/compendium-folders.d.mts +16 -2
- package/src/foundry/client/data/collections/compendium-packs.d.mts +1 -1
- package/src/foundry/client/data/collections/folder.d.mts +12 -6
- package/src/foundry/client/data/collections/journal.d.mts +3 -1
- package/src/foundry/client/data/collections/playlists.d.mts +2 -4
- package/src/foundry/client/data/collections/users.d.mts +1 -1
- package/src/foundry/client/data/documents/active-effect.d.mts +12 -0
- package/src/foundry/client/data/documents/actor-delta.d.mts +14 -3
- package/src/foundry/client/data/documents/actor.d.mts +37 -14
- package/src/foundry/client/data/documents/adventure.d.mts +11 -0
- package/src/foundry/client/data/documents/ambient-light.d.mts +11 -0
- package/src/foundry/client/data/documents/ambient-sound.d.mts +12 -1
- package/src/foundry/client/data/documents/card.d.mts +12 -0
- package/src/foundry/client/data/documents/cards.d.mts +17 -3
- package/src/foundry/client/data/documents/chat-message.d.mts +12 -0
- package/src/foundry/client/data/documents/combat.d.mts +18 -5
- package/src/foundry/client/data/documents/combatant.d.mts +25 -1
- package/src/foundry/client/data/documents/drawing.d.mts +11 -0
- package/src/foundry/client/data/documents/fog-exploration.d.mts +11 -0
- package/src/foundry/client/data/documents/folder.d.mts +18 -1
- package/src/foundry/client/data/documents/item.d.mts +12 -0
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +12 -0
- package/src/foundry/client/data/documents/journal-entry.d.mts +11 -1
- package/src/foundry/client/data/documents/macro.d.mts +14 -0
- package/src/foundry/client/data/documents/measured-template.d.mts +11 -0
- package/src/foundry/client/data/documents/note.d.mts +11 -0
- package/src/foundry/client/data/documents/playlist-sound.d.mts +17 -4
- package/src/foundry/client/data/documents/playlist.d.mts +11 -0
- package/src/foundry/client/data/documents/scene.d.mts +45 -10
- package/src/foundry/client/data/documents/setting.d.mts +12 -1
- package/src/foundry/client/data/documents/table-result.d.mts +12 -0
- package/src/foundry/client/data/documents/table.d.mts +11 -0
- package/src/foundry/client/data/documents/tile.d.mts +11 -0
- package/src/foundry/client/data/documents/token.d.mts +17 -7
- package/src/foundry/client/data/documents/user.d.mts +12 -1
- package/src/foundry/client/data/documents/wall.d.mts +12 -1
- package/src/foundry/client/game.d.mts +215 -129
- package/src/foundry/client/head.d.mts +1 -2
- package/src/foundry/client/hooks.d.mts +93 -43
- package/src/foundry/client/index.d.mts +0 -1
- package/src/foundry/client/pixi/board.d.mts +160 -272
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +7 -5
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +6 -4
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +5 -5
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +34 -17
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +33 -24
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +47 -20
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +2 -2
- package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +2 -2
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +4 -4
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +32 -10
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +5 -5
- package/src/foundry/client/pixi/core/loader.d.mts +43 -3
- package/src/foundry/client/pixi/core/shapes/index.d.mts +0 -1
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +4 -4
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +6 -6
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +67 -69
- package/src/foundry/client/pixi/extensions/circle.d.mts +42 -32
- package/src/foundry/client/pixi/extensions/graphics.d.mts +43 -0
- package/src/foundry/client/pixi/extensions/index.d.mts +2 -0
- package/src/foundry/client/pixi/extensions/observable-transform.d.mts +37 -0
- package/src/foundry/client/pixi/extensions/polygon.d.mts +39 -48
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +129 -64
- package/src/foundry/client/pixi/groups/effects.d.mts +5 -8
- package/src/foundry/client/pixi/groups/environment.d.mts +6 -6
- package/src/foundry/client/pixi/groups/interface.d.mts +1 -1
- package/src/foundry/client/pixi/groups/primary.d.mts +3 -10
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +21 -5
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +33 -10
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +154 -109
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +7 -1
- package/src/foundry/client/pixi/layers/controls/door.d.mts +4 -6
- package/src/foundry/client/pixi/layers/controls/index.d.mts +0 -1
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +80 -47
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +278 -119
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +19 -3
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +18 -3
- package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +33 -0
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +93 -16
- package/src/foundry/client/pixi/layers/effects/index.d.mts +1 -0
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +58 -27
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +6 -6
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +74 -19
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +2 -1
- package/src/foundry/client/pixi/layers/grid/index.d.mts +1 -0
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +163 -119
- package/src/foundry/client/pixi/layers/grid/mesh.d.mts +73 -0
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +26 -1
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +40 -4
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +53 -22
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +35 -16
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +30 -84
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +24 -13
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +212 -21
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +21 -9
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +42 -40
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +85 -72
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +60 -61
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +31 -43
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +22 -6
- package/src/foundry/client/pixi/perception/fog.d.mts +30 -2
- package/src/foundry/client/pixi/perception/index.d.mts +0 -1
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +63 -62
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +33 -13
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +47 -37
- package/src/foundry/client/pixi/placeable.d.mts +84 -39
- package/src/foundry/client/pixi/placeables/drawing.d.mts +4 -4
- package/src/foundry/client/pixi/placeables/note.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/index.d.mts +3 -4
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +107 -89
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +30 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +161 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +111 -0
- package/src/foundry/client/pixi/placeables/sound.d.mts +2 -1
- package/src/foundry/client/pixi/placeables/template.d.mts +4 -3
- package/src/foundry/client/pixi/placeables/tile.d.mts +2 -2
- package/src/foundry/client/pixi/placeables/token.d.mts +14 -18
- package/src/foundry/client/pixi/placeables/wall.d.mts +5 -5
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +54 -19
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +15 -6
- package/src/foundry/client/pixi/webgl/helpers/framebugger-snapshot.d.mts +8 -0
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +28 -24
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +53 -43
- package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +119 -0
- package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +94 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/base-mask-filter.d.mts +29 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +26 -4
- package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +121 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/environment.d.mts +40 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +75 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/index.d.mts +12 -2
- package/src/foundry/client/pixi/webgl/shaders/filters/invisibility.d.mts +29 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +86 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +119 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +70 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/void.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/weather-occlusion-masks.d.mts +56 -0
- package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +54 -0
- package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +112 -0
- package/src/foundry/client/pixi/webgl/shaders/grid/index.d.mts +1 -0
- package/src/foundry/client/pixi/webgl/shaders/index.d.mts +8 -2
- package/src/foundry/client/pixi/webgl/shaders/lighting/background-lighting.d.mts +65 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/base-lighting.d.mts +178 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/coloration-lighting.d.mts +73 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/darkness-lighting.d.mts +73 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/bewitching-wave.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/black-hole.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/chroma.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/emanation.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/energy-field.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/flame.d.mts +55 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fog.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/force-grid.d.mts +22 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/ghost-light.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/hexa-dome.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/index.d.mts +25 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/light-dome.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/magical-gloom.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/pulse.d.mts +44 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/radial-rainbow.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/revolving-light.d.mts +36 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/roiling-mass.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/siren-light.d.mts +61 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/smoke-patch.d.mts +32 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/star-light.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/sunburst.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/swirling-rainbow.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/torch.d.mts +45 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/vortex.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/wave.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/illumination-lighting.d.mts +79 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/index.d.mts +6 -0
- package/src/foundry/client/pixi/webgl/shaders/region/adjust-darkness-level.d.mts +93 -0
- package/src/foundry/client/pixi/webgl/shaders/region/base.d.mts +35 -0
- package/src/foundry/client/pixi/webgl/shaders/region/highlight.d.mts +35 -0
- package/src/foundry/client/pixi/webgl/shaders/region/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +206 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/baseline-illumination.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +38 -30
- package/src/foundry/client/pixi/webgl/shaders/samplers/depth.d.mts +103 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +8 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/index.d.mts +5 -3
- package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +62 -27
- package/src/foundry/client/pixi/webgl/shaders/samplers/primary.d.mts +26 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/background-vision.d.mts +42 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/base-vision.d.mts +31 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/coloration-vision.d.mts +41 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/amplification.d.mts +32 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/index.d.mts +2 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/wave.d.mts +59 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/illumination-vision.d.mts +36 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/index.d.mts +5 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +106 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +62 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/fog.d.mts +50 -0
- package/src/foundry/client/pixi/webgl/shaders/{effects/weather → weather}/index.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/weather/rain.d.mts +42 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/snow.d.mts +34 -0
- package/src/foundry/client/ui/editor.d.mts +1 -1
- package/src/foundry/client-esm/applications/_types.d.mts +0 -2
- package/src/foundry/client-esm/applications/api/application.d.mts +25 -24
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +10 -2
- package/src/foundry/client-esm/applications/elements/color-picker.d.mts +1 -1
- package/src/foundry/client-esm/applications/elements/document-tags.d.mts +1 -1
- package/src/foundry/client-esm/applications/forms/fields.d.mts +103 -52
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +66 -4
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +38 -4
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +30 -4
- package/src/foundry/client-esm/audio/_types.d.mts +16 -1
- package/src/foundry/client-esm/audio/biquad.d.mts +51 -0
- package/src/foundry/client-esm/audio/cache.d.mts +68 -0
- package/src/foundry/client-esm/audio/convolver.d.mts +71 -0
- package/src/foundry/client-esm/audio/helper.d.mts +326 -0
- package/src/foundry/client-esm/audio/sound.d.mts +401 -0
- package/src/foundry/client-esm/audio/timeout.d.mts +85 -0
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +6 -6
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +4 -2
- package/src/foundry/client-esm/canvas/regions/_module.d.mts +8 -4
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +93 -1
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +7 -0
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +1 -4
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +1 -4
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +3 -1
- package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +9 -3
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +2 -0
- package/src/foundry/client-esm/canvas/tokens/_module.d.mts +2 -0
- package/src/foundry/client-esm/canvas/tokens/ring-config.d.mts +79 -0
- package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +7 -0
- package/src/foundry/client-esm/canvas/tokens/ring.d.mts +5 -0
- package/src/foundry/client-esm/client.d.mts +4 -9
- package/src/foundry/client-esm/data/region-behaviors/_module.d.mts +12 -9
- package/src/foundry/client-esm/dice/terms/function.d.mts +1 -2
- package/src/foundry/clipper/clipper.d.mts +23 -56
- package/src/foundry/common/abstract/data.d.mts +58 -46
- package/src/foundry/common/abstract/document.d.mts +163 -110
- package/src/foundry/common/abstract/socket.d.mts +3 -3
- package/src/foundry/common/abstract/type-data.d.mts +25 -14
- package/src/foundry/common/data/fields.d.mts +1067 -143
- package/src/foundry/common/documents/_types.d.mts +34 -2
- package/src/foundry/common/documents/active-effect.d.mts +44 -33
- package/src/foundry/common/documents/actor-delta.d.mts +8 -20
- package/src/foundry/common/documents/actor.d.mts +82 -123
- package/src/foundry/common/documents/adventure.d.mts +16 -44
- package/src/foundry/common/documents/ambient-light.d.mts +5 -14
- package/src/foundry/common/documents/ambient-sound.d.mts +4 -14
- package/src/foundry/common/documents/card.d.mts +20 -50
- package/src/foundry/common/documents/cards.d.mts +16 -51
- package/src/foundry/common/documents/chat-message.d.mts +33 -34
- package/src/foundry/common/documents/combat.d.mts +27 -21
- package/src/foundry/common/documents/combatant.d.mts +19 -23
- package/src/foundry/common/documents/drawing.d.mts +6 -21
- package/src/foundry/common/documents/fog-exploration.d.mts +8 -23
- package/src/foundry/common/documents/folder.d.mts +16 -33
- package/src/foundry/common/documents/item.d.mts +12 -51
- package/src/foundry/common/documents/journal-entry-page.d.mts +22 -40
- package/src/foundry/common/documents/journal-entry.d.mts +6 -48
- package/src/foundry/common/documents/macro.d.mts +27 -43
- package/src/foundry/common/documents/measured-template.d.mts +5 -20
- package/src/foundry/common/documents/note.d.mts +6 -18
- package/src/foundry/common/documents/playlist-sound.d.mts +12 -16
- package/src/foundry/common/documents/playlist.d.mts +12 -18
- package/src/foundry/common/documents/roll-table.d.mts +6 -29
- package/src/foundry/common/documents/scene.d.mts +9 -31
- package/src/foundry/common/documents/setting.d.mts +8 -19
- package/src/foundry/common/documents/table-result.d.mts +14 -42
- package/src/foundry/common/documents/tile.d.mts +4 -13
- package/src/foundry/common/documents/token.d.mts +8 -26
- package/src/foundry/common/documents/user.d.mts +11 -20
- package/src/foundry/common/documents/wall.d.mts +13 -30
- package/src/foundry/common/grid/base.d.mts +26 -26
- package/src/foundry/common/grid/grid-hex.d.mts +2 -2
- package/src/foundry/common/grid/gridless.d.mts +11 -11
- package/src/foundry/common/grid/hexagonal.d.mts +30 -26
- package/src/foundry/common/grid/square.d.mts +11 -11
- package/src/foundry/common/packages/base-package.d.mts +4 -4
- package/src/foundry/common/primitives/array.d.mts +2 -2
- package/src/foundry/common/types.d.mts +54 -312
- package/src/foundry/common/utils/color.d.mts +17 -9
- package/src/foundry/common/utils/geometry.d.mts +32 -22
- package/src/foundry/common/utils/helpers.d.mts +1 -1
- package/src/types/augments/pixi.d.mts +63 -2
- package/src/types/config.d.mts +7 -6
- package/src/types/documentConfiguration.d.mts +606 -0
- package/src/types/helperTypes.d.mts +367 -45
- package/src/types/index.d.mts +1 -1
- package/src/types/utils.d.mts +139 -6
- package/src/foundry/client/audio/audio.d.mts +0 -390
- package/src/foundry/client/audio/container.d.mts +0 -176
- package/src/foundry/client/audio/index.d.mts +0 -3
- package/src/foundry/client/audio/sound.d.mts +0 -307
- package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.mts +0 -31
- package/src/foundry/client/pixi/layers/controls/hud.d.mts +0 -114
- package/src/foundry/client/pixi/perception/color-manager.d.mts +0 -86
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/drawing-shape.d.mts +0 -143
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/occludable-object.d.mts +0 -175
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/tile-mesh.d.mts +0 -52
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/token-mesh.d.mts +0 -62
- package/src/foundry/client/pixi/webgl/shaders/base.d.mts +0 -691
- package/src/foundry/client/pixi/webgl/shaders/effects/index.d.mts +0 -3
- package/src/foundry/client/pixi/webgl/shaders/effects/lighting.d.mts +0 -642
- package/src/foundry/client/pixi/webgl/shaders/effects/vision.d.mts +0 -216
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/base.d.mts +0 -102
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/effect.d.mts +0 -38
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/fog.d.mts +0 -34
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/rain.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/snow.d.mts +0 -20
- package/src/foundry/client/pixi/webgl/shaders/filters/filters.d.mts +0 -462
- package/src/foundry/client/pixi/webgl/shaders/filters/fxaa.d.mts +0 -74
- package/src/foundry/client/pixi/webgl/shaders/samplers/inverse-occlusion.d.mts +0 -47
- package/src/foundry/client/pixi/webgl/shaders/samplers/invisibility.d.mts +0 -28
- package/src/foundry/client/pixi/webgl/shaders/samplers/monochromatic.d.mts +0 -30
- package/src/types/configuredDocuments.d.mts +0 -103
package/README.md
CHANGED
@@ -15,13 +15,27 @@ TypeScript type definitions for [Foundry Virtual Tabletop](https://foundryvtt.co
|
|
15
15
|
|
16
16
|
We aim to support the latest release of each Foundry VTT version (0.7, 0.8, 9, etc.), starting with 0.7.
|
17
17
|
|
18
|
-
At the moment, versions 0.7, 0.8, and 9 are fully supported
|
18
|
+
At the moment, versions 0.7, 0.8, and 9 are fully supported with partial support for versions 10 and 11. Work on support for version 12 is currently underway. See the [open foundry V12 issues](https://github.com/League-of-Foundry-Developers/foundry-vtt-types/issues?q=is%3Aopen+is%3Aissue+label%3A%22foundry+V12%22).
|
19
|
+
|
20
|
+
## V12 Installation
|
21
|
+
|
22
|
+
Currently v12 is still in beta. There are known bugs, issues in the ergonomics, and major unfinished work in the current implementation. To get a direct line of communication about the current status of development as well as to help us understand what areas need to be prioritizated first, join the [League of Extraordinary FoundryVTT Developers Discord](https://discord.gg/73HTMuK7dT) or file an issue.
|
23
|
+
|
24
|
+
The recommended way to install for v12 is this command:
|
25
|
+
|
26
|
+
```sh
|
27
|
+
npm add --include=dev github:League-of-Foundry-Developers/foundry-vtt-types#main
|
28
|
+
```
|
29
|
+
|
30
|
+
Alternatively, if you're using yarn you'll need to use the command `yarn add --dev foundry-vtt-types@github:League-of-Foundry-Developers/foundry-vtt-types#main`.
|
31
|
+
|
32
|
+
This will add the current commit on `main` as a dependency. Both npm and yarn's lockfile will store the commit you initially installed this command and so updates to your dependency will not happen automatically or even after a fresh install. To update you will need to be rerun the prior command periodically to update as improvements are added frequently.
|
19
33
|
|
20
34
|
## Installation
|
21
35
|
|
22
|
-
You can install foundry-vtt-types from the [npm registry](https://npmjs.org/).
|
36
|
+
You can install historical versions of foundry-vtt-types from the [npm registry](https://npmjs.org/).
|
23
37
|
|
24
|
-
In order to install the latest version, run
|
38
|
+
In order to install the latest stable version (v9), run
|
25
39
|
|
26
40
|
```sh
|
27
41
|
npm install --save-dev @league-of-foundry-developers/foundry-vtt-types
|
package/package.json
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
3
3
|
"name": "@league-of-foundry-developers/foundry-vtt-types",
|
4
|
-
"version": "12.331.
|
4
|
+
"version": "12.331.3-beta",
|
5
5
|
"description": "TypeScript type definitions for Foundry VTT",
|
6
6
|
"type": "module",
|
7
7
|
"types": "./index.d.mts",
|
8
8
|
"scripts": {
|
9
|
-
"lint": "./node_modules/typescript/bin/tsc; eslint .",
|
10
|
-
"lint:fix": "eslint --fix .",
|
11
|
-
"lint:ci": "eslint .",
|
9
|
+
"lint": "./node_modules/typescript/bin/tsc; eslint .; prettier -c .",
|
10
|
+
"lint:fix": "eslint --fix .; prettier -w .",
|
11
|
+
"lint:ci": "eslint .; prettier -c .",
|
12
12
|
"eslint:report": "eslint --output-file eslint_report.json --format json .",
|
13
13
|
"test": "vitest --typecheck",
|
14
14
|
"typecheck": "./node_modules/typescript/bin/tsc",
|
@@ -81,26 +81,26 @@
|
|
81
81
|
"tinymce": "^6.8.3"
|
82
82
|
},
|
83
83
|
"devDependencies": {
|
84
|
-
"@types/fvtt-types": "file:.",
|
85
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
86
|
-
"@typescript-eslint/parser": "^8.
|
84
|
+
"@fvtt-types/fvtt-types": "file:.",
|
85
|
+
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
86
|
+
"@typescript-eslint/parser": "^8.12.2",
|
87
87
|
"eslint": "^8.57.1",
|
88
88
|
"eslint-config-prettier": "^9.1.0",
|
89
89
|
"eslint-import-resolver-typescript": "^3.6.1",
|
90
90
|
"eslint-plugin-import": "^2.29.1",
|
91
|
-
"eslint-plugin-tsdoc": "^0.
|
91
|
+
"eslint-plugin-tsdoc": "^0.4.0",
|
92
92
|
"husky": "^9.1.4",
|
93
|
-
"is-ci": "^
|
94
|
-
"lint-staged": "^15.
|
93
|
+
"is-ci": "^4.1.0",
|
94
|
+
"lint-staged": "^15.2.10",
|
95
95
|
"prettier": "^3.0.3",
|
96
|
-
"typescript": "~5.
|
97
|
-
"vitest": "^
|
96
|
+
"typescript": "~5.7",
|
97
|
+
"vitest": "^2.1.8"
|
98
98
|
},
|
99
99
|
"peerDependencies": {
|
100
100
|
"typescript": "^5.4"
|
101
101
|
},
|
102
102
|
"overrides": {
|
103
|
-
"@types/css-font-loading-module": "^0.0.
|
103
|
+
"@types/css-font-loading-module": "^0.0.14"
|
104
104
|
},
|
105
105
|
"resolutions": {
|
106
106
|
"@types/earcut": "patch:@types/earcut@2.1.4#./patches/@types+earcut+2.1.4.patch"
|
@@ -121,6 +121,5 @@
|
|
121
121
|
],
|
122
122
|
"publishConfig": {
|
123
123
|
"access": "public"
|
124
|
-
}
|
125
|
-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
124
|
+
}
|
126
125
|
}
|
@@ -7,7 +7,7 @@ declare global {
|
|
7
7
|
let _appId: number;
|
8
8
|
|
9
9
|
/**
|
10
|
-
* @defaultValue `100`
|
10
|
+
* @defaultValue `Number(getComputedStyle(document.body).getPropertyValue("--z-index-window") ?? 100)`
|
11
11
|
*/
|
12
12
|
let _maxZ: number;
|
13
13
|
|
@@ -312,6 +312,13 @@ declare global {
|
|
312
312
|
*/
|
313
313
|
protected static _getInheritanceChain(): (typeof Application)[];
|
314
314
|
|
315
|
+
/**
|
316
|
+
* Call all hooks for all applications in the inheritance chain.
|
317
|
+
* @param hookName - The hook being triggered, which formatted with the Application class name
|
318
|
+
* @param hookArgs - The arguments passed to the hook calls
|
319
|
+
*/
|
320
|
+
protected _callHooks(hookName: string | ((className: string) => string), hookArgs?: unknown[]): void;
|
321
|
+
|
315
322
|
/**
|
316
323
|
* Persist the scroll positions of containers within the app before re-rendering the content
|
317
324
|
* @param html - The HTML object being traversed
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { EditorView } from "prosemirror-view";
|
2
2
|
import type { Editor } from "tinymce";
|
3
|
-
import type { AnyObject, GetDataReturnType, MaybePromise } from "../../../types/utils.d.mts";
|
3
|
+
import type { AnyObject, GetDataReturnType, InexactPartial, MaybePromise } from "../../../types/utils.d.mts";
|
4
4
|
import type { ProseMirrorKeyMaps, ProseMirrorMenu } from "../../common/prosemirror/_module.d.mts";
|
5
5
|
import type Document from "../../common/abstract/document.d.mts";
|
6
6
|
|
@@ -81,13 +81,6 @@ declare global {
|
|
81
81
|
*/
|
82
82
|
form: HTMLElement | null;
|
83
83
|
|
84
|
-
/**
|
85
|
-
* Keep track of any FilePicker instances which are associated with this form
|
86
|
-
* The values of this Array are inner-objects with references to the FilePicker instances and other metadata
|
87
|
-
* @defaultValue `[]`
|
88
|
-
*/
|
89
|
-
filepickers: FilePicker[];
|
90
|
-
|
91
84
|
/**
|
92
85
|
* Keep track of any mce editors which may be active as part of this form
|
93
86
|
* The values of this Array are inner-objects with references to the MCE editor and other metadata
|
@@ -95,6 +88,11 @@ declare global {
|
|
95
88
|
*/
|
96
89
|
editors: Record<string, FormApplication.FormApplicationEditor>;
|
97
90
|
|
91
|
+
/**
|
92
|
+
* An array of custom element tag names that should be listened to for changes.
|
93
|
+
*/
|
94
|
+
protected static _customElements: string[];
|
95
|
+
|
98
96
|
/**
|
99
97
|
* Assign the default options which are supported by the entity edit sheet.
|
100
98
|
* @returns The default options for this FormApplication class
|
@@ -185,13 +183,6 @@ declare global {
|
|
185
183
|
*/
|
186
184
|
protected _onChangeRange(event: JQuery.ChangeEvent): void;
|
187
185
|
|
188
|
-
/**
|
189
|
-
* Additional handling which should trigger when a FilePicker contained within this FormApplication is submitted.
|
190
|
-
* @param selection - The target path which was selected
|
191
|
-
* @param filePicker - The FilePicker instance which was submitted
|
192
|
-
*/
|
193
|
-
protected _onSelectFile(selection: string, filePicker: FilePicker): void;
|
194
|
-
|
195
186
|
/**
|
196
187
|
* This method is called upon form submission after form data is validated
|
197
188
|
* @param event - The initial triggering submission event
|
@@ -216,11 +207,23 @@ declare global {
|
|
216
207
|
|
217
208
|
/**
|
218
209
|
* Handle saving the content of a specific editor by name
|
219
|
-
* @param name
|
220
|
-
* @param remove - Remove the editor after saving its content
|
221
|
-
* (default: `true`)
|
210
|
+
* @param name - The named editor to save
|
222
211
|
*/
|
223
|
-
saveEditor(
|
212
|
+
saveEditor(
|
213
|
+
name: string,
|
214
|
+
options?: InexactPartial<{
|
215
|
+
/**
|
216
|
+
* Remove the editor after saving its content
|
217
|
+
* @defaultValue `true`
|
218
|
+
*/
|
219
|
+
remove: boolean;
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Prevent normal re-rendering of the sheet after saving.
|
223
|
+
*/
|
224
|
+
preventRender: boolean;
|
225
|
+
}>,
|
226
|
+
): Promise<void>;
|
224
227
|
|
225
228
|
/**
|
226
229
|
* Activate an editor instance present within the form
|
@@ -244,20 +247,6 @@ declare global {
|
|
244
247
|
keyMaps: ReturnType<(typeof ProseMirrorKeyMaps)["build"]>;
|
245
248
|
};
|
246
249
|
|
247
|
-
/**
|
248
|
-
* Activate a FilePicker instance present within the form
|
249
|
-
* @param event - The mouse click event on a file picker activation button
|
250
|
-
*/
|
251
|
-
protected _activateFilePicker(event: PointerEvent): void;
|
252
|
-
|
253
|
-
/**
|
254
|
-
* Determine the configuration options used to initialize a FilePicker instance within this FormApplication.
|
255
|
-
* Subclasses can extend this method to customize the behavior of pickers within their form.
|
256
|
-
* @param event - The initiating mouse click event which opens the picker
|
257
|
-
* @returns Options passed to the FilePicker constructor
|
258
|
-
*/
|
259
|
-
protected _getFilePickerOptions(event: PointerEvent): FilePickerOptions;
|
260
|
-
|
261
250
|
/**
|
262
251
|
* @param options - (default: `{}`)
|
263
252
|
*/
|
@@ -269,12 +258,34 @@ declare global {
|
|
269
258
|
* (default: `{}`)
|
270
259
|
* @returns Return a self-reference for convenient method chaining
|
271
260
|
*/
|
272
|
-
submit(options?: FormApplication.OnSubmitOptions): Promise<this
|
261
|
+
submit(options?: FormApplication.OnSubmitOptions): Promise<this>;
|
262
|
+
|
263
|
+
/**
|
264
|
+
* @deprecated since v12, will be removed in v14
|
265
|
+
*/
|
266
|
+
get filepickers(): FilePicker[];
|
267
|
+
|
268
|
+
/**
|
269
|
+
* @deprecated since v12, will be removed in v14
|
270
|
+
*/
|
271
|
+
protected _activateFilePicker(event: PointerEvent): void;
|
272
|
+
|
273
|
+
/**
|
274
|
+
* @deprecated since v12, will be removed in v14
|
275
|
+
*/
|
276
|
+
protected _getFilePickerOptions(event: PointerEvent): FilePickerOptions;
|
277
|
+
|
278
|
+
/**
|
279
|
+
* @deprecated since v12, will be removed in v14
|
280
|
+
*/
|
281
|
+
protected _onSelectFile(selection: string, filePicker: FilePicker): void;
|
273
282
|
}
|
274
283
|
|
275
284
|
namespace FormApplication {
|
276
285
|
type Any = FormApplication<any, any>;
|
277
286
|
|
287
|
+
type AnyConstructor = typeof AnyFormApplication;
|
288
|
+
|
278
289
|
interface CloseOptions extends Application.CloseOptions {
|
279
290
|
submit?: boolean;
|
280
291
|
}
|
@@ -397,7 +408,7 @@ declare global {
|
|
397
408
|
initialContent?: string,
|
398
409
|
): Promise<Editor | EditorView>;
|
399
410
|
|
400
|
-
override
|
411
|
+
protected override _render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<void>;
|
401
412
|
|
402
413
|
protected override _renderOuter(): Promise<JQuery<HTMLElement>>;
|
403
414
|
|
@@ -467,3 +478,7 @@ declare global {
|
|
467
478
|
}
|
468
479
|
}
|
469
480
|
}
|
481
|
+
|
482
|
+
declare abstract class AnyFormApplication extends FormApplication<any, any> {
|
483
|
+
constructor(arg0: never, ...args: never[]);
|
484
|
+
}
|
@@ -43,7 +43,7 @@ declare global {
|
|
43
43
|
interface CombatTrackerConfigData extends FormApplication.FormApplicationData {
|
44
44
|
settings: SettingConfig["core.combatTrackerConfig"];
|
45
45
|
attributeChoices: ReturnType<(typeof TokenDocument)["getTrackedAttributeChoices"]>;
|
46
|
-
combatTheme:
|
46
|
+
combatTheme: ClientSettings.SettingConfig<string>;
|
47
47
|
selectedTheme: SettingConfig["core.combatTheme"];
|
48
48
|
user: User;
|
49
49
|
}
|
@@ -10,11 +10,7 @@ declare global {
|
|
10
10
|
Options,
|
11
11
|
Scene.ConfiguredInstance
|
12
12
|
> {
|
13
|
-
constructor(
|
14
|
-
scene: Scene.ConfiguredInstance,
|
15
|
-
sheet: GridConfig["sheet"],
|
16
|
-
options?: Partial<Options>,
|
17
|
-
);
|
13
|
+
constructor(scene: Scene.ConfiguredInstance, sheet: GridConfig["sheet"], options?: Partial<Options>);
|
18
14
|
|
19
15
|
/**
|
20
16
|
* Track the Scene Configuration sheet reference
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { ConstructorOf, GetDataReturnType, MaybePromise } from "../../../../types/utils.d.mts";
|
2
|
+
import type DocumentSheetV2 from "../../../client-esm/applications/api/document-sheet.d.mts";
|
2
3
|
import type { Document } from "../../../common/abstract/module.d.mts";
|
3
4
|
|
4
5
|
declare global {
|
@@ -70,7 +71,7 @@ declare global {
|
|
70
71
|
static registerSheet(
|
71
72
|
documentClass: Document.AnyConstructor,
|
72
73
|
scope: string,
|
73
|
-
sheetClass:
|
74
|
+
sheetClass: FormApplication.AnyConstructor | DocumentSheetV2.AnyConstructor,
|
74
75
|
config?: DocumentSheetConfig.RegisterSheetOptions,
|
75
76
|
): void;
|
76
77
|
|
@@ -41,6 +41,65 @@ declare global {
|
|
41
41
|
*/
|
42
42
|
initialize(): Promise<void>;
|
43
43
|
|
44
|
+
/**
|
45
|
+
* Perform one-time localization of the fields in a DataModel schema, translating their label and hint properties.
|
46
|
+
* @param model - The DataModel class to localize
|
47
|
+
* @param options - Options which configure how localization is performed
|
48
|
+
*
|
49
|
+
* @example
|
50
|
+
* JavaScript class definition and localization call.
|
51
|
+
* ```js
|
52
|
+
* class MyDataModel extends foundry.abstract.DataModel {
|
53
|
+
* static defineSchema() {
|
54
|
+
* return {
|
55
|
+
* foo: new foundry.data.fields.StringField(),
|
56
|
+
* bar: new foundry.data.fields.NumberField()
|
57
|
+
* };
|
58
|
+
* }
|
59
|
+
* static LOCALIZATION_PREFIXES = ["MYMODULE.MYDATAMODEL"];
|
60
|
+
* }
|
61
|
+
*
|
62
|
+
* Hooks.on("i18nInit", () => {
|
63
|
+
* Localization.localizeDataModel(MyDataModel);
|
64
|
+
* });
|
65
|
+
* ```
|
66
|
+
*
|
67
|
+
* JSON localization file
|
68
|
+
* ```json
|
69
|
+
* {
|
70
|
+
* "MYMODULE": {
|
71
|
+
* "MYDATAMODEL": {
|
72
|
+
* "FIELDS" : {
|
73
|
+
* "foo": {
|
74
|
+
* "label": "Foo",
|
75
|
+
* "hint": "Instructions for foo"
|
76
|
+
* },
|
77
|
+
* "bar": {
|
78
|
+
* "label": "Bar",
|
79
|
+
* "hint": "Instructions for bar"
|
80
|
+
* }
|
81
|
+
* }
|
82
|
+
* }
|
83
|
+
* }
|
84
|
+
* }
|
85
|
+
* ```
|
86
|
+
*/
|
87
|
+
static localizeDataModel(
|
88
|
+
model: foundry.abstract.DataModel.AnyConstructor,
|
89
|
+
options?: InexactPartial<{
|
90
|
+
/**
|
91
|
+
* An array of localization key prefixes to use. If not specified, prefixes
|
92
|
+
* are learned from the DataModel.LOCALIZATION_PREFIXES static property.
|
93
|
+
*/
|
94
|
+
prefixes: string[];
|
95
|
+
|
96
|
+
/**
|
97
|
+
* A localization path prefix used to prefix all field names within this model. This is generally not required.
|
98
|
+
*/
|
99
|
+
prefixPath: string;
|
100
|
+
}>,
|
101
|
+
): void;
|
102
|
+
|
44
103
|
/**
|
45
104
|
* Set a language as the active translation source for the session
|
46
105
|
* @param lang - A language string in CONFIG.supportedLanguages
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { ConfiguredDocumentClassForName } from "../../../../types/helperTypes.d.mts";
|
2
1
|
import type { MaybePromise } from "../../../../types/utils.d.mts";
|
3
2
|
|
4
3
|
declare global {
|
@@ -7,8 +6,9 @@ declare global {
|
|
7
6
|
* @typeParam Options - the type of the options object
|
8
7
|
*/
|
9
8
|
class NoteConfig<
|
10
|
-
Options extends
|
11
|
-
|
9
|
+
Options extends
|
10
|
+
DocumentSheetOptions<NoteDocument.ConfiguredInstance> = DocumentSheetOptions<NoteDocument.ConfiguredInstance>,
|
11
|
+
> extends DocumentSheet<Options, NoteDocument.ConfiguredInstance> {
|
12
12
|
/**
|
13
13
|
* @defaultValue
|
14
14
|
* ```typescript
|
@@ -46,9 +46,9 @@ declare global {
|
|
46
46
|
*/
|
47
47
|
protected _detectConflictingActions(
|
48
48
|
actionId: string,
|
49
|
-
action: KeybindingActionConfig,
|
50
|
-
binding: KeybindingActionBinding,
|
51
|
-
): KeybindingAction[];
|
49
|
+
action: ClientKeybindings.KeybindingActionConfig,
|
50
|
+
binding: ClientKeybindings.KeybindingActionBinding,
|
51
|
+
): ClientKeybindings.KeybindingAction[];
|
52
52
|
|
53
53
|
/**
|
54
54
|
* Transforms a Binding into a human readable string representation
|
@@ -56,7 +56,7 @@ declare global {
|
|
56
56
|
* @returns A human readable string
|
57
57
|
* @internal
|
58
58
|
*/
|
59
|
-
protected static _humanizeBinding(binding: KeybindingActionBinding): string;
|
59
|
+
protected static _humanizeBinding(binding: ClientKeybindings.KeybindingActionBinding): string;
|
60
60
|
|
61
61
|
override activateListeners(html: JQuery): void;
|
62
62
|
|
@@ -153,7 +153,7 @@ declare global {
|
|
153
153
|
|
154
154
|
interface CategoryData extends PackageConfiguration.CategoryData<Category> {}
|
155
155
|
|
156
|
-
interface ActionData extends KeybindingActionConfig {
|
156
|
+
interface ActionData extends ClientKeybindings.KeybindingActionConfig {
|
157
157
|
category: string;
|
158
158
|
bindings: DisplayBinding[];
|
159
159
|
id: string;
|
@@ -163,7 +163,7 @@ declare global {
|
|
163
163
|
notes: string;
|
164
164
|
}
|
165
165
|
|
166
|
-
interface DisplayBinding extends Partial<KeybindingActionBinding> {
|
166
|
+
interface DisplayBinding extends Partial<ClientKeybindings.KeybindingActionBinding> {
|
167
167
|
id: string;
|
168
168
|
display: string;
|
169
169
|
cssClasses: string;
|
@@ -173,7 +173,7 @@ declare global {
|
|
173
173
|
hasConflicts: boolean;
|
174
174
|
}
|
175
175
|
|
176
|
-
interface PendingBinding extends KeybindingActionBinding {
|
176
|
+
interface PendingBinding extends ClientKeybindings.KeybindingActionBinding {
|
177
177
|
index: number;
|
178
178
|
}
|
179
179
|
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { ConfiguredDocumentClassForName } from "../../../../types/helperTypes.d.mts";
|
2
1
|
import type Document from "../../../common/abstract/document.d.mts";
|
3
2
|
|
4
3
|
declare global {
|
@@ -29,7 +28,7 @@ declare global {
|
|
29
28
|
/**
|
30
29
|
* References to the set of Documents which are displayed in the Sidebar
|
31
30
|
*/
|
32
|
-
documents: FolderType extends Document.Type ?
|
31
|
+
documents: FolderType extends Document.Type ? Document.ConfiguredInstanceForName<FolderType>[] : undefined;
|
33
32
|
|
34
33
|
/**
|
35
34
|
* Reference the set of Folders which exist in this Sidebar
|