hono 4.0.6 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(render_exports);
|
|
|
27
27
|
var import_constants = require("../constants");
|
|
28
28
|
var import_context = require("../context");
|
|
29
29
|
var import_hooks = require("../hooks");
|
|
30
|
-
var
|
|
30
|
+
var import_context2 = require("./context");
|
|
31
31
|
const eventAliasMap = {
|
|
32
32
|
Change: "Input",
|
|
33
33
|
DoubleClick: "DblClick"
|
|
@@ -297,7 +297,7 @@ const build = (context, node, topLevelErrorHandlerNode, children) => {
|
|
|
297
297
|
child = oldChild;
|
|
298
298
|
}
|
|
299
299
|
} else if (!isNodeString(child) && nameSpaceContext) {
|
|
300
|
-
const ns = (0,
|
|
300
|
+
const ns = (0, import_context.useContext)(nameSpaceContext);
|
|
301
301
|
if (ns) {
|
|
302
302
|
child.n = ns;
|
|
303
303
|
}
|
|
@@ -343,7 +343,7 @@ const buildNode = (node) => {
|
|
|
343
343
|
if (ns) {
|
|
344
344
|
;
|
|
345
345
|
node.n = ns;
|
|
346
|
-
nameSpaceContext || (nameSpaceContext = (0,
|
|
346
|
+
nameSpaceContext || (nameSpaceContext = (0, import_context2.createContext)(""));
|
|
347
347
|
node.children = [
|
|
348
348
|
{
|
|
349
349
|
tag: nameSpaceContext.Provider,
|
package/dist/jsx/dom/render.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/jsx/dom/render.ts
|
|
2
2
|
import { DOM_RENDERER, DOM_ERROR_HANDLER, DOM_STASH } from "../constants.js";
|
|
3
|
-
import { globalContexts as globalJSXContexts } from "../context.js";
|
|
3
|
+
import { globalContexts as globalJSXContexts, useContext } from "../context.js";
|
|
4
4
|
import { STASH_EFFECT } from "../hooks/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { createContext } from "./context.js";
|
|
6
6
|
var eventAliasMap = {
|
|
7
7
|
Change: "Input",
|
|
8
8
|
DoubleClick: "DblClick"
|
package/dist/types/types.d.ts
CHANGED
|
@@ -396,9 +396,13 @@ export type MergeSchemaPath<OrigSchema extends Schema, SubPath extends string> =
|
|
|
396
396
|
input: Input extends {
|
|
397
397
|
param: infer _;
|
|
398
398
|
} ? ExtractParams<SubPath> extends never ? Input : FlattenIfIntersect<Input & {
|
|
399
|
-
param:
|
|
399
|
+
param: {
|
|
400
|
+
[K in keyof ExtractParams<SubPath> as K extends `${infer Prefix}{${infer _}}` ? Prefix : K]: string;
|
|
401
|
+
};
|
|
400
402
|
}> : RemoveBlankRecord<ExtractParams<SubPath>> extends never ? Input : Input & {
|
|
401
|
-
param:
|
|
403
|
+
param: {
|
|
404
|
+
[K in keyof ExtractParams<SubPath> as K extends `${infer Prefix}{${infer _}}` ? Prefix : K]: string;
|
|
405
|
+
};
|
|
402
406
|
};
|
|
403
407
|
output: Output;
|
|
404
408
|
} : never;
|