update, prepare 0.4.13
This commit is contained in:
Родитель
c008a80baa
Коммит
68277c2406
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -40,7 +40,11 @@ async function fetchDocFromMDN(prop, atRuleName) {
|
|||
let pathSegment = atRuleName ? `${atRuleName}/${prop}` : prop;
|
||||
const url = `https://raw.githubusercontent.com/mdn/content/main/files/en-us/web/css/${pathSegment}/index.md`;
|
||||
try {
|
||||
return extractFirstSentence(await util.download(url));
|
||||
let firstSentence = extractFirstSentence(await util.download(url));
|
||||
if (firstSentence) {
|
||||
firstSentence = firstSentence.replace(/\{\{\s*[\w]+\("([\w-]+)"\)\s*\}\}/g, "$1");
|
||||
}
|
||||
return firstSentence;
|
||||
} catch (e) {
|
||||
}
|
||||
return undefined;
|
||||
|
@ -287,6 +291,19 @@ module.exports = {
|
|||
'text-wrap-mode': `The text-wrap-mode CSS property controls whether the text inside an element is wrapped. The different values provide alternate ways of wrapping the content of a block element. It can also be set, and reset, using the {{CSSXRef("text-wrap")}} shorthand.`,
|
||||
'text-wrap-style': `The text-wrap-style CSS property controls how text inside an element is wrapped. The different values provide alternate ways of wrapping the content of a block element. It can also be set, and reset, using the {{CSSXRef("text-wrap")}} shorthand.`,
|
||||
'text-spacing-trim': `The text-spacing-trim CSS property controls the internal spacing set on Chinese/Japanese/Korean (CJK) punctuation characters between adjacent characters (kerning) and at the start or end of text lines.`,
|
||||
'd': `The d CSS property defines a path to be drawn by the SVG path element. If present, it overrides the element's d attribute.`,
|
||||
'cx': `The cx CSS property defines the x-axis center point of an SVG circle or ellipse element. If present, it overrides the element's cx attribute.`,
|
||||
'cy': `The cy CSS property defines the y-axis center point of an SVG circle or ellipse elements. If present, it overrides the element's cy attribute.`,
|
||||
'dominant-baseline': `The dominant-baseline CSS property specifies the specific baseline used to align the box's text and inline-level contents. It also indicates the default alignment baseline of any boxes participating in baseline alignment in the box's alignment context. If present, it overrides the shape's dominant-baseline attribute.`,
|
||||
'interpolate-size': `The interpolate-size CSS property allows you to enable animations and transitions between a <length-percentage> value and an intrinsic size value such as auto, fit-content, or max-content.`,
|
||||
'position-area': `The position-area CSS property enables an anchor-positioned element to be positioned relative to the edges of its associated anchor element by placing the positioned element on one or more tiles of an implicit 3x3 grid, where the anchoring element is the center cell.`,
|
||||
'position-try-fallbacks': `The position-try-fallbacks CSS property enables you to specify a list of one or more alternative position try fallback options for anchor-positioned elements to be placed relative to their associated anchor elements. When the element would otherwise overflow its inset-modified containing block, the browser will try placing the positioned element in these different fallback positions, in the order provided, until it finds a value that stops it from overflowing its container or the viewport.`,
|
||||
'r': `The r CSS property defines the radius of a circle. It can only be used with the SVG circle element. If present, it overrides the circle's r attribute.`,
|
||||
'rx': `The rx CSS property defines the x-axis, or horizontal, radius of an SVG ellipse and the horizontal curve of the corners of an SVG rect rectangle. If present, it overrides the shape's rx attribute.`,
|
||||
'ry': `The ry CSS property defines the y-axis, or vertical, radius of an SVG ellipse and the vertical curve of the corners of an SVG rect rectangle. If present, it overrides the shape's ry attribute.`,
|
||||
'vector-effect': `The vector-effect CSS property suppresses specific transformation effects in SVG, thus permitting effects like a road on a map staying the same width no matter how the map is zoomed, or allowing a diagram key to retain its position and size regardless of other transforms. It can only be used with SVG elements that accept the vector-effect attribute. When used, the CSS value overrides any values of the element's vector-effect attribute.`,
|
||||
'x': `The x CSS property defines the x-axis coordinate of the top left corner of the SVG rect shape, image image, foreignObject viewport or nested svg viewport relative to the nearest <svg> ancestor's user coordinate system. If present, it overrides the element's x attribute.`,
|
||||
'y': `The y CSS property defines the y-axis coordinate of the top left corner of the SVG rect shape, image image, foreignObject viewport and nested svg viewport relative to the nearest <svg> ancestor's user coordinate system. If present, it overrides the element's y attribute.`,
|
||||
},
|
||||
pseudoSelectorDescriptions: {
|
||||
':defined': 'The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method).',
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,29 +1,31 @@
|
|||
{
|
||||
"name": "@vscode/web-custom-data",
|
||||
"version": "0.4.12",
|
||||
"version": "0.4.13",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@vscode/web-custom-data",
|
||||
"version": "0.4.12",
|
||||
"version": "0.4.13",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@mdn/browser-compat-data": "^5.5.48",
|
||||
"mdn-data": "^2.9.0"
|
||||
"@mdn/browser-compat-data": "^5.6.13",
|
||||
"mdn-data": "^2.12.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@mdn/browser-compat-data": {
|
||||
"version": "5.5.48",
|
||||
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.48.tgz",
|
||||
"integrity": "sha512-ddCsJkVKMfZJS4Ik7ekgoBjMPRdAb7p68+1VSRls3mUWJ2hknSAIOj2gBobRSd/8XdbIRYMsBEpJRl2jhB4sFg==",
|
||||
"dev": true
|
||||
"version": "5.6.13",
|
||||
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.6.13.tgz",
|
||||
"integrity": "sha512-eZOraBiugKZewtS10c7M78OKwL6CBhVzqSQvb5j+WGw/7MdPRfHrP7LuiEoLCeHXfmE414geJjnHPGQ0iAnCyg==",
|
||||
"dev": true,
|
||||
"license": "CC0-1.0"
|
||||
},
|
||||
"node_modules/mdn-data": {
|
||||
"version": "2.9.0",
|
||||
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.9.0.tgz",
|
||||
"integrity": "sha512-mRKpwcgT19Mp/+kU3BAA8onXlmRCs+2pdLAcAQMVYw4yWzDZPmVLYfoDYkdR0y4jvNYRDJp0uIGJggwYk6WMRQ==",
|
||||
"dev": true
|
||||
"version": "2.12.2",
|
||||
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz",
|
||||
"integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==",
|
||||
"dev": true,
|
||||
"license": "CC0-1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@vscode/web-custom-data",
|
||||
"version": "0.4.12",
|
||||
"version": "0.4.13",
|
||||
"license": "MIT",
|
||||
"author": "Visual Studio Code Team",
|
||||
"repository": {
|
||||
|
@ -18,7 +18,7 @@
|
|||
"data/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@mdn/browser-compat-data": "^5.5.48",
|
||||
"mdn-data": "^2.9.0"
|
||||
"@mdn/browser-compat-data": "^5.6.13",
|
||||
"mdn-data": "^2.12.2"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче