@league-of-foundry-developers/foundry-vtt-types 12.331.4-beta → 12.331.5
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/package.json +18 -1
- package/src/configuration/configuration.d.mts +1 -1
- package/src/foundry/client/apps/app.d.mts +1 -1
- package/src/foundry/client/apps/av/av-config.d.mts +1 -1
- package/src/foundry/client/apps/av/cameras.d.mts +1 -1
- package/src/foundry/client/apps/dice/dice-config.d.mts +1 -1
- package/src/foundry/client/apps/form.d.mts +1 -1
- package/src/foundry/client/apps/forms/actor.d.mts +1 -1
- package/src/foundry/client/apps/forms/adventure-exporter.d.mts +1 -1
- package/src/foundry/client/apps/forms/adventure-importer.d.mts +1 -1
- package/src/foundry/client/apps/forms/base-sheet.d.mts +1 -1
- package/src/foundry/client/apps/forms/card-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/cards-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/combat-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/effect-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/folder-config.d.mts +7 -2
- package/src/foundry/client/apps/forms/fonts.d.mts +1 -1
- package/src/foundry/client/apps/forms/grid-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/image-popout.d.mts +1 -1
- package/src/foundry/client/apps/forms/item.d.mts +1 -1
- package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +1 -1
- package/src/foundry/client/apps/forms/journal-sheet.d.mts +1 -1
- package/src/foundry/client/apps/forms/macro-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/measure-template.d.mts +1 -1
- package/src/foundry/client/apps/forms/ownership.d.mts +1 -1
- package/src/foundry/client/apps/forms/playlist-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/roll-table-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/scene-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/sheet-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/user-config.d.mts +1 -1
- package/src/foundry/client/apps/hud/chatbubble.d.mts +1 -1
- package/src/foundry/client/apps/hud/container.d.mts +1 -1
- package/src/foundry/client/apps/hud/controls.d.mts +1 -1
- package/src/foundry/client/apps/hud/hotbar.d.mts +1 -1
- package/src/foundry/client/apps/hud/hud.d.mts +1 -1
- package/src/foundry/client/apps/hud/menu.d.mts +1 -1
- package/src/foundry/client/apps/hud/navigation.d.mts +1 -1
- package/src/foundry/client/apps/hud/pause.d.mts +1 -1
- package/src/foundry/client/apps/hud/players.d.mts +1 -1
- package/src/foundry/client/apps/placeables/drawing-config.d.mts +1 -1
- package/src/foundry/client/apps/placeables/drawing-hud.d.mts +1 -1
- package/src/foundry/client/apps/placeables/note-config.d.mts +1 -1
- package/src/foundry/client/apps/placeables/tile-config.d.mts +1 -1
- package/src/foundry/client/apps/placeables/tile-hud.d.mts +1 -1
- package/src/foundry/client/apps/placeables/token-config.d.mts +1 -1
- package/src/foundry/client/apps/placeables/token-hud.d.mts +1 -1
- package/src/foundry/client/apps/placeables/wall-config.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/package-configuration.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/sidebar.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +1 -1
- package/src/foundry/client/av/client.d.mts +1 -1
- package/src/foundry/client/av/clients/simplepeer.d.mts +1 -1
- package/src/foundry/client/av/master.d.mts +1 -1
- package/src/foundry/client/av/settings.d.mts +1 -1
- package/src/foundry/client/config.d.mts +1 -1
- package/src/foundry/client/core/hooks.d.mts +1 -1
- package/src/foundry/client/core/image.d.mts +1 -1
- package/src/foundry/client/core/keybindings.d.mts +1 -1
- package/src/foundry/client/core/packages.d.mts +4 -2
- package/src/foundry/client/core/settings.d.mts +1 -1
- package/src/foundry/client/core/socket.d.mts +1 -1
- package/src/foundry/client/core/tooltip.d.mts +1 -1
- package/src/foundry/client/core/tour.d.mts +1 -1
- package/src/foundry/client/core/utils.d.mts +1 -1
- package/src/foundry/client/core/workers.d.mts +1 -1
- package/src/foundry/client/data/abstract/canvas-document.d.mts +9 -20
- package/src/foundry/client/data/abstract/client-document.d.mts +133 -71
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +2 -2
- package/src/foundry/client/data/abstract/document-collection.d.mts +1 -1
- package/src/foundry/client/data/abstract/world-collection.d.mts +8 -1
- package/src/foundry/client/data/collections/actors.d.mts +1 -1
- package/src/foundry/client/data/collections/cards.d.mts +1 -1
- package/src/foundry/client/data/collections/combats.d.mts +1 -1
- package/src/foundry/client/data/collections/compendium-collection.d.mts +5 -4
- package/src/foundry/client/data/collections/fog.d.mts +1 -1
- package/src/foundry/client/data/collections/folder.d.mts +1 -1
- package/src/foundry/client/data/collections/items.d.mts +1 -1
- package/src/foundry/client/data/collections/journal.d.mts +1 -1
- package/src/foundry/client/data/collections/macros.d.mts +1 -1
- package/src/foundry/client/data/collections/messages.d.mts +1 -1
- package/src/foundry/client/data/collections/playlists.d.mts +1 -1
- package/src/foundry/client/data/collections/scenes.d.mts +1 -1
- package/src/foundry/client/data/collections/settings.d.mts +1 -1
- package/src/foundry/client/data/collections/tables.d.mts +1 -1
- package/src/foundry/client/data/collections/users.d.mts +4 -4
- package/src/foundry/client/data/documents/active-effect.d.mts +124 -48
- package/src/foundry/client/data/documents/actor-delta.d.mts +53 -22
- package/src/foundry/client/data/documents/actor.d.mts +147 -93
- package/src/foundry/client/data/documents/adventure.d.mts +74 -45
- package/src/foundry/client/data/documents/ambient-light.d.mts +13 -10
- package/src/foundry/client/data/documents/ambient-sound.d.mts +12 -7
- package/src/foundry/client/data/documents/card.d.mts +57 -34
- package/src/foundry/client/data/documents/cards.d.mts +171 -135
- package/src/foundry/client/data/documents/chat-message.d.mts +131 -72
- package/src/foundry/client/data/documents/combat.d.mts +80 -60
- package/src/foundry/client/data/documents/combatant.d.mts +53 -20
- package/src/foundry/client/data/documents/drawing.d.mts +12 -7
- package/src/foundry/client/data/documents/fog-exploration.d.mts +57 -17
- package/src/foundry/client/data/documents/folder.d.mts +114 -31
- package/src/foundry/client/data/documents/item.d.mts +31 -21
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +90 -57
- package/src/foundry/client/data/documents/journal-entry.d.mts +29 -34
- package/src/foundry/client/data/documents/macro.d.mts +60 -34
- package/src/foundry/client/data/documents/measured-template.d.mts +13 -8
- package/src/foundry/client/data/documents/note.d.mts +14 -7
- package/src/foundry/client/data/documents/playlist-sound.d.mts +29 -33
- package/src/foundry/client/data/documents/playlist.d.mts +74 -54
- package/src/foundry/client/data/documents/region-behavior.d.mts +16 -7
- package/src/foundry/client/data/documents/region.d.mts +53 -48
- package/src/foundry/client/data/documents/scene.d.mts +310 -89
- package/src/foundry/client/data/documents/setting.d.mts +24 -23
- package/src/foundry/client/data/documents/table-result.d.mts +20 -8
- package/src/foundry/client/data/documents/table.d.mts +19 -13
- package/src/foundry/client/data/documents/tile.d.mts +13 -7
- package/src/foundry/client/data/documents/token.d.mts +148 -117
- package/src/foundry/client/data/documents/user.d.mts +141 -53
- package/src/foundry/client/data/documents/wall.d.mts +17 -10
- package/src/foundry/client/game.d.mts +1 -1
- package/src/foundry/client/head.d.mts +1 -1
- package/src/foundry/client/hooks.d.mts +9 -18
- package/src/foundry/client/pixi/board.d.mts +3 -2
- package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +1 -8
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +1 -1
- package/src/foundry/client/pixi/core/interaction/targets.d.mts +1 -1
- package/src/foundry/client/pixi/core/loader.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +1 -1
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +1 -1
- package/src/foundry/client/pixi/extensions/circle.d.mts +1 -1
- package/src/foundry/client/pixi/extensions/observable-transform.d.mts +1 -1
- package/src/foundry/client/pixi/extensions/polygon.d.mts +1 -1
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +1 -1
- package/src/foundry/client/pixi/groups/effects.d.mts +1 -1
- package/src/foundry/client/pixi/groups/environment.d.mts +1 -1
- package/src/foundry/client/pixi/groups/hidden.d.mts +1 -1
- package/src/foundry/client/pixi/groups/interface.d.mts +1 -1
- package/src/foundry/client/pixi/groups/overlay.d.mts +1 -1
- package/src/foundry/client/pixi/groups/primary.d.mts +1 -1
- package/src/foundry/client/pixi/groups/rendered.d.mts +1 -1
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +1 -1
- package/src/foundry/client/pixi/layers/controls/door.d.mts +1 -1
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +1 -1
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +1 -1
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +1 -1
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +1 -1
- package/src/foundry/client/pixi/layers/grid/mesh.d.mts +1 -1
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +1 -1
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +1 -1
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/regions.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +1 -1
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +1 -1
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +1 -1
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +1 -1
- package/src/foundry/client/pixi/perception/fog.d.mts +1 -1
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +1 -1
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +1 -1
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +1 -1
- package/src/foundry/client/pixi/placeable.d.mts +2 -1
- package/src/foundry/client/pixi/placeables/drawing.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/light.d.mts +1 -7
- package/src/foundry/client/pixi/placeables/note.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/region.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/sound.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/template.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/tile.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/token.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/wall.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/helpers/framebuffer-snapshot.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +1 -1
- package/src/foundry/client/pixi/workers/texture-worker.d.mts +1 -1
- package/src/foundry/client/ui/context.d.mts +1 -1
- package/src/foundry/client/ui/dialog.d.mts +1 -1
- package/src/foundry/client/ui/dragdrop.d.mts +1 -1
- package/src/foundry/client/ui/editor.d.mts +1 -1
- package/src/foundry/client/ui/filepicker.d.mts +1 -1
- package/src/foundry/client/ui/filter.d.mts +1 -1
- package/src/foundry/client-esm/applications/api/application.d.mts +1 -9
- package/src/foundry/client-esm/applications/api/dialog.d.mts +1 -1
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +1 -1
- package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +1 -1
- package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/apps/permission-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +1 -1
- package/src/foundry/client-esm/applications/forms/fields.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/region-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +1 -1
- package/src/foundry/client-esm/applications/ui/region-legend.d.mts +1 -1
- package/src/foundry/client-esm/audio/biquad.d.mts +1 -1
- package/src/foundry/client-esm/audio/convolver.d.mts +1 -1
- package/src/foundry/client-esm/audio/helper.d.mts +1 -1
- package/src/foundry/client-esm/audio/sound.d.mts +2 -2
- package/src/foundry/client-esm/canvas/edges/collision.d.mts +1 -1
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +1 -1
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +1 -1
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +1 -1
- package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +1 -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 +1 -1
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +3 -2
- package/src/foundry/client-esm/canvas/tokens/ring.d.mts +1 -1
- package/src/foundry/client-esm/data/client-backend.d.mts +1 -1
- package/src/foundry/client-esm/data/region-behaviors/adjust-darkness-level.d.mts +4 -5
- package/src/foundry/client-esm/data/region-behaviors/base.d.mts +1 -1
- package/src/foundry/client-esm/data/region-behaviors/display-scrolling-text.d.mts +1 -1
- package/src/foundry/client-esm/data/region-behaviors/toggle-behavior.d.mts +4 -4
- package/src/foundry/client-esm/dice/roll.d.mts +5 -8
- package/src/foundry/client-esm/dice/terms/coin.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/dice.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/die.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/fate.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/function.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/numeric.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/operator.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/pool.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/string.d.mts +1 -1
- package/src/foundry/client-esm/dice/terms/term.d.mts +1 -1
- package/src/foundry/common/abstract/backend.d.mts +1 -1
- package/src/foundry/common/abstract/data.d.mts +197 -146
- package/src/foundry/common/abstract/document.d.mts +198 -81
- package/src/foundry/common/abstract/embedded-collection-delta.d.mts +1 -1
- package/src/foundry/common/abstract/embedded-collection.d.mts +1 -1
- package/src/foundry/common/abstract/socket.d.mts +1 -1
- package/src/foundry/common/abstract/type-data.d.mts +4 -1
- package/src/foundry/common/config.d.mts +7 -1
- package/src/foundry/common/constants.d.mts +1 -1
- package/src/foundry/common/data/data.d.mts +42 -12
- package/src/foundry/common/data/fields.d.mts +656 -252
- package/src/foundry/common/documents/_types.d.mts +0 -6
- package/src/foundry/common/documents/active-effect.d.mts +116 -53
- package/src/foundry/common/documents/actor-delta.d.mts +139 -58
- package/src/foundry/common/documents/actor.d.mts +105 -51
- package/src/foundry/common/documents/adventure.d.mts +84 -39
- package/src/foundry/common/documents/ambient-light.d.mts +66 -38
- package/src/foundry/common/documents/ambient-sound.d.mts +66 -38
- package/src/foundry/common/documents/card.d.mts +100 -59
- package/src/foundry/common/documents/cards.d.mts +97 -42
- package/src/foundry/common/documents/chat-message.d.mts +105 -52
- package/src/foundry/common/documents/combat.d.mts +101 -48
- package/src/foundry/common/documents/combatant.d.mts +94 -50
- package/src/foundry/common/documents/drawing.d.mts +87 -46
- package/src/foundry/common/documents/fog-exploration.d.mts +87 -41
- package/src/foundry/common/documents/folder.d.mts +100 -46
- package/src/foundry/common/documents/item.d.mts +116 -45
- package/src/foundry/common/documents/journal-entry-page.d.mts +90 -40
- package/src/foundry/common/documents/journal-entry.d.mts +90 -39
- package/src/foundry/common/documents/macro.d.mts +116 -52
- package/src/foundry/common/documents/measured-template.d.mts +80 -44
- package/src/foundry/common/documents/note.d.mts +75 -39
- package/src/foundry/common/documents/playlist-sound.d.mts +88 -47
- package/src/foundry/common/documents/playlist.d.mts +101 -50
- package/src/foundry/common/documents/region-behavior.d.mts +71 -40
- package/src/foundry/common/documents/region.d.mts +68 -40
- package/src/foundry/common/documents/roll-table.d.mts +43 -9
- package/src/foundry/common/documents/scene.d.mts +190 -43
- package/src/foundry/common/documents/setting.d.mts +98 -42
- package/src/foundry/common/documents/table-result.d.mts +98 -48
- package/src/foundry/common/documents/tile.d.mts +77 -43
- package/src/foundry/common/documents/token.d.mts +95 -52
- package/src/foundry/common/documents/user.d.mts +100 -89
- package/src/foundry/common/documents/wall.d.mts +47 -17
- package/src/foundry/common/grid/base.d.mts +1 -1
- package/src/foundry/common/grid/gridless.d.mts +1 -1
- package/src/foundry/common/grid/hexagonal.d.mts +1 -1
- package/src/foundry/common/grid/square.d.mts +1 -1
- package/src/foundry/common/packages/base-package.d.mts +37 -14
- package/src/foundry/common/packages/base-system.d.mts +39 -0
- package/src/foundry/common/packages/base-world.d.mts +8 -1
- package/src/foundry/common/packages/sub-types.d.mts +3 -5
- package/src/foundry/common/primitives/array.d.mts +1 -1
- package/src/foundry/common/primitives/string.d.mts +1 -1
- package/src/foundry/common/prosemirror/dirty-plugin.d.mts +1 -1
- package/src/foundry/common/prosemirror/dom-parser.d.mts +1 -1
- package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +1 -1
- package/src/foundry/common/prosemirror/image-plugin.d.mts +1 -1
- package/src/foundry/common/prosemirror/paste-transformer.d.mts +1 -1
- package/src/foundry/common/prosemirror/plugin.d.mts +1 -1
- package/src/foundry/common/types.d.mts +1 -1
- package/src/foundry/common/utils/bitmask.d.mts +1 -1
- package/src/foundry/common/utils/collection.d.mts +1 -1
- package/src/foundry/common/utils/event-emitter.d.mts +1 -1
- package/src/foundry/common/utils/helpers.d.mts +1 -1
- package/src/foundry/public/scripts/clipper/clipper.d.mts +1 -1
- package/src/types/augments/particles.d.mts +1 -1
- package/src/types/augments/pixi.d.mts +1 -1
- package/src/types/augments/smooth.d.mts +1 -1
- package/src/types/augments/tinyMCE.d.mts +1 -1
- package/src/types/config.d.mts +2 -5
- package/src/types/documentConfiguration.d.mts +1 -1
- package/src/types/lib.d.mts +1 -1
- package/src/types/workers/image-compressor.d.mts +1 -1
@@ -1,7 +1,8 @@
|
|
1
|
-
import type
|
1
|
+
import type DataModel from "#common/abstract/data.mjs";
|
2
|
+
import type { AnyArray, AnyObject, InexactPartial, InterfaceToObject, Merge, NullishProps } from "#utils";
|
2
3
|
import type { documents } from "../../../client-esm/client.d.mts";
|
3
4
|
import type Document from "../../../common/abstract/document.d.mts";
|
4
|
-
import type { DataSchema } from "../../../common/data/fields.d.mts";
|
5
|
+
import type { DataSchema, SchemaField } from "../../../common/data/fields.d.mts";
|
5
6
|
import type { fields, LightData, TextureData } from "../../../common/data/module.d.mts";
|
6
7
|
import type { ActorDeltaField } from "../../../common/documents/token.d.mts";
|
7
8
|
import type BaseToken from "../../../common/documents/token.d.mts";
|
@@ -181,7 +182,7 @@ declare global {
|
|
181
182
|
type Collection = never;
|
182
183
|
|
183
184
|
/**
|
184
|
-
* An instance of `TokenDocument` that comes from the database but failed validation
|
185
|
+
* An instance of `TokenDocument` that comes from the database but failed validation meaning that
|
185
186
|
* its `system` and `_source` could theoretically be anything.
|
186
187
|
*/
|
187
188
|
interface Invalid extends Document.Invalid<TokenDocument.Implementation> {}
|
@@ -242,7 +243,7 @@ declare global {
|
|
242
243
|
|
243
244
|
/**
|
244
245
|
* The display mode of the Token nameplate, from CONST.TOKEN_DISPLAY_MODES
|
245
|
-
* @defaultValue `CONST.TOKEN_DISPLAY_MODES.NONE`
|
246
|
+
* @defaultValue `CONST.TOKEN_DISPLAY_MODES.NONE`
|
246
247
|
*/
|
247
248
|
displayName: fields.NumberField<
|
248
249
|
{
|
@@ -294,7 +295,7 @@ declare global {
|
|
294
295
|
}>;
|
295
296
|
|
296
297
|
/**
|
297
|
-
* @defaultValue `CONST.TOKEN_HEXAGONAL_SHAPES.ELLIPSE_1`
|
298
|
+
* @defaultValue `CONST.TOKEN_HEXAGONAL_SHAPES.ELLIPSE_1`
|
298
299
|
*/
|
299
300
|
hexagonalShape: fields.NumberField<
|
300
301
|
{
|
@@ -344,7 +345,7 @@ declare global {
|
|
344
345
|
|
345
346
|
/**
|
346
347
|
* The display mode of Token resource bars, from CONST.TOKEN_DISPLAY_MODES
|
347
|
-
* @defaultValue `CONST.TOKEN_DISPLAY_MODES.NONE`
|
348
|
+
* @defaultValue `CONST.TOKEN_DISPLAY_MODES.NONE`
|
348
349
|
*/
|
349
350
|
displayBars: fields.NumberField<
|
350
351
|
{
|
@@ -861,28 +862,49 @@ declare global {
|
|
861
862
|
>
|
862
863
|
| ActorDelta.OnDeleteDescendantDocumentsArgs;
|
863
864
|
|
864
|
-
|
865
|
-
* @deprecated {@link TokenDocument.Database | `TokenDocument.DatabaseOperation`}
|
866
|
-
*/
|
867
|
-
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
868
|
-
interface DatabaseOperations extends Document.Database.Operations<TokenDocument.Implementation> {}
|
865
|
+
// The getBarAttribute monkeypatch is simply inside the data model definition at `src/foundry/common/data/data.d.mts`
|
869
866
|
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
interface ConstructorData extends TokenDocument.CreateData {}
|
867
|
+
interface PseudoActorCollection extends foundry.utils.Collection<Actor.Implementation> {
|
868
|
+
documentClass: Actor.ImplementationClass;
|
869
|
+
}
|
874
870
|
|
875
|
-
/**
|
876
|
-
|
877
|
-
|
878
|
-
|
871
|
+
/** @internal */
|
872
|
+
type _GetBarAttributeOptions = NullishProps<{
|
873
|
+
/**
|
874
|
+
* An alternative attribute path to get instead of the default one
|
875
|
+
* @defaultValue `this[barName]?.attribute`
|
876
|
+
* @remarks If the above default returns falsey, the {@link TokenDocument.getBarAttribute | `TokenDocument#getBarAttribute`}
|
877
|
+
* call returns `null`
|
878
|
+
*/
|
879
|
+
alternative: string;
|
880
|
+
}>;
|
879
881
|
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
type ConfiguredInstance = Implementation;
|
882
|
+
interface GetBarAttributeOptions extends _GetBarAttributeOptions {}
|
883
|
+
|
884
|
+
type GetBarAttributeReturn = SingleAttributeBar | ObjectAttributeBar | null;
|
884
885
|
|
885
|
-
|
886
|
+
/** @internal */
|
887
|
+
type _CreateCombatantsOptions = NullishProps<{
|
888
|
+
/**
|
889
|
+
* A specific Combat instance which should be modified. If undefined,
|
890
|
+
* the current active combat will be modified if one exists. Otherwise, a new
|
891
|
+
* Combat encounter will be created if the requesting user is a Gamemaster.
|
892
|
+
* @defaultValue `game.combats.viewed`
|
893
|
+
*/
|
894
|
+
combat: Combat.Implementation;
|
895
|
+
}>;
|
896
|
+
|
897
|
+
interface CreateCombatantsOptions extends _CreateCombatantsOptions {}
|
898
|
+
|
899
|
+
interface DeleteCombatantsOptions extends _CreateCombatantsOptions {}
|
900
|
+
|
901
|
+
type TrackedAttributesSubject =
|
902
|
+
| DataModel.Any
|
903
|
+
| DataModel.AnyConstructor
|
904
|
+
| SchemaField.Any
|
905
|
+
| Actor.SubType
|
906
|
+
| AnyObject
|
907
|
+
| AnyArray;
|
886
908
|
|
887
909
|
interface TrackedAttributesDescription {
|
888
910
|
/** A list of property path arrays to attributes with both a value and a max property. */
|
@@ -891,16 +913,13 @@ declare global {
|
|
891
913
|
value: string[][];
|
892
914
|
}
|
893
915
|
|
894
|
-
interface
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
* Combat encounter will be created if the requesting user is a Gamemaster.
|
899
|
-
*/
|
900
|
-
combat?: Combat.Implementation | undefined;
|
916
|
+
interface TrackedAttributesChoice {
|
917
|
+
group: string;
|
918
|
+
value: string;
|
919
|
+
label: string;
|
901
920
|
}
|
902
921
|
|
903
|
-
interface ToggleCombatantOptions extends InexactPartial<TokenDocument.
|
922
|
+
interface ToggleCombatantOptions extends InexactPartial<TokenDocument.CreateCombatantsOptions> {
|
904
923
|
/**
|
905
924
|
* Require this token to be an active Combatant or to be removed.
|
906
925
|
* Otherwise, the current combat state of the Token is toggled.
|
@@ -908,8 +927,6 @@ declare global {
|
|
908
927
|
active: boolean;
|
909
928
|
}
|
910
929
|
|
911
|
-
type GetBarAttributeReturn = SingleAttributeBar | ObjectAttributeBar | null;
|
912
|
-
|
913
930
|
type GetEmbeddedCollectionName = Embedded.CollectionName | "Actor" | "Item" | "ActiveEffect";
|
914
931
|
|
915
932
|
// TODO(LukeAbby): Simplified for now to prevent circularities. The correct implementation would
|
@@ -919,6 +936,27 @@ declare global {
|
|
919
936
|
// | (Name extends "ActiveEffect" ? globalThis.Collection<ActiveEffect.Implementation> : never)
|
920
937
|
// | (Name extends Embedded.CollectionName ? Embedded.CollectionFor<Name> : never);
|
921
938
|
type GetEmbeddedCollectionResult<_Name extends GetEmbeddedCollectionName> = Collection.Any;
|
939
|
+
|
940
|
+
/**
|
941
|
+
* @deprecated {@link TokenDocument.Database | `TokenDocument.DatabaseOperation`}
|
942
|
+
*/
|
943
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
944
|
+
interface DatabaseOperations extends Document.Database.Operations<TokenDocument.Implementation> {}
|
945
|
+
|
946
|
+
/**
|
947
|
+
* @deprecated {@link TokenDocument.CreateData | `TokenDocument.CreateData`}
|
948
|
+
*/
|
949
|
+
interface ConstructorData extends TokenDocument.CreateData {}
|
950
|
+
|
951
|
+
/**
|
952
|
+
* @deprecated {@link TokenDocument.implementation | `TokenDocument.ImplementationClass`}
|
953
|
+
*/
|
954
|
+
type ConfiguredClass = ImplementationClass;
|
955
|
+
|
956
|
+
/**
|
957
|
+
* @deprecated {@link TokenDocument.Implementation | `TokenDocument.Implementation`}
|
958
|
+
*/
|
959
|
+
type ConfiguredInstance = Implementation;
|
922
960
|
}
|
923
961
|
|
924
962
|
/**
|
@@ -936,8 +974,9 @@ declare global {
|
|
936
974
|
|
937
975
|
/**
|
938
976
|
* A singleton collection which holds a reference to the synthetic token actor by its base actor's ID.
|
977
|
+
* @remarks Initialized by an IIFE that makes a base-model {@linkcode Collection} and adds a `documentClass` property to it
|
939
978
|
*/
|
940
|
-
actors
|
979
|
+
actors: TokenDocument.PseudoActorCollection;
|
941
980
|
|
942
981
|
/**
|
943
982
|
* A lazily evaluated reference to the Actor this Token modifies.
|
@@ -982,8 +1021,8 @@ declare global {
|
|
982
1021
|
*/
|
983
1022
|
regions: Set<RegionDocument.Implementation> | null;
|
984
1023
|
|
985
|
-
//
|
986
|
-
protected override _initialize(options?:
|
1024
|
+
// options: not null (parameter default only)
|
1025
|
+
protected override _initialize(options?: Document.InitializeOptions): void;
|
987
1026
|
|
988
1027
|
override prepareBaseData(): void;
|
989
1028
|
|
@@ -1007,14 +1046,10 @@ declare global {
|
|
1007
1046
|
* @param barName - The named bar to retrieve the attribute for
|
1008
1047
|
* @returns The attribute displayed on the Token bar, if any
|
1009
1048
|
*/
|
1049
|
+
// options: not null (destructured)
|
1010
1050
|
getBarAttribute(
|
1011
1051
|
barName: string,
|
1012
|
-
options?:
|
1013
|
-
/**
|
1014
|
-
* An alternative attribute path to get instead of the default one
|
1015
|
-
*/
|
1016
|
-
alternative: string;
|
1017
|
-
}>,
|
1052
|
+
options?: TokenDocument.GetBarAttributeOptions,
|
1018
1053
|
): TokenDocument.GetBarAttributeReturn;
|
1019
1054
|
|
1020
1055
|
/**
|
@@ -1026,47 +1061,45 @@ declare global {
|
|
1026
1061
|
|
1027
1062
|
/**
|
1028
1063
|
* Add or remove this Token from a Combat encounter.
|
1029
|
-
* @param options - Additional options passed to TokenDocument.createCombatants or
|
1030
|
-
*
|
1031
|
-
* Default: `{}`
|
1032
|
-
* @returns Is this Token now an active Combatant?
|
1064
|
+
* @param options - Additional options passed to TokenDocument.createCombatants or TokenDocument.deleteCombatants (default: `{}`)
|
1065
|
+
* @returns Is this Token now an active Combatant?
|
1033
1066
|
*/
|
1034
|
-
|
1067
|
+
// options: not null (destructured)
|
1068
|
+
toggleCombatant(options?: TokenDocument.ToggleCombatantOptions): Promise<boolean>;
|
1035
1069
|
|
1036
1070
|
/**
|
1037
1071
|
* Create or remove Combatants for an array of provided Token objects.
|
1038
1072
|
* @param tokens - The tokens which should be added to the Combat
|
1039
|
-
* @param options - Options which modify the toggle operation
|
1040
|
-
* Default: `{}`
|
1073
|
+
* @param options - Options which modify the toggle operation (default: `{}`)
|
1041
1074
|
* @returns An array of created Combatant documents
|
1042
1075
|
*/
|
1076
|
+
// options: not null (destructured)
|
1043
1077
|
static createCombatants(
|
1044
1078
|
tokens: TokenDocument.Implementation[],
|
1045
|
-
options?: TokenDocument.
|
1079
|
+
options?: TokenDocument.CreateCombatantsOptions,
|
1046
1080
|
): Promise<Combatant.Implementation[]>;
|
1047
1081
|
|
1048
1082
|
/**
|
1049
1083
|
* Remove Combatants for the array of provided Tokens.
|
1050
1084
|
* @param tokens - The tokens which should removed from the Combat
|
1051
|
-
* @param options - Options which modify the operation
|
1052
|
-
* Default: `{}`
|
1085
|
+
* @param options - Options which modify the operation (default: `{}`)
|
1053
1086
|
* @returns An array of deleted Combatant documents
|
1054
1087
|
*/
|
1088
|
+
// options: not null (destructured)
|
1055
1089
|
static deleteCombatants(
|
1056
1090
|
tokens: TokenDocument.Implementation[],
|
1057
|
-
options?: TokenDocument.
|
1091
|
+
options?: TokenDocument.DeleteCombatantsOptions,
|
1058
1092
|
): Promise<Combatant.Implementation[]>;
|
1059
1093
|
|
1060
1094
|
/**
|
1061
1095
|
* Convenience method to change a token vision mode.
|
1062
1096
|
* @param visionMode - The vision mode to apply to this token.
|
1063
|
-
* @param defaults - If the vision mode should be updated with its defaults.
|
1064
|
-
* Default = `true`
|
1097
|
+
* @param defaults - If the vision mode should be updated with its defaults. (default: `true`)
|
1065
1098
|
*/
|
1066
1099
|
updateVisionMode(
|
1067
|
-
visionMode:
|
1068
|
-
defaults?: boolean,
|
1069
|
-
): Promise<
|
1100
|
+
visionMode: VisionMode.ConfiguredModes,
|
1101
|
+
defaults?: boolean | null,
|
1102
|
+
): Promise<TokenDocument.Implementation | undefined>;
|
1070
1103
|
|
1071
1104
|
/**
|
1072
1105
|
* @remarks Foundry specifically overrides this method such that unlinked `TokenDocument` instances
|
@@ -1079,14 +1112,20 @@ declare global {
|
|
1079
1112
|
embeddedName: EmbeddedName,
|
1080
1113
|
): TokenDocument.GetEmbeddedCollectionResult<EmbeddedName>;
|
1081
1114
|
|
1115
|
+
// _onCreate, _preUpdate, _onUpdate, _onDelete, preCreateOperation, _preUpdateOperation, _onCreateOperation,
|
1116
|
+
// _onUpdateOperation, _onDeleteOperation are all overridden but with no signature changes from their definition in BaseToken.
|
1117
|
+
|
1082
1118
|
/**
|
1083
|
-
*
|
1084
|
-
*
|
1119
|
+
* Is to Token document updated such that the Regions the Token is contained in may change?
|
1120
|
+
* Called as part of the preUpdate workflow.
|
1121
|
+
* @param changes - The changes.
|
1122
|
+
* @returns Could this Token update change Region containment?
|
1085
1123
|
*/
|
1124
|
+
protected _couldRegionsChange(changes: TokenDocument.UpdateData): boolean;
|
1086
1125
|
|
1087
1126
|
/**
|
1088
1127
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1089
|
-
* this method must be
|
1128
|
+
* this method must be overridden like so:
|
1090
1129
|
* ```typescript
|
1091
1130
|
* class SwadeActorDelta extends ActorDelta {
|
1092
1131
|
* protected override _preCreateDescendantDocuments(...args: ActorDelta.PreCreateDescendantDocumentsArgs) {
|
@@ -1104,7 +1143,7 @@ declare global {
|
|
1104
1143
|
|
1105
1144
|
/**
|
1106
1145
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1107
|
-
* this method must be
|
1146
|
+
* this method must be overridden like so:
|
1108
1147
|
* ```typescript
|
1109
1148
|
* class GurpsActorDelta extends ActorDelta {
|
1110
1149
|
* protected override _onCreateDescendantDocuments(...args: ActorDelta.OnCreateDescendantDocumentsArgs) {
|
@@ -1122,7 +1161,7 @@ declare global {
|
|
1122
1161
|
|
1123
1162
|
/**
|
1124
1163
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1125
|
-
* this method must be
|
1164
|
+
* this method must be overridden like so:
|
1126
1165
|
* ```typescript
|
1127
1166
|
* class LancerActorDelta extends ActorDelta {
|
1128
1167
|
* protected override _preUpdateDescendantDocuments(...args: ActorDelta.OnUpdateDescendantDocuments) {
|
@@ -1140,7 +1179,7 @@ declare global {
|
|
1140
1179
|
|
1141
1180
|
/**
|
1142
1181
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1143
|
-
* this method must be
|
1182
|
+
* this method must be overridden like so:
|
1144
1183
|
* ```typescript
|
1145
1184
|
* class Ptr2eTokenDocument extends TokenDocument {
|
1146
1185
|
* protected override _onUpdateDescendantDocuments(...args: TokenDocument.OnUpdateDescendantDocumentsArgs) {
|
@@ -1158,7 +1197,7 @@ declare global {
|
|
1158
1197
|
|
1159
1198
|
/**
|
1160
1199
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1161
|
-
* this method must be
|
1200
|
+
* this method must be overridden like so:
|
1162
1201
|
* ```typescript
|
1163
1202
|
* class KultTokenDocument extends TokenDocument {
|
1164
1203
|
* protected override _preDeleteDescendantDocuments(...args: TokenDocument.PreDeleteDescendantDocumentsArgs) {
|
@@ -1176,7 +1215,7 @@ declare global {
|
|
1176
1215
|
|
1177
1216
|
/**
|
1178
1217
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1179
|
-
* this method must be
|
1218
|
+
* this method must be overridden like so:
|
1180
1219
|
* ```typescript
|
1181
1220
|
* class BladesTokenDocument extends TokenDocument {
|
1182
1221
|
* protected override _onDeleteDescendantDocuments(...args: TokenDocument.OnUpdateDescendantDocuments) {
|
@@ -1192,21 +1231,12 @@ declare global {
|
|
1192
1231
|
*/
|
1193
1232
|
protected override _onDeleteDescendantDocuments(...args: TokenDocument.OnDeleteDescendantDocumentsArgs): void;
|
1194
1233
|
|
1195
|
-
/**
|
1196
|
-
* Is to Token document updated such that the Regions the Token is contained in may change?
|
1197
|
-
* Called as part of the preUpdate workflow.
|
1198
|
-
* @param changes - The changes.
|
1199
|
-
* @returns Could this Token update change Region containment?
|
1200
|
-
*/
|
1201
|
-
protected _couldRegionsChange(changes: Token.UpdateData): boolean;
|
1202
|
-
|
1203
1234
|
/**
|
1204
1235
|
* When the base Actor for a TokenDocument changes, we may need to update its Actor instance
|
1236
|
+
* @remarks After updating the synthetic actor, forwards to {@link TokenDocument._onRelatedUpdate | `TokenDocument#_onRelatedUpdate`}
|
1205
1237
|
*/
|
1206
|
-
|
1207
|
-
|
1208
|
-
options?: Actor.Database.OnUpdateOperation,
|
1209
|
-
): void;
|
1238
|
+
// update, options: not null (parameter defaults only)
|
1239
|
+
protected _onUpdateBaseActor(update?: Actor.UpdateData, options?: Actor.Database.OnUpdateOperation): void;
|
1210
1240
|
|
1211
1241
|
/**
|
1212
1242
|
* Whenever the token's actor delta changes, or the base actor changes, perform associated refreshes.
|
@@ -1214,7 +1244,7 @@ declare global {
|
|
1214
1244
|
* @param options - The options provided to the update.
|
1215
1245
|
*/
|
1216
1246
|
protected _onRelatedUpdate(
|
1217
|
-
update?:
|
1247
|
+
update?: Actor.UpdateData | ActorDelta.UpdateData,
|
1218
1248
|
/**
|
1219
1249
|
* @privateRemarks foundry calls this field operation
|
1220
1250
|
* but it's being passed options (and then ignores them)
|
@@ -1224,11 +1254,13 @@ declare global {
|
|
1224
1254
|
|
1225
1255
|
/**
|
1226
1256
|
* Get an Array of attribute choices which could be tracked for Actors in the Combat Tracker
|
1257
|
+
* @param data - The object to explore for attributes, or an Actor type.
|
1227
1258
|
* @param _path - (default: `[]`)
|
1228
1259
|
*/
|
1229
1260
|
// TODO: There's some very complex handling for non-datamodel Actor system implementations if we want
|
1261
|
+
// _path: not null (parameter default only)
|
1230
1262
|
static getTrackedAttributes(
|
1231
|
-
data?:
|
1263
|
+
data?: TokenDocument.TrackedAttributesSubject | null,
|
1232
1264
|
_path?: string[],
|
1233
1265
|
): TokenDocument.TrackedAttributesDescription;
|
1234
1266
|
|
@@ -1236,8 +1268,9 @@ declare global {
|
|
1236
1268
|
* Retrieve an Array of attribute choices from a plain object.
|
1237
1269
|
* @param schema - The schema to explore for attributes.
|
1238
1270
|
*/
|
1271
|
+
// _path: not null (parameter default only)
|
1239
1272
|
protected static _getTrackedAttributesFromObject(
|
1240
|
-
data:
|
1273
|
+
data: AnyObject | AnyArray,
|
1241
1274
|
_path?: string[],
|
1242
1275
|
): TokenDocument.TrackedAttributesDescription;
|
1243
1276
|
|
@@ -1246,27 +1279,31 @@ declare global {
|
|
1246
1279
|
* @param schema - The schema to explore for attributes.
|
1247
1280
|
*/
|
1248
1281
|
protected static _getTrackedAttributesFromSchema(
|
1249
|
-
schema:
|
1282
|
+
schema: SchemaField.Any,
|
1250
1283
|
_path?: string[],
|
1251
1284
|
): TokenDocument.TrackedAttributesDescription;
|
1252
1285
|
|
1253
1286
|
/**
|
1254
1287
|
* Retrieve any configured attributes for a given Actor type.
|
1255
1288
|
* @param type - The Actor type.
|
1289
|
+
* @remarks If `type` is invalid, or doesn't have an entry in {@linkcode CONFIG.Actor.trackableAttributes}, returns the merged
|
1290
|
+
* tracked attributes of all types. If no types have any configured, returns `void`
|
1256
1291
|
*/
|
1257
|
-
static _getConfiguredTrackedAttributes(
|
1292
|
+
static _getConfiguredTrackedAttributes(
|
1293
|
+
type?: Actor.SubType | null,
|
1294
|
+
): TokenDocument.TrackedAttributesDescription | void;
|
1258
1295
|
|
1259
1296
|
/**
|
1260
1297
|
* Inspect the Actor data model and identify the set of attributes which could be used for a Token Bar
|
1261
|
-
* @param attributes - The tracked attributes which can be chosen from
|
1298
|
+
* @param attributes - The tracked attributes which can be chosen from (default: `this.getTrackedAttributes()`)
|
1262
1299
|
* @returns A nested object of attribute choices to display
|
1263
1300
|
*/
|
1264
1301
|
static getTrackedAttributeChoices(
|
1265
|
-
attributes?: TokenDocument.TrackedAttributesDescription,
|
1266
|
-
):
|
1302
|
+
attributes?: TokenDocument.TrackedAttributesDescription | null,
|
1303
|
+
): TokenDocument.TrackedAttributesChoice[];
|
1267
1304
|
|
1268
1305
|
/**
|
1269
|
-
* @deprecated since v11
|
1306
|
+
* @deprecated since v11, no specified end
|
1270
1307
|
* @remarks `"TokenDocument#getActor has been deprecated. Please use the`
|
1271
1308
|
* `TokenDocument#actor getter to retrieve the Actor instance that the TokenDocument represents, or use`
|
1272
1309
|
* `TokenDocument#delta#apply to generate a new synthetic Actor instance."`
|
@@ -1274,14 +1311,14 @@ declare global {
|
|
1274
1311
|
getActor(): Actor.Implementation;
|
1275
1312
|
|
1276
1313
|
/**
|
1277
|
-
* @deprecated since v11
|
1314
|
+
* @deprecated since v11, until v13
|
1315
|
+
* @remarks "You are accessing `TokenDocument#actorData` which is deprecated. Source data may be retrieved via
|
1316
|
+
* {@link TokenDocument.delta | `TokenDocument#delta`} but all modifications/access should be done via the
|
1317
|
+
* synthetic Actor at {@link TokenDocument.actor | `TokenDocument#actor`} if possible."
|
1278
1318
|
*/
|
1279
|
-
get actorData():
|
1319
|
+
get actorData(): ActorDelta.Source;
|
1280
1320
|
|
1281
|
-
|
1282
|
-
* @deprecated since v11
|
1283
|
-
*/
|
1284
|
-
set actorData(actorData: this["delta"]["_source"]);
|
1321
|
+
set actorData(actorData: ActorDelta.CreateData);
|
1285
1322
|
|
1286
1323
|
/**
|
1287
1324
|
* A helper function to toggle a status effect which includes an Active Effect template
|
@@ -1290,12 +1327,10 @@ declare global {
|
|
1290
1327
|
* (default: `{}`)
|
1291
1328
|
* @returns Whether the Active Effect is now on or off
|
1292
1329
|
* @deprecated since v12
|
1293
|
-
* @remarks `TokenDocument#toggleActiveEffect is deprecated in favor of Actor#toggleStatusEffect"
|
1330
|
+
* @remarks "`TokenDocument#toggleActiveEffect` is deprecated in favor of {@link Actor.toggleStatusEffect | `Actor#toggleStatusEffect`}"
|
1294
1331
|
*/
|
1295
|
-
|
1296
|
-
|
1297
|
-
options?: InexactPartial<ToggleActiveEffectOptions>,
|
1298
|
-
): Promise<boolean>;
|
1332
|
+
// options: not null (destructured)
|
1333
|
+
toggleActiveEffect(effectData: CONFIG.StatusEffect, options?: Actor.ToggleStatusEffectOptions): Promise<boolean>;
|
1299
1334
|
|
1300
1335
|
/*
|
1301
1336
|
* After this point these are not really overridden methods.
|
@@ -1309,26 +1344,33 @@ declare global {
|
|
1309
1344
|
|
1310
1345
|
// ClientDocument overrides
|
1311
1346
|
|
1347
|
+
// context: not null (destructured)
|
1312
1348
|
static override defaultName(
|
1313
|
-
context
|
1349
|
+
context?: Document.DefaultNameContext<"Token", NonNullable<TokenDocument.Parent>>,
|
1314
1350
|
): string;
|
1315
1351
|
|
1352
|
+
/** @remarks `context.parent` is required as creation requires one */
|
1316
1353
|
static override createDialog(
|
1317
|
-
data: Document.CreateDialogData<TokenDocument.CreateData
|
1318
|
-
context: Document.CreateDialogContext<
|
1354
|
+
data: Document.CreateDialogData<TokenDocument.CreateData> | undefined,
|
1355
|
+
context: Document.CreateDialogContext<"Token", NonNullable<TokenDocument.Parent>>,
|
1319
1356
|
): Promise<TokenDocument.Stored | null | undefined>;
|
1320
1357
|
|
1358
|
+
// options: not null (parameter default only)
|
1321
1359
|
static override fromDropData(
|
1322
1360
|
data: Document.DropData<TokenDocument.Implementation>,
|
1323
|
-
options?:
|
1361
|
+
options?: AnyObject,
|
1324
1362
|
): Promise<TokenDocument.Implementation | undefined>;
|
1325
1363
|
|
1326
1364
|
static override fromImport(
|
1327
1365
|
source: TokenDocument.Source,
|
1328
|
-
context?: Document.FromImportContext<TokenDocument.Parent
|
1366
|
+
context?: Document.FromImportContext<TokenDocument.Parent> | null,
|
1329
1367
|
): Promise<TokenDocument.Implementation>;
|
1330
1368
|
|
1369
|
+
override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
|
1370
|
+
|
1331
1371
|
// TODO: The deprecated Embedded Document Operations
|
1372
|
+
|
1373
|
+
#TokenDocument: true;
|
1332
1374
|
}
|
1333
1375
|
|
1334
1376
|
/**
|
@@ -1337,9 +1379,9 @@ declare global {
|
|
1337
1379
|
type TrackedAttributesDescription = TokenDocument.TrackedAttributesDescription;
|
1338
1380
|
|
1339
1381
|
/**
|
1340
|
-
* @deprecated {@link TokenDocument.
|
1382
|
+
* @deprecated {@link TokenDocument.CreateCombatantsOptions | `TokenDocument.CreateCombatantOptions`}
|
1341
1383
|
*/
|
1342
|
-
type CreateCombatantOptions = TokenDocument.
|
1384
|
+
type CreateCombatantOptions = TokenDocument.CreateCombatantsOptions;
|
1343
1385
|
}
|
1344
1386
|
|
1345
1387
|
interface SingleAttributeBar {
|
@@ -1356,14 +1398,3 @@ interface ObjectAttributeBar {
|
|
1356
1398
|
max: number;
|
1357
1399
|
editable: boolean;
|
1358
1400
|
}
|
1359
|
-
|
1360
|
-
interface ToggleActiveEffectOptions {
|
1361
|
-
/**
|
1362
|
-
* Should the Active Effect icon be displayed as an overlay on the token?
|
1363
|
-
* @defaultValue `false`
|
1364
|
-
*/
|
1365
|
-
overlay: boolean;
|
1366
|
-
|
1367
|
-
/** Force a certain active state for the effect. */
|
1368
|
-
active: boolean;
|
1369
|
-
}
|