-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/seed_product_collections
- Loading branch information
Showing
758 changed files
with
12,548 additions
and
1,897 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,13 @@ | ||
--- | ||
"@medusajs/client-types": patch | ||
"medusa-react": patch | ||
"@medusajs/medusa-js": patch | ||
"@medusajs/medusa": patch | ||
"@medusajs/types": patch | ||
--- | ||
|
||
fix(@medusajs/client-types): Fix types and TSDocs | ||
fix(medusa-react): Fix response type of Publishable API Key's list sales channels. | ||
fix(@medusajs/medusa-js): Fix incorrect parameter and response types. | ||
fix(@medusajs/medusa): Fix incorrect types and add TSDocs | ||
fix(@medusajs/types): Fix incorrect types and add TSDocs |
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,10 @@ | ||
--- | ||
"@medusajs/inventory": patch | ||
"@medusajs/modules-sdk": patch | ||
"@medusajs/orchestration": patch | ||
"@medusajs/product": patch | ||
"@medusajs/utils": patch | ||
"@medusajs/workflows": patch | ||
--- | ||
|
||
chore: Add missing version bumps |
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,5 +1,5 @@ | ||
--- | ||
"@medusajs/cache-redis": major | ||
"@medusajs/cache-redis": minor | ||
"@medusajs/cache-inmemory": patch | ||
--- | ||
|
||
|
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,6 @@ | ||
--- | ||
"@medusajs/admin-ui": patch | ||
"@medusajs/admin": patch | ||
--- | ||
|
||
fix(admin-ui): Admin UI: Invalid Request Header |
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,4 +1,18 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const path = require("path") | ||
|
||
const pathPrefix = path.join(__dirname, "..", "..", "..") | ||
|
||
/** @type {import('typedoc').TypeDocOptions} */ | ||
module.exports = { | ||
// extends: [typedocConfig], | ||
plugin: ["typedoc-plugin-markdown-medusa"], | ||
readme: "none", | ||
eslintPathName: path.join( | ||
pathPrefix, | ||
"www/packages/eslint-config-docs/content.js" | ||
), | ||
pluginsResolvePath: path.join(pathPrefix, "www"), | ||
// Uncomment this when debugging | ||
// showConfig: true, | ||
} |
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
6 changes: 6 additions & 0 deletions
6
docs-util/packages/typedoc-config/extended-tsconfig/js-client.json
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,6 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tsconfig", | ||
"extends": [ | ||
"../../../../packages/medusa-js/tsconfig.json" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
docs-util/packages/typedoc-config/extended-tsconfig/medusa.json
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,6 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tsconfig", | ||
"extends": [ | ||
"../../../../packages/medusa/tsconfig.json" | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
docs-util/packages/typedoc-config/extended-tsconfig/tsdoc.json
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,22 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", | ||
"extends": ["typedoc/tsdoc.json"], | ||
"tagDefinitions": [ | ||
{ | ||
"tagName": "@featureFlag", | ||
"syntaxKind": "block" | ||
}, | ||
{ | ||
"tagName": "@expandable", | ||
"syntaxKind": "modifier" | ||
}, | ||
{ | ||
"tagName": "@schema", | ||
"syntaxKind": "block" | ||
}, | ||
{ | ||
"tagName": "@apiIgnore", | ||
"syntaxKind": "modifier" | ||
} | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
docs-util/packages/typedoc-config/extended-tsconfig/types.json
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,6 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tsconfig", | ||
"extends": [ | ||
"../../../../packages/types/tsconfig.json" | ||
] | ||
} |
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
File renamed without changes.
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,44 @@ | ||
# typedoc-plugin-custom | ||
|
||
A Typedoc plugin that combines utility plugins for documenting references. | ||
|
||
## Configurations | ||
|
||
### Resolve Reference Configurations | ||
|
||
The [`resolve-reference-plugin`](./src/resolve-references-plugin.ts) imitates the [`typedoc-plugin-missing-exports`](https://www.npmjs.com/package/typedoc-plugin-missing-exports) plugin. So, it accepts the same options as the [`typedoc-plugin-missing-exports`](https://www.npmjs.com/package/typedoc-plugin-missing-exports) plugin. | ||
|
||
### Frontmatter | ||
|
||
`frontmatterData` is an object of key-value pairs. If none provided, no frontmatter variables will be added to the Markdown files. | ||
|
||
An example of passing it in a JavaScript configuration file: | ||
|
||
```js | ||
frontmatterData: { | ||
displayed_sidebar: "jsClientSidebar", | ||
}, | ||
``` | ||
|
||
### API Ignore | ||
|
||
The `ignoreApi` option is a boolean that indicates whether reflections with the `@apiIgnore` tag should be ignored. If enabled, reflections having this tag are removed from the generated documentation. If disabled (which is the default), the `@apiIgnore` tag is removed from the reflection to ensure it's not shown in the generated documentation. | ||
|
||
### ESLint | ||
|
||
If the `eslintPathName` option is set, code snippets provided in `@example` tag are linted based on the documentation's ESLint rules. | ||
|
||
The following options are useful for linting: | ||
|
||
- `eslintPathName`: The path to the ESLint configuration file. | ||
- `pluginsResolvePath`: The path to resolve plugins used in the ESLint configuration files. | ||
|
||
--- | ||
|
||
## Build the Plugin | ||
|
||
Before using any command that makes use of this plugin, make sure to run the `build` command: | ||
|
||
```bash | ||
yarn build | ||
``` |
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
30 changes: 30 additions & 0 deletions
30
docs-util/packages/typedoc-plugin-custom/src/api-ignore.ts
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,30 @@ | ||
import { | ||
Application, | ||
Context, | ||
Converter, | ||
ParameterType, | ||
ReflectionKind, | ||
} from "typedoc" | ||
|
||
export function load(app: Application) { | ||
app.options.addDeclaration({ | ||
name: "ignoreApi", | ||
help: "Whether to ignore items with the `@apiIgnore` tag.", | ||
type: ParameterType.Boolean, // The default | ||
defaultValue: false, | ||
}) | ||
|
||
app.converter.on(Converter.EVENT_RESOLVE_BEGIN, (context: Context) => { | ||
for (const reflection of context.project.getReflectionsByKind( | ||
ReflectionKind.All | ||
)) { | ||
if (reflection.comment?.hasModifier("@apiIgnore")) { | ||
if (app.options.getValue("ignoreApi")) { | ||
context.project.removeReflection(reflection) | ||
} else { | ||
reflection.comment.removeModifier(`@apiIgnore`) | ||
} | ||
} | ||
} | ||
}) | ||
} |
Oops, something went wrong.