@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
@@ -101,8 +101,6 @@ export type SceneData = BaseScene.Properties;
|
|
101
101
|
|
102
102
|
export type GridData = BaseScene.Properties["grid"];
|
103
103
|
|
104
|
-
// TODO: Remove when BaseScene's schema is updated.
|
105
|
-
// @ts-expect-error This still has to be typed
|
106
104
|
export type EnvironmentData = BaseScene.Properties["environment"]["base"];
|
107
105
|
|
108
106
|
export interface _GlobalLightData {
|
@@ -110,12 +108,8 @@ export interface _GlobalLightData {
|
|
110
108
|
bright: boolean;
|
111
109
|
}
|
112
110
|
|
113
|
-
// TODO: Remove when BaseScene's schema is updated.
|
114
|
-
// @ts-expect-error This still has to be typed
|
115
111
|
export type GlobalLightData = BaseScene.Properties["environment"]["globalLight"];
|
116
112
|
|
117
|
-
// TODO: Remove when BaseScene's schema is updated.
|
118
|
-
// @ts-expect-error This still has to be typed
|
119
113
|
export type SceneEnvironmentData = BaseScene.Properties["environment"];
|
120
114
|
|
121
115
|
export type RegionData = BaseRegion.Properties;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { AnyMutableObject } from "#utils";
|
2
2
|
import type DataModel from "../abstract/data.d.mts";
|
3
3
|
import type Document from "../abstract/document.mts";
|
4
|
-
import type * as CONST from "../constants.mts";
|
5
4
|
import type { DataField, SchemaField } from "../data/fields.d.mts";
|
6
5
|
import type { LogCompatibilityWarningOptions } from "../utils/logging.d.mts";
|
7
6
|
|
@@ -27,31 +26,67 @@ declare abstract class BaseActiveEffect<
|
|
27
26
|
*/
|
28
27
|
constructor(...args: ActiveEffect.ConstructorArgs);
|
29
28
|
|
30
|
-
|
31
|
-
|
29
|
+
/**
|
30
|
+
* @defaultValue
|
31
|
+
* ```js
|
32
|
+
* mergeObject(super.metadata, {
|
33
|
+
* name: "ActiveEffect",
|
34
|
+
* collection: "effects",
|
35
|
+
* hasTypeData: true,
|
36
|
+
* label: "DOCUMENT.ActiveEffect",
|
37
|
+
* labelPlural: "DOCUMENT.ActiveEffects",
|
38
|
+
* schemaVersion: "12.324"
|
39
|
+
* });
|
40
|
+
* ```
|
41
|
+
*/
|
32
42
|
static override metadata: BaseActiveEffect.Metadata;
|
33
43
|
|
34
44
|
static override defineSchema(): BaseActiveEffect.Schema;
|
35
45
|
|
36
|
-
|
46
|
+
/**
|
47
|
+
* @remarks If `this.isEmbedded`, uses `this.parent.canUserModify(user, "update")`, dropping `data` and forcing `action`,
|
48
|
+
* otherwise `super`'s (with all arguments forwarded). Core's `Actor` implementation doesn't override this method, and while
|
49
|
+
* core's `Item` does, it only mirrors this functionality, so without further extension all roads lead to {@link Document.canUserModify | `Document#canUserModify`}
|
50
|
+
*/
|
51
|
+
// data: not null (parameter default only)
|
52
|
+
override canUserModify<Action extends "create" | "update" | "delete">(
|
37
53
|
user: User.Implementation,
|
38
|
-
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Require the exact permission level requested?
|
42
|
-
* @defaultValue `false`
|
43
|
-
*/
|
44
|
-
exact: boolean;
|
45
|
-
}>,
|
54
|
+
action: Action,
|
55
|
+
data?: Document.CanUserModifyData<ActiveEffect.Schema, Action>,
|
46
56
|
): boolean;
|
47
57
|
|
48
58
|
/**
|
49
|
-
* @
|
50
|
-
*
|
59
|
+
* @remarks If `this.isEmbedded`, uses `this.parent.testUserPermission`, otherwise `super`'s. Core's `Actor` implementation
|
60
|
+
* doesn't override this method, and `Item` only optionally forwards to `Actor`, so without further extension all roads
|
61
|
+
* lead to {@link Document.testUserPermission | `Document#testUserPermission`}
|
51
62
|
*/
|
63
|
+
// options: not null (destructured)
|
64
|
+
override testUserPermission(
|
65
|
+
user: User.Implementation,
|
66
|
+
permission: Document.ActionPermission,
|
67
|
+
options?: Document.TestUserPermissionOptions,
|
68
|
+
): boolean;
|
69
|
+
|
70
|
+
// _preCreate overridden but with no signature changes.
|
71
|
+
// For type simplicity it is left off. These methods historically have been the source of a large amount of computation from tsc.
|
52
72
|
|
73
|
+
/**
|
74
|
+
* @remarks
|
75
|
+
* Migrations:
|
76
|
+
* - `label` to `name` (since v11, no specified end)
|
77
|
+
* - `icon` to `img` (since v12, no specified end)
|
78
|
+
*/
|
53
79
|
static override migrateData(source: AnyMutableObject): AnyMutableObject;
|
54
80
|
|
81
|
+
/**
|
82
|
+
* @remarks
|
83
|
+
* Shims:
|
84
|
+
* - `label` to `name` (since v11, until v13)
|
85
|
+
* - `icon` to `img` (since v12, until v14)
|
86
|
+
*/
|
87
|
+
// options: not null (destructured)
|
88
|
+
static override shimData(data: AnyMutableObject, options?: DataModel.ShimDataOptions): AnyMutableObject;
|
89
|
+
|
55
90
|
/**
|
56
91
|
* @deprecated since v11, will be removed in v13
|
57
92
|
* @remarks Replaced by `name`
|
@@ -85,39 +120,39 @@ declare abstract class BaseActiveEffect<
|
|
85
120
|
// Same as Document for now
|
86
121
|
protected static override _initializationOrder(): Generator<[string, DataField.Any]>;
|
87
122
|
|
88
|
-
readonly parentCollection: ActiveEffect.ParentCollectionName | null;
|
123
|
+
override readonly parentCollection: ActiveEffect.ParentCollectionName | null;
|
89
124
|
|
90
|
-
readonly pack: string | null;
|
125
|
+
override readonly pack: string | null;
|
91
126
|
|
92
|
-
static get implementation(): ActiveEffect.ImplementationClass;
|
127
|
+
static override get implementation(): ActiveEffect.ImplementationClass;
|
93
128
|
|
94
|
-
static get baseDocument(): typeof BaseActiveEffect;
|
129
|
+
static override get baseDocument(): typeof BaseActiveEffect;
|
95
130
|
|
96
|
-
static get collectionName(): ActiveEffect.ParentCollectionName;
|
131
|
+
static override get collectionName(): ActiveEffect.ParentCollectionName;
|
97
132
|
|
98
|
-
static get documentName(): ActiveEffect.Name;
|
133
|
+
static override get documentName(): ActiveEffect.Name;
|
99
134
|
|
100
|
-
static get TYPES(): BaseActiveEffect.SubType[];
|
135
|
+
static override get TYPES(): BaseActiveEffect.SubType[];
|
101
136
|
|
102
|
-
static get hasTypeData(): true;
|
137
|
+
static override get hasTypeData(): true;
|
103
138
|
|
104
|
-
static get hierarchy(): ActiveEffect.Hierarchy;
|
139
|
+
static override get hierarchy(): ActiveEffect.Hierarchy;
|
105
140
|
|
106
141
|
override system: ActiveEffect.SystemOfType<SubType>;
|
107
142
|
|
108
143
|
override parent: BaseActiveEffect.Parent;
|
109
144
|
|
110
|
-
static createDocuments<Temporary extends boolean | undefined = false>(
|
145
|
+
static override createDocuments<Temporary extends boolean | undefined = false>(
|
111
146
|
data: Array<ActiveEffect.Implementation | ActiveEffect.CreateData> | undefined,
|
112
147
|
operation?: Document.Database.CreateOperation<ActiveEffect.Database.Create<Temporary>>,
|
113
148
|
): Promise<Array<Document.TemporaryIf<ActiveEffect.Implementation, Temporary>>>;
|
114
149
|
|
115
|
-
static updateDocuments(
|
150
|
+
static override updateDocuments(
|
116
151
|
updates: ActiveEffect.UpdateData[] | undefined,
|
117
152
|
operation?: Document.Database.UpdateDocumentsOperation<ActiveEffect.Database.Update>,
|
118
153
|
): Promise<ActiveEffect.Implementation[]>;
|
119
154
|
|
120
|
-
static deleteDocuments(
|
155
|
+
static override deleteDocuments(
|
121
156
|
ids: readonly string[] | undefined,
|
122
157
|
operation?: Document.Database.DeleteDocumentsOperation<ActiveEffect.Database.Delete>,
|
123
158
|
): Promise<ActiveEffect.Implementation[]>;
|
@@ -160,118 +195,146 @@ declare abstract class BaseActiveEffect<
|
|
160
195
|
key: Key,
|
161
196
|
): Promise<this>;
|
162
197
|
|
163
|
-
protected _preCreate(
|
198
|
+
protected override _preCreate(
|
164
199
|
data: ActiveEffect.CreateData,
|
165
200
|
options: ActiveEffect.Database.PreCreateOptions,
|
166
201
|
user: User.Implementation,
|
167
202
|
): Promise<boolean | void>;
|
168
203
|
|
169
|
-
protected _onCreate(
|
204
|
+
protected override _onCreate(
|
170
205
|
data: ActiveEffect.CreateData,
|
171
206
|
options: ActiveEffect.Database.OnCreateOperation,
|
172
207
|
userId: string,
|
173
208
|
): void;
|
174
209
|
|
175
|
-
protected static _preCreateOperation(
|
210
|
+
protected static override _preCreateOperation(
|
176
211
|
documents: ActiveEffect.Implementation[],
|
177
212
|
operation: Document.Database.PreCreateOperationStatic<ActiveEffect.Database.Create>,
|
178
213
|
user: User.Implementation,
|
179
214
|
): Promise<boolean | void>;
|
180
215
|
|
181
|
-
protected static _onCreateOperation(
|
216
|
+
protected static override _onCreateOperation(
|
182
217
|
documents: ActiveEffect.Implementation[],
|
183
218
|
operation: ActiveEffect.Database.Create,
|
184
219
|
user: User.Implementation,
|
185
220
|
): Promise<void>;
|
186
221
|
|
187
|
-
protected _preUpdate(
|
222
|
+
protected override _preUpdate(
|
188
223
|
changed: ActiveEffect.UpdateData,
|
189
224
|
options: ActiveEffect.Database.PreUpdateOptions,
|
190
225
|
user: User.Implementation,
|
191
226
|
): Promise<boolean | void>;
|
192
227
|
|
193
|
-
protected _onUpdate(
|
228
|
+
protected override _onUpdate(
|
194
229
|
changed: ActiveEffect.UpdateData,
|
195
230
|
options: ActiveEffect.Database.OnUpdateOperation,
|
196
231
|
userId: string,
|
197
232
|
): void;
|
198
233
|
|
199
|
-
protected static _preUpdateOperation(
|
234
|
+
protected static override _preUpdateOperation(
|
200
235
|
documents: ActiveEffect.Implementation[],
|
201
236
|
operation: ActiveEffect.Database.Update,
|
202
237
|
user: User.Implementation,
|
203
238
|
): Promise<boolean | void>;
|
204
239
|
|
205
|
-
protected static _onUpdateOperation(
|
240
|
+
protected static override _onUpdateOperation(
|
206
241
|
documents: ActiveEffect.Implementation[],
|
207
242
|
operation: ActiveEffect.Database.Update,
|
208
243
|
user: User.Implementation,
|
209
244
|
): Promise<void>;
|
210
245
|
|
211
|
-
protected _preDelete(
|
246
|
+
protected override _preDelete(
|
212
247
|
options: ActiveEffect.Database.PreDeleteOptions,
|
213
248
|
user: User.Implementation,
|
214
249
|
): Promise<boolean | void>;
|
215
250
|
|
216
|
-
protected _onDelete(options: ActiveEffect.Database.OnDeleteOperation, userId: string): void;
|
251
|
+
protected override _onDelete(options: ActiveEffect.Database.OnDeleteOperation, userId: string): void;
|
217
252
|
|
218
|
-
protected static _preDeleteOperation(
|
253
|
+
protected static override _preDeleteOperation(
|
219
254
|
documents: ActiveEffect.Implementation[],
|
220
255
|
operation: ActiveEffect.Database.Delete,
|
221
256
|
user: User.Implementation,
|
222
257
|
): Promise<boolean | void>;
|
223
258
|
|
224
|
-
protected static _onDeleteOperation(
|
259
|
+
protected static override _onDeleteOperation(
|
225
260
|
documents: ActiveEffect.Implementation[],
|
226
261
|
operation: ActiveEffect.Database.Delete,
|
227
262
|
user: User.Implementation,
|
228
263
|
): Promise<void>;
|
229
264
|
|
230
|
-
static get hasSystemData(): true;
|
265
|
+
static override get hasSystemData(): true;
|
231
266
|
|
232
267
|
// These data field things have been ticketed but will probably go into backlog hell for a while.
|
233
268
|
// We'll end up copy and pasting without modification for now I think. It makes it a tiny bit easier to update though.
|
234
|
-
protected static _addDataFieldShims(data: AnyObject, shims: AnyObject, options?: Document.DataFieldShimOptions): void;
|
235
269
|
|
236
|
-
|
237
|
-
|
270
|
+
// options: not null (parameter default only in _addDataFieldShim)
|
271
|
+
protected static override _addDataFieldShims(
|
272
|
+
data: AnyMutableObject,
|
273
|
+
shims: Record<string, string>,
|
274
|
+
options?: Document.DataFieldShimOptions,
|
275
|
+
): void;
|
276
|
+
|
277
|
+
// options: not null (parameter default only)
|
278
|
+
protected static override _addDataFieldShim(
|
279
|
+
data: AnyMutableObject,
|
280
|
+
oldKey: string,
|
281
|
+
newKey: string,
|
282
|
+
options?: Document.DataFieldShimOptions,
|
283
|
+
): void;
|
284
|
+
|
285
|
+
protected static override _addDataFieldMigration(
|
286
|
+
data: AnyMutableObject,
|
238
287
|
oldKey: string,
|
239
288
|
newKey: string,
|
240
|
-
apply?: (data:
|
241
|
-
):
|
289
|
+
apply?: ((data: AnyMutableObject) => unknown) | null,
|
290
|
+
): boolean;
|
242
291
|
|
243
|
-
|
292
|
+
// options: not null (destructured where forwarded)
|
293
|
+
protected static override _logDataFieldMigration(
|
244
294
|
oldKey: string,
|
245
295
|
newKey: string,
|
246
296
|
options?: LogCompatibilityWarningOptions,
|
247
297
|
): void;
|
248
298
|
|
249
|
-
|
299
|
+
/**
|
300
|
+
* @deprecated since v12, will be removed in v14
|
301
|
+
* @remarks "The `Document._onCreateDocuments` static method is deprecated in favor of {@link Document._onCreateOperation | `Document._onCreateOperation`}"
|
302
|
+
*/
|
303
|
+
protected static override _onCreateDocuments(
|
250
304
|
documents: ActiveEffect.Implementation[],
|
251
305
|
context: Document.ModificationContext<ActiveEffect.Parent>,
|
252
306
|
): Promise<void>;
|
253
307
|
|
254
|
-
|
308
|
+
/**
|
309
|
+
* @deprecated since v12, will be removed in v14
|
310
|
+
* @remarks "The `Document._onUpdateDocuments` static method is deprecated in favor of {@link Document._onUpdateOperation | `Document._onUpdateOperation`}"
|
311
|
+
*/
|
312
|
+
protected static override _onUpdateDocuments(
|
255
313
|
documents: ActiveEffect.Implementation[],
|
256
314
|
context: Document.ModificationContext<ActiveEffect.Parent>,
|
257
315
|
): Promise<void>;
|
258
316
|
|
259
|
-
|
317
|
+
/**
|
318
|
+
* @deprecated since v12, will be removed in v14
|
319
|
+
* @remarks "The `Document._onDeleteDocuments` static method is deprecated in favor of {@link Document._onDeleteOperation | `Document._onDeleteOperation`}"
|
320
|
+
*/
|
321
|
+
protected static override _onDeleteDocuments(
|
260
322
|
documents: ActiveEffect.Implementation[],
|
261
323
|
context: Document.ModificationContext<ActiveEffect.Parent>,
|
262
324
|
): Promise<void>;
|
263
325
|
|
264
326
|
/* DataModel overrides */
|
265
327
|
|
266
|
-
protected static _schema: SchemaField<ActiveEffect.Schema>;
|
328
|
+
protected static override _schema: SchemaField<ActiveEffect.Schema>;
|
267
329
|
|
268
|
-
static get schema(): SchemaField<ActiveEffect.Schema>;
|
330
|
+
static override get schema(): SchemaField<ActiveEffect.Schema>;
|
269
331
|
|
270
|
-
static validateJoint(data: ActiveEffect.Source): void;
|
332
|
+
static override validateJoint(data: ActiveEffect.Source): void;
|
271
333
|
|
334
|
+
// options: not null (parameter default only, destructured in super)
|
272
335
|
static override fromSource(
|
273
336
|
source: ActiveEffect.CreateData,
|
274
|
-
|
337
|
+
context?: DataModel.FromSourceOptions,
|
275
338
|
): ActiveEffect.Implementation;
|
276
339
|
|
277
340
|
static override fromJSON(json: string): ActiveEffect.Implementation;
|