@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 {
|
1
|
+
import type { AnyMutableObject } from "#utils";
|
2
2
|
import type DataModel from "../abstract/data.d.mts";
|
3
3
|
import type Document from "../abstract/document.mts";
|
4
4
|
import type { DataField, SchemaField } from "../data/fields.d.mts";
|
@@ -61,23 +61,23 @@ declare class BaseWall extends Document<WallDocument.Name, BaseWall.Schema, any>
|
|
61
61
|
// Same as Document for now
|
62
62
|
protected static override _initializationOrder(): Generator<[string, DataField.Any]>;
|
63
63
|
|
64
|
-
readonly parentCollection: WallDocument.ParentCollectionName | null;
|
64
|
+
override readonly parentCollection: WallDocument.ParentCollectionName | null;
|
65
65
|
|
66
|
-
readonly pack: string | null;
|
66
|
+
override readonly pack: string | null;
|
67
67
|
|
68
68
|
static override get implementation(): WallDocument.ImplementationClass;
|
69
69
|
|
70
|
-
static get baseDocument(): typeof BaseWall;
|
70
|
+
static override get baseDocument(): typeof BaseWall;
|
71
71
|
|
72
|
-
static get collectionName(): WallDocument.ParentCollectionName;
|
72
|
+
static override get collectionName(): WallDocument.ParentCollectionName;
|
73
73
|
|
74
|
-
static get documentName(): WallDocument.Name;
|
74
|
+
static override get documentName(): WallDocument.Name;
|
75
75
|
|
76
|
-
static get TYPES(): CONST.BASE_DOCUMENT_TYPE[];
|
76
|
+
static override get TYPES(): CONST.BASE_DOCUMENT_TYPE[];
|
77
77
|
|
78
|
-
static get hasTypeData(): undefined;
|
78
|
+
static override get hasTypeData(): undefined;
|
79
79
|
|
80
|
-
static get hierarchy(): WallDocument.Hierarchy;
|
80
|
+
static override get hierarchy(): WallDocument.Hierarchy;
|
81
81
|
|
82
82
|
override parent: WallDocument.Parent;
|
83
83
|
|
@@ -201,35 +201,62 @@ declare class BaseWall extends Document<WallDocument.Name, BaseWall.Schema, any>
|
|
201
201
|
user: User.Implementation,
|
202
202
|
): Promise<void>;
|
203
203
|
|
204
|
-
static get hasSystemData(): undefined;
|
204
|
+
static override get hasSystemData(): undefined;
|
205
205
|
|
206
206
|
// These data field things have been ticketed but will probably go into backlog hell for a while.
|
207
207
|
// We'll end up copy and pasting without modification for now I think. It makes it a tiny bit easier to update though.
|
208
|
-
protected static _addDataFieldShims(data: AnyObject, shims: AnyObject, options?: Document.DataFieldShimOptions): void;
|
209
208
|
|
210
|
-
|
211
|
-
|
209
|
+
// options: not null (parameter default only in _addDataFieldShim)
|
210
|
+
protected static override _addDataFieldShims(
|
211
|
+
data: AnyMutableObject,
|
212
|
+
shims: Record<string, string>,
|
213
|
+
options?: Document.DataFieldShimOptions,
|
214
|
+
): void;
|
215
|
+
|
216
|
+
// options: not null (parameter default only)
|
217
|
+
protected static override _addDataFieldShim(
|
218
|
+
data: AnyMutableObject,
|
212
219
|
oldKey: string,
|
213
220
|
newKey: string,
|
214
|
-
|
215
|
-
):
|
221
|
+
options?: Document.DataFieldShimOptions,
|
222
|
+
): void;
|
216
223
|
|
217
|
-
protected static
|
224
|
+
protected static override _addDataFieldMigration(
|
225
|
+
data: AnyMutableObject,
|
226
|
+
oldKey: string,
|
227
|
+
newKey: string,
|
228
|
+
apply?: ((data: AnyMutableObject) => unknown) | null,
|
229
|
+
): boolean;
|
230
|
+
|
231
|
+
// options: not null (destructured where forwarded)
|
232
|
+
protected static override _logDataFieldMigration(
|
218
233
|
oldKey: string,
|
219
234
|
newKey: string,
|
220
235
|
options?: LogCompatibilityWarningOptions,
|
221
236
|
): void;
|
222
237
|
|
238
|
+
/**
|
239
|
+
* @deprecated since v12, will be removed in v14
|
240
|
+
* @remarks "The `Document._onCreateDocuments` static method is deprecated in favor of {@link Document._onCreateOperation | `Document._onCreateOperation`}"
|
241
|
+
*/
|
223
242
|
protected static override _onCreateDocuments(
|
224
243
|
documents: WallDocument.Implementation[],
|
225
244
|
context: WallDocument.Database.OnCreateDocumentsContext,
|
226
245
|
): Promise<void>;
|
227
246
|
|
247
|
+
/**
|
248
|
+
* @deprecated since v12, will be removed in v14
|
249
|
+
* @remarks "The `Document._onUpdateDocuments` static method is deprecated in favor of {@link Document._onUpdateOperation | `Document._onUpdateOperation`}"
|
250
|
+
*/
|
228
251
|
protected static override _onUpdateDocuments(
|
229
252
|
documents: WallDocument.Implementation[],
|
230
253
|
context: WallDocument.Database.OnUpdateDocumentsContext,
|
231
254
|
): Promise<void>;
|
232
255
|
|
256
|
+
/**
|
257
|
+
* @deprecated since v12, will be removed in v14
|
258
|
+
* @remarks "The `Document._onDeleteDocuments` static method is deprecated in favor of {@link Document._onDeleteOperation | `Document._onDeleteOperation`}"
|
259
|
+
*/
|
233
260
|
protected static override _onDeleteDocuments(
|
234
261
|
documents: WallDocument.Implementation[],
|
235
262
|
context: WallDocument.Database.OnDeleteDocumentsContext,
|
@@ -243,12 +270,15 @@ declare class BaseWall extends Document<WallDocument.Name, BaseWall.Schema, any>
|
|
243
270
|
|
244
271
|
static override validateJoint(data: WallDocument.Source): void;
|
245
272
|
|
273
|
+
// options: not null (parameter default only, destructured in super)
|
246
274
|
static override fromSource(
|
247
275
|
source: WallDocument.CreateData,
|
248
|
-
|
276
|
+
context?: DataModel.FromSourceOptions,
|
249
277
|
): WallDocument.Implementation;
|
250
278
|
|
251
279
|
static override fromJSON(json: string): WallDocument.Implementation;
|
280
|
+
|
281
|
+
static #BaseWall: true;
|
252
282
|
}
|
253
283
|
|
254
284
|
export default BaseWall;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { GetKey, AnyObject, InexactPartial, AnyMutableObject, Identity, AnyArray } from "
|
1
|
+
import type { GetKey, AnyObject, InexactPartial, AnyMutableObject, Identity, AnyArray, NullishProps } from "#utils";
|
2
2
|
import type DataModel from "../abstract/data.d.mts";
|
3
3
|
import type { ReleaseData } from "../config.d.mts";
|
4
4
|
import type * as fields from "../data/fields.d.mts";
|
@@ -381,9 +381,22 @@ declare namespace BasePackage {
|
|
381
381
|
hasStorage: boolean;
|
382
382
|
}
|
383
383
|
|
384
|
-
|
384
|
+
/** @internal */
|
385
|
+
type _Installed = NullishProps<{
|
385
386
|
/** Is the package installed? */
|
386
|
-
installed
|
387
|
+
installed: boolean;
|
388
|
+
}>;
|
389
|
+
|
390
|
+
interface LogOptions extends _Installed, InexactPartial<LogCompatibilityWarningOptions> {}
|
391
|
+
|
392
|
+
interface MigrateDataOptions extends _Installed {}
|
393
|
+
|
394
|
+
interface CleanDataOptions extends fields.DataField.CleanOptions {
|
395
|
+
/**
|
396
|
+
* Is the package installed?
|
397
|
+
* @remarks Only used to pass on to {@link BasePackage._logWarning | `BasePackage#_logWarning`}
|
398
|
+
*/
|
399
|
+
installed?: boolean | null | undefined;
|
387
400
|
}
|
388
401
|
}
|
389
402
|
|
@@ -401,7 +414,7 @@ export class PackageRelationships extends fields.SchemaField<BasePackage.Package
|
|
401
414
|
constructor(options: fields.SchemaField.Options<BasePackage.PackageRelationshipsSchema>);
|
402
415
|
}
|
403
416
|
|
404
|
-
//
|
417
|
+
// omitted private class PackageRelationshipField
|
405
418
|
|
406
419
|
/**
|
407
420
|
* A custom SchemaField for defining a related Package.
|
@@ -454,9 +467,10 @@ export class CompendiumOwnershipField extends fields.ObjectField<
|
|
454
467
|
validationError: string;
|
455
468
|
};
|
456
469
|
|
470
|
+
/** @remarks `options` is unused in `CompendiumOwnershipField` */
|
457
471
|
protected override _validateType(
|
458
472
|
value: Record<keyof typeof foundry.CONST.USER_ROLES, keyof typeof foundry.CONST.DOCUMENT_OWNERSHIP_LEVELS>,
|
459
|
-
options?:
|
473
|
+
options?: fields.DataField.ValidateOptions<this> | null,
|
460
474
|
): boolean | void;
|
461
475
|
}
|
462
476
|
|
@@ -471,23 +485,25 @@ export class PackageCompendiumPacks<
|
|
471
485
|
options?: fields.DataField.CleanOptions,
|
472
486
|
): Set<fields.ArrayField.InitializedElementType<ElementFieldType>>;
|
473
487
|
|
488
|
+
// options: not null (parameter default only)
|
474
489
|
override initialize(
|
475
490
|
value: fields.ArrayField.PersistedElementType<ElementFieldType>[],
|
476
491
|
// In Foundry itself, this field is only used in `BasePackage`, however it should be able to accept any model.
|
477
492
|
// NOTE(LukeAbby): This also has been seen in a circularity `Type of property 'packs' circularly references itself in mapped type ...`.
|
478
493
|
model: DataModel.Any,
|
494
|
+
options?: fields.DataField.InitializeOptions,
|
479
495
|
):
|
480
496
|
| Set<fields.ArrayField.InitializedElementType<ElementFieldType>>
|
481
497
|
| (() => Set<fields.ArrayField.InitializedElementType<ElementFieldType>> | null);
|
482
498
|
|
483
499
|
protected override _validateElements(
|
484
500
|
value: AnyArray,
|
485
|
-
options?: fields.DataField.
|
501
|
+
options?: fields.DataField.ValidateOptions<fields.DataField.Any>,
|
486
502
|
): void | DataModelValidationFailure;
|
487
503
|
|
488
504
|
protected override _validateElement(
|
489
505
|
value: unknown,
|
490
|
-
options: fields.DataField.
|
506
|
+
options: fields.DataField.ValidateOptions<fields.DataField.Any>,
|
491
507
|
): void | DataModelValidationFailure;
|
492
508
|
}
|
493
509
|
|
@@ -605,7 +621,7 @@ declare class BasePackage<
|
|
605
621
|
*/
|
606
622
|
static testDependencyCompatibility(compatibility: PackageCompatibility, dependency: BasePackage): boolean;
|
607
623
|
|
608
|
-
static cleanData(source?: AnyObject, options?:
|
624
|
+
static cleanData(source?: AnyObject, options?: BasePackage.CleanDataOptions): AnyMutableObject;
|
609
625
|
|
610
626
|
/**
|
611
627
|
* Validate that a Package ID is allowed.
|
@@ -627,12 +643,19 @@ declare class BasePackage<
|
|
627
643
|
*/
|
628
644
|
static migratedKeys: Set<string>;
|
629
645
|
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
646
|
+
/**
|
647
|
+
* @remarks
|
648
|
+
* Migrations:
|
649
|
+
* - `name` to `id`, both at root and for any `dependencies` (since v10 until v13)
|
650
|
+
* - `dependencies` to `relationships` (structural change) (since v10 until v13)
|
651
|
+
* - `minimumCoreVersion` and `compatibleCoreVersion` to `compatibility.minimum` and `.verified`, respectively (since v10 until v13)
|
652
|
+
* - Inside `media` entries, `link` to `url` (since v11 until v13)
|
653
|
+
* - Inside `packs` entries:
|
654
|
+
* - `private` to an `ownership` object with `{PLAYER: "LIMITED", ASSISTANT: "OWNER"}` (since v11 until v13)
|
655
|
+
* - Slugifies the `name` if not already a valid slug (since v12, until v14)
|
656
|
+
* - `entity` to `type` (since v9, no specified end)
|
657
|
+
*/
|
658
|
+
static override migrateData(data: AnyMutableObject, options?: BasePackage.MigrateDataOptions): AnyMutableObject;
|
636
659
|
|
637
660
|
protected static _migrateNameToId(data: AnyObject, logOptions: BasePackage.LogOptions): void;
|
638
661
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import type { AnyMutableObject } from "../../../utils/index.d.mts";
|
2
|
+
import type DataModel from "../abstract/data.d.mts";
|
1
3
|
import type BasePackage from "./base-package.d.mts";
|
2
4
|
|
3
5
|
declare namespace BaseSystem {
|
@@ -28,6 +30,43 @@ declare class BaseSystem extends BasePackage<BaseSystem.Schema> {
|
|
28
30
|
* Does the system template request strict type checking of data compared to template.json inferred types.
|
29
31
|
*/
|
30
32
|
strictDataCleaning: boolean;
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @deprecated since v12, until v14
|
36
|
+
* @remarks "You are accessing `BaseSystem#gridDistance` which has been migrated to {@link BaseSystem.grid | `BaseSystem#grid`}`#distance`"
|
37
|
+
*/
|
38
|
+
get gridDistance(): number;
|
39
|
+
|
40
|
+
set gridDistance(number);
|
41
|
+
|
42
|
+
/**
|
43
|
+
* @deprecated since v12, until v14
|
44
|
+
* @remarks "You are accessing `BaseSystem#gridUnits` which has been migrated to {@link BaseSystem.grid | `BaseSystem#grid`}`#units`"
|
45
|
+
*/
|
46
|
+
get gridUnits(): number;
|
47
|
+
|
48
|
+
set gridUnits(number);
|
49
|
+
|
50
|
+
/** @remarks Adds `gridDistance` and `gridUnits` to super's */
|
51
|
+
static override migratedKeys: Set<string>;
|
52
|
+
|
53
|
+
/**
|
54
|
+
* @remarks
|
55
|
+
* Migrations:
|
56
|
+
* - {@link BasePackage.migrateData | `BasePackage`}'s
|
57
|
+
* - `gridDistance` to `grid.distance` (since v12, until v14)
|
58
|
+
* - `gridUnits` to `grid.units` (since v12, until v14)
|
59
|
+
*/
|
60
|
+
static override migrateData(data: AnyMutableObject, options?: BasePackage.MigrateDataOptions): AnyMutableObject;
|
61
|
+
|
62
|
+
/**
|
63
|
+
* @remarks
|
64
|
+
* Shims:
|
65
|
+
* - `gridDistance` to `grid.distance` (since v12, until v14)
|
66
|
+
* - `gridUnits` to `grid.units` (since v12, until v14)
|
67
|
+
*/
|
68
|
+
// options: not null (destructured)
|
69
|
+
static override shimData(data: AnyMutableObject, options?: DataModel.ShimDataOptions): AnyMutableObject;
|
31
70
|
}
|
32
71
|
|
33
72
|
export default BaseSystem;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type BasePackage from "./base-package.d.mts";
|
2
|
-
import type { AnyMutableObject, InexactPartial } from "
|
2
|
+
import type { AnyMutableObject, InexactPartial } from "#utils";
|
3
3
|
import type { ReleaseData } from "../config.d.mts";
|
4
4
|
|
5
5
|
declare namespace BaseWorld {
|
@@ -27,6 +27,13 @@ declare class BaseWorld extends BasePackage<BaseWorld.Schema> {
|
|
27
27
|
*/
|
28
28
|
static icon: string;
|
29
29
|
|
30
|
+
/**
|
31
|
+
* @remarks
|
32
|
+
* Migrations:
|
33
|
+
* - Enforces `compatibility` being an object
|
34
|
+
* - `compatibility.maximum === "1.0.0"` to `undefined`
|
35
|
+
* - If `coreVersion` but no `compatibility.verified`, sets both `compatibility.verified` and `.minimum` to `coreVersion`
|
36
|
+
*/
|
30
37
|
static migrateData(data: AnyMutableObject): AnyMutableObject;
|
31
38
|
|
32
39
|
static testAvailability(
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnyObject, Merge } from "
|
1
|
+
import type { AnyObject, Merge } from "#utils";
|
2
2
|
import type Document from "../abstract/document.d.mts";
|
3
3
|
import type { DataField, ObjectField } from "../data/fields.d.mts";
|
4
4
|
|
@@ -18,9 +18,10 @@ declare class AdditionalTypesField<
|
|
18
18
|
> {
|
19
19
|
static get _defaults(): AdditionalTypesField.DefaultOptions;
|
20
20
|
|
21
|
+
// options: not null (parameter default only, despite being unused)
|
21
22
|
protected _validateType(
|
22
23
|
value: ObjectField.InitializedType<Options>,
|
23
|
-
options?: DataField.
|
24
|
+
options?: DataField.ValidateOptions<AdditionalTypesField>,
|
24
25
|
): boolean | void;
|
25
26
|
}
|
26
27
|
|
@@ -30,9 +31,6 @@ declare namespace AdditionalTypesField {
|
|
30
31
|
type DefaultOptions = Merge<
|
31
32
|
ObjectField.DefaultOptions,
|
32
33
|
{
|
33
|
-
// Required is set as false BUT this doesn't work correctly in v11
|
34
|
-
// TODO: Re-enable in v12
|
35
|
-
// required: false;
|
36
34
|
readonly: true;
|
37
35
|
validationError: "is not a valid sub-types configuration";
|
38
36
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Schema } from "prosemirror-model";
|
2
2
|
import type { Plugin } from "prosemirror-state";
|
3
3
|
import type ProseMirrorPlugin from "./plugin.d.mts";
|
4
|
-
import type { EmptyObject } from "
|
4
|
+
import type { EmptyObject } from "#utils";
|
5
5
|
|
6
6
|
export default ProseMirrorDirtyPlugin;
|
7
7
|
|
@@ -3,7 +3,7 @@ import type ProseMirrorPlugin from "./plugin.d.mts";
|
|
3
3
|
import type { ProseMirrorMenu } from "./menu.d.mts";
|
4
4
|
import { EditorState, Plugin } from "prosemirror-state";
|
5
5
|
import { EditorView } from "prosemirror-view";
|
6
|
-
import type { EmptyObject, InexactPartial } from "
|
6
|
+
import type { EmptyObject, InexactPartial } from "#utils";
|
7
7
|
|
8
8
|
declare namespace ProseMirrorHighlightMatchesPlugin {
|
9
9
|
/**
|
@@ -2,7 +2,7 @@ import type { Schema, Slice } from "prosemirror-model";
|
|
2
2
|
import type { Plugin } from "prosemirror-state";
|
3
3
|
import type { EditorView } from "prosemirror-view";
|
4
4
|
import type ProseMirrorPlugin from "./plugin.d.mts";
|
5
|
-
import type { EmptyObject } from "
|
5
|
+
import type { EmptyObject } from "#utils";
|
6
6
|
|
7
7
|
export default ProseMirrorImagePlugin;
|
8
8
|
/**
|
@@ -2,7 +2,7 @@ import type { Schema, Slice } from "prosemirror-model";
|
|
2
2
|
import type ProseMirrorPlugin from "./plugin.d.mts";
|
3
3
|
import type { Plugin } from "prosemirror-state";
|
4
4
|
import type { EditorView } from "prosemirror-view";
|
5
|
-
import type { EmptyObject } from "
|
5
|
+
import type { EmptyObject } from "#utils";
|
6
6
|
|
7
7
|
export default ProseMirrorPasteTransformer;
|
8
8
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Schema } from "prosemirror-model";
|
2
2
|
import type { Plugin } from "prosemirror-state";
|
3
|
-
import type { AnyObject } from "
|
3
|
+
import type { AnyObject } from "#utils";
|
4
4
|
|
5
5
|
export default ProseMirrorPlugin;
|
6
6
|
declare abstract class ProseMirrorPlugin {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnyConcreteConstructor, AnyConstructor, AnyFunction } from "
|
1
|
+
import type { AnyConcreteConstructor, AnyConstructor, AnyFunction } from "#utils";
|
2
2
|
import type { Document } from "./abstract/module.d.mts";
|
3
3
|
|
4
4
|
// After seeing that none of these types add anything or are even exported a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// This class exists make it as sound as possible to override these parts of the class and make them
|
2
2
|
|
3
|
-
import type { AnyArray, Identity } from "
|
3
|
+
import type { AnyArray, Identity } from "#utils";
|
4
4
|
|
5
5
|
// completely unrelated. It's done this way specifically to avoid situations with broken inheritance.
|
6
6
|
declare class Map<K, V> extends globalThis.Map<K, V> {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AnyConstructor, AnyFunction, DeepPartial, InexactPartial, NonNullish } from "
|
1
|
+
import type { AnyConstructor, AnyFunction, DeepPartial, InexactPartial, NonNullish } from "#utils";
|
2
2
|
import type Document from "../abstract/document.d.mts";
|
3
3
|
|
4
4
|
/**
|
package/src/types/config.d.mts
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
// This is an issue only on Windows. It's worked around in this weird way to avoid ESLint
|
2
2
|
// whining about an unused disable.
|
3
|
-
/* eslint import-x/no-unresolved: [2, { ignore: ["fvtt-types/configuration"] }] */
|
4
3
|
|
5
|
-
import type { InterfaceToObject, MustConform } from "
|
6
|
-
|
7
|
-
// eslint-disable-next-line import-x/extensions
|
8
|
-
import * as configuration from "fvtt-types/configuration";
|
4
|
+
import type { InterfaceToObject, MustConform } from "#utils";
|
5
|
+
import * as configuration from "#configuration";
|
9
6
|
|
10
7
|
declare global {
|
11
8
|
interface AssumeHookRan extends configuration.AssumeHookRan {}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
import type { documents } from "../foundry/client-esm/client.d.mts";
|
5
5
|
import type { Document } from "../foundry/common/abstract/module.d.mts";
|
6
|
-
import type { InterfaceToObject, MakeConform, MustConform, FixedInstanceType } from "
|
6
|
+
import type { InterfaceToObject, MakeConform, MustConform, FixedInstanceType } from "#utils";
|
7
7
|
|
8
8
|
type DocumentConform<T> = MakeConform<T, Document.AnyConstructor>;
|
9
9
|
|
package/src/types/lib.d.mts
CHANGED