@mintlify/cli 4.0.1572 → 4.0.1574
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.
- package/bin/cli.js +8 -3
- package/bin/tsconfig.build.tsbuildinfo +1 -1
- package/bin/vendor/converter.js +2 -2
- package/package.json +7 -7
- package/src/cli.tsx +6 -0
package/bin/vendor/converter.js
CHANGED
|
@@ -314,14 +314,14 @@ var EXPANDABLE_ATTRS = [
|
|
|
314
314
|
{ name: "title", type: "string", required: true, placeholder: "user" },
|
|
315
315
|
{ name: "defaultOpen", type: "boolean" }
|
|
316
316
|
];
|
|
317
|
-
var VISIBILITY_AUDIENCE_OPTIONS = ["humans", "agents"];
|
|
317
|
+
var VISIBILITY_AUDIENCE_OPTIONS = ["humans", "agents", "signed-in", "signed-out"];
|
|
318
318
|
var VISIBILITY_ATTRS = [
|
|
319
319
|
{
|
|
320
320
|
name: "for",
|
|
321
321
|
type: "string",
|
|
322
322
|
required: true,
|
|
323
323
|
options: VISIBILITY_AUDIENCE_OPTIONS,
|
|
324
|
-
description: "Humans: visible on the web, excluded from Markdown output. Agents: hidden on the web, included in Markdown output."
|
|
324
|
+
description: "Humans: visible on the web, excluded from Markdown output. Agents: hidden on the web, included in Markdown output. Signed in / signed out: shown on the web by login state; signed-in content is excluded from Markdown output. { groups: [...] }: shown to signed-in users in any listed group."
|
|
325
325
|
}
|
|
326
326
|
];
|
|
327
327
|
var UPDATE_ATTRS = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1574",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@inquirer/prompts": "7.9.0",
|
|
48
|
-
"@mintlify/common": "1.0.
|
|
49
|
-
"@mintlify/link-rot": "3.0.
|
|
48
|
+
"@mintlify/common": "1.0.1198",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1406",
|
|
50
50
|
"@mintlify/models": "0.0.364",
|
|
51
|
-
"@mintlify/prebuild": "1.0.
|
|
52
|
-
"@mintlify/previewing": "4.0.
|
|
51
|
+
"@mintlify/prebuild": "1.0.1357",
|
|
52
|
+
"@mintlify/previewing": "4.0.1429",
|
|
53
53
|
"@mintlify/validation": "0.1.885",
|
|
54
54
|
"adm-zip": "0.6.0",
|
|
55
55
|
"chalk": "5.2.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"keytar": "7.9.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@mintlify/editor": "0.0.
|
|
89
|
+
"@mintlify/editor": "0.0.451",
|
|
90
90
|
"@mintlify/ts-config": "2.0.2",
|
|
91
91
|
"@tsconfig/recommended": "1.0.2",
|
|
92
92
|
"@types/detect-port": "1.3.2",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"vitest": "2.1.9",
|
|
106
106
|
"vitest-mock-process": "1.0.4"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "6e59643a033c7ed06e8b49ad859680938153c966"
|
|
109
109
|
}
|
package/src/cli.tsx
CHANGED
|
@@ -151,6 +151,11 @@ export const cli = ({ packageName = 'mint' }: { packageName?: string }) => {
|
|
|
151
151
|
description: 'Mock user groups for local development and testing',
|
|
152
152
|
example: '--groups admin user',
|
|
153
153
|
})
|
|
154
|
+
.option('signed-in', {
|
|
155
|
+
type: 'boolean',
|
|
156
|
+
default: false,
|
|
157
|
+
description: 'Mock a signed-in user with no groups for local development and testing',
|
|
158
|
+
})
|
|
154
159
|
.option('disable-openapi', {
|
|
155
160
|
type: 'boolean',
|
|
156
161
|
default: false,
|
|
@@ -180,6 +185,7 @@ export const cli = ({ packageName = 'mint' }: { packageName?: string }) => {
|
|
|
180
185
|
if (port != undefined) {
|
|
181
186
|
await dev({
|
|
182
187
|
...argv,
|
|
188
|
+
groups: argv.groups ?? (argv.signedIn ? [] : undefined),
|
|
183
189
|
port,
|
|
184
190
|
packageName,
|
|
185
191
|
cliVersion,
|