Skip to content

Commit 5bb2c53

Browse files
authored
Merge pull request #273 from qualcomm/dev
react-mdx scroll styles, typedoc fixes, eslint-config-mdx code block formatting
2 parents ac2b468 + 66f3346 commit 5bb2c53

144 files changed

Lines changed: 2632 additions & 792 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ packages/docs/*/knowledge/
3434
packages/docs/*/public/exports
3535
.wireit
3636
.lint-cache
37+
.pnpm-store
3738

3839
###############################################################################
3940
# Framework-specific outputs

.oxfmtrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.syncpackrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"repository",
2929
"private",
3030
"publishConfig",
31+
"keywords",
3132
"type",
3233
"bin",
3334
"sideEffects",

oxfmt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import config from "@qualcomm-ui/oxfmt-config"
2+
3+
export default config

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"@qualcomm-ui/eslint-plugin-angular": "workspace:*",
6969
"@qualcomm-ui/eslint-plugin-path-alias": "workspace:*",
7070
"@qualcomm-ui/eslint-plugin-react": "workspace:*",
71+
"@qualcomm-ui/oxfmt-config": "workspace:*",
7172
"@qualcomm-ui/tailwind-plugin": "workspace:*",
7273
"@types/node": "catalog:",
7374
"browserslist": "^4.28.1",
@@ -82,7 +83,7 @@
8283
"ignore": "^7.0.5",
8384
"npm-check-updates": "^22.2.0",
8485
"npm-run-all2": "catalog:",
85-
"oxfmt": "^0.48.0",
86+
"oxfmt": "catalog:",
8687
"playwright": "^1.60.0",
8788
"prettier": "^3.8.3",
8889
"prettier-plugin-tailwindcss": "^0.7.2",
@@ -92,7 +93,7 @@
9293
"stylelint-config-standard": "^39.0.1",
9394
"stylelint-order": "^7.0.0",
9495
"stylelint-prettier": "^5.0.3",
95-
"syncpack": "^15.0.0",
96+
"syncpack": "^15.3.1",
9697
"tailwindcss": "catalog:",
9798
"tsx": "catalog:",
9899
"turbo": "^2.9.14",

packages/common/qds-core/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,33 @@
2323
"default": "./dist/*/index.js"
2424
},
2525
"./themes/*-dark-full.css": {
26-
"style": "./dist/*-dark-full.min.css",
2726
"import": "./dist/*-dark-full.min.css",
27+
"style": "./dist/*-dark-full.min.css",
2828
"default": "./dist/*-dark-full.min.css"
2929
},
3030
"./themes/*-light-full.css": {
31-
"style": "./dist/*-light-full.min.css",
3231
"import": "./dist/*-light-full.min.css",
32+
"style": "./dist/*-light-full.min.css",
3333
"default": "./dist/*-light-full.min.css"
3434
},
3535
"./themes/*-dark.css": {
36-
"style": "./dist/*-dark.min.css",
3736
"import": "./dist/*-dark.min.css",
37+
"style": "./dist/*-dark.min.css",
3838
"default": "./dist/*-dark.min.css"
3939
},
4040
"./themes/*-light.css": {
41-
"style": "./dist/*-light.min.css",
4241
"import": "./dist/*-light.min.css",
42+
"style": "./dist/*-light.min.css",
4343
"default": "./dist/*-light.min.css"
4444
},
4545
"./themes/*-typography.css": {
46-
"style": "./dist/*-typography.min.css",
4746
"import": "./dist/*-typography.min.css",
47+
"style": "./dist/*-typography.min.css",
4848
"default": "./dist/*-typography.min.css"
4949
},
5050
"./styles/components.css": {
51-
"style": "./dist/components.min.css",
5251
"import": "./dist/components.min.css",
52+
"style": "./dist/components.min.css",
5353
"default": "./dist/components.min.css"
5454
}
5555
},

packages/common/typedoc/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @qualcomm-ui/typedoc Changelog
22

3+
## 1.1.3
4+
5+
May 23rd, 2026
6+
7+
### Code Refactoring
8+
9+
- [type-formatter]: replace prettier with oxfmt ([97cd586](https://github.com/qualcomm/qualcomm-ui/commit/97cd586))
10+
11+
### Bug Fixes
12+
13+
- [guards]: quote kebab-case object property identifiers ([f535c90](https://github.com/qualcomm/qualcomm-ui/commit/f535c90))
14+
315
## 1.1.2
416

517
May 22nd, 2026

packages/common/typedoc/build.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@ async function main(argv: string[]) {
66
const IS_WATCH = hasArg(argv, "--watch")
77
const BUILD_MODE = getArg(argv, "--mode") || "production"
88

9+
const external: string[] = [
10+
"@commander-js/extra-typings",
11+
"cosmiconfig",
12+
"oxfmt",
13+
"typedoc",
14+
"typescript",
15+
]
16+
917
const buildOpts: BuildOptions = {
1018
bundle: true,
1119
define: {
1220
"process.env.BUILD_MODE": JSON.stringify(BUILD_MODE),
1321
},
14-
external: [
15-
"typescript",
16-
"prettier",
17-
"typedoc",
18-
"@commander-js/extra-typings",
19-
"cosmiconfig",
20-
],
22+
external,
2123
loader: {
2224
".node": "copy",
2325
},
@@ -34,13 +36,7 @@ async function main(argv: string[]) {
3436
...buildOpts,
3537
banner: {js: "#!/usr/bin/env node"},
3638
entryPoints: ["./src/cli.ts"],
37-
external: [
38-
"typescript",
39-
"prettier",
40-
"typedoc",
41-
"@commander-js/extra-typings",
42-
"cosmiconfig",
43-
],
39+
external,
4440
format: "esm",
4541
logLevel: IS_WATCH ? "error" : "warning",
4642
metafile: true,

packages/common/typedoc/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qualcomm-ui/typedoc",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Documentation generation utilities",
55
"author": "Ryan Bower",
66
"license": "BSD-3-Clause-Clear",
@@ -56,6 +56,7 @@
5656
"inquirer": "^12.1.0",
5757
"lodash-es": "catalog:",
5858
"npm-run-all2": "catalog:",
59+
"oxfmt": "catalog:",
5960
"shx": "catalog:",
6061
"terminate": "^2.6.1",
6162
"tsx": "catalog:",
@@ -66,7 +67,7 @@
6667
"peerDependencies": {
6768
"@commander-js/extra-typings": ">=13.1.0",
6869
"@qualcomm-ui/typedoc-common": "workspace:^1.0.6",
69-
"prettier": ">=3 <4",
70+
"oxfmt": ">=0.51.0",
7071
"typedoc": ">=0.28.4",
7172
"typescript": ">=5.3.3",
7273
"cosmiconfig": ">=9.0.0"

packages/common/typedoc/src/guards.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ export function isUndefinedType(
3838
return type?.type === "intrinsic" && type?.name === "undefined"
3939
}
4040

41+
const identifierName = /^[$A-Z_a-z][$\w]*$/
42+
43+
export function formatObjectPropertyName(name: string) {
44+
return identifierName.test(name) ? name : JSON.stringify(name)
45+
}
46+
4147
export function getTypeFromProperties(
4248
properties: SerializedType["properties"],
4349
) {
@@ -47,7 +53,9 @@ export function getTypeFromProperties(
4753
return properties
4854
.filter((property) => property.name && property.type)
4955
.map((property) => {
50-
return `${property.name}${property.required ? "" : "?"}: ${
56+
return `${formatObjectPropertyName(property.name)}${
57+
property.required ? "" : "?"
58+
}: ${
5159
property.inheritDoc
5260
? property.type
5361
: (property.referencedType ?? property.type)

0 commit comments

Comments
 (0)