-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
005eb4f
commit 4c04669
Showing
146 changed files
with
17,376 additions
and
47,517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@floating-ui/devtools': patch | ||
--- | ||
|
||
chore: removes repeated code between devtools & extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@floating-ui/react-native': patch | ||
'@floating-ui/react-dom': patch | ||
'@floating-ui/devtools': patch | ||
'@floating-ui/react': patch | ||
'@floating-ui/utils': patch | ||
'@floating-ui/core': patch | ||
'@floating-ui/dom': patch | ||
'@floating-ui/vue': patch | ||
--- | ||
|
||
chore: exports .d.mts types, solves #2472 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
const {execSync} = require('node:child_process'); | ||
|
||
// This script is used by the `release.yml` workflow to update the version of the packages being released. | ||
// The standard step is only to run `changeset version` but this does not update the package-lock.json file. | ||
// So we also run `npm install`, which does this update. | ||
// The standard step is only to run `changeset version` but this does not update the lock file. | ||
// So we also run `pnpm install`, which does this update. | ||
// This is a workaround until this is handled automatically by `changeset version`. | ||
// See https://github.com/changesets/changesets/issues/421. | ||
execSync('npx changeset version'); | ||
execSync('npm install'); | ||
execSync('pnpm install --lockfile-only'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,6 @@ stats | |
.next | ||
.parcel-cache | ||
test-results | ||
out | ||
out | ||
out-tsc | ||
.turbo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v18.19.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"bundledPackages": [], | ||
"newlineKind": "crlf", | ||
"enumMemberOrder": "preserve", | ||
"compiler": { | ||
"tsconfigFilePath": "<projectFolder>/tsconfig.json", | ||
"skipLibCheck": false, | ||
"overrideTsconfig": { | ||
"compilerOptions": { | ||
"moduleResolution": "Bundler", | ||
"types": ["node", "resize-observer-browser"], | ||
// api-extractor does not support `paths` in tsconfig.json | ||
"paths": [] | ||
} | ||
} | ||
}, | ||
"apiReport": { | ||
"enabled": false | ||
}, | ||
"docModel": { | ||
"enabled": false | ||
}, | ||
"dtsRollup": { | ||
"enabled": true | ||
}, | ||
"tsdocMetadata": { | ||
"enabled": false | ||
}, | ||
"messages": { | ||
"compilerMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
}, | ||
"extractorMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
}, | ||
"ae-forgotten-export": { | ||
"logLevel": "warning" | ||
}, | ||
"ae-incompatible-release-tags": { | ||
"logLevel": "warning" | ||
}, | ||
"ae-internal-missing-underscore": { | ||
"logLevel": "warning" | ||
}, | ||
"ae-internal-mixed-release-tag": { | ||
"logLevel": "warning" | ||
}, | ||
// TODO: would be nice to ensure proper documentation for all public members | ||
"ae-undocumented": { | ||
"logLevel": "none" | ||
}, | ||
"ae-unresolved-inheritdoc-reference": { | ||
"logLevel": "warning" | ||
}, | ||
"ae-unresolved-inheritdoc-base": { | ||
"logLevel": "warning" | ||
}, | ||
"ae-wrong-input-file-type": { | ||
"logLevel": "error" | ||
}, | ||
// TODO: would be nice to include the release tag in the error message | ||
"ae-missing-release-tag": { | ||
"logLevel": "none" | ||
} | ||
}, | ||
"tsdocMessageReporting": { | ||
"default": { | ||
"logLevel": "none" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// This file is used to declare global types to be used on the project. | ||
// Those global types are declared by rollup replace plugin | ||
// on defineRollupConfig.mts | ||
|
||
declare const __DEV__: boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "config", | ||
"private": true, | ||
"type": "module", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"build": "tsc -b", | ||
"clean": "rimraf dist", | ||
"postinstall": "pnpm run build" | ||
}, | ||
"files": [ | ||
"dist", | ||
"tsconfig.base.json", | ||
"api-extractor.base.json" | ||
], | ||
"bin": { | ||
"build-api": "./scripts/build-api.mjs", | ||
"compat-exports": "./scripts/compat-exports.mjs" | ||
}, | ||
"main": "dist/src/index.mjs", | ||
"module": "dist/src/index.mjs", | ||
"types": "dist/src/index.d.mts", | ||
"devDependencies": { | ||
"glob": "^10.3.10", | ||
"minimist": "^1.2.8", | ||
"zx": "^7.2.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/usr/bin/env node | ||
|
||
//@ts-check | ||
import {glob} from 'glob'; | ||
import minimist from 'minimist'; | ||
import {$, chalk, echo, fs} from 'zx'; | ||
|
||
/** | ||
* @template {string} Keys | ||
* @typedef {{[K in Keys]: string | string[]} & { _: never[]; }} ParseArgs<Keys> | ||
*/ | ||
|
||
const args = /** @type {ParseArgs<'tsc'| 'aec'>} */ ( | ||
minimist(process.argv.slice(2), { | ||
default: { | ||
tsc: './tsconfig.json', | ||
aec: './api-extractor.json', | ||
}, | ||
}) | ||
); | ||
|
||
const tscPaths = await glob(args.tsc); | ||
const aecPaths = await glob(args.aec); | ||
|
||
echo( | ||
chalk.cyan( | ||
`TS Configuration${tscPaths.length > 1 ? 's' : ''}: ${chalk.greenBright( | ||
tscPaths.join(', '), | ||
)}`, | ||
), | ||
); | ||
echo( | ||
chalk.cyan( | ||
`API Extractor configuration${ | ||
aecPaths.length > 1 ? 's' : '' | ||
}: ${chalk.greenBright(aecPaths.join(chalk.gray(', ')))}`, | ||
), | ||
); | ||
|
||
echo(''); | ||
|
||
echo(chalk.cyan(`Running tsc (${chalk.greenBright(tscPaths.join(', '))})`)); | ||
await Promise.all(tscPaths.map((tscPath) => $`npx tsc -b ${tscPath}`)); | ||
|
||
echo( | ||
chalk.cyan( | ||
`Running API Extractor (${chalk.greenBright(aecPaths.join(', '))})`, | ||
), | ||
); | ||
await Promise.all( | ||
aecPaths.map(async (aecPath) => { | ||
await $`npx api-extractor run --local --verbose -c ${aecPath}`; | ||
const configFile = await fs.readJson(aecPath); | ||
if (configFile.dtsRollup?.untrimmedFilePath) { | ||
const path = configFile.dtsRollup.untrimmedFilePath.replace( | ||
'<projectFolder>', | ||
configFile.projectFolder ?? '.', | ||
); | ||
const mdtsPath = path.replace(/\.d\.ts$/, '.d.mts'); | ||
echo( | ||
chalk.cyan( | ||
`Copying ${chalk.greenBright(path)} into ${chalk.greenBright( | ||
mdtsPath, | ||
)}`, | ||
), | ||
); | ||
await fs.copyFile(path, mdtsPath); | ||
} | ||
}), | ||
); |
Oops, something went wrong.