@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,5 +1,5 @@
|
|
1
1
|
import type { ConfiguredCards } from "../../../../configuration/index.d.mts";
|
2
|
-
import type {
|
2
|
+
import type { AnyObject, InexactPartial, Merge, NullishProps } from "#utils";
|
3
3
|
import type { documents } from "../../../client-esm/client.d.mts";
|
4
4
|
import type Document from "../../../common/abstract/document.d.mts";
|
5
5
|
import type { DataSchema } from "../../../common/data/fields.d.mts";
|
@@ -217,7 +217,7 @@ declare global {
|
|
217
217
|
type Collection = CardStacks.Configured;
|
218
218
|
|
219
219
|
/**
|
220
|
-
* An instance of `Cards` that comes from the database but failed validation
|
220
|
+
* An instance of `Cards` that comes from the database but failed validation meaning that
|
221
221
|
* its `system` and `_source` could theoretically be anything.
|
222
222
|
*/
|
223
223
|
interface Invalid<out SubType extends Cards.SubType = Cards.SubType> extends Document.Invalid<OfType<SubType>> {}
|
@@ -286,12 +286,14 @@ declare global {
|
|
286
286
|
_id: fields.DocumentIdField;
|
287
287
|
|
288
288
|
/** The text name of this stack */
|
289
|
-
|
289
|
+
// FIXME: This field is `required` with no `initial`, so actually required for construction; Currently an AssignmentType override is required to enforce this
|
290
|
+
name: fields.StringField<{ required: true; blank: false; label: "CARDS.Name"; textSearch: true }, string>;
|
290
291
|
|
291
292
|
/**
|
292
293
|
* The type of this stack, in BaseCards.metadata.types
|
293
294
|
* @defaultValue `BaseCards.TYPES[0]`
|
294
295
|
*/
|
296
|
+
// TODO: type is required at construction, no "base" allowed
|
295
297
|
type: fields.DocumentTypeField<typeof BaseCards>;
|
296
298
|
|
297
299
|
/**
|
@@ -541,125 +543,148 @@ declare global {
|
|
541
543
|
Cards.Metadata.Embedded
|
542
544
|
>;
|
543
545
|
|
544
|
-
|
546
|
+
/**
|
547
|
+
* @remarks Passing anything else errors downstream when a lookup table lacking the provided key causes
|
548
|
+
* {@link Cards._postChatNotification | `Cards#_postChatNotification`} to call {@link Localization.format | `game.i18n.format`}
|
549
|
+
* with an `undefined` first argument
|
550
|
+
*/
|
551
|
+
type DealAction = "deal" | "pass";
|
552
|
+
|
553
|
+
/**
|
554
|
+
* @remarks Passing anything else errors downstream when a lookup table lacking the provided key causes
|
555
|
+
* {@link Cards._postChatNotification | `Cards#_postChatNotification`} to call {@link Localization.format | `game.i18n.format`}
|
556
|
+
* with an `undefined` first argument
|
557
|
+
*/
|
558
|
+
type PassAction = "pass" | "play" | "draw" | "discard";
|
545
559
|
|
546
|
-
|
560
|
+
/** @internal */
|
561
|
+
type _ChatNotificationOption = NullishProps<{
|
547
562
|
/**
|
548
563
|
* Create a ChatMessage which notifies that this action has occurred
|
549
564
|
* @defaultValue `true`
|
550
565
|
*/
|
551
|
-
chatNotification: boolean
|
552
|
-
}
|
566
|
+
chatNotification: boolean;
|
567
|
+
}>;
|
553
568
|
|
554
|
-
|
569
|
+
/**
|
570
|
+
* @internal Omitting one word from the different descriptions in various methods' JSDocs lets
|
571
|
+
* this be a reusable property
|
572
|
+
*/
|
573
|
+
type _UpdateDataOption = InexactPartial<{
|
555
574
|
/**
|
556
|
-
*
|
557
|
-
* @defaultValue `
|
575
|
+
* Modifications to make to each Card as part of the [...] operation, for example the displayed face
|
576
|
+
* @defaultValue `{}`
|
577
|
+
* @remarks Can't be `null` as it only has a parameter default
|
558
578
|
*/
|
559
|
-
|
579
|
+
updateData: Card.UpdateData;
|
580
|
+
}>;
|
560
581
|
|
582
|
+
type _HowOption = InexactPartial<{
|
561
583
|
/**
|
562
|
-
*
|
563
|
-
*
|
564
|
-
* @
|
584
|
+
* How to draw, a value from CONST.CARD_DRAW_MODES
|
585
|
+
* @defaultValue `CONST.CARD_DRAW_MODES.FIRST`
|
586
|
+
* @remarks Can't be `null` as it only has a parameter default
|
565
587
|
*/
|
566
|
-
|
588
|
+
how: CONST.CARD_DRAW_MODES;
|
589
|
+
}>;
|
567
590
|
|
591
|
+
/** @internal */
|
592
|
+
type _DealOptions = InexactPartial<{
|
568
593
|
/**
|
569
594
|
* The name of the action being performed, used as part of the dispatched Hook event
|
570
595
|
* @defaultValue `"deal"`
|
596
|
+
* @remarks Can't be `null` as it only has a parameter default. See {@linkcode Cards.DealAction}
|
571
597
|
*/
|
572
|
-
action:
|
573
|
-
}
|
598
|
+
action: DealAction;
|
599
|
+
}>;
|
574
600
|
|
575
|
-
|
576
|
-
interface DealContext {
|
577
|
-
/** The action name being performed, i.e. "deal", "pass" */
|
578
|
-
action: CardsAction;
|
579
|
-
|
580
|
-
/** An array of Card creation operations to be performed in each destination Cards document */
|
581
|
-
toCreate: Card.Implementation["_source"][][];
|
582
|
-
|
583
|
-
/** Card update operations to be performed in the origin Cards document */
|
584
|
-
fromUpdate: { _id: string; drawn: true }[];
|
585
|
-
|
586
|
-
/** Card deletion operations to be performed in the origin Cards document */
|
587
|
-
fromDelete: string[];
|
588
|
-
}
|
601
|
+
interface DealOptions extends _DealOptions, _HowOption, _UpdateDataOption, _ChatNotificationOption {}
|
589
602
|
|
590
|
-
|
603
|
+
/**
|
604
|
+
* Additional context which describes the operation
|
605
|
+
* @remarks This is the context provided to the {@link Hooks.StaticCallbacks.dealCards | `dealCards`} hook
|
606
|
+
*/
|
607
|
+
interface DealContext {
|
591
608
|
/**
|
592
|
-
*
|
593
|
-
*
|
594
|
-
* @defaultValue `{}`
|
609
|
+
* The action name being performed, i.e. "deal", "pass"
|
610
|
+
* @remarks See {@linkcode Cards.DealAction}
|
595
611
|
*/
|
596
|
-
|
612
|
+
action: DealAction;
|
597
613
|
|
598
614
|
/**
|
599
|
-
*
|
600
|
-
* @
|
615
|
+
* An array of Card creation operations to be performed in each destination Cards document
|
616
|
+
* @remarks Outer array: one element per `to` provided to this {@link Cards.deal | `Cards#deal`} call
|
601
617
|
*/
|
602
|
-
|
618
|
+
toCreate: Card.CreateData[][];
|
603
619
|
|
604
620
|
/**
|
605
|
-
*
|
606
|
-
* @
|
621
|
+
* Card update operations to be performed in the origin Cards document
|
622
|
+
* @remarks Core will only ever provide elements of `{ _id: string; drawn: true}`
|
607
623
|
*/
|
608
|
-
|
609
|
-
}
|
624
|
+
fromUpdate: Card.UpdateData[];
|
610
625
|
|
611
|
-
interface DrawOptions extends PassOptions {
|
612
626
|
/**
|
613
|
-
*
|
614
|
-
* @
|
627
|
+
* Card deletion operations to be performed in the origin Cards document
|
628
|
+
* @remarks An array of `_id`s
|
615
629
|
*/
|
616
|
-
|
630
|
+
fromDelete: string[];
|
631
|
+
}
|
617
632
|
|
633
|
+
/** @internal */
|
634
|
+
type _PassOptions = InexactPartial<{
|
618
635
|
/**
|
619
|
-
*
|
620
|
-
*
|
621
|
-
* @
|
636
|
+
* The name of the action being performed, used as part of the dispatched Hook event
|
637
|
+
* @defaultValue `"pass"`
|
638
|
+
* @remarks Can't be `null` as it only has a parameter default. See {@linkcode PassAction}
|
622
639
|
*/
|
623
|
-
|
624
|
-
}
|
640
|
+
action: PassAction;
|
641
|
+
}>;
|
642
|
+
|
643
|
+
interface PassOptions extends _PassOptions, _UpdateDataOption, _ChatNotificationOption {}
|
625
644
|
|
626
|
-
|
645
|
+
/**
|
646
|
+
* Additional context which describes the operation
|
647
|
+
* @remarks This is the context provided to the {@link Hooks.StaticCallbacks.passCards | `passCards`} hook
|
648
|
+
*/
|
649
|
+
interface PassContext extends Pick<DealContext, "fromUpdate" | "fromDelete"> {
|
627
650
|
/**
|
628
|
-
*
|
629
|
-
*
|
630
|
-
* @defaultValue `{}`
|
651
|
+
* The action name being performed, i.e. "pass", "play", "discard", "draw"
|
652
|
+
* @remarks See {@linkcode Cards.PassAction}
|
631
653
|
*/
|
632
|
-
|
654
|
+
action: PassAction;
|
633
655
|
|
634
|
-
/**
|
635
|
-
*
|
656
|
+
/**
|
657
|
+
* Card creation operations to be performed in the destination Cards document
|
636
658
|
*/
|
637
|
-
|
638
|
-
}
|
659
|
+
toCreate: Card.CreateData[];
|
639
660
|
|
640
|
-
/** Options which modify the reset operation */
|
641
|
-
interface ResetOptions extends BaseOperationOptions {
|
642
661
|
/**
|
643
|
-
*
|
644
|
-
*
|
645
|
-
* @defaultValue `{}`
|
662
|
+
* Card update operations to be performed in the destination Cards document
|
663
|
+
* @remarks Core will only ever provide elements of `{ _id: string; drawn: false }`
|
646
664
|
*/
|
647
|
-
|
665
|
+
toUpdate: Card.UpdateData[];
|
648
666
|
}
|
649
667
|
|
650
|
-
/**
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
668
|
+
/**
|
669
|
+
* @remarks {@link Cards.draw | `Cards#draw`} spreads this into an object, minus `how`, with the `action` preset to `"draw"`,
|
670
|
+
* which wouldn't make sense to change, then passes that to {@link Cards.pass | `Cards#pass`}
|
671
|
+
* @privateRemarks `action` omitted as it's already provided.
|
672
|
+
*/
|
673
|
+
interface DrawOptions extends _HowOption, Omit<PassOptions, "action"> {}
|
674
|
+
|
675
|
+
interface ShuffleOptions extends _UpdateDataOption, _ChatNotificationOption {}
|
676
|
+
|
677
|
+
interface RecallOptions extends _UpdateDataOption, _ChatNotificationOption {}
|
657
678
|
|
679
|
+
/**
|
680
|
+
* Additional context which describes the operation.
|
681
|
+
* @remarks This is the context provided to the {@link Hooks.StaticCallbacks.returnCards | `returnCards`} hook
|
682
|
+
*/
|
683
|
+
interface ReturnContext extends Pick<DealContext, "fromDelete"> {
|
658
684
|
/**
|
659
|
-
* Card
|
660
|
-
* document.
|
685
|
+
* A mapping of Card deck IDs to the update operations that will be performed on them.
|
661
686
|
*/
|
662
|
-
|
687
|
+
toUpdate: Record<string, Card.UpdateData[]>;
|
663
688
|
}
|
664
689
|
|
665
690
|
/**
|
@@ -708,7 +733,7 @@ declare global {
|
|
708
733
|
/**
|
709
734
|
* Provide a thumbnail image path used to represent this document.
|
710
735
|
*/
|
711
|
-
get thumbnail():
|
736
|
+
get thumbnail(): string | null;
|
712
737
|
|
713
738
|
/**
|
714
739
|
* The Card documents within this stack which are able to be drawn.
|
@@ -730,74 +755,80 @@ declare global {
|
|
730
755
|
*/
|
731
756
|
get canClone(): boolean;
|
732
757
|
|
758
|
+
/**
|
759
|
+
* @remarks Sets `context.keepEmbeddedIds` to `false` if it's `=== undefined`
|
760
|
+
*/
|
761
|
+
static override createDocuments<Temporary extends boolean | undefined = false>(
|
762
|
+
data: Array<Cards.Implementation | Cards.CreateData> | undefined,
|
763
|
+
operation?: Document.Database.CreateOperation<Cards.Database.Create<Temporary>>,
|
764
|
+
): Promise<Array<Document.TemporaryIf<Cards.Implementation, Temporary>>>;
|
765
|
+
|
733
766
|
/**
|
734
767
|
* Deal one or more cards from this Cards document to each of a provided array of Cards destinations.
|
735
768
|
* Cards are allocated from the top of the deck in cyclical order until the required number of Cards have been dealt.
|
736
769
|
* @param to - An array of other Cards documents to which cards are dealt
|
737
|
-
* @param number - The number of cards to deal to each other document
|
738
|
-
*
|
739
|
-
* @param options - (default: `{}`)
|
770
|
+
* @param number - The number of cards to deal to each other document (default: `1`)
|
771
|
+
* @param options - Options which modify how the deal operation is performed (default: `{}`)
|
740
772
|
* @returns This Cards document after the deal operation has completed
|
741
773
|
*/
|
742
|
-
|
743
|
-
|
744
|
-
number?: number,
|
745
|
-
options?: InexactPartial<Cards.DealOptions>,
|
746
|
-
): Promise<Cards.Implementation>;
|
774
|
+
// number: not null (dealing 0 cards makes no sense), options: not null (destructured)
|
775
|
+
deal(to: Cards.Implementation[], number?: number, options?: Cards.DealOptions): Promise<Cards.Implementation>;
|
747
776
|
|
748
777
|
/**
|
749
778
|
* Pass an array of specific Card documents from this document to some other Cards stack.
|
750
779
|
* @param to - Some other Cards document that is the destination for the pass operation
|
751
780
|
* @param ids - The embedded Card ids which should be passed
|
752
|
-
* @param options - Additional options which modify the pass operation
|
753
|
-
* (default: `{}`)
|
781
|
+
* @param options - Additional options which modify the pass operation (default: `{}`)
|
754
782
|
* @returns An array of the Card embedded documents created within the destination stack
|
755
783
|
*/
|
756
|
-
|
757
|
-
|
758
|
-
ids: string[],
|
759
|
-
options?: InexactPartial<Cards.PassOptions>,
|
760
|
-
): Promise<Card.Implementation[]>;
|
784
|
+
// options: not null (destructured)
|
785
|
+
pass(to: Cards.Implementation, ids: string[], options?: Cards.PassOptions): Promise<Card.Implementation[]>;
|
761
786
|
|
762
787
|
/**
|
763
788
|
* Draw one or more cards from some other Cards document.
|
764
789
|
* @param from - Some other Cards document from which to draw
|
765
|
-
* @param number - The number of cards to draw
|
766
|
-
*
|
767
|
-
* @param options - (default: `{}`)
|
790
|
+
* @param number - The number of cards to draw (default: `1`)
|
791
|
+
* @param options - Options which modify how the draw operation is performed (default: `{}`)
|
768
792
|
* @returns An array of the Card documents which were drawn
|
769
793
|
*/
|
770
|
-
|
771
|
-
|
772
|
-
number?: number,
|
773
|
-
options?: InexactPartial<Cards.DrawOptions>,
|
774
|
-
): Promise<Card.Implementation[]>;
|
794
|
+
// number: not null (drawing 0 cards makes no sense), options: not null (destructured)
|
795
|
+
draw(from: Cards.Implementation, number?: number, options?: Cards.DrawOptions): Promise<Card.Implementation[]>;
|
775
796
|
|
776
797
|
/**
|
777
798
|
* Shuffle this Cards stack, randomizing the sort order of all the cards it contains.
|
778
|
-
* @param options - (default: `{}`)
|
799
|
+
* @param options - Options which modify how the shuffle operation is performed. (default: `{}`)
|
779
800
|
* @returns The Cards document after the shuffle operation has completed
|
780
801
|
*/
|
781
|
-
|
802
|
+
// options: not null (destructured)
|
803
|
+
shuffle(options?: Cards.ShuffleOptions): Promise<this>;
|
804
|
+
|
805
|
+
/**
|
806
|
+
* Recall the Cards stack, retrieving all original cards from other stacks where they may have been drawn if this is a
|
807
|
+
* deck, otherwise returning all the cards in this stack to the decks where they originated.
|
808
|
+
* @param options - Options which modify the recall operation
|
809
|
+
* @returns The Cards document after the recall operation has completed.
|
810
|
+
*/
|
811
|
+
// options: not null (destructured where forwarded)
|
812
|
+
recall(options?: Cards.RecallOptions): Promise<this>;
|
782
813
|
|
783
814
|
/**
|
784
815
|
* Perform a reset operation for a deck, retrieving all original cards from other stacks where they may have been
|
785
816
|
* drawn.
|
786
|
-
* @param options - Options which modify the reset operation.
|
787
|
-
* (default: `{}`)
|
817
|
+
* @param options - Options which modify the reset operation. (default: `{}`)
|
788
818
|
* @returns The Cards document after the reset operation has completed.
|
789
|
-
* @
|
819
|
+
* @private
|
790
820
|
*/
|
791
|
-
|
821
|
+
// options: not null (destructured)
|
822
|
+
protected _resetDeck(options?: Cards.RecallOptions): Promise<this>;
|
792
823
|
|
793
824
|
/**
|
794
825
|
* Return all cards in this stack to their original decks.
|
795
|
-
* @param options - Options which modify the return operation.
|
796
|
-
* (default: `{}`)
|
826
|
+
* @param options - Options which modify the return operation. (default: `{}`)
|
797
827
|
* @returns The Cards document after the return operation has completed.
|
798
|
-
* @
|
828
|
+
* @private
|
799
829
|
*/
|
800
|
-
|
830
|
+
// options: not null (destructured)
|
831
|
+
protected _resetStack(options?: InexactPartial<Cards.RecallOptions>): Promise<this>;
|
801
832
|
|
802
833
|
/**
|
803
834
|
* A sorting function that is used to determine the standard order of Card documents within an un-shuffled stack.
|
@@ -819,7 +850,7 @@ declare global {
|
|
819
850
|
* @param how - A draw mode from CONST.CARD_DRAW_MODES
|
820
851
|
* @returns An array of drawn Card documents
|
821
852
|
*/
|
822
|
-
protected _drawCards(number: number, how:
|
853
|
+
protected _drawCards(number: number, how: CONST.CARD_DRAW_MODES): Card.Implementation[];
|
823
854
|
|
824
855
|
/**
|
825
856
|
* Create a ChatMessage which provides a notification of the cards operation which was just performed.
|
@@ -828,7 +859,7 @@ declare global {
|
|
828
859
|
* @param action - The localization key which formats the chat message notification
|
829
860
|
* @param context - Data passed to the i18n.format method for the localization key
|
830
861
|
* @returns A created ChatMessage document
|
831
|
-
* @
|
862
|
+
* @private
|
832
863
|
*/
|
833
864
|
protected _postChatNotification(
|
834
865
|
source: Cards.Implementation,
|
@@ -836,15 +867,13 @@ declare global {
|
|
836
867
|
context: Record<string, unknown>,
|
837
868
|
): Promise<ChatMessage.Implementation | undefined>;
|
838
869
|
|
839
|
-
|
840
|
-
* @privateRemarks _preCreate, _onUpdate, and _preDelete are all overridden but with no signature changes from BaseCards.
|
841
|
-
*/
|
870
|
+
// _preCreate, _onUpdate, and _preDelete are all overridden but with no signature changes from BaseCards.
|
842
871
|
|
843
872
|
/**
|
844
873
|
* Display a dialog which prompts the user to deal cards to some number of hand-type Cards documents.
|
845
874
|
* @see {@link Cards.deal | `Cards#deal`}
|
846
875
|
*/
|
847
|
-
dealDialog(): Promise<
|
876
|
+
dealDialog(): Promise<this | null>;
|
848
877
|
|
849
878
|
/**
|
850
879
|
* Display a dialog which prompts the user to draw cards from some other deck-type Cards documents.
|
@@ -856,22 +885,30 @@ declare global {
|
|
856
885
|
* Display a dialog which prompts the user to pass cards from this document to some other other Cards document.
|
857
886
|
* @see {@link Cards.deal | `Cards#deal`}
|
858
887
|
*/
|
859
|
-
passDialog(): Promise<
|
888
|
+
passDialog(): Promise<this | null>;
|
860
889
|
|
861
890
|
/**
|
862
891
|
* Display a dialog which prompts the user to play a specific Card to some other Cards document
|
863
892
|
* @see {@link Cards.pass | `Cards#pass`}
|
864
893
|
* @param card - The specific card being played as part of this dialog
|
865
894
|
*/
|
866
|
-
playDialog(card: Card.Implementation): Promise<Card.Implementation[] |
|
895
|
+
playDialog(card: Card.Implementation): Promise<Card.Implementation[] | null>;
|
867
896
|
|
868
897
|
/**
|
869
898
|
* Display a confirmation dialog for whether or not the user wishes to reset a Cards stack
|
870
899
|
* @see {@link Cards.reset | `Cards#reset`}
|
871
900
|
*/
|
872
|
-
resetDialog(): Promise<
|
901
|
+
resetDialog(): Promise<this | false | null>;
|
873
902
|
|
874
|
-
|
903
|
+
// options: not null (parameter default only)
|
904
|
+
override deleteDialog(options?: InexactPartial<Dialog.Options>): Promise<this | false | null | undefined>;
|
905
|
+
|
906
|
+
/** @remarks No type changes, just creates a fancier `Dialog` than `super` */
|
907
|
+
// data: not null (parameter default only), context: not null (destructured)
|
908
|
+
static override createDialog(
|
909
|
+
data?: Document.CreateDialogData<Cards.CreateData>,
|
910
|
+
context?: Document.CreateDialogContext<"Cards", Cards.Parent>,
|
911
|
+
): Promise<Cards.Stored | null | undefined>;
|
875
912
|
|
876
913
|
/*
|
877
914
|
* After this point these are not really overridden methods.
|
@@ -887,7 +924,7 @@ declare global {
|
|
887
924
|
|
888
925
|
/**
|
889
926
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
890
|
-
* this method must be
|
927
|
+
* this method must be overridden like so:
|
891
928
|
* ```typescript
|
892
929
|
* class SwadeCards extends Cards {
|
893
930
|
* protected override _preCreateDescendantDocuments(...args: Cards.PreCreateDescendantDocumentsArgs) {
|
@@ -905,7 +942,7 @@ declare global {
|
|
905
942
|
|
906
943
|
/**
|
907
944
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
908
|
-
* this method must be
|
945
|
+
* this method must be overridden like so:
|
909
946
|
* ```typescript
|
910
947
|
* class GurpsCards extends Cards {
|
911
948
|
* protected override _onCreateDescendantDocuments(...args: Cards.OnCreateDescendantDocumentsArgs) {
|
@@ -923,7 +960,7 @@ declare global {
|
|
923
960
|
|
924
961
|
/**
|
925
962
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
926
|
-
* this method must be
|
963
|
+
* this method must be overridden like so:
|
927
964
|
* ```typescript
|
928
965
|
* class LancerCards extends Cards {
|
929
966
|
* protected override _preUpdateDescendantDocuments(...args: Cards.OnUpdateDescendantDocuments) {
|
@@ -941,7 +978,7 @@ declare global {
|
|
941
978
|
|
942
979
|
/**
|
943
980
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
944
|
-
* this method must be
|
981
|
+
* this method must be overridden like so:
|
945
982
|
* ```typescript
|
946
983
|
* class Ptr2eCards extends Cards {
|
947
984
|
* protected override _onUpdateDescendantDocuments(...args: Cards.OnUpdateDescendantDocumentsArgs) {
|
@@ -959,7 +996,7 @@ declare global {
|
|
959
996
|
|
960
997
|
/**
|
961
998
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
962
|
-
* this method must be
|
999
|
+
* this method must be overridden like so:
|
963
1000
|
* ```typescript
|
964
1001
|
* class KultCards extends Cards {
|
965
1002
|
* protected override _preDeleteDescendantDocuments(...args: Cards.PreDeleteDescendantDocumentsArgs) {
|
@@ -977,7 +1014,7 @@ declare global {
|
|
977
1014
|
|
978
1015
|
/**
|
979
1016
|
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
980
|
-
* this method must be
|
1017
|
+
* this method must be overridden like so:
|
981
1018
|
* ```typescript
|
982
1019
|
* class BladesCards extends Cards {
|
983
1020
|
* protected override _onDeleteDescendantDocuments(...args: Cards.OnUpdateDescendantDocuments) {
|
@@ -993,21 +1030,20 @@ declare global {
|
|
993
1030
|
*/
|
994
1031
|
protected override _onDeleteDescendantDocuments(...args: Cards.OnDeleteDescendantDocumentsArgs): void;
|
995
1032
|
|
996
|
-
|
997
|
-
|
998
|
-
static override createDialog(
|
999
|
-
data?: Document.CreateDialogData<Cards.CreateData>,
|
1000
|
-
context?: Document.CreateDialogContext<Cards.SubType, Cards.Parent>,
|
1001
|
-
): Promise<Cards.Stored | null | undefined>;
|
1033
|
+
// context: not null (destructured)
|
1034
|
+
static override defaultName(context?: Document.DefaultNameContext<"Cards", Cards.Parent>): string;
|
1002
1035
|
|
1036
|
+
// options: not null (parameter default only)
|
1003
1037
|
static override fromDropData(
|
1004
1038
|
data: Document.DropData<Cards.Implementation>,
|
1005
|
-
options?:
|
1039
|
+
options?: AnyObject,
|
1006
1040
|
): Promise<Cards.Implementation | undefined>;
|
1007
1041
|
|
1008
1042
|
static override fromImport(
|
1009
1043
|
source: Cards.Source,
|
1010
|
-
context?: Document.FromImportContext<Cards.Parent
|
1044
|
+
context?: Document.FromImportContext<Cards.Parent> | null,
|
1011
1045
|
): Promise<Cards.Implementation>;
|
1046
|
+
|
1047
|
+
override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
|
1012
1048
|
}
|
1013
1049
|
}
|