diff --git a/notNeededPackages.json b/notNeededPackages.json index b4a7970b9bd8c6..995e61a83656ce 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1729,6 +1729,10 @@ "libraryName": "@ember/test-helpers", "asOfVersion": "2.9.1" }, + "emoji-mart": { + "libraryName": "emoji-mart", + "asOfVersion": "5.3.0" + }, "emoji-regex": { "libraryName": "emoji-regex", "asOfVersion": "9.2.0" @@ -6351,6 +6355,10 @@ "libraryName": "should", "asOfVersion": "13.0.0" }, + "signal-exit": { + "libraryName": "signal-exit", + "asOfVersion": "4.0.0" + }, "signature_pad": { "libraryName": "signature_pad", "asOfVersion": "4.0.0" @@ -6763,6 +6771,10 @@ "libraryName": "sugar", "asOfVersion": "2.0.2" }, + "sumoselect": { + "libraryName": "sumoselect", + "asOfVersion": "3.4.9" + }, "superstruct": { "libraryName": "superstruct", "asOfVersion": "0.8.0" @@ -7131,6 +7143,10 @@ "libraryName": "upper-case-first", "asOfVersion": "1.1.2" }, + "url-join": { + "libraryName": "url-join", + "asOfVersion": "5.0.0" + }, "url-metadata": { "libraryName": "url-metadata", "asOfVersion": "2.4.0" diff --git a/types/emoji-mart/dist-es/components/category.d.ts b/types/emoji-mart/dist-es/components/category.d.ts deleted file mode 100644 index 25ffb0a1216c8e..00000000000000 --- a/types/emoji-mart/dist-es/components/category.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import React = require("react"); - -import { CategoryName, Emoji, EmojiData, EmojiProps, I18n } from ".."; - -export interface Props { - emojis?: Array | undefined; - hasStickyPosition?: boolean | undefined; - id: CategoryName; - name: string; - native: boolean; - perLine: number; - emojiProps: EmojiProps; - recent?: string[] | undefined; - i18n: I18n; -} - -export default class Category extends React.Component { - // all methods and properties inside this are most likely intended to be private -} diff --git a/types/emoji-mart/dist-es/components/emoji/emoji.d.ts b/types/emoji-mart/dist-es/components/emoji/emoji.d.ts deleted file mode 100644 index da9f40b04fcc23..00000000000000 --- a/types/emoji-mart/dist-es/components/emoji/emoji.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import React = require("react"); - -import { EmojiProps } from "../.."; - -declare const Emoji: React.FunctionComponent; - -export { Emoji as default }; diff --git a/types/emoji-mart/dist-es/components/emoji/nimble-emoji.d.ts b/types/emoji-mart/dist-es/components/emoji/nimble-emoji.d.ts deleted file mode 100644 index 471ebb689c4808..00000000000000 --- a/types/emoji-mart/dist-es/components/emoji/nimble-emoji.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import React = require("react"); - -import { Data, EmojiProps } from "../.."; - -export interface NimbleEmojiProps extends EmojiProps { - data: Data; -} - -declare const NimbleEmoji: React.FC; - -export { NimbleEmoji as default }; diff --git a/types/emoji-mart/dist-es/components/index.d.ts b/types/emoji-mart/dist-es/components/index.d.ts deleted file mode 100644 index 2df959653803aa..00000000000000 --- a/types/emoji-mart/dist-es/components/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -// The other exports on the components folder are not public API -export { default as Category, Props as CategoryProps } from "./category"; -export { default as Emoji } from "./emoji/emoji"; -export { default as NimbleEmoji, NimbleEmojiProps } from "./emoji/nimble-emoji"; -export { default as NimblePicker, NimblePickerProps } from "./picker/nimble-picker"; -export { default as Picker } from "./picker/picker"; diff --git a/types/emoji-mart/dist-es/components/picker/nimble-picker.d.ts b/types/emoji-mart/dist-es/components/picker/nimble-picker.d.ts deleted file mode 100644 index 6db1bc8aace0c7..00000000000000 --- a/types/emoji-mart/dist-es/components/picker/nimble-picker.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import React = require("react"); - -import { Data, PickerProps } from "../.."; - -export interface NimblePickerProps extends PickerProps { - data: Data; -} - -export default class NimblePicker extends React.PureComponent { - // everything inside it is supposed to be private -} diff --git a/types/emoji-mart/dist-es/components/picker/picker.d.ts b/types/emoji-mart/dist-es/components/picker/picker.d.ts deleted file mode 100644 index f64b5d9f46b260..00000000000000 --- a/types/emoji-mart/dist-es/components/picker/picker.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import React = require("react"); - -import { PickerProps } from "../.."; - -export default class Picker extends React.PureComponent { - // everything inside it is supposed to be private -} diff --git a/types/emoji-mart/dist-es/index.d.ts b/types/emoji-mart/dist-es/index.d.ts deleted file mode 100644 index 78f0a3b42e5721..00000000000000 --- a/types/emoji-mart/dist-es/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -export { Data } from "./utils/data"; -export { default as frequently } from "./utils/frequently"; -export { default as store, StoreHandlers } from "./utils/store"; - -export { - BackgroundImageFn, - CategoryName, - CustomIcons, - EmojiProps, - EmojiSet, - EmojiSheetSize, - I18n, - PartialI18n, - PickerProps, -} from "./utils/shared-props"; - -export { default as emojiIndex } from "./utils/emoji-index/emoji-index"; - -export { - BaseEmoji, - CustomEmoji, - default as NimbleEmojiIndex, - EmojiData, - EmojiEntry, - EmojiSkin, -} from "./utils/emoji-index/nimble-emoji-index"; - -export { getEmojiDataFromNative } from "./utils/index"; - -export { - Category, - CategoryProps, - Emoji, - NimbleEmoji, - NimbleEmojiProps, - NimblePicker, - NimblePickerProps, - Picker, -} from "./components"; diff --git a/types/emoji-mart/dist-es/utils/data.d.ts b/types/emoji-mart/dist-es/utils/data.d.ts deleted file mode 100644 index 6076d75c5aa6b9..00000000000000 --- a/types/emoji-mart/dist-es/utils/data.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -export interface Data { - compressed: boolean; - categories: Category[]; - emojis: { [key: string]: Emoji }; - aliases: { [key: string]: string }; -} - -export interface Category { - id: string; - name: string; - emojis: string[]; -} - -export interface Emoji { - name?: string | undefined; - a?: string | undefined; - unified?: string | undefined; - b?: string | undefined; - non_qualified?: string | undefined; - c?: string | undefined; - has_img_apple?: boolean | undefined; - d?: boolean | undefined; - has_img_google?: boolean | undefined; - e?: boolean | undefined; - has_img_twitter?: boolean | undefined; - f?: boolean | undefined; - has_img_emojione?: boolean | undefined; - g?: boolean | undefined; - has_img_facebook?: boolean | undefined; - h?: boolean | undefined; - has_img_messenger?: boolean | undefined; - i?: boolean | undefined; - keywords?: string[] | undefined; - j?: string[] | undefined; - sheet?: number[] | undefined; - k?: number[] | undefined; - emoticons?: string[] | undefined; - l?: string[] | undefined; - text?: string | undefined; - m?: string | undefined; - short_names?: string[] | undefined; - n?: string[] | undefined; - added_in?: number | undefined; - o?: number | undefined; - sheet_x?: number | undefined; - sheet_y?: number | undefined; - skin_variations?: { [key: string]: SkinVariation } | undefined; - obsoleted_by?: string | undefined; - obsoletes?: string | undefined; -} - -export interface SkinVariation { - unified: string; - non_qualified: null | string; - image: string; - sheet_x: number; - sheet_y: number; - added_in: string; - has_img_apple: boolean; - has_img_google: boolean; - has_img_twitter: boolean; - has_img_facebook: boolean; - has_img_emojione?: boolean; - has_img_messenger?: boolean; - obsoleted_by?: string | undefined; - obsoletes?: string | undefined; -} - -export function buildSearch(emoji: Emoji): string; - -export function compress(emoji: Emoji): void; - -export function uncompress(data: Data): void; diff --git a/types/emoji-mart/dist-es/utils/emoji-index/emoji-index.d.ts b/types/emoji-mart/dist-es/utils/emoji-index/emoji-index.d.ts deleted file mode 100644 index 27c7bbd19c002d..00000000000000 --- a/types/emoji-mart/dist-es/utils/emoji-index/emoji-index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { EmojiData, EmojiEntry } from "./nimble-emoji-index"; - -declare const _default: { - search(query: ""): null; - search(query: string): EmojiData[] | null; - - emojis: { [emoji: string]: EmojiEntry }; - - /** Mapping of string to keyof emojis */ - emoticons: { [emoticon: string]: string }; -}; - -export { _default as default }; diff --git a/types/emoji-mart/dist-es/utils/emoji-index/nimble-emoji-index.d.ts b/types/emoji-mart/dist-es/utils/emoji-index/nimble-emoji-index.d.ts deleted file mode 100644 index 649fcdaa0408b0..00000000000000 --- a/types/emoji-mart/dist-es/utils/emoji-index/nimble-emoji-index.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Data } from "../data"; - -import { CategoryName } from "../shared-props"; - -export type EmojiSkin = 1 | 2 | 3 | 4 | 5 | 6; - -export interface BaseEmoji { - id: string; - name: string; - colons: string; - /** Reverse mapping to keyof emoticons */ - emoticons: string[]; - unified: string; - skin: EmojiSkin | null; - native: string; -} - -export interface CustomEmoji { - // id is overridden by short_names[0] - id?: string | undefined; - // colons is overridden by :id: - colons?: string | undefined; - name: string; - /** Must contain at least one name. The first name is used as the unique id. */ - short_names: string[]; - emoticons?: string[] | undefined; - keywords?: string[] | undefined; - imageUrl: string; -} - -export type EmojiData = BaseEmoji | CustomEmoji; -export type EmojiEntry = EmojiData | { [variant in EmojiSkin]: EmojiData }; // emoji with skin tones will return - -export default class NimbleEmojiIndex { - constructor(data: Data); - search(query: ""): null; - search(query: string): EmojiData[] | null; - emojis: { [emoji: string]: EmojiData }; - /** Mapping of string to keyof emojis */ - emoticons: { [emoticon: string]: string }; -} diff --git a/types/emoji-mart/dist-es/utils/frequently.d.ts b/types/emoji-mart/dist-es/utils/frequently.d.ts deleted file mode 100644 index 12ec80bb167628..00000000000000 --- a/types/emoji-mart/dist-es/utils/frequently.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { EmojiData } from ".."; - -declare const _default: { - add(emoji: Pick): void; - get(perLine: number): string[]; -}; - -export { _default as default }; diff --git a/types/emoji-mart/dist-es/utils/index.d.ts b/types/emoji-mart/dist-es/utils/index.d.ts deleted file mode 100644 index 3fd5decd767f3d..00000000000000 --- a/types/emoji-mart/dist-es/utils/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Data } from "./data"; -import { BaseEmoji } from "./emoji-index/nimble-emoji-index"; -import { EmojiSet } from "./shared-props"; - -declare function getEmojiDataFromNative(nativeString: string, set: EmojiSet, data: Data): BaseEmoji; - -export { getEmojiDataFromNative }; diff --git a/types/emoji-mart/dist-es/utils/shared-props.d.ts b/types/emoji-mart/dist-es/utils/shared-props.d.ts deleted file mode 100644 index 2de5e4d9a8fb05..00000000000000 --- a/types/emoji-mart/dist-es/utils/shared-props.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import React = require("react"); - -import { CustomEmoji, EmojiData, EmojiSkin } from "./emoji-index/nimble-emoji-index"; - -import { JSX } from "react"; - -export type BackgroundImageFn = (set: EmojiSet, sheetSize: EmojiSheetSize) => string; -export type EmojiSet = "apple" | "google" | "twitter" | "emojione" | "messenger" | "facebook"; -export type EmojiSheetSize = 16 | 20 | 32 | 64; - -export interface EmojiProps { - onOver?(emoji: EmojiData, e: React.MouseEvent): void; - onLeave?(emoji: EmojiData, e: React.MouseEvent): void; - onClick?(emoji: EmojiData, e: React.MouseEvent): void; - fallback?(emoji: EmojiData, props: EmojiProps): React.Component | JSX.Element; - /** defaults to returning a png from unpkg.com-hosted emoji-datasource-${set} */ - backgroundImageFn?: BackgroundImageFn | undefined; - native?: boolean | undefined; - forceSize?: boolean | undefined; - tooltip?: boolean | undefined; - /** defaults to 1 */ - skin?: EmojiSkin | undefined; - /** defaults to 64 */ - sheetSize?: EmojiSheetSize | undefined; - /** defaults to 52 */ - sheetColumns?: number | undefined; - /** defaults to 52 */ - sheetRows?: number | undefined; - /** defaults to 'apple' */ - set?: EmojiSet | undefined; - size: number; - emoji: string | EmojiData; - html?: boolean | undefined; - /** data is omitted here as it should be used for NimbleEmoji only - not emoji */ -} - -export type CategoryName = - | "search" - | "recent" - | "people" - | "nature" - | "foods" - | "activity" - | "places" - | "objects" - | "symbols" - | "flags" - | "custom"; - -// eslint-disable-next-line @typescript-eslint/naming-convention -export interface I18n { - search: string; - categories: Record; - notfound: string; - skintext: string; -} - -export type PartialI18n = Partial & { categories: Partial }>; - -export interface CustomIcons { - categories: Record React.ReactNode>; -} - -export interface PickerProps { - /** NOTE: default is not preventable */ - onClick?(emoji: EmojiData, e: React.MouseEvent): void; - onSelect?(emoji: EmojiData): void; - onSkinChange?(skin: EmojiSkin): void; - perLine?: number | undefined; - emojiSize?: number | undefined; - i18n?: PartialI18n | undefined; - style?: React.CSSProperties | undefined; - title?: string | undefined; - theme?: "auto" | "light" | "dark" | undefined; - emoji?: string | undefined; - color?: string | undefined; - set?: EmojiSet | undefined; - skin?: EmojiSkin | undefined; - defaultSkin?: EmojiSkin | undefined; - native?: boolean | undefined; - backgroundImageFn?: BackgroundImageFn | undefined; - sheetSize?: EmojiSheetSize | undefined; - emojisToShowFilter?(emoji: EmojiData): boolean; - showPreview?: boolean | undefined; - showSkinTones?: boolean | undefined; - emojiTooltip?: boolean | undefined; - include?: CategoryName[] | undefined; - exclude?: CategoryName[] | undefined; - recent?: string[] | undefined; - autoFocus?: boolean | undefined; - /** NOTE: custom emoji are copied into a singleton object on every new mount */ - custom?: CustomEmoji[] | undefined; - skinEmoji?: string | undefined; - notFound?(): React.Component; - notFoundEmoji?: string | undefined; - icons?: CustomIcons | undefined; - enableFrequentEmojiSort?: boolean | undefined; - useButton?: boolean | undefined; -} diff --git a/types/emoji-mart/dist-es/utils/store.d.ts b/types/emoji-mart/dist-es/utils/store.d.ts deleted file mode 100644 index ca2be3c752c5be..00000000000000 --- a/types/emoji-mart/dist-es/utils/store.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export interface StoreHandlers { - getter?(key: string): any; - setter?(key: string, value: any): void; -} - -declare const _default: { - setHandlers(handlers?: StoreHandlers): void; - setNamespace(namespace: string): void; - update(state: { [key: string]: any }): void; - set(key: string, value: any): void; - get(key: string): any; -}; - -export { _default as default }; diff --git a/types/emoji-mart/emoji-mart-tests.tsx b/types/emoji-mart/emoji-mart-tests.tsx deleted file mode 100644 index fc656d3835001b..00000000000000 --- a/types/emoji-mart/emoji-mart-tests.tsx +++ /dev/null @@ -1,143 +0,0 @@ -// Port of https://github.com/missive/emoji-mart/blob/v2.8.0/stories/index.js - -import React = require("react"); -import { useState } from "react"; - -import { - BaseEmoji, - CustomEmoji, - Emoji, - EmojiData, - EmojiEntry, - emojiIndex, - EmojiProps, - NimbleEmojiIndex, - Picker, -} from "emoji-mart"; - -declare var console: { log(...args: any[]): void }; - -const CUSTOM_EMOJIS: CustomEmoji[] = [ - { - name: "Party Parrot", - short_names: ["parrot"], - keywords: ["party"], - imageUrl: "http://cultofthepartyparrot.com/parrots/hd/parrot.gif", - }, - { - name: "Octocat", - short_names: ["octocat"], - keywords: ["github"], - imageUrl: "https://assets-cdn.github.com/images/icons/emoji/octocat.png?v7", - }, - { - name: "Squirrel", - short_names: ["shipit", "squirrel"], - keywords: ["github"], - imageUrl: "https://assets-cdn.github.com/images/icons/emoji/shipit.png?v7", - }, -]; - -interface State { - native: boolean; - set: EmojiProps["set"] | "native"; - emoji: string; - title: string; - custom: CustomEmoji[]; -} - -class Example extends React.Component<{}, State> { - readonly state: Readonly = { - native: true, - set: "apple", - emoji: "point_up", - title: "Pick your emoji…", - custom: CUSTOM_EMOJIS, - }; - render() { - return ( -
-
-

Emoji Mart 🏬

-
- -
- {(["native", "apple", "google", "twitter", "emojione", "messenger", "facebook"] as Array< - EmojiProps["set"] | "native" - >).map(set => { - const props = { disabled: !this.state.native && set === this.state.set }; - - if (set === "native" && this.state.native) { - props.disabled = true; - } - - return ( - - ); - })} -
- -
- -
-
- ); - } -} - -const AutoCompleteExample: React.FC = () => { - const [search, setSearch] = useState(""); - const changed = (e: React.ChangeEvent) => { - const target = e.target as { value: any }; - setSearch(target.value); - }; - - const match = search.match(/:([a-z_]+)(:)?/); - let suggestions: ReturnType = []; - if (match && match[2]) { - // smiley is closed - let emoji = emojiIndex.emojis[match[1]]; - const isSingleEmoji = (e: EmojiEntry): e is EmojiData => { - return "name" in e; - }; - const isNativeEmoji = (e: EmojiData): e is BaseEmoji => { - return "native" in e; - }; - if (!isSingleEmoji(emoji)) { - emoji = emoji[1]; - } - const native = (isNativeEmoji(emoji) && emoji.native) || ""; - setSearch(search.replace(match[0], native)); - } else if (match && match[1].length > 2) { - suggestions = emojiIndex.search(match[1]) || []; - } - return ( -
- {suggestions.map(emoji => { - return "native" in emoji && {emoji.native}; - })} - {match &&
{match[0]}
} - -
- ); -}; diff --git a/types/emoji-mart/index.d.ts b/types/emoji-mart/index.d.ts deleted file mode 100644 index 2739465d58ba87..00000000000000 --- a/types/emoji-mart/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./dist-es"; diff --git a/types/emoji-mart/package.json b/types/emoji-mart/package.json deleted file mode 100644 index 4231fa0b027a92..00000000000000 --- a/types/emoji-mart/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "private": true, - "name": "@types/emoji-mart", - "version": "3.0.9999", - "projects": [ - "https://github.com/missive/emoji-mart" - ], - "dependencies": { - "@types/react": "*" - }, - "devDependencies": { - "@types/emoji-mart": "workspace:." - }, - "owners": [ - { - "name": "Jessica Franco", - "githubUsername": "Jessidhia" - }, - { - "name": "Nick Winans", - "githubUsername": "Nicell" - }, - { - "name": "Elvis Wolcott", - "githubUsername": "elviswolcott" - }, - { - "name": "Tarrence van As", - "githubUsername": "tarrencev" - } - ] -} diff --git a/types/emoji-mart/tsconfig.json b/types/emoji-mart/tsconfig.json deleted file mode 100644 index cfc7a513087ef8..00000000000000 --- a/types/emoji-mart/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "jsx": "react" - }, - "files": [ - "index.d.ts", - "emoji-mart-tests.tsx" - ] -} diff --git a/types/emoji-mart/.npmignore b/types/is-errno-exception/.npmignore similarity index 100% rename from types/emoji-mart/.npmignore rename to types/is-errno-exception/.npmignore diff --git a/types/is-errno-exception/index.d.ts b/types/is-errno-exception/index.d.ts new file mode 100644 index 00000000000000..2ed14ddc3f513e --- /dev/null +++ b/types/is-errno-exception/index.d.ts @@ -0,0 +1,6 @@ +/// + +/** + * Assert that argument are Exception + */ +export function isErrnoException(e: unknown): e is NodeJS.ErrnoException; diff --git a/types/is-errno-exception/package.json b/types/is-errno-exception/package.json new file mode 100644 index 00000000000000..8f9a5257e38daa --- /dev/null +++ b/types/is-errno-exception/package.json @@ -0,0 +1,26 @@ +{ + "private": true, + "name": "@types/is-errno-exception", + "version": "1.2.9999", + "projects": [ + "https://github.com/sosoba/is-errno-exception.git" + ], + "type": "module", + "exports": "./index.d.ts", + "dependencies": { + "@types/node": "*" + }, + "devDependencies": { + "@types/is-errno-exception": "workspace:." + }, + "owners": [ + { + "name": "Sławomir Osoba", + "githubUsername": "sosoba" + }, + { + "name": "Borys Malinowski", + "githubUsername": "coigmalinowski" + } + ] +} diff --git a/types/is-errno-exception/test/is-errno-exception.ts b/types/is-errno-exception/test/is-errno-exception.ts new file mode 100644 index 00000000000000..03eff1d6aeaaa8 --- /dev/null +++ b/types/is-errno-exception/test/is-errno-exception.ts @@ -0,0 +1,9 @@ +import { isErrnoException } from "is-errno-exception"; + +try { + new URL("unknown"); +} catch (e) { + if (isErrnoException(e) && e.code === "ERR_MODULE_NOT_FOUND") { + console.warn(e.code.toLocaleUpperCase()); + } +} diff --git a/types/sumoselect/tsconfig.json b/types/is-errno-exception/tsconfig.json similarity index 91% rename from types/sumoselect/tsconfig.json rename to types/is-errno-exception/tsconfig.json index ac9b128b077226..fea3875ab8472c 100644 --- a/types/sumoselect/tsconfig.json +++ b/types/is-errno-exception/tsconfig.json @@ -7,14 +7,14 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictFunctionTypes": true, "strictNullChecks": true, + "strictFunctionTypes": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", - "sumoselect-tests.ts" + "test/is-errno-exception.ts" ] } diff --git a/types/mixpanel-browser/dist/mixpanel-core.cjs.d.ts b/types/mixpanel-browser/dist/mixpanel-core.cjs.d.ts new file mode 100644 index 00000000000000..f1c27f20e86de7 --- /dev/null +++ b/types/mixpanel-browser/dist/mixpanel-core.cjs.d.ts @@ -0,0 +1 @@ +export * from "../index"; diff --git a/types/mixpanel-browser/dist/mixpanel-with-async-recorder.cjs.d.ts b/types/mixpanel-browser/dist/mixpanel-with-async-recorder.cjs.d.ts new file mode 100644 index 00000000000000..f1c27f20e86de7 --- /dev/null +++ b/types/mixpanel-browser/dist/mixpanel-with-async-recorder.cjs.d.ts @@ -0,0 +1 @@ +export * from "../index"; diff --git a/types/mixpanel-browser/package.json b/types/mixpanel-browser/package.json index 6a730f19e36ad2..8458dce75332dc 100644 --- a/types/mixpanel-browser/package.json +++ b/types/mixpanel-browser/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/mixpanel-browser", - "version": "2.51.9999", + "version": "2.54.9999", "projects": [ "https://github.com/mixpanel/mixpanel-js" ], diff --git a/types/mixpanel-browser/src/loaders/loader-module-core.d.ts b/types/mixpanel-browser/src/loaders/loader-module-core.d.ts new file mode 100644 index 00000000000000..4eb47c3db0570c --- /dev/null +++ b/types/mixpanel-browser/src/loaders/loader-module-core.d.ts @@ -0,0 +1 @@ +export * from "../../index"; diff --git a/types/mixpanel-browser/src/loaders/loader-module-with-async-recorder.d.ts b/types/mixpanel-browser/src/loaders/loader-module-with-async-recorder.d.ts new file mode 100644 index 00000000000000..4eb47c3db0570c --- /dev/null +++ b/types/mixpanel-browser/src/loaders/loader-module-with-async-recorder.d.ts @@ -0,0 +1 @@ +export * from "../../index"; diff --git a/types/mixpanel-browser/tsconfig.json b/types/mixpanel-browser/tsconfig.json index 347982b661ae36..876b6cb7170674 100644 --- a/types/mixpanel-browser/tsconfig.json +++ b/types/mixpanel-browser/tsconfig.json @@ -15,6 +15,10 @@ }, "files": [ "index.d.ts", + "dist/mixpanel-core.cjs.d.ts", + "dist/mixpanel-with-async-recorder.cjs.d.ts", + "src/loaders/loader-module-core.d.ts", + "src/loaders/loader-module-with-async-recorder.d.ts", "mixpanel-browser-tests.ts" ] } diff --git a/types/node/fs.d.ts b/types/node/fs.d.ts index 0b6d52a405fdac..17f742b4891839 100644 --- a/types/node/fs.d.ts +++ b/types/node/fs.d.ts @@ -2544,6 +2544,17 @@ declare module "fs" { options: ReadAsyncOptions, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, ): void; + export function read( + fd: number, + buffer: TBuffer, + options: ReadSyncOptions, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; + export function read( + fd: number, + buffer: TBuffer, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; export function read( fd: number, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void, diff --git a/types/node/test/fs.ts b/types/node/test/fs.ts index 317fb422216c73..14e66483b04250 100644 --- a/types/node/test/fs.ts +++ b/types/node/test/fs.ts @@ -122,6 +122,8 @@ import { CopyOptions, CopySyncOptions, cp, cpSync, glob, globSync } from "fs"; (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => {}, ); fs.read(1, { buffer: Buffer.from("test"), position: 123n }, () => {}); + fs.read(1, Buffer.from("test"), { position: 123n }, () => {}); + fs.read(1, Buffer.from("test"), () => {}); // 2-param version using all-default options: fs.read(1, (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => {}); fs.read(1, () => {}); diff --git a/types/node/v18/fs.d.ts b/types/node/v18/fs.d.ts index 818e357a8af366..771a4d704b7f78 100644 --- a/types/node/v18/fs.d.ts +++ b/types/node/v18/fs.d.ts @@ -2556,6 +2556,17 @@ declare module "fs" { options: ReadAsyncOptions, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, ): void; + export function read( + fd: number, + buffer: TBuffer, + options: ReadSyncOptions, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; + export function read( + fd: number, + buffer: TBuffer, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; export function read( fd: number, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void, diff --git a/types/node/v20/fs.d.ts b/types/node/v20/fs.d.ts index 5a5be8d565a9a2..a19ff8abcc65ba 100644 --- a/types/node/v20/fs.d.ts +++ b/types/node/v20/fs.d.ts @@ -2542,6 +2542,17 @@ declare module "fs" { options: ReadAsyncOptions, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, ): void; + export function read( + fd: number, + buffer: TBuffer, + options: ReadSyncOptions, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; + export function read( + fd: number, + buffer: TBuffer, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, + ): void; export function read( fd: number, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void, diff --git a/types/react/v17/index.d.ts b/types/react/v17/index.d.ts index 8efc3124d785ee..cfb976a878b16e 100644 --- a/types/react/v17/index.d.ts +++ b/types/react/v17/index.d.ts @@ -1591,6 +1591,16 @@ declare namespace React { * presented if they are made. */ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; + /** + * Defines a string value that labels the current element, which is intended to be converted into Braille. + * @see aria-label. + */ + "aria-braillelabel"?: string | undefined; + /** + * Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. + * @see aria-roledescription. + */ + "aria-brailleroledescription"?: string | undefined; /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */ "aria-busy"?: Booleanish | undefined; /** @@ -1608,6 +1618,11 @@ declare namespace React { * @see aria-colcount @see aria-colspan. */ "aria-colindex"?: number | undefined; + /** + * Defines a human readable text alternative of aria-colindex. + * @see aria-rowindextext. + */ + "aria-colindextext"?: string | undefined; /** * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. * @see aria-colindex @see aria-rowspan. @@ -1625,6 +1640,11 @@ declare namespace React { * @see aria-labelledby */ "aria-describedby"?: string | undefined; + /** + * Defines a string value that describes or annotates the current element. + * @see related aria-describedby. + */ + "aria-description"?: string | undefined; /** * Identifies the element that provides a detailed, extended description for the object. * @see aria-describedby. @@ -1749,6 +1769,11 @@ declare namespace React { * @see aria-rowcount @see aria-rowspan. */ "aria-rowindex"?: number | undefined; + /** + * Defines a human readable text alternative of aria-rowindex. + * @see aria-colindextext. + */ + "aria-rowindextext"?: string | undefined; /** * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. * @see aria-rowindex @see aria-colspan. @@ -2503,6 +2528,9 @@ declare namespace React { width?: number | string | undefined; disablePictureInPicture?: boolean | undefined; disableRemotePlayback?: boolean | undefined; + + onResize?: ReactEventHandler | undefined; + onResizeCapture?: ReactEventHandler | undefined; } // this list is "complete" in that it contains every SVG attribute diff --git a/types/react/v17/test/elementAttributes.tsx b/types/react/v17/test/elementAttributes.tsx index 20e9819bc31782..0d25b4c9a4c528 100644 --- a/types/react/v17/test/elementAttributes.tsx +++ b/types/react/v17/test/elementAttributes.tsx @@ -124,4 +124,13 @@ const eventCallbacksTestCases = [ e.currentTarget.optimum} />, e.currentTarget.value} />,