feat(ui): finalize E-TIB modernization with footer redesign, video optimization, and TS fixes
Former-commit-id: 67ac02c8404cc66893fdf97308574701cca6000c
This commit is contained in:
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../hast-util-to-estree@3.1.3/node_modules/hast-util-to-estree
|
||||
Generated
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
// Note: types exposed from `index.d.ts`.
|
||||
export {default} from './lib/index.js'
|
||||
Generated
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @import {Root} from 'hast'
|
||||
* @import {Program} from 'estree'
|
||||
* @import {Options} from 'rehype-recma'
|
||||
*/
|
||||
|
||||
import {toEstree} from 'hast-util-to-estree'
|
||||
|
||||
/**
|
||||
* Plugin to transform HTML (hast) to JS (estree).
|
||||
*
|
||||
* @param {Options | null | undefined} [options]
|
||||
* Configuration (optional).
|
||||
* @returns
|
||||
* Transform.
|
||||
*/
|
||||
export default function rehypeRecma(options) {
|
||||
/**
|
||||
* @param {Root} tree
|
||||
* Tree (hast).
|
||||
* @returns {Program}
|
||||
* Program (esast).
|
||||
*/
|
||||
return function (tree) {
|
||||
return toEstree(tree, options)
|
||||
}
|
||||
}
|
||||
Generated
Vendored
+55
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"bugs": "https://github.com/mdx-js/recma/issues",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
||||
],
|
||||
"description": "recma plugin to transform HTML (hast) to JS (estree)",
|
||||
"dependencies": {
|
||||
"@types/estree": "^1.0.0",
|
||||
"@types/hast": "^3.0.0",
|
||||
"hast-util-to-estree": "^3.0.0"
|
||||
},
|
||||
"exports": "./index.js",
|
||||
"files": [
|
||||
"lib/",
|
||||
"index.d.ts",
|
||||
"index.js"
|
||||
],
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
},
|
||||
"homepage": "https://github.com/mdx-js/recma",
|
||||
"keywords": [
|
||||
"abstract",
|
||||
"ast",
|
||||
"compile",
|
||||
"estree",
|
||||
"hast",
|
||||
"html",
|
||||
"javascript",
|
||||
"jsx",
|
||||
"plugin",
|
||||
"recma-plugin",
|
||||
"recma",
|
||||
"rehype-plugin",
|
||||
"rehype",
|
||||
"syntax",
|
||||
"tree",
|
||||
"unified"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "rehype-recma",
|
||||
"repository": "https://github.com/mdx-js/recma/tree/main/packages/rehype-recma",
|
||||
"scripts": {},
|
||||
"sideEffects": false,
|
||||
"typeCoverage": {
|
||||
"atLeast": 100,
|
||||
"detail": true,
|
||||
"strict": true,
|
||||
"ignoreCatch": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user