Skip to content

Commit

Permalink
40efe54 fix: fix up docs build (#6578)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa committed Jun 19, 2024
1 parent d2ab53d commit ed02be9
Show file tree
Hide file tree
Showing 30 changed files with 85 additions and 59 deletions.
Binary file modified bindings/qwik.win32-x64-msvc.node
Binary file not shown.
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/build",
"version": "1.5.7-dev20240617202442",
"version": "1.5.7-dev20240619180045",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions cli.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/cli 1.5.7-dev20240617202442
* @builder.io/qwik/cli 1.5.7-dev20240619180045
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -4889,7 +4889,7 @@ async function printHelp(app) {
await runCommand2(Object.assign(app, { task: args[0], args }));
}
function printVersion() {
console.log("1.5.7-dev20240617202442");
console.log("1.5.7-dev20240619180045");
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions core.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.5.7-dev20240617202442
* @builder.io/qwik 1.5.7-dev20240619180045
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -1560,7 +1560,7 @@
*
* @public
*/
const version = "1.5.7-dev20240617202442";
const version = "1.5.7-dev20240619180045";

const hashCode = (text, hash = 0) => {
for (let i = 0; i < text.length; i++) {
Expand Down
3 changes: 2 additions & 1 deletion core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1992,6 +1992,7 @@ declare interface QwikIntrinsicAttributes {
children?: JSXChildren;
/** Corresponding slot name used to project the element into. */
'q:slot'?: string;
'q:shadowRoot'?: boolean;
fetchPriority?: 'auto' | 'high' | 'low';
}

Expand Down Expand Up @@ -3834,7 +3835,7 @@ export declare type ValueOrPromise<T> = T | Promise<T>;
export declare const _verifySerializable: <T>(value: T, preMessage?: string) => T;

/**
* 1.5.7-dev20240617202442
* 1.5.7-dev20240619180045
*
* @public
*/
Expand Down
2 changes: 1 addition & 1 deletion core.min.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions core.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.5.7-dev20240617202442
* @builder.io/qwik 1.5.7-dev20240619180045
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -1556,7 +1556,7 @@ const dangerouslySetInnerHTML = 'dangerouslySetInnerHTML';
*
* @public
*/
const version = "1.5.7-dev20240617202442";
const version = "1.5.7-dev20240619180045";

const hashCode = (text, hash = 0) => {
for (let i = 0; i < text.length; i++) {
Expand Down
4 changes: 2 additions & 2 deletions core.prod.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.5.7-dev20240617202442
* @builder.io/qwik 1.5.7-dev20240619180045
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -540,7 +540,7 @@
}
const shouldWrapFunctional = (res, node) => !!node.key && (!isJSXNode(res) || !isFunction(res.type) && res.key != node.key);
const dangerouslySetInnerHTML = "dangerouslySetInnerHTML";
const version = "1.5.7-dev20240617202442";
const version = "1.5.7-dev20240619180045";
const hashCode = (text, hash = 0) => {
for (let i = 0; i < text.length; i++) {
hash = (hash << 5) - hash + text.charCodeAt(i), hash |= 0;
Expand Down
4 changes: 2 additions & 2 deletions core.prod.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.5.7-dev20240617202442
* @builder.io/qwik 1.5.7-dev20240619180045
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -829,7 +829,7 @@ const static_subtree = 2;

const dangerouslySetInnerHTML = "dangerouslySetInnerHTML";

const version = "1.5.7-dev20240617202442";
const version = "1.5.7-dev20240619180045";

const hashCode = (text, hash = 0) => {
for (let i = 0; i < text.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/core",
"version": "1.5.7-dev20240617202442",
"version": "1.5.7-dev20240619180045",
"main": "../core.mjs",
"module": "../core.mjs",
"types": "../core.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion jsx-dev-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/jsx-dev-runtime",
"version": "1.5.7-dev20240617202442",
"version": "1.5.7-dev20240619180045",
"main": "../core.mjs",
"module": "../core.mjs",
"types": "../jsx-runtime.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion jsx-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/jsx-runtime",
"version": "1.5.7-dev20240617202442",
"version": "1.5.7-dev20240619180045",
"main": "../core.mjs",
"module": "../core.mjs",
"types": "../jsx-runtime.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions loader/index.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions loader/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/loader",
"version": "1.5.7-dev20240617202442",
"version": "1.5.7-dev20240619180045",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down
8 changes: 4 additions & 4 deletions optimizer.cjs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions optimizer.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion optimizer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/optimizer",
"version": "1.5.7-dev20240617202442",
"version": "1.5.7-dev20240619180045",
"main": "../optimizer.mjs",
"module": "../optimizer.mjs",
"types": "../optimizer.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik",
"version": "1.5.7-dev20240617202442",
"version": "1.5.7-dev20240619180045",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
"license": "MIT",
"main": "./core.mjs",
Expand Down
2 changes: 1 addition & 1 deletion prefetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/prefetch",
"version": "1.5.7-dev20240617202442",
"version": "1.5.7-dev20240619180045",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down
39 changes: 30 additions & 9 deletions qwikloader.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,20 @@
const Q_CONTEXT = "__q_context__";
const win = window;
const events = new Set;
const querySelectorAll = query => doc.querySelectorAll(query);
const roots = new Set([ doc ]);
const nativeQuerySelectorAll = (root, selector) => Array.from(root.querySelectorAll(selector));
const querySelectorAll = query => {
const elements = [];
roots.forEach((root => elements.push(...nativeQuerySelectorAll(root, query))));
return elements;
};
const findShadowRoots = fragment => {
processEventOrNode(fragment);
nativeQuerySelectorAll(fragment, "[q\\:shadowroot]").forEach((parent => {
const shadowRoot = parent.shadowRoot;
shadowRoot && findShadowRoots(shadowRoot);
}));
};
const isPromise = promise => promise && "function" == typeof promise.then;
const broadcast = (infix, ev, type = ev.type) => {
querySelectorAll("[on" + infix + "\\:" + type + "]").forEach((el => dispatch(el, infix, ev, type)));
Expand Down Expand Up @@ -156,6 +169,7 @@
var _a;
const readyState = doc.readyState;
if (!hasInitialized && ("interactive" == readyState || "complete" == readyState)) {
roots.forEach(findShadowRoots);
hasInitialized = 1;
emitEvent("qinit");
(null != (_a = win.requestIdleCallback) ? _a : win.setTimeout).bind(win)((() => emitEvent("qidle")));
Expand All @@ -177,21 +191,28 @@
capture: capture,
passive: !1
});
const push = eventNames => {
for (const eventName of eventNames) {
if (!events.has(eventName)) {
addEventListener(doc, eventName, processDocumentEvent, !0);
addEventListener(win, eventName, processWindowEvent, !0);
events.add(eventName);
const processEventOrNode = (...eventNames) => {
for (const eventNameOrNode of eventNames) {
if ("string" == typeof eventNameOrNode) {
if (!events.has(eventNameOrNode)) {
roots.forEach((root => addEventListener(root, eventNameOrNode, processDocumentEvent, !0)));
addEventListener(win, eventNameOrNode, processWindowEvent, !0);
events.add(eventNameOrNode);
}
} else if (!roots.has(eventNameOrNode)) {
events.forEach((eventName => addEventListener(eventNameOrNode, eventName, processDocumentEvent, !0)));
roots.add(eventNameOrNode);
}
}
};
if (!(Q_CONTEXT in doc)) {
doc[Q_CONTEXT] = 0;
const qwikevents = win.qwikevents;
Array.isArray(qwikevents) && push(qwikevents);
Array.isArray(qwikevents) && processEventOrNode(...qwikevents);
win.qwikevents = {
push: (...e) => push(e)
events: events,
roots: roots,
push: processEventOrNode
};
addEventListener(doc, "readystatechange", processReadyStateChange);
processReadyStateChange();
Expand Down
4 changes: 2 additions & 2 deletions qwikloader.js

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

Loading

0 comments on commit ed02be9

Please sign in to comment.