@league-of-foundry-developers/foundry-vtt-types 0.8.9-3 → 0.8.9-4

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.
Files changed (28) hide show
  1. package/package.json +1 -1
  2. package/src/foundry/common/constants.mjs.d.ts +31 -30
  3. package/src/foundry/common/data/data.mjs/index.d.ts +2 -0
  4. package/src/foundry/common/data/data.mjs/rollTableData.d.ts +182 -0
  5. package/src/foundry/common/data/data.mjs/tableResultData.d.ts +162 -0
  6. package/src/foundry/common/documents.mjs/baseRollTable.d.ts +8 -1
  7. package/src/foundry/common/documents.mjs/baseTableResult.d.ts +20 -1
  8. package/src/foundry/foundry.js/applications/chatPopout.d.ts +34 -33
  9. package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +4 -1
  10. package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +4 -4
  11. package/src/foundry/foundry.js/chatBubbles.d.ts +5 -0
  12. package/src/foundry/foundry.js/clientDocuments/combat.d.ts +2 -2
  13. package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +211 -6
  14. package/src/foundry/foundry.js/clientDocuments/tableResult.d.ts +30 -0
  15. package/src/foundry/foundry.js/config.d.ts +1 -1
  16. package/src/foundry/foundry.js/globalVariables.d.ts +13 -0
  17. package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +47 -68
  18. package/src/foundry/foundry.js/pixi/filters/abstractBaseMaskFilter.d.ts +4 -3
  19. package/src/foundry/foundry.js/pixi/filters/abstractBaseMaskFilters/index.d.ts +1 -0
  20. package/src/foundry/foundry.js/pixi/filters/abstractBaseMaskFilters/inverseOcclusionMaskFilter.d.ts +18 -0
  21. package/src/foundry/foundry.js/pixi/filters/index.d.ts +1 -0
  22. package/src/foundry/foundry.js/specialEffect.d.ts +34 -12
  23. package/src/foundry/foundry.js/specialEffects/autumnLeavesWeatherEffect.d.ts +28 -7
  24. package/src/foundry/foundry.js/specialEffects/index.d.ts +3 -0
  25. package/src/foundry/foundry.js/specialEffects/rainWeatherEffect.d.ts +16 -6
  26. package/src/foundry/foundry.js/specialEffects/snowWeatherEffect.d.ts +11 -4
  27. package/src/foundry/foundry.js/videoHelper.d.ts +9 -14
  28. package/src/foundry/index.d.ts +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@league-of-foundry-developers/foundry-vtt-types",
3
- "version": "0.8.9-3",
3
+ "version": "0.8.9-4",
4
4
  "description": "TypeScript type definitions for Foundry VTT",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/typescript/bin/tsc && eslint --ext .d.ts,.test-d.ts .",
@@ -278,11 +278,11 @@ export const TABLE_RESULT_TYPES: {
278
278
  * Define the valid anchor locations for a Tooltip displayed on a Placeable Object
279
279
  */
280
280
  export const TEXT_ANCHOR_POINTS: {
281
- BOTTOM: 0;
282
- CENTER: 1;
283
- LEFT: 2;
284
- RIGHT: 3;
285
- TOP: 4;
281
+ CENTER: 0;
282
+ BOTTOM: 1;
283
+ TOP: 2;
284
+ LEFT: 3;
285
+ RIGHT: 4;
286
286
  };
287
287
 
288
288
  /**
@@ -360,30 +360,11 @@ export const MEASURED_TEMPLATE_TYPES: MeasuredTemplateTypes;
360
360
  * @defaultValue
361
361
  * ```typescript
362
362
  * [
363
- * 'application/json',
364
- * 'application/ogg',
365
- * 'application/pdf',
366
- * 'audio/wave',
367
- * 'audio/wav',
368
- * 'audio/webm',
369
- * 'audio/ogg',
370
- * 'audio/midi',
371
- * 'audio/mpeg',
372
- * 'audio/opus',
373
- * 'audio/aac',
374
- * 'image/apng',
375
- * 'image/bmp',
376
- * 'image/gif',
377
- * 'image/jpeg',
378
- * 'image/png',
379
- * 'image/svg+xml',
380
- * 'image/tiff',
381
- * 'image/webp',
382
- * 'text/plain',
383
- * 'text/markdown',
384
- * 'video/mpeg',
385
- * 'video/mp4',
386
- * 'video/ogg'
363
+ * "application/json", "application/ogg", "application/pdf",
364
+ * "audio/wave", "audio/wav", "audio/webm", "audio/ogg", "audio/midi", "audio/mpeg", "audio/opus", "audio/aac",
365
+ * "image/apng", "image/bmp", "image/gif", "image/jpeg", "image/png", "image/svg+xml", "image/tiff", "image/webp",
366
+ * "text/plain", "text/markdown",
367
+ * "video/mpeg", "video/mp4", "video/ogg"
387
368
  * ]
388
369
  * ```
389
370
  */
@@ -695,7 +676,7 @@ export const WALL_SENSE_TYPES: {
695
676
 
696
677
  /**
697
678
  * The allowed set of HTML template extensions
698
- * @defaultValue `["html", "hbs"]`
679
+ * @defaultValue `["html", "handlebars", "hbs"]`
699
680
  */
700
681
  export const HTML_FILE_EXTENSIONS: string[];
701
682
 
@@ -717,6 +698,26 @@ export const VIDEO_FILE_EXTENSIONS: string[];
717
698
  */
718
699
  export const AUDIO_FILE_EXTENSIONS: string[];
719
700
 
701
+ /**
702
+ * @deprecated since 0.8.0
703
+ */
704
+ export const DRAWING_DEFAULT_VALUES: {
705
+ width: 0;
706
+ height: 0;
707
+ rotation: 0;
708
+ z: 0;
709
+ hidden: false;
710
+ locked: false;
711
+ fillType: typeof DRAWING_FILL_TYPES.NONE;
712
+ fillAlpha: 0.5;
713
+ bezierFactor: 0.0;
714
+ strokeAlpha: 1.0;
715
+ strokeWidth: 8;
716
+ fontSize: 48;
717
+ textAlpha: 1.0;
718
+ textColor: '#FFFFFF';
719
+ };
720
+
720
721
  export type ActiveEffectMode = ValueOf<typeof ACTIVE_EFFECT_MODES>;
721
722
  export type ChatMessageType = ValueOf<typeof CHAT_MESSAGE_TYPES>;
722
723
  export type DiceRollMode = ValueOf<typeof DICE_ROLL_MODES>;
@@ -14,8 +14,10 @@ export { MacroData } from './macroData';
14
14
  export { MeasuredTemplateData } from './measuredTemplateData';
15
15
  export { NoteData } from './noteData';
16
16
  export { PrototypeTokenData } from './prototypeTokenData';
17
+ export { RollTableData } from './rollTableData';
17
18
  export { SceneData } from './sceneData';
18
19
  export { SettingData } from './settingData';
20
+ export { TableResultData } from './tableResultData';
19
21
  export { TileData } from './tileData';
20
22
  export { TokenBarData } from './tokenBarData';
21
23
  export { TokenData } from './tokenData';
@@ -0,0 +1,182 @@
1
+ import {
2
+ ConfiguredDocumentClass,
3
+ ConfiguredFlags,
4
+ FieldReturnType,
5
+ PropertiesToSource
6
+ } from '../../../../types/helperTypes';
7
+ import EmbeddedCollection from '../../abstract/embedded-collection.mjs';
8
+ import { DocumentData } from '../../abstract/module.mjs';
9
+ import * as documents from '../../documents.mjs';
10
+ import * as fields from '../fields.mjs';
11
+
12
+ interface RollTableDataSchema extends DocumentSchema {
13
+ _id: typeof fields.DOCUMENT_ID;
14
+ name: typeof fields.REQUIRED_STRING;
15
+ img: FieldReturnType<typeof fields.IMAGE_FIELD, { default: () => string }>;
16
+ description: typeof fields.STRING_FIELD;
17
+ results: fields.EmbeddedCollectionField<typeof documents.BaseTableResult>;
18
+ formula: typeof fields.STRING_FIELD;
19
+ replacement: FieldReturnType<typeof fields.BOOLEAN_FIELD, { default: true }>;
20
+ displayRoll: FieldReturnType<typeof fields.BOOLEAN_FIELD, { default: true }>;
21
+ folder: fields.ForeignDocumentField<{ type: typeof documents.BaseFolder }>;
22
+ sort: typeof fields.INTEGER_SORT_FIELD;
23
+ permission: typeof fields.DOCUMENT_PERMISSIONS;
24
+ flags: typeof fields.OBJECT_FIELD;
25
+ }
26
+
27
+ interface RollTableDataProperties {
28
+ /**
29
+ * The _id which uniquely identifies this RollTable document
30
+ */
31
+ _id: string | null;
32
+
33
+ /**
34
+ * The name of this RollTable
35
+ */
36
+ name: string;
37
+
38
+ /**
39
+ * An image file path which provides the thumbnail artwork for this RollTable
40
+ */
41
+ img: string;
42
+
43
+ /**
44
+ * The HTML text description for this RollTable document
45
+ */
46
+ description: string | undefined;
47
+
48
+ /**
49
+ * A Collection of TableResult embedded documents which belong to this RollTable
50
+ */
51
+ results: EmbeddedCollection<ConfiguredDocumentClass<typeof documents.BaseTableResult>, RollTableData>;
52
+
53
+ /**
54
+ * The Roll formula which determines the results chosen from the table
55
+ */
56
+ formula: string | undefined;
57
+
58
+ /**
59
+ * Are results from this table drawn with replacement?
60
+ * @defaultValue `true`
61
+ */
62
+ replacement: boolean;
63
+
64
+ /**
65
+ * Is the Roll result used to draw from this RollTable displayed in chat?
66
+ * @defaultValue `true`
67
+ */
68
+ displayRoll: boolean;
69
+
70
+ /**
71
+ * The _id of a Folder which contains this RollTable
72
+ */
73
+ folder: string | null;
74
+
75
+ /**
76
+ * The numeric sort value which orders this RollTable relative to its siblings
77
+ * @defaultValue `0`
78
+ */
79
+ sort: number;
80
+
81
+ /**
82
+ * An object which configures user permissions to this RollTable
83
+ * @defaultValue `{ default: CONST.ENTITY_PERMISSIONS.NONE }`
84
+ */
85
+ permission: Partial<Record<string, foundry.CONST.EntityPermission>>;
86
+
87
+ /**
88
+ * An object of optional key/value flags
89
+ * @defaultValue `{}`
90
+ */
91
+ flags: ConfiguredFlags<'RollTable'>;
92
+ }
93
+
94
+ interface RollTableDataConstructorData {
95
+ /**
96
+ * The _id which uniquely identifies this RollTable document
97
+ */
98
+ _id?: string | null;
99
+
100
+ /**
101
+ * The name of this RollTable
102
+ */
103
+ name: string;
104
+
105
+ /**
106
+ * An image file path which provides the thumbnail artwork for this RollTable
107
+ */
108
+ img?: string | null;
109
+
110
+ /**
111
+ * The HTML text description for this RollTable document
112
+ */
113
+ description?: string | null;
114
+
115
+ /**
116
+ * A Collection of TableResult embedded documents which belong to this RollTable
117
+ */
118
+ results?: ConstructorParameters<ConfiguredDocumentClass<typeof documents.BaseTableResult>>[0][] | null;
119
+
120
+ /**
121
+ * The Roll formula which determines the results chosen from the table
122
+ */
123
+ formula?: string | null;
124
+
125
+ /**
126
+ * Are results from this table drawn with replacement?
127
+ * @defaultValue `true`
128
+ */
129
+ replacement?: boolean | null;
130
+
131
+ /**
132
+ * Is the Roll result used to draw from this RollTable displayed in chat?
133
+ * @defaultValue `true`
134
+ */
135
+ displayRoll?: boolean | null;
136
+
137
+ /**
138
+ * The _id of a Folder which contains this RollTable
139
+ */
140
+ folder?: string | null;
141
+
142
+ /**
143
+ * The numeric sort value which orders this RollTable relative to its siblings
144
+ */
145
+ sort?: number | null;
146
+
147
+ /**
148
+ * An object which configures user permissions to this RollTable
149
+ * @defaultValue `{ default: CONST.ENTITY_PERMISSIONS.NONE }`
150
+ */
151
+ permission?: Partial<Record<string, foundry.CONST.EntityPermission>> | null;
152
+
153
+ /**
154
+ * An object of optional key/value flags
155
+ * @defaultValue `{}`
156
+ */
157
+ flags?: ConfiguredFlags<'RollTable'> | null;
158
+ }
159
+
160
+ /**
161
+ * The data schema for an RollTable document.
162
+ * @see BaseRollTable
163
+ */
164
+ export declare class RollTableData extends DocumentData<
165
+ RollTableDataSchema,
166
+ RollTableDataProperties,
167
+ PropertiesToSource<RollTableDataProperties>,
168
+ RollTableDataConstructorData,
169
+ documents.BaseRollTable
170
+ > {
171
+ static defineSchema(): RollTableDataSchema;
172
+
173
+ /**
174
+ * The default icon used for newly created Macro documents
175
+ * @remarks Incorrect description, really for the RollTables.
176
+ * @defaultValue `'icons/svg/d20-grey.svg'`
177
+ */
178
+ static DEFAULT_ICON: string;
179
+ }
180
+
181
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
182
+ export declare interface RollTableData extends RollTableDataProperties {}
@@ -0,0 +1,162 @@
1
+ import { ConfiguredFlags, PropertiesToSource } from '../../../../types/helperTypes';
2
+ import DocumentData from '../../abstract/data.mjs';
3
+ import { BaseTableResult } from '../../documents.mjs';
4
+ import { fields } from '../module.mjs';
5
+
6
+ interface TableResultDataSchema extends DocumentSchema {
7
+ _id: typeof fields.DOCUMENT_ID;
8
+ type: DocumentField<foundry.CONST.TableResultType> & {
9
+ type: typeof Number;
10
+ default: typeof CONST.TABLE_RESULT_TYPES.TEXT;
11
+ validate: (t: unknown) => t is foundry.CONST.TableResultType;
12
+ validationError: 'Invalid TableResult type provided';
13
+ };
14
+ text: typeof fields.BLANK_STRING;
15
+ img: typeof fields.IMAGE_FIELD;
16
+ collection: typeof fields.STRING_FIELD;
17
+ resultId: typeof fields.STRING_FIELD;
18
+ weight: typeof fields.POSITIVE_INTEGER_FIELD;
19
+ range: {
20
+ type: [typeof Number];
21
+ required: true;
22
+ default: [];
23
+ validate: typeof _isValidResultRange;
24
+ validationError: 'Invalid TableResult range which must be a length-2 array of ascending integers';
25
+ };
26
+ drawn: typeof fields.BOOLEAN_FIELD;
27
+ flags: typeof fields.OBJECT_FIELD;
28
+ }
29
+
30
+ /**
31
+ * Validate whether a table result has a valid result range.
32
+ * @internal
33
+ * @param range - The proposed result range
34
+ * @returns Is the range valid?
35
+ */
36
+ declare function _isValidResultRange(range: unknown): range is [number, number];
37
+
38
+ interface TableResultDataProperties {
39
+ /**
40
+ * The _id which uniquely identifies this TableResult embedded document
41
+ * @defaultValue `null`
42
+ */
43
+ _id: string | null;
44
+
45
+ /**
46
+ * A result sub-type from CONST.TABLE_RESULT_TYPES
47
+ * @defaultValue `CONST.TABLE_RESULT_TYPES.TEXT`
48
+ */
49
+ type: foundry.CONST.TableResultType;
50
+
51
+ /**
52
+ * The text which describes the table result
53
+ */
54
+ text: string;
55
+
56
+ /**
57
+ * An image file url that represents the table result
58
+ */
59
+ img: string | undefined;
60
+
61
+ /**
62
+ * A named collection from which this result is drawn
63
+ */
64
+ collection: string | undefined;
65
+
66
+ /**
67
+ * The _id of a Document within the collection this result references
68
+ */
69
+ resultId: string | undefined;
70
+
71
+ /**
72
+ * The probabilistic weight of this result relative to other results
73
+ * @defaultValue `1`
74
+ */
75
+ weight: number | undefined;
76
+
77
+ /**
78
+ * A length 2 array of ascending integers which defines the range of dice roll
79
+ * totals which produce this drawn result
80
+ */
81
+ range: [number, number];
82
+
83
+ /**
84
+ * Has this result already been drawn (without replacement)
85
+ * @defaultValue `false`
86
+ */
87
+ drawn: boolean;
88
+
89
+ /**
90
+ * An object of optional key/value flags
91
+ * @defaultValue `{}`
92
+ */
93
+ flags: ConfiguredFlags<'TableResult'>;
94
+ }
95
+
96
+ interface TableResultDataConstructorData {
97
+ /**
98
+ * The _id which uniquely identifies this TableResult embedded document
99
+ * @defaultValue `null`
100
+ */
101
+ _id?: string | null;
102
+
103
+ /**
104
+ * A result sub-type from CONST.TABLE_RESULT_TYPES
105
+ * @defaultValue `CONST.TABLE_RESULT_TYPES.TEXT`
106
+ */
107
+ type?: foundry.CONST.TableResultType | null | undefined;
108
+
109
+ /**
110
+ * The text which describes the table result
111
+ */
112
+ text?: string | null;
113
+
114
+ /**
115
+ * An image file url that represents the table result
116
+ */
117
+ img?: string | undefined | null;
118
+
119
+ /**
120
+ * A named collection from which this result is drawn
121
+ */
122
+ collection?: string | undefined | null;
123
+
124
+ /**
125
+ * The _id of a Document within the collection this result references
126
+ */
127
+ resultId?: string | undefined | null;
128
+
129
+ /**
130
+ * The probabilistic weight of this result relative to other results
131
+ * @defaultValue `1`
132
+ */
133
+ weight?: number | undefined | null;
134
+
135
+ /**
136
+ * A length 2 array of ascending integers which defines the range of dice roll
137
+ * totals which produce this drawn result
138
+ */
139
+ range: [number, number];
140
+
141
+ /**
142
+ * Has this result already been drawn (without replacement)
143
+ * @defaultValue `false`
144
+ */
145
+ drawn?: boolean | undefined | null;
146
+
147
+ /**
148
+ * An object of optional key/value flags
149
+ * @defaultValue `{}`
150
+ */
151
+ flags?: ConfiguredFlags<'TableResult'> | undefined | null;
152
+ }
153
+
154
+ export declare class TableResultData extends DocumentData<
155
+ TableResultDataSchema,
156
+ TableResultDataProperties,
157
+ PropertiesToSource<TableResultDataProperties>,
158
+ TableResultDataConstructorData,
159
+ BaseTableResult
160
+ > {
161
+ static defineSchema(): TableResultDataSchema;
162
+ }
@@ -5,7 +5,9 @@ import { BaseTableResult } from './baseTableResult';
5
5
  /**
6
6
  * The base RollTable model definition which defines common behavior of an RollTable document between both client and server.
7
7
  */
8
- export declare class BaseRollTable extends Document<any, any> {
8
+ export declare class BaseRollTable extends Document<foundry.data.RollTableData> {
9
+ static get schema(): typeof foundry.data.RollTableData;
10
+
9
11
  static get metadata(): Merge<
10
12
  DocumentMetadata,
11
13
  {
@@ -18,4 +20,9 @@ export declare class BaseRollTable extends Document<any, any> {
18
20
  isPrimary: true;
19
21
  }
20
22
  >;
23
+
24
+ /**
25
+ * A reference to the Collection of TableResult instances in this document, indexed by _id.
26
+ */
27
+ get results(): this['data']['results'];
21
28
  }
@@ -1,11 +1,18 @@
1
+ import { ConfiguredDocumentClass } from '../../../types/helperTypes';
1
2
  import { DocumentMetadata } from '../abstract/document.mjs';
2
3
  import { Document } from '../abstract/module.mjs';
4
+ import { BaseRollTable } from './baseRollTable';
3
5
  import { BaseUser } from './baseUser';
4
6
 
5
7
  /**
6
8
  * The base TableResult model definition which defines common behavior of an TableResult document between both client and server.
7
9
  */
8
- export declare class BaseTableResult extends Document<any, any> {
10
+ export declare class BaseTableResult extends Document<
11
+ foundry.data.TableResultData,
12
+ InstanceType<ConfiguredDocumentClass<typeof BaseRollTable>>
13
+ > {
14
+ static get schema(): typeof foundry.data.TableResultData;
15
+
9
16
  static get metadata(): Merge<
10
17
  DocumentMetadata,
11
18
  {
@@ -18,4 +25,16 @@ export declare class BaseTableResult extends Document<any, any> {
18
25
  };
19
26
  }
20
27
  >;
28
+
29
+ /**
30
+ * Is a user able to update an existing TableResult?
31
+ * @internal
32
+ */
33
+ protected static _canUpdate(user: BaseUser, doc: BaseTableResult, data?: object): boolean;
34
+
35
+ testUserPermission(
36
+ user: BaseUser,
37
+ permission: keyof typeof foundry.CONST.ENTITY_PERMISSIONS | foundry.CONST.EntityPermission,
38
+ { exact }?: { exact?: boolean }
39
+ ): boolean;
21
40
  }
@@ -1,41 +1,42 @@
1
- // TODO: Remove when updating this class!!!
2
- // eslint-disable-next-line
3
- // @ts-nocheck
4
-
5
- /**
6
- * @typeParam P - the type of the options object
7
- */
8
- declare class ChatPopout<P extends Application.Options = Application.Options> extends Application<P> {
9
- constructor(message: ChatPopout['message'], options?: Partial<P>);
1
+ import type { ConfiguredDocumentClass } from '../../../types/helperTypes';
10
2
 
3
+ declare global {
11
4
  /**
12
- * The displayed Chat Message entity
5
+ * A simple application which supports popping a ChatMessage out to a separate UI window.
6
+ * @typeParam Options - the type of the options object
13
7
  */
14
- message: ChatMessage;
8
+ class ChatPopout<Options extends Application.Options = Application.Options> extends Application<Options> {
9
+ constructor(message: InstanceType<ConfiguredDocumentClass<typeof ChatMessage>>, options?: Partial<Options>);
15
10
 
16
- /**
17
- * @override
18
- * @defaultValue
19
- * ```typescript
20
- * mergeObject(super.defaultOptions, {
21
- * width: 300,
22
- * height: "auto",
23
- * classes: ["chat-popout"]
24
- * })
25
- * ```
26
- */
27
- static get defaultOptions(): typeof Application['defaultOptions'];
11
+ /**
12
+ * The displayed Chat Message entity
13
+ */
14
+ message: InstanceType<ConfiguredDocumentClass<typeof ChatMessage>>;
28
15
 
29
- /** @override */
30
- get id(): string;
16
+ /**
17
+ * @override
18
+ * @defaultValue
19
+ * ```typescript
20
+ * foundry.utils.mergeObject(super.defaultOptions, {
21
+ * width: 300,
22
+ * height: "auto",
23
+ * classes: ["chat-popout"]
24
+ * })
25
+ * ```
26
+ */
27
+ static get defaultOptions(): Application.Options;
31
28
 
32
- /** @override */
33
- get title(): string;
29
+ /** @override */
30
+ get id(): string;
34
31
 
35
- /**
36
- * @param data - (unused)
37
- * @param options - (unused)
38
- * @override
39
- */
40
- protected _renderInner(data?: any, options?: any): ReturnType<this['message']['render']>;
32
+ /** @override */
33
+ get title(): string;
34
+
35
+ /**
36
+ * @param data - (unused)
37
+ * @param options - (unused)
38
+ * @override
39
+ */
40
+ protected _renderInner(data: object, options?: unknown): Promise<JQuery> | JQuery;
41
+ }
41
42
  }
@@ -41,7 +41,10 @@ declare global {
41
41
  /**
42
42
  * @remarks This method not overridden in foundry but added to provide types when overriding the UserConfig.
43
43
  */
44
- protected _updateObject(event: Event, formData: FormData): ReturnType<User['update']>;
44
+ protected _updateObject(
45
+ event: Event,
46
+ formData: FormData
47
+ ): Promise<InstanceType<ConfiguredDocumentClass<typeof User>> | undefined>;
45
48
  }
46
49
 
47
50
  namespace UserConfig {
@@ -67,10 +67,10 @@ declare namespace WallConfig {
67
67
 
68
68
  interface FormData {
69
69
  dir: foundry.CONST.WallDirection;
70
- door: Wall.Data['door'];
71
- ds?: Wall.Data['ds'];
72
- move: Wall.Data['move'];
73
- sense: Wall.Data['sense'];
70
+ door: Wall['data']['door'];
71
+ ds?: Wall['data']['ds'];
72
+ move: Wall['data']['move'];
73
+ sense: Wall['data']['sense'];
74
74
  }
75
75
 
76
76
  interface Options extends FormApplication.Options {
@@ -22,6 +22,7 @@ declare class ChatBubbles {
22
22
  * Track which Token was most recently panned to highlight
23
23
  * Use this to avoid repeat panning
24
24
  * @defaultValue `null`
25
+ * @internal
25
26
  */
26
27
  protected _panned: Token | null;
27
28
 
@@ -41,6 +42,7 @@ declare class ChatBubbles {
41
42
 
42
43
  /**
43
44
  * Clear any existing chat bubble for a certain Token
45
+ * @internal
44
46
  */
45
47
  protected _clearBubble(token: Token): Promise<void>;
46
48
 
@@ -48,6 +50,7 @@ declare class ChatBubbles {
48
50
  * Render the HTML template for the chat bubble
49
51
  * @param data - Template data
50
52
  * @returns The rendered HTML
53
+ * @internal
51
54
  */
52
55
  protected _renderHTML(data: { token: Token; message: string; emote: boolean }): Promise<string>;
53
56
 
@@ -55,11 +58,13 @@ declare class ChatBubbles {
55
58
  * Before displaying the chat message, determine it's constrained and unconstrained dimensions
56
59
  * @param message - The message content
57
60
  * @returns The rendered message dimensions
61
+ * @internal
58
62
  */
59
63
  protected _getMessageDimensions(message: string): ChatBubbles.Dimensions;
60
64
 
61
65
  /**
62
66
  * Assign styling parameters to the chat bubble, toggling either a left or right display (randomly)
67
+ * @internal
63
68
  */
64
69
  protected _setPosition(token: Token, html: JQuery, dimensions: ChatBubbles.Dimensions): void;
65
70
 
@@ -24,10 +24,10 @@ declare global {
24
24
  turns: InstanceType<ConfiguredDocumentClass<typeof Combatant>>[];
25
25
 
26
26
  /** Record the current round, turn, and tokenId to understand changes in the encounter state */
27
- protected current: RoundData;
27
+ current: RoundData;
28
28
 
29
29
  /** Track the previous round, turn, and tokenId to understand changes in the encounter state */
30
- protected previous: RoundData;
30
+ previous: RoundData;
31
31
 
32
32
  /**
33
33
  * Track whether a sound notification is currently being played to avoid double-dipping