🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vuepress-plugin-code-copy

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuepress-plugin-code-copy - npm Package Compare versions

Comparing version

to
1.0.5

3

clientRootMixin.js

@@ -22,3 +22,4 @@ import CodeCopy from './CodeCopy.vue'

backgroundColor: backgroundColor,
successText: successText
successText: successText,
staticIcon: staticIcon
}

@@ -25,0 +26,0 @@ instance.options = { ...options }

@@ -9,4 +9,6 @@ const { path } = require('@vuepress/shared-utils')

backgroundColor: options.backgroundColor || '#0075b8',
backgroundTransition: options.backgroundTransition || true,
successText: options.successText || 'Copied!'
backgroundTransition: options.backgroundTransition !== false,
successText: options.successText || 'Copied!',
staticIcon: options.staticIcon === true
},

@@ -13,0 +15,0 @@ enhanceAppFiles: [path.resolve(__dirname, 'appFile.js')],

{
"name": "vuepress-plugin-code-copy",
"version": "1.0.4",
"version": "1.0.5",
"description": "A Vuepress plugin that adds copy code buttons to all code blocks.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -37,2 +37,4 @@ # Vuepress Code Copy Plugin

successText: String
}
]
]

@@ -84,1 +86,8 @@ }

This sets the text that displays when a user presses the copy button.
### staticIcon
- Type: `Boolean`
- Default: `false`
Copy icon is only visible when hovering over code block or is always visible.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet