Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated highlight js and fix broken links #9

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archived/v4/build/p-i2s3rn6x.entry.js

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions docs/build/Button-36d57e33.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { h } from './index-93b10a2a.js';

// Given a set of provided props and extra props,
// merge to two except for the class prop which is concated
const applyProps = (props, extra = {}) => {
const allKeys = new Set(Object.keys(props).concat(Object.keys(extra)));
return Array.from(allKeys).reduce((v, k) => {
if (k in extra) {
if (k === 'class') {
if (typeof extra[k] === 'string') {
v[k] = `${extra[k]} ${props[k] ? props[k] : ''}`;
}
else {
v[k] = Object.assign(Object.assign({}, props[k]), extra[k]);
}
}
else {
v[k] = extra[k];
}
}
else if (k in props) {
v[k] = props[k];
}
return v;
}, {});
};

const Button = (props, children) => (h("button", Object.assign({}, applyProps(props, { class: 'ui-button' })), children));

export { Button as B, applyProps as a };
25 changes: 25 additions & 0 deletions docs/build/_commonjsHelpers-8f072dc7.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

function unwrapExports (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}

function createCommonjsModule(fn, basedir, module) {
return module = {
path: basedir,
exports: {},
require: function (path, base) {
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
}
}, fn(module, module.exports), module.exports;
}

function getCjsExportFromNamespace (n) {
return n && n['default'] || n;
}

function commonjsRequire () {
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
}

export { commonjsGlobal as a, createCommonjsModule as c, unwrapExports as u };
73 changes: 73 additions & 0 deletions docs/build/active-router-4c192dee.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import { h } from './index-93b10a2a.js';

const createProviderConsumer = (defaultState, consumerRender) => {
let listeners = new Map();
let currentState = defaultState;
const updateListener = (fields, instance) => {
if (Array.isArray(fields)) {
[...fields].forEach(fieldName => {
instance[fieldName] = currentState[fieldName];
});
}
else {
instance[fields] = Object.assign({}, currentState);
}
};
const subscribe = (instance, propList) => {
if (!listeners.has(instance)) {
listeners.set(instance, propList);
updateListener(propList, instance);
}
return () => {
if (listeners.has(instance)) {
listeners.delete(instance);
}
};
};
const Provider = ({ state }, children) => {
currentState = state;
listeners.forEach(updateListener);
return children;
};
const Consumer = (props, children) => {
// The casting on subscribe is to allow for crossover through the stencil compiler
// In the future we should allow for generics in components.
return consumerRender(subscribe, children[0]);
};
const injectProps = (Cstr, fieldList) => {
const CstrPrototype = Cstr.prototype;
const cstrConnectedCallback = CstrPrototype.connectedCallback;
const cstrDisconnectedCallback = CstrPrototype.disconnectedCallback;
CstrPrototype.connectedCallback = function () {
subscribe(this, fieldList);
if (cstrConnectedCallback) {
return cstrConnectedCallback.call(this);
}
};
CstrPrototype.disconnectedCallback = function () {
listeners.delete(this);
if (cstrDisconnectedCallback) {
cstrDisconnectedCallback.call(this);
}
};
};
return {
Provider,
Consumer,
injectProps
};
};

const ActiveRouter = createProviderConsumer({
historyType: 'browser',
location: {
pathname: '',
query: {},
key: ''
},
titleSuffix: '',
root: '/',
routeViewsUpdated: () => { }
}, (subscribe, child) => (h("context-consumer", { subscribe: subscribe, renderer: child })));

export { ActiveRouter as A };
31 changes: 31 additions & 0 deletions docs/build/announcement-bar.entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { r as registerInstance, h } from './index-93b10a2a.js';
import './_commonjsHelpers-8f072dc7.js';
import './index-ff62d206.js';
import './Button-36d57e33.js';
import { R as ResponsiveContainer } from './index-5421a3d1.js';
import { P as Prismic } from './prismic-javascript.min-e8451ed1.js';
import { P as PrismicDom } from './prismic-dom.min-c7c2ccaa.js';

const announcementBarCss = "@charset \"UTF-8\";announcement-bar{background:#F8FAFC;box-shadow:0 1px 0px 0 rgba(0, 20, 56, 0.06);position:relative;z-index:999;padding:6px 0 7px;text-align:center;color:#73849A}announcement-bar .container{position:relative;font-size:11px;line-height:1.8em;font-weight:400;letter-spacing:-0.01em;display:flex;flex-wrap:wrap;justify-content:center;align-content:center}announcement-bar .container:before,announcement-bar .container:after{display:none}announcement-bar p{display:inline;margin:4px 0 0;color:#73849A}announcement-bar strong{font-weight:600;color:#020814}announcement-bar a{background-color:var(--color-dodger-blue);color:#fff;border-radius:16px;margin-left:12px;padding:6px 8px 5px;font-weight:600;font-size:9px;line-height:1em;text-decoration:none;text-transform:uppercase;vertical-align:0;white-space:pre;letter-spacing:0.02em;transition:0.2s background-color, 0.2s box-shadow}announcement-bar a::after{font-family:\"Ionicons\";content:\"\";margin-left:3px}announcement-bar a:hover{background-color:--color-dodger-blue-light;box-shadow:0 1px 2px rgba(0, 0, 0, 0.1)}@media (max-width: 768px){announcement-bar{display:none}}.announcement-bar--studio{background-color:#0B0C10;background-image:url(\"https://ionicframework.com/img/products/studio/preheader-bg-2.png\");background-repeat:no-repeat;background-size:1224px 49px;background-position:center;color:#B2BECD;padding:10px 0 12px}.announcement-bar--studio .container{font-size:13px}.announcement-bar--studio .container>div{display:flex;align-items:center;justify-content:center}.announcement-bar--studio .container>div::before{display:block;content:\"\";background-image:url(\"https://ionicframework.com/img/products/studio/studio-logo.svg\");width:78px;height:21px;margin-right:24px}.announcement-bar--studio .container p{margin-bottom:0;color:#b2becd}.announcement-bar--studio a{font-size:11px;padding:10px;margin-left:24px}.announcement-bar--studio a:hover{background-color:#5290ff}";

const AnnouncementBar = class {
constructor(hostRef) {
registerInstance(this, hostRef);
this.apiURL = 'https://ionicframeworkcom.prismic.io/api/v2';
this.getLatest();
}
async getLatest() {
const api = await Prismic.getApi(this.apiURL);
const single = await api.getSingle('ionicons_announcement_bar');
// console.log(single)
this.data = single.data;
}
render() {
if (!this.data || Object.keys(this.data).length === 0)
return;
return (h("nav", { class: this.data.theme === 'Studio' ? 'announcement-bar--studio' : '' }, h(ResponsiveContainer, null, h("div", { innerHTML: PrismicDom.RichText.asHtml(this.data.text) }), h("a", { href: this.data.link.url, target: "_blank" }, this.data.button_text))));
}
};
AnnouncementBar.style = announcementBarCss;

export { AnnouncementBar as announcement_bar };
150 changes: 150 additions & 0 deletions docs/build/app-globals-e0181ab0.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
import { B as BUILD, C as CSS, p as plt, w as win, a as promiseResolve, c as consoleDevInfo, H, d as doc, N as NAMESPACE } from './index-93b10a2a.js';

/*
Stencil Client Patch v1.17.4 | MIT Licensed | https://stenciljs.com
*/
const noop = () => {
/* noop*/
};
const IS_DENO_ENV = typeof Deno !== 'undefined';
const IS_NODE_ENV = !IS_DENO_ENV &&
typeof global !== 'undefined' &&
typeof require === 'function' &&
!!global.process &&
typeof __filename === 'string' &&
(!global.origin || typeof global.origin !== 'string');
const IS_DENO_WINDOWS_ENV = IS_DENO_ENV && Deno.build.os === 'windows';
const getCurrentDirectory = IS_NODE_ENV ? process.cwd : IS_DENO_ENV ? Deno.cwd : () => '/';
const exit = IS_NODE_ENV ? process.exit : IS_DENO_ENV ? Deno.exit : noop;
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
const patchEsm = () => {
// NOTE!! This fn cannot use async/await!
// @ts-ignore
if (BUILD.cssVarShim && !(CSS && CSS.supports && CSS.supports('color', 'var(--c)'))) {
// @ts-ignore
return __sc_import_ionicons_site(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-5ce2b5c4.js').then(() => {
if ((plt.$cssShim$ = win.__cssshim)) {
return plt.$cssShim$.i();
}
else {
// for better minification
return 0;
}
});
}
return promiseResolve();
};
const patchBrowser = () => {
// NOTE!! This fn cannot use async/await!
if (BUILD.isDev && !BUILD.isTesting) {
consoleDevInfo('Running in development mode.');
}
if (BUILD.cssVarShim) {
// shim css vars
plt.$cssShim$ = win.__cssshim;
}
if (BUILD.cloneNodeFix) {
// opted-in to polyfill cloneNode() for slot polyfilled components
patchCloneNodeFix(H.prototype);
}
if (BUILD.profile && !performance.mark) {
// not all browsers support performance.mark/measure (Safari 10)
performance.mark = performance.measure = () => {
/*noop*/
};
performance.getEntriesByName = () => [];
}
// @ts-ignore
const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
? Array.from(doc.querySelectorAll('script')).find(s => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === NAMESPACE)
: null;
const importMeta = "";
const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
// Safari < v11 support: This IF is true if it's Safari below v11.
// This fn cannot use async/await since Safari didn't support it until v11,
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
// so both the ESM file and nomodule file would get downloaded. Only Safari
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
return {
then() {
/* promise noop */
},
};
}
if (!BUILD.safari10 && importMeta !== '') {
opts.resourcesUrl = new URL('.', importMeta).href;
}
else if (BUILD.dynamicImportShim || BUILD.safari10) {
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
if (BUILD.dynamicImportShim) {
patchDynamicImport(opts.resourcesUrl, scriptElm);
}
if (BUILD.dynamicImportShim && !win.customElements) {
// module support, but no custom elements support (Old Edge)
// @ts-ignore
return __sc_import_ionicons_site(/* webpackChunkName: "polyfills-dom" */ './dom-91ed8d21.js').then(() => opts);
}
}
return promiseResolve(opts);
};
const patchDynamicImport = (base, orgScriptElm) => {
const importFunctionName = getDynamicImportFunction(NAMESPACE);
try {
// test if this browser supports dynamic imports
// There is a caching issue in V8, that breaks using import() in Function
// By generating a random string, we can workaround it
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
}
catch (e) {
// this shim is specifically for browsers that do support "esm" imports
// however, they do NOT support "dynamic" imports
// basically this code is for old Edge, v18 and below
const moduleMap = new Map();
win[importFunctionName] = (src) => {
const url = new URL(src, base).href;
let mod = moduleMap.get(url);
if (!mod) {
const script = doc.createElement('script');
script.type = 'module';
script.crossOrigin = orgScriptElm.crossOrigin;
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], { type: 'application/javascript' }));
mod = new Promise(resolve => {
script.onload = () => {
resolve(win[importFunctionName].m);
script.remove();
};
});
moduleMap.set(url, mod);
doc.head.appendChild(script);
}
return mod;
};
}
};
const patchCloneNodeFix = (HTMLElementPrototype) => {
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
HTMLElementPrototype.cloneNode = function (deep) {
if (this.nodeName === 'TEMPLATE') {
return nativeCloneNodeFn.call(this, deep);
}
const clonedNode = nativeCloneNodeFn.call(this, false);
const srcChildNodes = this.childNodes;
if (deep) {
for (let i = 0; i < srcChildNodes.length; i++) {
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
if (srcChildNodes[i].nodeType !== 2) {
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
}
}
}
return clonedNode;
};
};

const globalScripts = () => {};

export { patchEsm as a, globalScripts as g, patchBrowser as p };
25 changes: 25 additions & 0 deletions docs/build/context-consumer.entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { r as registerInstance, i as getElement } from './index-93b10a2a.js';

const ContextConsumer = class {
constructor(hostRef) {
registerInstance(this, hostRef);
this.context = {};
this.renderer = () => null;
}
connectedCallback() {
if (this.subscribe != null) {
this.unsubscribe = this.subscribe(this.el, 'context');
}
}
disconnectedCallback() {
if (this.unsubscribe != null) {
this.unsubscribe();
}
}
render() {
return this.renderer(Object.assign({}, this.context));
}
get el() { return getElement(this); }
};

export { ContextConsumer as context_consumer };
Loading