@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,4 +1,4 @@
|
|
1
|
-
import type { Merge } from "
|
1
|
+
import type { AnyObject, Merge } from "#utils";
|
2
2
|
import type { documents } from "../../../client-esm/client.d.mts";
|
3
3
|
import type Document from "../../../common/abstract/document.d.mts";
|
4
4
|
import type { DataSchema } from "../../../common/data/fields.d.mts";
|
@@ -111,7 +111,7 @@ declare global {
|
|
111
111
|
type Collection = never;
|
112
112
|
|
113
113
|
/**
|
114
|
-
* An instance of `NoteDocument` that comes from the database but failed validation
|
114
|
+
* An instance of `NoteDocument` that comes from the database but failed validation meaning that
|
115
115
|
* its `system` and `_source` could theoretically be anything.
|
116
116
|
*/
|
117
117
|
interface Invalid extends Document.Invalid<NoteDocument.Implementation> {}
|
@@ -500,23 +500,30 @@ declare global {
|
|
500
500
|
|
501
501
|
// Descendant Document operations have been left out because Note does not have any descendant documents.
|
502
502
|
|
503
|
-
|
503
|
+
// context: not null (destructured)
|
504
|
+
static override defaultName(
|
505
|
+
context?: Document.DefaultNameContext<"Note", NonNullable<NoteDocument.Parent>>,
|
506
|
+
): string;
|
504
507
|
|
508
|
+
/** @remarks `context.parent` is required as creation requires one */
|
505
509
|
static override createDialog(
|
506
|
-
data: Document.CreateDialogData<NoteDocument.CreateData
|
507
|
-
context: Document.CreateDialogContext<
|
510
|
+
data: Document.CreateDialogData<NoteDocument.CreateData> | undefined,
|
511
|
+
context: Document.CreateDialogContext<"Note", NonNullable<NoteDocument.Parent>>,
|
508
512
|
): Promise<NoteDocument.Stored | null | undefined>;
|
509
513
|
|
514
|
+
// options: not null (parameter default only)
|
510
515
|
static override fromDropData(
|
511
516
|
data: Document.DropData<NoteDocument.Implementation>,
|
512
|
-
options?:
|
517
|
+
options?: AnyObject,
|
513
518
|
): Promise<NoteDocument.Implementation | undefined>;
|
514
519
|
|
515
520
|
static override fromImport(
|
516
521
|
source: NoteDocument.Source,
|
517
|
-
context?: Document.FromImportContext<NoteDocument.Parent
|
522
|
+
context?: Document.FromImportContext<NoteDocument.Parent> | null,
|
518
523
|
): Promise<NoteDocument.Implementation>;
|
519
524
|
|
525
|
+
override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
|
526
|
+
|
520
527
|
// Embedded document operations have been left out because Note does not have any embedded documents.
|
521
528
|
}
|
522
529
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { AnyObject, Merge } from "#utils";
|
2
2
|
import type Sound from "../../../client-esm/audio/sound.d.mts";
|
3
3
|
import type Document from "../../../common/abstract/document.d.mts";
|
4
4
|
import type { DataSchema } from "../../../common/data/fields.d.mts";
|
@@ -104,7 +104,7 @@ declare global {
|
|
104
104
|
type Collection = never;
|
105
105
|
|
106
106
|
/**
|
107
|
-
* An instance of `PlaylistSound` that comes from the database but failed validation
|
107
|
+
* An instance of `PlaylistSound` that comes from the database but failed validation meaning that
|
108
108
|
* its `system` and `_source` could theoretically be anything.
|
109
109
|
*/
|
110
110
|
interface Invalid extends Document.Invalid<PlaylistSound.Implementation> {}
|
@@ -175,11 +175,12 @@ declare global {
|
|
175
175
|
/**
|
176
176
|
* The name of this sound
|
177
177
|
*/
|
178
|
-
|
178
|
+
// FIXME: This field is `required` with no `initial`, so actually required for construction; Currently an AssignmentType override is required to enforce this
|
179
|
+
name: fields.StringField<{ required: true; blank: false; textSearch: true }, string>;
|
179
180
|
|
180
181
|
/**
|
181
182
|
* The description of this sound
|
182
|
-
* @defaultValue `
|
183
|
+
* @defaultValue `undefined`
|
183
184
|
*/
|
184
185
|
description: fields.StringField;
|
185
186
|
|
@@ -193,7 +194,7 @@ declare global {
|
|
193
194
|
* A channel in CONST.AUDIO_CHANNELS where this sound is are played
|
194
195
|
* @defaultValue `"music"`
|
195
196
|
*/
|
196
|
-
channel: fields.StringField<{ choices: typeof
|
197
|
+
channel: fields.StringField<{ choices: typeof CONST.AUDIO_CHANNELS; initial: string; blank: true }>;
|
197
198
|
|
198
199
|
/**
|
199
200
|
* Is this sound currently playing?
|
@@ -413,8 +414,9 @@ declare global {
|
|
413
414
|
|
414
415
|
/**
|
415
416
|
* The Sound which manages playback for this playlist sound
|
417
|
+
* @remarks Only `undefined` prior to first {@link PlaylistSound._createSound | `PlaylistSound#_createSound`} call
|
416
418
|
*/
|
417
|
-
sound: Sound | null;
|
419
|
+
sound: Sound | null | undefined;
|
418
420
|
|
419
421
|
/**
|
420
422
|
* A debounced function, accepting a single volume parameter to adjust the volume of this sound
|
@@ -424,7 +426,6 @@ declare global {
|
|
424
426
|
|
425
427
|
/**
|
426
428
|
* Create a Sound used to play this PlaylistSound document
|
427
|
-
* @internal
|
428
429
|
*/
|
429
430
|
protected _createSound(): Sound | null;
|
430
431
|
|
@@ -442,52 +443,44 @@ declare global {
|
|
442
443
|
/**
|
443
444
|
* Synchronize playback for this particular PlaylistSound instance
|
444
445
|
*/
|
445
|
-
sync(): void
|
446
|
+
sync(): void;
|
446
447
|
|
447
448
|
/**
|
448
449
|
* Load the audio for this sound for the current client.
|
449
450
|
*/
|
450
451
|
load(): Promise<void>;
|
451
452
|
|
452
|
-
|
453
|
-
|
454
|
-
attrs: Record<string, string>;
|
455
|
-
dataset: Record<string, string>;
|
456
|
-
classes: string[];
|
457
|
-
name: string;
|
458
|
-
icon: string;
|
459
|
-
}>,
|
460
|
-
): HTMLAnchorElement;
|
461
|
-
|
462
|
-
_onClickDocumentLink(event: MouseEvent): ReturnType<Playlist.Implementation["stopSound" | "playSound"]>;
|
453
|
+
// options: not null (destructured)
|
454
|
+
toAnchor(options?: TextEditor.EnrichmentAnchorOptions): HTMLAnchorElement;
|
463
455
|
|
464
456
|
/**
|
465
|
-
* @
|
466
|
-
* For type simplicity they are left off. These methods historically have been the source of a large amount of computation from tsc.
|
457
|
+
* @remarks Returns {@link Playlist.stopSound | `this.parent.stopSound()`} or {@link Playlist.playSound | `this.parent.playSound()`}
|
467
458
|
*/
|
459
|
+
override _onClickDocumentLink(event: MouseEvent): Promise<Playlist.Implementation | undefined>;
|
460
|
+
|
461
|
+
// _onCreate, _onUpdate, and _onDelete are all overridden but with no signature changes.
|
462
|
+
// For type simplicity they are left off. These methods historically have been the source of a large amount of computation from tsc.
|
468
463
|
|
469
464
|
/**
|
470
465
|
* Special handling that occurs when playback of a PlaylistSound is started.
|
471
|
-
* @internal
|
472
466
|
*/
|
473
|
-
protected _onStart(): Promise<void>;
|
467
|
+
protected _onStart(): Promise<Sound | void>;
|
474
468
|
|
475
469
|
/**
|
476
470
|
* Special handling that occurs when a PlaylistSound reaches the natural conclusion of its playback.
|
477
|
-
* @internal
|
478
471
|
*/
|
479
|
-
protected _onEnd(): Promise<void | Playlist.Implementation | undefined>;
|
472
|
+
protected _onEnd(): Promise<void | Playlist.Implementation | null | undefined>;
|
480
473
|
|
481
474
|
/**
|
482
475
|
* Special handling that occurs when a PlaylistSound is manually stopped before its natural conclusion.
|
483
|
-
* @
|
476
|
+
* @remarks Core's implementation is a no-op, this is soft abstract
|
484
477
|
*/
|
485
478
|
protected _onStop(): Promise<void>;
|
486
479
|
|
487
480
|
/**
|
488
481
|
* The effective volume at which this playlist sound is played, incorporating the global playlist volume setting.
|
489
|
-
* @deprecated
|
490
|
-
*
|
482
|
+
* @deprecated since v12 until v14
|
483
|
+
* @remarks "`PlaylistSound#effectiveVolume` is deprecated in favor of using {@link PlaylistSound.volume | `PlaylistSound#volume`} directly"
|
491
484
|
*/
|
492
485
|
get effectiveVolume(): number;
|
493
486
|
|
@@ -505,23 +498,26 @@ declare global {
|
|
505
498
|
|
506
499
|
// Descendant Document operations have been left out because PlaylistSound does not have any descendant documents.
|
507
500
|
|
501
|
+
// context: not null (destructured)
|
508
502
|
static override defaultName(
|
509
|
-
context
|
503
|
+
context?: Document.DefaultNameContext<"PlaylistSound", NonNullable<PlaylistSound.Parent>>,
|
510
504
|
): string;
|
511
505
|
|
506
|
+
/** @remarks `context.parent` is required as creation requires one */
|
512
507
|
static override createDialog(
|
513
|
-
data: Document.CreateDialogData<PlaylistSound.CreateData
|
514
|
-
context: Document.CreateDialogContext<
|
508
|
+
data: Document.CreateDialogData<PlaylistSound.CreateData> | undefined,
|
509
|
+
context: Document.CreateDialogContext<"PlaylistSound", NonNullable<PlaylistSound.Parent>>,
|
515
510
|
): Promise<PlaylistSound.Stored | null | undefined>;
|
516
511
|
|
512
|
+
// options: not null (parameter default only)
|
517
513
|
static override fromDropData(
|
518
514
|
data: Document.DropData<PlaylistSound.Implementation>,
|
519
|
-
options?:
|
515
|
+
options?: AnyObject,
|
520
516
|
): Promise<PlaylistSound.Implementation | undefined>;
|
521
517
|
|
522
518
|
static override fromImport(
|
523
519
|
source: PlaylistSound.Source,
|
524
|
-
context?: Document.FromImportContext<PlaylistSound.Parent
|
520
|
+
context?: Document.FromImportContext<PlaylistSound.Parent> | null,
|
525
521
|
): Promise<PlaylistSound.Implementation>;
|
526
522
|
|
527
523
|
// Embedded document operations have been left out because PlaylistSound does not have any embedded documents.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { InexactPartial, Merge } from "
|
1
|
+
import type { AnyObject, InexactPartial, Merge } from "#utils";
|
2
2
|
import type { documents } from "../../../client-esm/client.d.mts";
|
3
3
|
import type { Document } from "../../../common/abstract/module.d.mts";
|
4
4
|
import type { DataSchema } from "../../../common/data/fields.d.mts";
|
@@ -175,7 +175,7 @@ declare global {
|
|
175
175
|
type Collection = Playlists.Configured;
|
176
176
|
|
177
177
|
/**
|
178
|
-
* An instance of `Playlist` that comes from the database but failed validation
|
178
|
+
* An instance of `Playlist` that comes from the database but failed validation meaning that
|
179
179
|
* its `system` and `_source` could theoretically be anything.
|
180
180
|
*/
|
181
181
|
interface Invalid extends Document.Invalid<Playlist.Implementation> {}
|
@@ -246,11 +246,12 @@ declare global {
|
|
246
246
|
/**
|
247
247
|
* The name of this playlist
|
248
248
|
*/
|
249
|
-
|
249
|
+
// FIXME: This field is `required` with no `initial`, so actually required for construction; Currently an AssignmentType override is required to enforce this
|
250
|
+
name: fields.StringField<{ required: true; blank: false; textSearch: true }, string>;
|
250
251
|
|
251
252
|
/**
|
252
253
|
* The description of this playlist
|
253
|
-
* @defaultValue `
|
254
|
+
* @defaultValue `undefined`
|
254
255
|
*/
|
255
256
|
description: fields.StringField<{ textSearch: true }>;
|
256
257
|
|
@@ -264,18 +265,24 @@ declare global {
|
|
264
265
|
* A channel in CONST.AUDIO_CHANNELS where all sounds in this playlist are played
|
265
266
|
* @defaultValue `"music"`
|
266
267
|
*/
|
267
|
-
channel: fields.StringField<{ choices: typeof
|
268
|
+
channel: fields.StringField<{ choices: typeof CONST.AUDIO_CHANNELS; initial: string; blank: false }>;
|
268
269
|
|
269
270
|
/**
|
270
271
|
* The playback mode for sounds in this playlist
|
271
272
|
* @defaultValue `CONST.PLAYLIST_MODES.SEQUENTIAL`
|
272
273
|
*/
|
273
|
-
mode: fields.NumberField<
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
274
|
+
mode: fields.NumberField<
|
275
|
+
{
|
276
|
+
required: true;
|
277
|
+
choices: CONST.PLAYLIST_MODES[];
|
278
|
+
initial: typeof CONST.PLAYLIST_MODES.SEQUENTIAL;
|
279
|
+
validationError: "must be a value in CONST.PLAYLIST_MODES";
|
280
|
+
},
|
281
|
+
// FIXME: Overrides required to enforce the branded type
|
282
|
+
CONST.PLAYLIST_MODES | null | undefined,
|
283
|
+
CONST.PLAYLIST_MODES,
|
284
|
+
CONST.PLAYLIST_MODES
|
285
|
+
>;
|
279
286
|
|
280
287
|
/**
|
281
288
|
* Is this playlist currently playing?
|
@@ -299,12 +306,18 @@ declare global {
|
|
299
306
|
* The sorting mode used for this playlist.
|
300
307
|
* @defaultValue `CONST.PLAYLIST_SORT_MODES.ALPHABETICAL`
|
301
308
|
*/
|
302
|
-
sorting: fields.StringField<
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
309
|
+
sorting: fields.StringField<
|
310
|
+
{
|
311
|
+
required: true;
|
312
|
+
choices: CONST.PLAYLIST_SORT_MODES[];
|
313
|
+
initial: typeof CONST.PLAYLIST_SORT_MODES.ALPHABETICAL;
|
314
|
+
validationError: "must be a value in CONST.PLAYLIST_SORTING_MODES";
|
315
|
+
},
|
316
|
+
// FIXME: Overrides required to enforce the branded type
|
317
|
+
CONST.PLAYLIST_SORT_MODES | null | undefined,
|
318
|
+
CONST.PLAYLIST_SORT_MODES,
|
319
|
+
CONST.PLAYLIST_SORT_MODES
|
320
|
+
>;
|
308
321
|
|
309
322
|
/**
|
310
323
|
* A seed used for playlist randomization to guarantee that all clients generate the same random order.
|
@@ -495,6 +508,19 @@ declare global {
|
|
495
508
|
Playlist.Metadata.Embedded
|
496
509
|
>;
|
497
510
|
|
511
|
+
/** @internal */
|
512
|
+
type _PlayNextOptions = InexactPartial<{
|
513
|
+
/**
|
514
|
+
* Whether to advance forward (if 1) or backwards (if -1)
|
515
|
+
* @defaultValue `1`
|
516
|
+
* @remarks Can't be `null` as it only has a parameter default.
|
517
|
+
* @privateRemarks This is only checked for `=== 1`, restricting 'backward' values to `-1` based on core's description
|
518
|
+
*/
|
519
|
+
direction: 1 | -1;
|
520
|
+
}>;
|
521
|
+
|
522
|
+
interface PlayNextOptions extends _PlayNextOptions {}
|
523
|
+
|
498
524
|
/**
|
499
525
|
* @deprecated {@link Playlist.Database.Operation | `Playlist.Database.Operation`}
|
500
526
|
*/
|
@@ -515,13 +541,6 @@ declare global {
|
|
515
541
|
* @deprecated {@link Playlist.Implementation | `Playlist.Implementation`}
|
516
542
|
*/
|
517
543
|
type ConfiguredInstance = Implementation;
|
518
|
-
interface PlayNextOptions {
|
519
|
-
/**
|
520
|
-
* Whether to advance forward (if 1) or backwards (if -1)
|
521
|
-
* @defaultValue `1`
|
522
|
-
*/
|
523
|
-
direction: 1 | -1;
|
524
|
-
}
|
525
544
|
}
|
526
545
|
|
527
546
|
/**
|
@@ -542,7 +561,6 @@ declare global {
|
|
542
561
|
/**
|
543
562
|
* Playlists may have a playback order which defines the sequence of Playlist Sounds
|
544
563
|
* @defaultValue `undefined`
|
545
|
-
* @internal
|
546
564
|
*/
|
547
565
|
protected _playbackOrder: string[] | undefined;
|
548
566
|
|
@@ -555,7 +573,7 @@ declare global {
|
|
555
573
|
override get visible(): boolean;
|
556
574
|
|
557
575
|
/**
|
558
|
-
* Find all content links belonging to a given {@
|
576
|
+
* Find all content links belonging to a given {@linkcode Playlist} or {@linkcode PlaylistSound}.
|
559
577
|
* @param doc - The Playlist or PlaylistSound.
|
560
578
|
*/
|
561
579
|
static _getSoundContentLinks(doc: Playlist.Implementation | PlaylistSound.Implementation): NodeListOf<Element>;
|
@@ -574,7 +592,8 @@ declare global {
|
|
574
592
|
* @param options - Additional options which configure the next track
|
575
593
|
* @returns The updated Playlist document
|
576
594
|
*/
|
577
|
-
|
595
|
+
// options: not null (destructured)
|
596
|
+
playNext(soundId?: string | null, options?: Playlist.PlayNextOptions): Promise<this | undefined | null>;
|
578
597
|
|
579
598
|
/**
|
580
599
|
* Begin playback of a specific Sound within this Playlist.
|
@@ -606,13 +625,13 @@ declare global {
|
|
606
625
|
|
607
626
|
/**
|
608
627
|
* Get the next sound in the cached playback order. For internal use.
|
609
|
-
* @
|
628
|
+
* @private
|
610
629
|
*/
|
611
630
|
protected _getNextSound(soundId: string): PlaylistSound.Implementation | undefined;
|
612
631
|
|
613
632
|
/**
|
614
633
|
* Get the previous sound in the cached playback order. For internal use.
|
615
|
-
* @
|
634
|
+
* @private
|
616
635
|
*/
|
617
636
|
protected _getPreviousSound(soundId: string): PlaylistSound.Implementation | undefined;
|
618
637
|
|
@@ -620,29 +639,23 @@ declare global {
|
|
620
639
|
* Define the sorting order for the Sounds within this Playlist. For internal use.
|
621
640
|
* If sorting alphabetically, the sounds are sorted with a locale-independent comparator
|
622
641
|
* to ensure the same order on all clients.
|
623
|
-
* @
|
642
|
+
* @private
|
624
643
|
*/
|
625
644
|
protected _sortSounds(a: PlaylistSound.Implementation, b: PlaylistSound.Implementation): number;
|
626
645
|
|
627
|
-
|
628
|
-
|
629
|
-
attrs: Record<string, string>;
|
630
|
-
dataset: Record<string, string>;
|
631
|
-
classes: string[];
|
632
|
-
name: string;
|
633
|
-
icon: string;
|
634
|
-
}>,
|
635
|
-
): HTMLAnchorElement;
|
636
|
-
|
637
|
-
override _onClickDocumentLink(event: MouseEvent): ReturnType<this["playAll" | "stopAll"]>;
|
646
|
+
// options: not null (destructured)
|
647
|
+
override toAnchor(options?: TextEditor.EnrichmentAnchorOptions): HTMLAnchorElement;
|
638
648
|
|
639
649
|
/**
|
640
|
-
* @
|
650
|
+
* @remarks Returns {@link Playlist.playAll | `this.playAll()`} or {@link Playlist.stopAll | `this.stopAll()`}
|
641
651
|
*/
|
652
|
+
override _onClickDocumentLink(event: MouseEvent): Promise<this | undefined>;
|
653
|
+
|
654
|
+
// _preUpdate, _onUpdate, _onDelete are all overridden but with no signature changes from the BasePlaylist class.
|
642
655
|
|
643
656
|
/**
|
644
657
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
645
|
-
* this method must be
|
658
|
+
* this method must be overridden like so:
|
646
659
|
* ```typescript
|
647
660
|
* class GurpsPlaylist extends Playlist {
|
648
661
|
* protected override _onCreateDescendantDocuments(...args: Playlist.OnCreateDescendantDocumentsArgs) {
|
@@ -660,7 +673,7 @@ declare global {
|
|
660
673
|
|
661
674
|
/**
|
662
675
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
663
|
-
* this method must be
|
676
|
+
* this method must be overridden like so:
|
664
677
|
* ```typescript
|
665
678
|
* class Ptr2ePlaylist extends Playlist {
|
666
679
|
* protected override _onUpdateDescendantDocuments(...args: Playlist.OnUpdateDescendantDocumentsArgs) {
|
@@ -678,7 +691,7 @@ declare global {
|
|
678
691
|
|
679
692
|
/**
|
680
693
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
681
|
-
* this method must be
|
694
|
+
* this method must be overridden like so:
|
682
695
|
* ```typescript
|
683
696
|
* class BladesPlaylist extends Playlist {
|
684
697
|
* protected override _onDeleteDescendantDocuments(...args: Playlist.OnUpdateDescendantDocuments) {
|
@@ -697,8 +710,9 @@ declare global {
|
|
697
710
|
/**
|
698
711
|
* Handle callback logic when an individual sound within the Playlist concludes playback naturally
|
699
712
|
* @internal
|
713
|
+
* @privateRemarks Possibly returns `this.playNext()` so possibly `null`
|
700
714
|
*/
|
701
|
-
_onSoundEnd(sound: PlaylistSound.Implementation): Promise<this | undefined>;
|
715
|
+
_onSoundEnd(sound: PlaylistSound.Implementation): Promise<this | null | undefined>;
|
702
716
|
|
703
717
|
/**
|
704
718
|
* Handle callback logic when playback for an individual sound within the Playlist is started.
|
@@ -707,7 +721,8 @@ declare global {
|
|
707
721
|
*/
|
708
722
|
_onSoundStart(sound: PlaylistSound.Implementation): Promise<void>;
|
709
723
|
|
710
|
-
|
724
|
+
// options: not null (parameter default only, destructured in super)
|
725
|
+
override toCompendium<Options extends ClientDocument.ToCompendiumOptions | undefined = undefined>(
|
711
726
|
pack?: CompendiumCollection<CompendiumCollection.Metadata> | null,
|
712
727
|
options?: Options,
|
713
728
|
): ClientDocument.ToCompendiumReturnType<foundry.documents.BasePlaylist, Options>;
|
@@ -726,7 +741,7 @@ declare global {
|
|
726
741
|
|
727
742
|
/**
|
728
743
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
729
|
-
* this method must be
|
744
|
+
* this method must be overridden like so:
|
730
745
|
* ```typescript
|
731
746
|
* class SwadePlaylist extends Playlist {
|
732
747
|
* protected override _preCreateDescendantDocuments(...args: Playlist.PreCreateDescendantDocumentsArgs) {
|
@@ -744,7 +759,7 @@ declare global {
|
|
744
759
|
|
745
760
|
/**
|
746
761
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
747
|
-
* this method must be
|
762
|
+
* this method must be overridden like so:
|
748
763
|
* ```typescript
|
749
764
|
* class LancerPlaylist extends Playlist {
|
750
765
|
* protected override _preUpdateDescendantDocuments(...args: Playlist.OnUpdateDescendantDocuments) {
|
@@ -762,7 +777,7 @@ declare global {
|
|
762
777
|
|
763
778
|
/**
|
764
779
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
765
|
-
* this method must be
|
780
|
+
* this method must be overridden like so:
|
766
781
|
* ```typescript
|
767
782
|
* class KultPlaylist extends Playlist {
|
768
783
|
* protected override _preDeleteDescendantDocuments(...args: Playlist.PreDeleteDescendantDocumentsArgs) {
|
@@ -778,21 +793,26 @@ declare global {
|
|
778
793
|
*/
|
779
794
|
protected override _preDeleteDescendantDocuments(...args: Playlist.PreDeleteDescendantDocumentsArgs): void;
|
780
795
|
|
781
|
-
|
796
|
+
// context: not null (destructured)
|
797
|
+
static override defaultName(context?: Document.DefaultNameContext<"Playlist", Playlist.Parent>): string;
|
782
798
|
|
799
|
+
// data: not null (parameter default only), context: not null (destructured)
|
783
800
|
static override createDialog(
|
784
801
|
data?: Document.CreateDialogData<Playlist.CreateData>,
|
785
|
-
context?: Document.CreateDialogContext<
|
802
|
+
context?: Document.CreateDialogContext<"Playlist", Playlist.Parent>,
|
786
803
|
): Promise<Playlist.Stored | null | undefined>;
|
787
804
|
|
805
|
+
// options: not null (parameter default only)
|
788
806
|
static override fromDropData(
|
789
807
|
data: Document.DropData<Playlist.Implementation>,
|
790
|
-
options?:
|
808
|
+
options?: AnyObject,
|
791
809
|
): Promise<Playlist.Implementation | undefined>;
|
792
810
|
|
793
811
|
static override fromImport(
|
794
812
|
source: Playlist.Source,
|
795
|
-
context?: Document.FromImportContext<Playlist.Parent
|
813
|
+
context?: Document.FromImportContext<Playlist.Parent> | null,
|
796
814
|
): Promise<Playlist.Implementation>;
|
815
|
+
|
816
|
+
#Playlist: true;
|
797
817
|
}
|
798
818
|
}
|
@@ -1,9 +1,9 @@
|
|
1
|
+
import type { AnyObject, Merge } from "#utils";
|
1
2
|
import type { ConfiguredRegionBehavior } from "../../../../configuration/index.d.mts";
|
2
3
|
import type Document from "../../../common/abstract/document.d.mts";
|
3
4
|
import type { fields } from "../../../common/data/module.d.mts";
|
4
5
|
import type BaseRegionBehavior from "../../../common/documents/region-behavior.d.mts";
|
5
6
|
import type { DataSchema } from "../../../common/data/fields.d.mts";
|
6
|
-
import type { Merge } from "../../../../utils/index.d.mts";
|
7
7
|
|
8
8
|
declare global {
|
9
9
|
namespace RegionBehavior {
|
@@ -170,7 +170,7 @@ declare global {
|
|
170
170
|
type Collection = never;
|
171
171
|
|
172
172
|
/**
|
173
|
-
* An instance of `RegionBehavior` that comes from the database but failed validation
|
173
|
+
* An instance of `RegionBehavior` that comes from the database but failed validation meaning that
|
174
174
|
* its `system` and `_source` could theoretically be anything.
|
175
175
|
*/
|
176
176
|
interface Invalid<out SubType extends RegionBehavior.SubType = RegionBehavior.SubType>
|
@@ -469,9 +469,14 @@ declare global {
|
|
469
469
|
*/
|
470
470
|
protected _handleRegionEvent(event: RegionDocument.RegionEvent): void;
|
471
471
|
|
472
|
+
/**
|
473
|
+
* @remarks No type changes, just removes `executeScript` from `options.types` if the user lacks the `MACRO_SCRIPT` permission
|
474
|
+
*
|
475
|
+
* `context.parent` is required as creation requires one
|
476
|
+
*/
|
472
477
|
static override createDialog(
|
473
|
-
data: Document.CreateDialogData<RegionBehavior.CreateData
|
474
|
-
context: Document.CreateDialogContext<RegionBehavior
|
478
|
+
data: Document.CreateDialogData<RegionBehavior.CreateData> | undefined,
|
479
|
+
context: Document.CreateDialogContext<"RegionBehavior", NonNullable<RegionBehavior.Parent>>,
|
475
480
|
): Promise<RegionBehavior.Stored | null | undefined>;
|
476
481
|
|
477
482
|
/*
|
@@ -488,20 +493,24 @@ declare global {
|
|
488
493
|
|
489
494
|
// Descendant Document operations have been left out because RegionBehavior does not have any descendant documents.
|
490
495
|
|
496
|
+
// context: not null (destructured)
|
491
497
|
static override defaultName(
|
492
|
-
context
|
498
|
+
context?: Document.DefaultNameContext<"RegionBehavior", NonNullable<RegionBehavior.Parent>>,
|
493
499
|
): string;
|
494
500
|
|
501
|
+
// options: not null (parameter default only)
|
495
502
|
static override fromDropData(
|
496
503
|
data: Document.DropData<RegionBehavior.Implementation>,
|
497
|
-
options?:
|
504
|
+
options?: AnyObject,
|
498
505
|
): Promise<RegionBehavior.Implementation | undefined>;
|
499
506
|
|
500
507
|
static override fromImport(
|
501
508
|
source: RegionBehavior.Source,
|
502
|
-
context?: Document.FromImportContext<RegionBehavior.Parent
|
509
|
+
context?: Document.FromImportContext<RegionBehavior.Parent> | null,
|
503
510
|
): Promise<RegionBehavior.Implementation>;
|
504
511
|
|
512
|
+
override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
|
513
|
+
|
505
514
|
// Embedded document operations have been left out because RegionBehavior does not have any embedded documents.
|
506
515
|
}
|
507
516
|
}
|