@mintlify/common 1.0.1305 → 1.0.1307
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/dist/apiStaticExportBasePaths.d.ts +1 -1
- package/dist/asyncapi/parser/getExamplesData.js +4 -3
- package/dist/asyncapi/parser/getMessagesData.js +6 -5
- package/dist/asyncapi/parser/getOperationsData.js +4 -3
- package/dist/colors.js +9 -8
- package/dist/css/tailwind.d.ts +1 -1
- package/dist/css/tailwindInternals.d.ts +1 -1
- package/dist/entitlements/index.d.ts +1 -1
- package/dist/frontmatter/index.d.ts +1 -1
- package/dist/frontmatter/index.js +1 -1
- package/dist/frontmatter/parseFrontmatter.d.ts +1 -0
- package/dist/frontmatter/parseFrontmatter.js +1 -0
- package/dist/getDisplayDomain.js +2 -1
- package/dist/getFileCategory.d.ts +2 -2
- package/dist/graphql/resolveGraphqlOperation.d.ts +1 -1
- package/dist/isAbsoluteUrl.d.ts +1 -1
- package/dist/mdx/currencyMath.js +2 -1
- package/dist/mdx/getCodeStyling.d.ts +1 -1
- package/dist/mdx/getMDXOptions.d.ts +2 -2
- package/dist/mdx/islands/extractPackageIslands.js +6 -5
- package/dist/mdx/islands/island-bindings.js +4 -3
- package/dist/mdx/islands/island-module-builder.js +12 -13
- package/dist/mdx/islands/package-page-url.js +4 -2
- package/dist/mdx/islands/package-sources.js +5 -3
- package/dist/mdx/islands/packageImports.js +4 -3
- package/dist/mdx/islands/remarkPackageIslands.js +10 -8
- package/dist/mdx/lib/mdx-utils.d.ts +1 -1
- package/dist/mdx/page-style.js +2 -1
- package/dist/mdx/plugins/rehype/rehypeCodeBlocks/index.js +4 -3
- package/dist/mdx/plugins/rehype/rehypeCodeBlocks/metaOptions.d.ts +4 -4
- package/dist/mdx/plugins/rehype/rehypeCodeBlocks/metaOptions.js +8 -6
- package/dist/mdx/plugins/rehype/rehypeDynamicTailwindCss.js +4 -3
- package/dist/mdx/plugins/remark/pureTemplateComponents.js +6 -8
- package/dist/mdx/plugins/remark/remarkComponentIds.js +6 -8
- package/dist/mdx/plugins/remark/remarkExtractTableOfContents.js +11 -9
- package/dist/mdx/plugins/remark/remarkMdxExpandExpressions.js +10 -7
- package/dist/mdx/plugins/remark/remarkMdxRemoveJs.js +7 -8
- package/dist/mdx/plugins/remark/remarkMdxRemoveUnknownJsx/index.d.ts +1 -1
- package/dist/mdx/plugins/remark/remarkPrompt.js +1 -1
- package/dist/mdx/plugins/remark/remarkVisibilityForMarkdown.d.ts +1 -1
- package/dist/mdx/plugins/remark/remarkVisibilityForMarkdown.js +10 -8
- package/dist/mdx/plugins/remark/staticEvaluator.js +4 -2
- package/dist/mdx/plugins/remark/unfoldComponentsForMarkdown.js +2 -1
- package/dist/mdx/preprocessCustomHeadingIds.d.ts +1 -0
- package/dist/mdx/preprocessCustomHeadingIds.js +6 -5
- package/dist/mdx/server-only/getMdx.d.ts +1 -1
- package/dist/mdx/server-only/getMdx.js +2 -1
- package/dist/mdx/snippets/constants.d.ts +1 -1
- package/dist/mdx/snippets/isBareSpecifier.d.ts +1 -1
- package/dist/mdx/snippets/resolveAllImports.js +21 -29
- package/dist/mdx/snippets/resolveImport/snippetDeclarations.js +4 -7
- package/dist/mdx/utils.d.ts +1 -1
- package/dist/navigation/filterDivisions.js +1 -2
- package/dist/navigation/scopeNavToPath.d.ts +1 -1
- package/dist/navigation/scopeNavToPath.js +4 -4
- package/dist/navigation/updateFirstHrefInDivision.d.ts +1 -1
- package/dist/openapi/additionalOperations.js +6 -5
- package/dist/openapi/encodings.js +2 -1
- package/dist/openapi/generateOpenApiPages.js +17 -16
- package/dist/openapi/getTagDisplayName.d.ts +1 -1
- package/dist/openapi/overlay/errors.d.ts +1 -1
- package/dist/openapi/overlay/overlayRegistry.d.ts +1 -1
- package/dist/openapi/tagHierarchy.js +1 -1
- package/dist/seo/resolveSeoMetatags.js +4 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/AnalyticsEvent.d.ts +2 -2
- package/package.json +3 -3
|
@@ -7,14 +7,14 @@ export declare const PAGE_VIEW_EVENT = "docs.content.view";
|
|
|
7
7
|
* - **noun**: The component or feature being interacted with (e.g., 'expandable', 'search')
|
|
8
8
|
* - **action**: The specific action taken (e.g., 'open', 'click', 'copy')
|
|
9
9
|
*/
|
|
10
|
-
export declare const ANALYTICS_EVENTS: readonly ["docs.content.view",
|
|
10
|
+
export declare const ANALYTICS_EVENTS: readonly ["docs.content.view", 'docs.expandable.open', 'docs.expandable.close', 'docs.accordion.open', 'docs.accordion.close', 'docs.navitem.click', 'docs.navitem.cta_click', 'docs.version.change', 'docs.search.open', 'docs.search.query', 'docs.search.close', 'docs.api_playground.request', 'docs.search.result_click', 'docs.code_block.copy', 'docs.code_block.ask_ai', 'docs.feedback.thumbs_up', 'docs.feedback.thumbs_down', 'docs.footer.powered_by_mintlify_click', 'docs.assistant.enter', 'docs.assistant.completed', 'docs.assistant.shared', 'docs.assistant.source_click', 'docs.assistant.web_search_click', 'docs.assistant.thumbs_up', 'docs.assistant.thumbs_down', 'docs.assistant.suggestion_click', 'docs.assistant.question_option_click', 'docs.assistant.starter_question_clicked', 'docs.assistant.errored', 'docs.assistant.maximize_click', 'docs.assistant.minimize_click', 'docs.assistant.copy_response', 'docs.assistant.ask_ai_on_text_selection', 'docs.assistant.spam_detected', 'docs.assistant.attachment_upload', 'docs.assistant.attachment_rejected', 'docs.assistant.attachment_limit_exceeded', 'docs.assistant.contact_form_shown', 'docs.assistant.contact_support_click', 'docs.context_menu.copy_page', 'docs.context_menu.copy_mcp_link', 'docs.context_menu.ai_provider_click', 'docs.context_menu.install_mcp_server', 'docs.context_menu.copy_add_mcp_command', 'docs.context_menu.download_api_spec', 'docs.autopilot.suggestion.created', 'docs.autopilot.suggestion.no_suggestion', 'mcp.tool_call.search', 'docs.content.md.view', 'docs.banner.atlas_signup_click', 'docs.banner.atlas_claim_click', 'docs.banner.atlas_share_click', 'docs.atlas_content.view', 'docs.search.comparison', 'preview_widget.file_list.viewed', 'preview_widget.file.opened', 'preview_widget.file.editor_opened'];
|
|
11
11
|
export type AnalyticsEvent = (typeof ANALYTICS_EVENTS)[number];
|
|
12
12
|
export declare function isAnalyticsEvent(value: string): value is AnalyticsEvent;
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated Use the new format instead
|
|
15
15
|
* @Date 2025-06-16 (remove this in two months)
|
|
16
16
|
*/
|
|
17
|
-
export declare const DEPRECATED_ANALYTICS_EVENTS: readonly [
|
|
17
|
+
export declare const DEPRECATED_ANALYTICS_EVENTS: readonly ['expandable_open', 'expandable_close', 'accordion_open', 'accordion_close', 'header_nav_item_click', 'cta_click', 'scroll_to_bottom', 'search_close', 'api_playground_call', 'search_result_click', 'chat_enter', 'chat_followup', 'chat_completed', 'code_block_copy', 'chat_shared', 'thumb_vote', 'powered_by_mintlify_click', 'ai_chat_citation_click', 'ai_chat_feedback_positive_click', 'ai_chat_feedback_negative_click', 'ask_ai_code_block', 'assistant.spam_detected'];
|
|
18
18
|
/** @deprecated Use AnalyticsEvent instead */
|
|
19
19
|
export type DeprecatedAnalyticsEvent = (typeof DEPRECATED_ANALYTICS_EVENTS)[number];
|
|
20
20
|
/** @deprecated Use isAnalyticsEvent instead */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1307",
|
|
4
4
|
"description": "Commonly shared code within Mintlify",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|
|
76
76
|
"prepack": "npm run build",
|
|
77
|
-
"build": "
|
|
77
|
+
"build": "tsgo --project tsconfig.build.json",
|
|
78
78
|
"clean:build": "rimraf dist",
|
|
79
79
|
"clean:all": "rimraf node_modules .eslintcache && pnpm clean:build",
|
|
80
80
|
"watch": "tsc --watch",
|
|
@@ -160,5 +160,5 @@
|
|
|
160
160
|
"typescript": "5.5.3",
|
|
161
161
|
"vitest": "2.1.9"
|
|
162
162
|
},
|
|
163
|
-
"gitHead": "
|
|
163
|
+
"gitHead": "30ccd3ad3b9e8ebe888ed95555eda3bc69492cbd"
|
|
164
164
|
}
|