Skip to content

Commit

Permalink
build: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Masquerade-Circus committed Sep 27, 2023
1 parent f527128 commit 8918497
Show file tree
Hide file tree
Showing 14 changed files with 10,147 additions and 19,629 deletions.
Binary file modified .tmp/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions dist/dataset/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function deepFreeze(obj) {
}
var DataSet = class {
#vnode;
// eslint-disable-next-line no-unused-vars
#handler;
#data = [];
#isFrozen = false;
Expand Down
1 change: 1 addition & 0 deletions dist/dataset/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function deepFreeze(obj) {
}
var DataSet = class {
#vnode;
// eslint-disable-next-line no-unused-vars
#handler;
#data = [];
#isFrozen = false;
Expand Down
18 changes: 18 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ var reservedProps = {
key: true,
state: true,
"v-keep": true,
// Built in directives
"v-if": true,
"v-unless": true,
"v-for": true,
Expand Down Expand Up @@ -173,8 +174,11 @@ var hideDirective = (test) => (bool, vnode, oldnode) => {
}
};
var directives = {
// The "v-if" directive hides an element if the given condition is false
"v-if": hideDirective(false),
// The "v-unless" directive hides an element if the given condition is true
"v-unless": hideDirective(true),
// The "v-for" directive creates a loop and applies a callback function to each item in the loop
"v-for": (set, vnode) => {
let newChildren = [];
let callback = vnode.children[0];
Expand All @@ -183,17 +187,21 @@ var directives = {
}
vnode.children = newChildren;
},
// The "v-show" directive shows or hides an element by setting the "display" style property
"v-show": (bool, vnode) => {
vnode.dom.style.display = bool ? "" : "none";
},
// The "v-class" directive adds or removes class names from an element based on a condition
"v-class": (classes, vnode) => {
for (let name in classes) {
vnode.dom.classList.toggle(name, classes[name]);
}
},
// The "v-html" directive sets the inner HTML of an element to the given HTML string
"v-html": (html, vnode) => {
vnode.children = [trust(html)];
},
// The "v-model" directive binds the value of an input element to a model property
"v-model": ([model, property, event], vnode, oldVnode) => {
let value;
let handler = (e) => model[property] = e.target.value;
Expand Down Expand Up @@ -284,6 +292,10 @@ var directives = {
oldVnode
);
},
// The "v-create" directive is called when a new virtual node is created.
// The provided callback function is called with the new virtual node as an argument.
// This directive is only called once per virtual node, when it is first created.
// eslint-disable-next-line no-unused-vars
"v-create": (callback, vnode, oldVnode) => {
if (!oldVnode) {
let cleanup = callback(vnode);
Expand All @@ -292,6 +304,9 @@ var directives = {
}
}
},
// The "v-update" directive is called when an existing virtual node is updated.
// The provided callback function is called with the new and old virtual nodes as arguments.
// This directive is only called once per virtual node update.
"v-update": (callback, vnode, oldVnode) => {
if (oldVnode) {
let cleanup = callback(vnode, oldVnode);
Expand All @@ -300,6 +315,9 @@ var directives = {
}
}
},
// The "v-cleanup" directive is called when the update is cleaned up.
// The provided callback function is called with the old virtual node as an argument.
// This directive is only called once per virtual node, when the update is cleaned up.
"v-cleanup": (callback, vnode, oldVnode) => {
onCleanup(() => callback(vnode, oldVnode));
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js.map

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ var reservedProps = {
key: true,
state: true,
"v-keep": true,
// Built in directives
"v-if": true,
"v-unless": true,
"v-for": true,
Expand Down Expand Up @@ -127,8 +128,11 @@ var hideDirective = (test) => (bool, vnode, oldnode) => {
}
};
var directives = {
// The "v-if" directive hides an element if the given condition is false
"v-if": hideDirective(false),
// The "v-unless" directive hides an element if the given condition is true
"v-unless": hideDirective(true),
// The "v-for" directive creates a loop and applies a callback function to each item in the loop
"v-for": (set, vnode) => {
let newChildren = [];
let callback = vnode.children[0];
Expand All @@ -137,17 +141,21 @@ var directives = {
}
vnode.children = newChildren;
},
// The "v-show" directive shows or hides an element by setting the "display" style property
"v-show": (bool, vnode) => {
vnode.dom.style.display = bool ? "" : "none";
},
// The "v-class" directive adds or removes class names from an element based on a condition
"v-class": (classes, vnode) => {
for (let name in classes) {
vnode.dom.classList.toggle(name, classes[name]);
}
},
// The "v-html" directive sets the inner HTML of an element to the given HTML string
"v-html": (html, vnode) => {
vnode.children = [trust(html)];
},
// The "v-model" directive binds the value of an input element to a model property
"v-model": ([model, property, event], vnode, oldVnode) => {
let value;
let handler = (e) => model[property] = e.target.value;
Expand Down Expand Up @@ -238,6 +246,10 @@ var directives = {
oldVnode
);
},
// The "v-create" directive is called when a new virtual node is created.
// The provided callback function is called with the new virtual node as an argument.
// This directive is only called once per virtual node, when it is first created.
// eslint-disable-next-line no-unused-vars
"v-create": (callback, vnode, oldVnode) => {
if (!oldVnode) {
let cleanup = callback(vnode);
Expand All @@ -246,6 +258,9 @@ var directives = {
}
}
},
// The "v-update" directive is called when an existing virtual node is updated.
// The provided callback function is called with the new and old virtual nodes as arguments.
// This directive is only called once per virtual node update.
"v-update": (callback, vnode, oldVnode) => {
if (oldVnode) {
let cleanup = callback(vnode, oldVnode);
Expand All @@ -254,6 +269,9 @@ var directives = {
}
}
},
// The "v-cleanup" directive is called when the update is cleaned up.
// The provided callback function is called with the old virtual node as an argument.
// This directive is only called once per virtual node, when the update is cleaned up.
"v-cleanup": (callback, vnode, oldVnode) => {
onCleanup(() => callback(vnode, oldVnode));
}
Expand Down
75 changes: 73 additions & 2 deletions dist/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
Expand All @@ -37,7 +41,8 @@ __export(node_exports, {
module.exports = __toCommonJS(node_exports);

// lib/node/utils/tree-adapter.ts
var Node = class {
var Node = class _Node {
// eslint-disable-next-line no-use-before-define
childNodes = [];
baseURI = "";
tag_name;
Expand Down Expand Up @@ -74,6 +79,7 @@ var Node = class {
get nodeValue() {
return this.node_value;
}
// eslint-disable-next-line no-use-before-define
parent_node = null;
get parentNode() {
return this.parent_node;
Expand Down Expand Up @@ -135,7 +141,7 @@ var Node = class {
}
return node2;
}
let node = new Node();
let node = new _Node();
node.nodeType = this.nodeType;
node.nodeName = this.nodeName;
return node;
Expand Down Expand Up @@ -189,8 +195,67 @@ var Node = class {
}
return elementFound || null;
}
// Not implemented
// firstChild!: ChildNode | null;
// isConnected!: boolean;
// lastChild!: ChildNode | null;
// nextSibling!: ChildNode | null;
// ownerDocument!: Document | null;
// parentElement!: HTMLElement | null;
// previousSibling!: ChildNode | null;
// compareDocumentPosition(other: Node): number {
// throw new Error("Method not implemented.");
// }
// contains(other: Node | null): boolean {
// throw new Error("Method not implemented.");
// }
// getRootNode(options?: GetRootNodeOptions | undefined): Node {
// throw new Error("Method not implemented.");
// }
// hasChildNodes(): boolean {
// throw new Error("Method not implemented.");
// }
// isDefaultNamespace(namespace: string | null): boolean {
// throw new Error("Method not implemented.");
// }
// isEqualNode(otherNode: Node | null): boolean {
// throw new Error("Method not implemented.");
// }
// isSameNode(otherNode: Node | null): boolean {
// throw new Error("Method not implemented.");
// }
// lookupNamespaceURI(prefix: string | null): string | null {
// throw new Error("Method not implemented.");
// }
// lookupPrefix(namespace: string | null): string | null {
// throw new Error("Method not implemented.");
// }
// normalize(): void {
// throw new Error("Method not implemented.");
// }
// ATTRIBUTE_NODE!: number;
// CDATA_SECTION_NODE!: number;
// COMMENT_NODE!: number;
// DOCUMENT_FRAGMENT_NODE!: number;
// DOCUMENT_NODE!: number;
// DOCUMENT_POSITION_CONTAINED_BY!: number;
// DOCUMENT_POSITION_CONTAINS!: number;
// DOCUMENT_POSITION_DISCONNECTED!: number;
// DOCUMENT_POSITION_FOLLOWING!: number;
// DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC!: number;
// DOCUMENT_POSITION_PRECEDING!: number;
// DOCUMENT_TYPE_NODE!: number;
// ELEMENT_NODE!: number;
// ENTITY_NODE!: number;
// ENTITY_REFERENCE_NODE!: number;
// NOTATION_NODE!: number;
// PROCESSING_INSTRUCTION_NODE!: number;
// TEXT_NODE!: number;
addEventListener(type, callback, options) {
}
// dispatchEvent(event: Event): boolean {
// throw new Error("Method not implemented.");
// }
removeEventListener(type, callback, options) {
}
};
Expand Down Expand Up @@ -655,6 +720,7 @@ async function icons(source, configuration) {
icons.options = {
iconsPath: null,
linksViewPath: null,
// favicons options
path: "",
appName: null,
appDescription: null,
Expand All @@ -678,6 +744,7 @@ icons.options = {
firefox: false,
windows: true,
yandex: false
// Create Yandex browser icon. `boolean`
}
};

Expand All @@ -696,7 +763,9 @@ async function inline(file, options = {}) {
let emitDeclaration = !!declarationDir;
let tscProgOptions = {
basePath: process.cwd(),
// always required, used for relative paths
configFilePath: "tsconfig.json",
// config to inherit from (optional)
files: [file],
include: ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx", "**/*.mjs"],
exclude: ["test*/**/*", "**/*.test.ts", "**/*.spec.ts", "dist/**"],
Expand Down Expand Up @@ -776,6 +845,7 @@ async function inline(file, options = {}) {
},
2: {
restructureRules: true
// controls rule restructuring; defaults to false
}
},
...options.cleanCss || {}
Expand Down Expand Up @@ -814,6 +884,7 @@ inline.uncss = async function(renderedHtml, css, options = {}) {
},
2: {
restructureRules: true
// controls rule restructuring; defaults to false
}
},
...options.cleanCss || {}
Expand Down
Loading

0 comments on commit 8918497

Please sign in to comment.