Skip to content

Commit

Permalink
Release v2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jun 20, 2024
1 parent 10000da commit 29894ca
Show file tree
Hide file tree
Showing 20 changed files with 69 additions and 61 deletions.
2 changes: 1 addition & 1 deletion dist/blogger-tweaks.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/layouts/block-duo.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Block Duo layout -- Two big columns followed by a single footer
Expand Down
3 changes: 2 additions & 1 deletion dist/layouts/color-blocks.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Color Blocks layout -- Two columns of colorful blocks
Expand Down Expand Up @@ -107,6 +107,7 @@ main >div >section >fieldset {
margin-bottom: 1em;
}
main >div >section >fieldset >legend {
font-size: 1rem;
font-weight: normal;
border: 1px solid;
border-color: inherit;
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/color-slide.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Color Slide layout -- Top to botttom color transition
Expand Down
3 changes: 1 addition & 2 deletions dist/layouts/letterbox.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Letterbox layout -- Edge-to-edge semi-opaque bar over cover background image
Expand Down Expand Up @@ -60,7 +60,6 @@ main >section:first-child >div {
main >section:first-child #social-buttons {
margin: 30px auto 5px auto;
}
main >section .box, /* deprecated */
main >section .display-box {
display: inline-block;
font-size: 0.9rem;
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/modern.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Modern layout -- Clean blog post page
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/neon.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Neon layout -- For hackers and space junkies
Expand Down
2 changes: 1 addition & 1 deletion dist/layouts/neon.min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License
//! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License
const numNeonImages=8;const randomImage=Date.now()%numNeonImages+1;globalThis.document.body.classList.add("neon-image-"+String(randomImage));
2 changes: 1 addition & 1 deletion dist/layouts/vertical-bars.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Vertical Bars layout -- traditional boring old-school webpage
Expand Down
14 changes: 1 addition & 13 deletions dist/layouts/zebra-sections.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License */
/*! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License */

/*
Zebra Sections layout -- Edge-to-edge blocks with alternating background colors
Expand Down Expand Up @@ -184,9 +184,6 @@ main >section figure {
vertical-align: top;
padding: 0px 10px;
}
main >section >figure {
display: block;
}
main >section figure img.popup-image {
height: 120px;
max-width: none;
Expand All @@ -201,15 +198,6 @@ main >section figure figcaption {
main >section code {
white-space: normal;
}
main >section >blockquote { /* deprecated */
font-style: italic;
}
main >section >blockquote cite { /* deprecated */
display: block;
font-size: 0.8rem;
font-weight: 100;
font-style: normal;
}
body >footer {
flex-direction: column;
text-align: center;
Expand Down
11 changes: 9 additions & 2 deletions dist/lib-x.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License
//! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License

export type GlobalKey = keyof typeof globalThis;
export type Json = string | number | boolean | null | undefined | JsonObject | Json[];
Expand Down Expand Up @@ -86,6 +86,12 @@ declare const libX: {
[key: symbol]: unknown;
};
cloneState(clone: Element): Element;
componentState(elem: Element): {
[key: string]: unknown;
[key: number]: unknown;
[key: symbol]: unknown;
};
removeState(elem: Element): Element;
create<K extends string>(tag: K, options?: {
id?: string;
subTags?: string[];
Expand All @@ -98,7 +104,6 @@ declare const libX: {
text?: string;
type?: string;
}): K extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[K] : HTMLElement;
removeState(elem: Element): Element;
select(selector: string): HTMLElement | null;
selectAll(selector: string): HTMLElement[];
hasClass(elems: Element[] | HTMLCollection | NodeListOf<Element>, className: string): boolean;
Expand Down Expand Up @@ -163,11 +168,13 @@ declare const libX: {
loadImageFadeIn(elem: Element, url: string, duration?: number): Promise<Element>;
setupVideos(): void;
setupForkMe(): Element | null;
getComponent(elem: Element): Element | null;
};
util: {
cleanupEmail(email: string): string | null;
isObj(thing: unknown): boolean;
removeWhitespace(text: string): string;
assert(ok: boolean | unknown, message: string, info: unknown): void;
};
nav: {
setupLinkMenu(): HTMLElement | null;
Expand Down
29 changes: 21 additions & 8 deletions dist/lib-x.dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License
//! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License

const libXDom = {
stateDepot: [],
Expand All @@ -20,6 +20,17 @@ const libXDom = {
libX.dom.forEach(clone.getElementsByClassName('libx-state'), copy);
return clone;
},
componentState(elem) {
const component = libX.ui.getComponent(elem);
libX.util.assert(component, 'Component not found for element', elem);
return libX.dom.state(component);
},
removeState(elem) {
const data = elem.dataset;
if (data.libXState)
libX.dom.stateDepot[Number(data.libXState)] = {};
return elem;
},
create(tag, options) {
const elem = globalThis.document.createElement(tag);
if (options?.id)
Expand All @@ -44,12 +55,6 @@ const libXDom = {
options.subTags.forEach(subTag => elem.appendChild(globalThis.document.createElement(subTag)));
return elem;
},
removeState(elem) {
const data = elem.dataset;
if (data.libXState)
libX.dom.stateDepot[Number(data.libXState)] = {};
return elem;
},
select(selector) {
return globalThis.document.body.querySelector(selector);
},
Expand Down Expand Up @@ -515,6 +520,9 @@ const libXUi = {
};
return forkMe ? wrap() : null;
},
getComponent(elem) {
return elem?.closest('[data-component]') ?? null;
},
};
const libXUtil = {
cleanupEmail(email) {
Expand All @@ -527,6 +535,11 @@ const libXUtil = {
removeWhitespace(text) {
return text.replace(/\s/g, '');
},
assert(ok, message, info) {
const quoteStr = (info) => typeof info === 'string' ? `"${info}"` : String(info);
if (!ok)
throw Error(`[dna-engine] ${message} --> ${quoteStr(info)}`);
},
};
const libXNav = {
setupLinkMenu() {
Expand Down Expand Up @@ -826,7 +839,7 @@ const libXExtra = {
},
};
const libX = {
version: '2.2.2',
version: '2.2.3',
dom: libXDom,
ui: libXUi,
util: libXUtil,
Expand Down
29 changes: 21 additions & 8 deletions dist/lib-x.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! web-ignition v2.2.2 ~~ https://github.com/center-key/web-ignition ~~ MIT License
//! web-ignition v2.2.3 ~~ https://github.com/center-key/web-ignition ~~ MIT License

const libXDom = {
stateDepot: [],
Expand All @@ -20,6 +20,17 @@ const libXDom = {
libX.dom.forEach(clone.getElementsByClassName('libx-state'), copy);
return clone;
},
componentState(elem) {
const component = libX.ui.getComponent(elem);
libX.util.assert(component, 'Component not found for element', elem);
return libX.dom.state(component);
},
removeState(elem) {
const data = elem.dataset;
if (data.libXState)
libX.dom.stateDepot[Number(data.libXState)] = {};
return elem;
},
create(tag, options) {
const elem = globalThis.document.createElement(tag);
if (options?.id)
Expand All @@ -44,12 +55,6 @@ const libXDom = {
options.subTags.forEach(subTag => elem.appendChild(globalThis.document.createElement(subTag)));
return elem;
},
removeState(elem) {
const data = elem.dataset;
if (data.libXState)
libX.dom.stateDepot[Number(data.libXState)] = {};
return elem;
},
select(selector) {
return globalThis.document.body.querySelector(selector);
},
Expand Down Expand Up @@ -515,6 +520,9 @@ const libXUi = {
};
return forkMe ? wrap() : null;
},
getComponent(elem) {
return elem?.closest('[data-component]') ?? null;
},
};
const libXUtil = {
cleanupEmail(email) {
Expand All @@ -527,6 +535,11 @@ const libXUtil = {
removeWhitespace(text) {
return text.replace(/\s/g, '');
},
assert(ok, message, info) {
const quoteStr = (info) => typeof info === 'string' ? `"${info}"` : String(info);
if (!ok)
throw Error(`[dna-engine] ${message} --> ${quoteStr(info)}`);
},
};
const libXNav = {
setupLinkMenu() {
Expand Down Expand Up @@ -826,7 +839,7 @@ const libXExtra = {
},
};
const libX = {
version: '2.2.2',
version: '2.2.3',
dom: libXDom,
ui: libXUi,
util: libXUtil,
Expand Down
4 changes: 2 additions & 2 deletions dist/lib-x.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 29894ca

Please sign in to comment.