@pithyjs/core 0.1.0-beta.13 → 0.1.0-beta.14
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.
- package/README.md +3 -1
- package/dist/a11y/focus-trap.d.ts +11 -3
- package/dist/a11y/focus-trap.d.ts.map +1 -1
- package/dist/a11y/focus-trap.js +53 -10
- package/dist/a11y/focus-trap.js.map +1 -1
- package/dist/compile/bindSwitchCases.d.ts.map +1 -1
- package/dist/compile/bindSwitchCases.js +15 -1
- package/dist/compile/bindSwitchCases.js.map +1 -1
- package/dist/compile/binds/bindAfterProjection.d.ts +7 -0
- package/dist/compile/binds/bindAfterProjection.d.ts.map +1 -0
- package/dist/compile/binds/bindAfterProjection.js +32 -0
- package/dist/compile/binds/bindAfterProjection.js.map +1 -0
- package/dist/compile/binds/bindComponentsTags.d.ts.map +1 -1
- package/dist/compile/binds/bindComponentsTags.js +9 -1
- package/dist/compile/binds/bindComponentsTags.js.map +1 -1
- package/dist/compile/compileTemplate.d.ts.map +1 -1
- package/dist/compile/compileTemplate.js +3 -24
- package/dist/compile/compileTemplate.js.map +1 -1
- package/dist/compile/contentProjection.d.ts +9 -0
- package/dist/compile/contentProjection.d.ts.map +1 -1
- package/dist/compile/contentProjection.js +34 -0
- package/dist/compile/contentProjection.js.map +1 -1
- package/dist/compile/renderBranch.js +1 -1
- package/dist/compile/renderBranch.js.map +1 -1
- package/dist/compile/renderChildren.d.ts +3 -1
- package/dist/compile/renderChildren.d.ts.map +1 -1
- package/dist/compile/renderChildren.js +6 -0
- package/dist/compile/renderChildren.js.map +1 -1
- package/dist/runtime/applyBindings.d.ts +6 -2
- package/dist/runtime/applyBindings.d.ts.map +1 -1
- package/dist/runtime/applyBindings.js +41 -22
- package/dist/runtime/applyBindings.js.map +1 -1
- package/dist/runtime/bindings/applyComponent.d.ts.map +1 -1
- package/dist/runtime/bindings/applyComponent.js +2 -0
- package/dist/runtime/bindings/applyComponent.js.map +1 -1
- package/dist/runtime/bindings/applySimple.d.ts.map +1 -1
- package/dist/runtime/bindings/applySimple.js +3 -2
- package/dist/runtime/bindings/applySimple.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applySimple.js","sourceRoot":"","sources":["../../../src/runtime/bindings/applySimple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAgB,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAcxD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEzD,iFAAiF;AAEjF,MAAM,UAAU,QAAQ,CACtB,CAAU,EACV,EAAW,EACX,GAAmB,EACnB,SAAyB;IAEzB,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAET,CAAC;IACd,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,GAAG,KAAK,UAAU,EAAE,CAAC;QACzC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACZ,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,CAAC;AACH,C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CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;;wBAC/D,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACrC,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,YAAY;YACd,CAAC;QACH,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAAC,MAAM,CAAC;QACP,+BAA+B;IACjC,CAAC;AACH,CAAC","sourcesContent":["import { effect, isSignal } from '@pithyjs/signals';\nimport { compileExpression } from '../../compile/compileExpression';\nimport { rejectsScriptSink } from '../../compile/binds/bindBoundAttributes';\nimport { toTextValue } from '../../compile/textValue';\nimport { isSSRMode } from '../../compile/ssrMode';\nimport {\n registerBoundary,\n boundaryForElement,\n setBoundaryError,\n} from '../../compile/binds/bindErrorBoundary';\nimport { applyClassGroup } from '../../compile/binds/bindClassDirectives';\nimport { mountProjection, type SlotMap } from '../../compile/contentProjection';\nimport { bindTextInterpolations } from '../../compile/binds/bindTextInterpolations';\nimport { nodeExpando } from '../../compile/nodeExpando';\nimport type {\n RefDesc,\n ErrorDesc,\n ProjDesc,\n BindDesc,\n InterpDesc,\n EventDesc,\n ClassDesc,\n ClassesDesc,\n StyleDesc,\n BoundDesc,\n BindingContext,\n} from './types';\nimport { nearestCtx, compileWithEvent } from './helpers';\n\n// ─── Individual binding handlers ──────────────────────────────────────────────\n\nexport function applyRef(\n d: RefDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const ref = ctx[d.name] as\n | { set?: (value: Element | null) => void }\n | undefined;\n if (ref && typeof ref.set === 'function') {\n ref.set(el);\n disposers.push(() => ref.set!(null));\n }\n}\n\nexport function applyError(\n d: ErrorDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n // Ensure data-error attribute is set from descriptor (source of truth)\n // so registerBoundary can find the signal name, even if AOT codegen\n // stops emitting the transitional data-error attribute in the future.\n if (d.expr && !el.getAttribute('data-error')) {\n el.setAttribute('data-error', d.expr);\n }\n\n // Register el itself as an error boundary. We use registerBoundary (not\n // bindErrorBoundary) because bindErrorBoundary uses querySelectorAll which\n // only searches children — it would miss el itself.\n registerBoundary(el, ctx, disposers);\n}\n\nexport function applyProjection(\n d: ProjDesc,\n commentMap: Map<string, Comment>,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const anchor = commentMap.get(`slot:${d.name}`);\n if (!anchor) return;\n\n const fallback = d.fallback;\n const anchorExpando = anchor as Comment & {\n __slotName?: string;\n __fallbackFactory?: (\n factoryCtx?: BindingContext\n ) => HTMLElement | DocumentFragment | undefined;\n };\n\n // Set expando properties that extractSlotDefs expects\n anchorExpando.__slotName = d.name;\n if (fallback) {\n anchorExpando.__fallbackFactory = (factoryCtx?: BindingContext) => {\n const result = fallback(factoryCtx || ctx);\n if (result && typeof result.destroy === 'function') {\n disposers.push(result.destroy);\n }\n return result?.el;\n };\n }\n\n // Check for SlotMap in context\n const slotMap = ('__slotMap' in ctx ? ctx.__slotMap : undefined) as\n | SlotMap\n | undefined;\n if (slotMap) {\n const slotDefs = [\n {\n name: d.name,\n anchor,\n fallbackFactory: anchorExpando.__fallbackFactory,\n },\n ];\n const render = slotMap.get(d.name);\n const bound: SlotMap = new Map();\n if (render)\n bound.set(d.name, (slotDisposers, at) => {\n const content = render(slotDisposers, at);\n const pageCtx = nodeExpando(content).__pithyCtx;\n if (pageCtx)\n bindTextInterpolations(content, pageCtx, slotDisposers ?? disposers);\n return content;\n });\n mountProjection(slotDefs, bound, disposers);\n } else if (fallback) {\n // No projected content — mount fallback\n const fallbackResult = fallback(ctx);\n const parent = anchor.parentNode;\n if (parent && fallbackResult?.el) {\n // Capture nodes for cleanup (fragment empties itself on insert)\n const nodes =\n fallbackResult.el instanceof DocumentFragment\n ? Array.from(fallbackResult.el.childNodes)\n : [fallbackResult.el];\n // Insert directly — fragment preserves child order; single node is trivial\n parent.insertBefore(fallbackResult.el, anchor.nextSibling);\n if (typeof fallbackResult.destroy === 'function') {\n disposers.push(fallbackResult.destroy);\n }\n disposers.push(() => {\n for (const node of nodes) {\n if (node.parentNode) node.parentNode.removeChild(node);\n }\n });\n }\n }\n}\n\nexport function applyBind(\n d: BindDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n if (!(el instanceof HTMLElement)) return;\n\n const sig = ctx[d.expr];\n if (!isSignal(sig) || typeof sig.set !== 'function') {\n if (import.meta.env?.DEV) {\n console.warn(`[AOT @bind] \"${d.expr}\" must refer to a writable signal`);\n }\n return;\n }\n const write = sig.set;\n\n const prop = inferBindableProperty(el);\n const target = el as HTMLElement & Record<string, unknown>;\n const stop = effect(() => {\n const value = sig();\n if (target[prop] !== value) target[prop] = value;\n });\n\n const event = prop === 'checked' ? 'change' : 'input';\n const handler = () => {\n write(extractBindableValue(el, prop));\n };\n el.addEventListener(event, handler);\n\n disposers.push(() => {\n el.removeEventListener(event, handler);\n stop();\n });\n}\n\nfunction inferBindableProperty(el: HTMLElement): string {\n const tag = el.tagName.toLowerCase();\n if (tag === 'input') {\n const type = (el as HTMLInputElement).type;\n if (type === 'checkbox' || type === 'radio') return 'checked';\n }\n return 'value';\n}\n\n/** Extract value from element with type coercion for number inputs. */\nfunction extractBindableValue(el: HTMLElement, prop: string): unknown {\n if (prop === 'checked') return (el as HTMLInputElement).checked;\n\n const tag = el.tagName.toLowerCase();\n if (tag === 'input') {\n const inputEl = el as HTMLInputElement;\n if (inputEl.type === 'number') {\n const numValue = Number(inputEl.value);\n return isNaN(numValue) ? inputEl.value : numValue;\n }\n return inputEl.value;\n }\n\n return (el as HTMLElement & Record<string, unknown>)[prop];\n}\n\nexport function applyInterpolation(\n d: InterpDesc,\n el: Element | DocumentFragment,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n // Find text nodes within el that contain {{ }} markers\n const walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT);\n let textNode: Text | null;\n const targets: Text[] = [];\n\n const rootLevel = d.pid === '';\n while ((textNode = walker.nextNode() as Text | null)) {\n const val = textNode.nodeValue ?? '';\n if (!val.includes('{{')) continue;\n if (rootLevel && textNode.parentElement?.closest('[data-pid]')) continue;\n targets.push(textNode);\n break;\n }\n\n if (targets.length === 0 && import.meta.env?.DEV) {\n console.warn(\n `[AOT interp] No text node with {{ }} markers found ${rootLevel ? 'at the template root' : `in element pid=\"${d.pid}\"`}`\n );\n }\n\n // Process each target text node matching this interpolation descriptor\n for (const node of targets) {\n const localCtx = nearestCtx(node, ctx);\n const parent = node.parentNode;\n if (!parent) continue;\n\n const nextSibling = node.nextSibling;\n parent.removeChild(node);\n\n for (const part of d.parts) {\n if ('s' in part) {\n // Static text\n parent.insertBefore(document.createTextNode(part.s), nextSibling);\n } else {\n // Dynamic expression\n const expr = part.e;\n const startComment = document.createComment('t');\n const dynText = document.createTextNode('');\n const endComment = document.createComment('/t');\n\n parent.insertBefore(startComment, nextSibling);\n parent.insertBefore(dynText, nextSibling);\n parent.insertBefore(endComment, nextSibling);\n\n try {\n const compiledFn = compileExpression(expr, localCtx);\n\n if (isSSRMode()) {\n try {\n dynText.nodeValue = toTextValue(compiledFn());\n } catch {\n dynText.nodeValue = '';\n }\n } else {\n let lastValue: string | undefined;\n const stop = effect(() => {\n try {\n const next = toTextValue(compiledFn());\n if (next !== lastValue) {\n dynText.nodeValue = next;\n lastValue = next;\n }\n } catch {\n dynText.nodeValue = '';\n }\n });\n disposers.push(stop);\n }\n } catch {\n dynText.nodeValue = '';\n }\n }\n }\n\n // Only process the first matching text node per interpolation descriptor\n break;\n }\n}\n\n/** Per-element, per-event idempotency guard (mirrors JIT's BOUND_KEY symbol). */\nconst AOT_BOUND_KEY: unique symbol = Symbol('pithy:aot-bound');\n\nfunction getAotBoundSet(el: Element, eventName: string): Set<string> {\n const host = el as Element & {\n [AOT_BOUND_KEY]?: Record<string, Set<string>>;\n };\n const store =\n host[AOT_BOUND_KEY] ??\n (host[AOT_BOUND_KEY] = Object.create(null) as Record<string, Set<string>>);\n return (store[eventName] ??= new Set<string>());\n}\n\nexport function applyEvent(\n d: EventDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n // Idempotency: skip if this exact event+expr combo was already bound\n const boundSet = getAotBoundSet(el, d.event);\n const boundKey = `${d.event}${d.mods ? '.' + d.mods.join('.') : ''}=${d.expr}`;\n if (boundSet.has(boundKey)) return;\n\n const localCtx = nearestCtx(el, ctx);\n const mods = parseMods(d.mods);\n const handlerExpr = d.expr;\n\n const isSimpleIdentifier = /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(handlerExpr);\n const directFn =\n isSimpleIdentifier && typeof localCtx[handlerExpr] === 'function'\n ? (localCtx[handlerExpr] as EventListener)\n : null;\n const runWithEvt = directFn ? null : compileWithEvent(handlerExpr, localCtx);\n\n const listener: EventListener = (ev: Event) => {\n if (mods.self && ev.target !== el) return;\n if (mods.prevent) ev.preventDefault();\n if (mods.stop) ev.stopPropagation();\n\n try {\n if (directFn) {\n return directFn.call(localCtx, ev);\n } else if (runWithEvt) {\n const out = runWithEvt(ev, el);\n if (typeof out === 'function')\n return (out as (e: Event) => unknown).call(localCtx, ev);\n return out;\n }\n } catch (error) {\n const boundaryEl = el.closest('[data-error]') as Element | null;\n const boundary = boundaryForElement(boundaryEl);\n if (boundary) {\n setBoundaryError(\n boundary,\n error instanceof Error ? error : new Error(String(error))\n );\n } else {\n throw error;\n }\n }\n };\n\n const options: AddEventListenerOptions = {\n capture: !!mods.capture,\n passive: !!mods.passive,\n once: !!mods.once,\n };\n\n el.addEventListener(d.event, listener, options);\n boundSet.add(boundKey);\n disposers.push(() => {\n el.removeEventListener(d.event, listener, { capture: !!mods.capture });\n boundSet.delete(boundKey);\n });\n}\n\nfunction parseMods(mods?: string[]): {\n once?: boolean;\n prevent?: boolean;\n stop?: boolean;\n self?: boolean;\n capture?: boolean;\n passive?: boolean;\n} {\n if (!mods) return {};\n const m: Record<string, boolean> = {};\n for (const mod of mods) m[mod] = true;\n return m;\n}\n\nexport function applyClass(\n d: ClassDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const localCtx = nearestCtx(el, ctx);\n try {\n const evaluate = compileExpression(d.expr, localCtx);\n const stop = effect(() => {\n try {\n el.classList.toggle(d.name, !!evaluate());\n } catch {\n /* ignore */\n }\n });\n disposers.push(stop);\n } catch {\n /* ignore */\n }\n}\n\nexport function applyClasses(\n d: ClassesDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const localCtx = nearestCtx(el, ctx);\n try {\n const evaluate = compileExpression(d.expr, localCtx);\n const owned = new Set<string>();\n const stop = effect(() => {\n try {\n applyClassGroup(el, evaluate(), owned);\n } catch {\n /* ignore */\n }\n });\n disposers.push(stop);\n } catch {\n /* ignore */\n }\n}\n\n/** Convert camelCase to kebab-case for CSS property names. */\nfunction toKebabCase(prop: string): string {\n return prop.replace(/[A-Z]/g, m => `-${m.toLowerCase()}`);\n}\n\nexport function applyStyle(\n d: StyleDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n // Not `instanceof HTMLElement`: SVG elements have inline styles too.\n const style = (el as Partial<ElementCSSInlineStyle>).style;\n if (!style) return;\n const localCtx = nearestCtx(el, ctx);\n // setProperty requires kebab-case; codegen may emit camelCase (e.g. fontSize)\n const cssProp = d.prop.includes('-') ? d.prop : toKebabCase(d.prop);\n try {\n const evaluate = compileExpression(d.expr, localCtx);\n const stop = effect(() => {\n try {\n const value = evaluate();\n if (value == null || value === false) {\n style.removeProperty(cssProp);\n return;\n }\n const text = String(value);\n const important = /\\s*!important\\s*$/i.exec(text);\n if (important) {\n style.setProperty(\n cssProp,\n text.slice(0, important.index),\n 'important'\n );\n } else {\n style.setProperty(cssProp, text);\n }\n } catch {\n /* ignore */\n }\n });\n disposers.push(stop);\n } catch {\n /* ignore */\n }\n}\n\nexport function applyBound(\n d: BoundDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const localCtx = nearestCtx(el, ctx);\n // Compile once outside effect via compileExpression (consistent with applyClass/applyStyle).\n try {\n const evaluate = compileExpression(d.expr, localCtx);\n\n const stop = effect(() => {\n try {\n const value = evaluate();\n if (typeof value === 'boolean') {\n if (value) el.setAttribute(d.attr, '');\n else el.removeAttribute(d.attr);\n } else {\n const text = String(value ?? '');\n if (rejectsScriptSink(el, d.attr, text)) el.removeAttribute(d.attr);\n else el.setAttribute(d.attr, text);\n }\n } catch {\n /* ignore */\n }\n });\n disposers.push(stop);\n } catch {\n /* ignore invalid expression */\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"applySimple.js","sourceRoot":"","sources":["../../../src/runtime/bindings/applySimple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAgB,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAcxD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEzD,iFAAiF;AAEjF,MAAM,UAAU,QAAQ,CACtB,CAAU,EACV,EAAW,EACX,GAAmB,EACnB,SAAyB;IAEzB,MAAM,GAAG,GAAG,GAAG,CAAC,CA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,EAAE,CAAC,CAAC;;wBAClC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBAClC,CAAC;qBAAM,CAAC;oBACN,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;oBACjC,IAAI,iBAAiB,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC;wBAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;;wBAC/D,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACrC,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,YAAY;YACd,CAAC;QACH,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAAC,MAAM,CAAC;QACP,+BAA+B;IACjC,CAAC;AACH,CAAC","sourcesContent":["import { effect, isSignal } from '@pithyjs/signals';\nimport { compileExpression } from '../../compile/compileExpression';\nimport { rejectsScriptSink } from '../../compile/binds/bindBoundAttributes';\nimport { toTextValue } from '../../compile/textValue';\nimport { isSSRMode } from '../../compile/ssrMode';\nimport {\n registerBoundary,\n boundaryForElement,\n setBoundaryError,\n} from '../../compile/binds/bindErrorBoundary';\nimport { applyClassGroup } from '../../compile/binds/bindClassDirectives';\nimport { mountProjection, type SlotMap } from '../../compile/contentProjection';\nimport { bindAfterProjection } from '../../compile/binds/bindAfterProjection';\nimport { nodeExpando } from '../../compile/nodeExpando';\nimport type {\n RefDesc,\n ErrorDesc,\n ProjDesc,\n BindDesc,\n InterpDesc,\n EventDesc,\n ClassDesc,\n ClassesDesc,\n StyleDesc,\n BoundDesc,\n BindingContext,\n} from './types';\nimport { nearestCtx, compileWithEvent } from './helpers';\n\n// ─── Individual binding handlers ──────────────────────────────────────────────\n\nexport function applyRef(\n d: RefDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const ref = ctx[d.name] as\n | { set?: (value: Element | null) => void }\n | undefined;\n if (ref && typeof ref.set === 'function') {\n ref.set(el);\n disposers.push(() => ref.set!(null));\n }\n}\n\nexport function applyError(\n d: ErrorDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n // Ensure data-error attribute is set from descriptor (source of truth)\n // so registerBoundary can find the signal name, even if AOT codegen\n // stops emitting the transitional data-error attribute in the future.\n if (d.expr && !el.getAttribute('data-error')) {\n el.setAttribute('data-error', d.expr);\n }\n\n // Register el itself as an error boundary. We use registerBoundary (not\n // bindErrorBoundary) because bindErrorBoundary uses querySelectorAll which\n // only searches children — it would miss el itself.\n registerBoundary(el, ctx, disposers);\n}\n\nexport function applyProjection(\n d: ProjDesc,\n commentMap: Map<string, Comment>,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const anchor = commentMap.get(`slot:${d.name}`);\n if (!anchor) return;\n\n const fallback = d.fallback;\n const anchorExpando = anchor as Comment & {\n __slotName?: string;\n __fallbackFactory?: (\n factoryCtx?: BindingContext\n ) => HTMLElement | DocumentFragment | undefined;\n };\n\n // Set expando properties that extractSlotDefs expects\n anchorExpando.__slotName = d.name;\n if (fallback) {\n anchorExpando.__fallbackFactory = (factoryCtx?: BindingContext) => {\n const result = fallback(factoryCtx || ctx);\n if (result && typeof result.destroy === 'function') {\n disposers.push(result.destroy);\n }\n return result?.el;\n };\n }\n\n // Check for SlotMap in context\n const slotMap = ('__slotMap' in ctx ? ctx.__slotMap : undefined) as\n | SlotMap\n | undefined;\n if (slotMap) {\n const slotDefs = [\n {\n name: d.name,\n anchor,\n fallbackFactory: anchorExpando.__fallbackFactory,\n },\n ];\n const render = slotMap.get(d.name);\n const bound: SlotMap = new Map();\n if (render)\n bound.set(d.name, (slotDisposers, at) => {\n const content = render(slotDisposers, at);\n const pageCtx = nodeExpando(content).__pithyCtx;\n // Runtime-built content: the page's own passes do not run on a remount.\n if (pageCtx)\n bindAfterProjection(content, pageCtx, slotDisposers ?? disposers);\n return content;\n });\n mountProjection(slotDefs, bound, disposers);\n } else if (fallback) {\n // No projected content — mount fallback\n const fallbackResult = fallback(ctx);\n const parent = anchor.parentNode;\n if (parent && fallbackResult?.el) {\n // Capture nodes for cleanup (fragment empties itself on insert)\n const nodes =\n fallbackResult.el instanceof DocumentFragment\n ? Array.from(fallbackResult.el.childNodes)\n : [fallbackResult.el];\n // Insert directly — fragment preserves child order; single node is trivial\n parent.insertBefore(fallbackResult.el, anchor.nextSibling);\n if (typeof fallbackResult.destroy === 'function') {\n disposers.push(fallbackResult.destroy);\n }\n disposers.push(() => {\n for (const node of nodes) {\n if (node.parentNode) node.parentNode.removeChild(node);\n }\n });\n }\n }\n}\n\nexport function applyBind(\n d: BindDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n if (!(el instanceof HTMLElement)) return;\n\n const sig = ctx[d.expr];\n if (!isSignal(sig) || typeof sig.set !== 'function') {\n if (import.meta.env?.DEV) {\n console.warn(`[AOT @bind] \"${d.expr}\" must refer to a writable signal`);\n }\n return;\n }\n const write = sig.set;\n\n const prop = inferBindableProperty(el);\n const target = el as HTMLElement & Record<string, unknown>;\n const stop = effect(() => {\n const value = sig();\n if (target[prop] !== value) target[prop] = value;\n });\n\n const event = prop === 'checked' ? 'change' : 'input';\n const handler = () => {\n write(extractBindableValue(el, prop));\n };\n el.addEventListener(event, handler);\n\n disposers.push(() => {\n el.removeEventListener(event, handler);\n stop();\n });\n}\n\nfunction inferBindableProperty(el: HTMLElement): string {\n const tag = el.tagName.toLowerCase();\n if (tag === 'input') {\n const type = (el as HTMLInputElement).type;\n if (type === 'checkbox' || type === 'radio') return 'checked';\n }\n return 'value';\n}\n\n/** Extract value from element with type coercion for number inputs. */\nfunction extractBindableValue(el: HTMLElement, prop: string): unknown {\n if (prop === 'checked') return (el as HTMLInputElement).checked;\n\n const tag = el.tagName.toLowerCase();\n if (tag === 'input') {\n const inputEl = el as HTMLInputElement;\n if (inputEl.type === 'number') {\n const numValue = Number(inputEl.value);\n return isNaN(numValue) ? inputEl.value : numValue;\n }\n return inputEl.value;\n }\n\n return (el as HTMLElement & Record<string, unknown>)[prop];\n}\n\nexport function applyInterpolation(\n d: InterpDesc,\n el: Element | DocumentFragment,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n // Find text nodes within el that contain {{ }} markers\n const walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT);\n let textNode: Text | null;\n const targets: Text[] = [];\n\n const rootLevel = d.pid === '';\n while ((textNode = walker.nextNode() as Text | null)) {\n const val = textNode.nodeValue ?? '';\n if (!val.includes('{{')) continue;\n if (rootLevel && textNode.parentElement?.closest('[data-pid]')) continue;\n targets.push(textNode);\n break;\n }\n\n if (targets.length === 0 && import.meta.env?.DEV) {\n console.warn(\n `[AOT interp] No text node with {{ }} markers found ${rootLevel ? 'at the template root' : `in element pid=\"${d.pid}\"`}`\n );\n }\n\n // Process each target text node matching this interpolation descriptor\n for (const node of targets) {\n const localCtx = nearestCtx(node, ctx);\n const parent = node.parentNode;\n if (!parent) continue;\n\n const nextSibling = node.nextSibling;\n parent.removeChild(node);\n\n for (const part of d.parts) {\n if ('s' in part) {\n // Static text\n parent.insertBefore(document.createTextNode(part.s), nextSibling);\n } else {\n // Dynamic expression\n const expr = part.e;\n const startComment = document.createComment('t');\n const dynText = document.createTextNode('');\n const endComment = document.createComment('/t');\n\n parent.insertBefore(startComment, nextSibling);\n parent.insertBefore(dynText, nextSibling);\n parent.insertBefore(endComment, nextSibling);\n\n try {\n const compiledFn = compileExpression(expr, localCtx);\n\n if (isSSRMode()) {\n try {\n dynText.nodeValue = toTextValue(compiledFn());\n } catch {\n dynText.nodeValue = '';\n }\n } else {\n let lastValue: string | undefined;\n const stop = effect(() => {\n try {\n const next = toTextValue(compiledFn());\n if (next !== lastValue) {\n dynText.nodeValue = next;\n lastValue = next;\n }\n } catch {\n dynText.nodeValue = '';\n }\n });\n disposers.push(stop);\n }\n } catch {\n dynText.nodeValue = '';\n }\n }\n }\n\n // Only process the first matching text node per interpolation descriptor\n break;\n }\n}\n\n/** Per-element, per-event idempotency guard (mirrors JIT's BOUND_KEY symbol). */\nconst AOT_BOUND_KEY: unique symbol = Symbol('pithy:aot-bound');\n\nfunction getAotBoundSet(el: Element, eventName: string): Set<string> {\n const host = el as Element & {\n [AOT_BOUND_KEY]?: Record<string, Set<string>>;\n };\n const store =\n host[AOT_BOUND_KEY] ??\n (host[AOT_BOUND_KEY] = Object.create(null) as Record<string, Set<string>>);\n return (store[eventName] ??= new Set<string>());\n}\n\nexport function applyEvent(\n d: EventDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n // Idempotency: skip if this exact event+expr combo was already bound\n const boundSet = getAotBoundSet(el, d.event);\n const boundKey = `${d.event}${d.mods ? '.' + d.mods.join('.') : ''}=${d.expr}`;\n if (boundSet.has(boundKey)) return;\n\n const localCtx = nearestCtx(el, ctx);\n const mods = parseMods(d.mods);\n const handlerExpr = d.expr;\n\n const isSimpleIdentifier = /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(handlerExpr);\n const directFn =\n isSimpleIdentifier && typeof localCtx[handlerExpr] === 'function'\n ? (localCtx[handlerExpr] as EventListener)\n : null;\n const runWithEvt = directFn ? null : compileWithEvent(handlerExpr, localCtx);\n\n const listener: EventListener = (ev: Event) => {\n if (mods.self && ev.target !== el) return;\n if (mods.prevent) ev.preventDefault();\n if (mods.stop) ev.stopPropagation();\n\n try {\n if (directFn) {\n return directFn.call(localCtx, ev);\n } else if (runWithEvt) {\n const out = runWithEvt(ev, el);\n if (typeof out === 'function')\n return (out as (e: Event) => unknown).call(localCtx, ev);\n return out;\n }\n } catch (error) {\n const boundaryEl = el.closest('[data-error]') as Element | null;\n const boundary = boundaryForElement(boundaryEl);\n if (boundary) {\n setBoundaryError(\n boundary,\n error instanceof Error ? error : new Error(String(error))\n );\n } else {\n throw error;\n }\n }\n };\n\n const options: AddEventListenerOptions = {\n capture: !!mods.capture,\n passive: !!mods.passive,\n once: !!mods.once,\n };\n\n el.addEventListener(d.event, listener, options);\n boundSet.add(boundKey);\n disposers.push(() => {\n el.removeEventListener(d.event, listener, { capture: !!mods.capture });\n boundSet.delete(boundKey);\n });\n}\n\nfunction parseMods(mods?: string[]): {\n once?: boolean;\n prevent?: boolean;\n stop?: boolean;\n self?: boolean;\n capture?: boolean;\n passive?: boolean;\n} {\n if (!mods) return {};\n const m: Record<string, boolean> = {};\n for (const mod of mods) m[mod] = true;\n return m;\n}\n\nexport function applyClass(\n d: ClassDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const localCtx = nearestCtx(el, ctx);\n try {\n const evaluate = compileExpression(d.expr, localCtx);\n const stop = effect(() => {\n try {\n el.classList.toggle(d.name, !!evaluate());\n } catch {\n /* ignore */\n }\n });\n disposers.push(stop);\n } catch {\n /* ignore */\n }\n}\n\nexport function applyClasses(\n d: ClassesDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const localCtx = nearestCtx(el, ctx);\n try {\n const evaluate = compileExpression(d.expr, localCtx);\n const owned = new Set<string>();\n const stop = effect(() => {\n try {\n applyClassGroup(el, evaluate(), owned);\n } catch {\n /* ignore */\n }\n });\n disposers.push(stop);\n } catch {\n /* ignore */\n }\n}\n\n/** Convert camelCase to kebab-case for CSS property names. */\nfunction toKebabCase(prop: string): string {\n return prop.replace(/[A-Z]/g, m => `-${m.toLowerCase()}`);\n}\n\nexport function applyStyle(\n d: StyleDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n // Not `instanceof HTMLElement`: SVG elements have inline styles too.\n const style = (el as Partial<ElementCSSInlineStyle>).style;\n if (!style) return;\n const localCtx = nearestCtx(el, ctx);\n // setProperty requires kebab-case; codegen may emit camelCase (e.g. fontSize)\n const cssProp = d.prop.includes('-') ? d.prop : toKebabCase(d.prop);\n try {\n const evaluate = compileExpression(d.expr, localCtx);\n const stop = effect(() => {\n try {\n const value = evaluate();\n if (value == null || value === false) {\n style.removeProperty(cssProp);\n return;\n }\n const text = String(value);\n const important = /\\s*!important\\s*$/i.exec(text);\n if (important) {\n style.setProperty(\n cssProp,\n text.slice(0, important.index),\n 'important'\n );\n } else {\n style.setProperty(cssProp, text);\n }\n } catch {\n /* ignore */\n }\n });\n disposers.push(stop);\n } catch {\n /* ignore */\n }\n}\n\nexport function applyBound(\n d: BoundDesc,\n el: Element,\n ctx: BindingContext,\n disposers: (() => void)[]\n): void {\n const localCtx = nearestCtx(el, ctx);\n // Compile once outside effect via compileExpression (consistent with applyClass/applyStyle).\n try {\n const evaluate = compileExpression(d.expr, localCtx);\n\n const stop = effect(() => {\n try {\n const value = evaluate();\n if (typeof value === 'boolean') {\n if (value) el.setAttribute(d.attr, '');\n else el.removeAttribute(d.attr);\n } else {\n const text = String(value ?? '');\n if (rejectsScriptSink(el, d.attr, text)) el.removeAttribute(d.attr);\n else el.setAttribute(d.attr, text);\n }\n } catch {\n /* ignore */\n }\n });\n disposers.push(stop);\n } catch {\n /* ignore invalid expression */\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithyjs/core",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.14",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/PithyJS/pithyjs.git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@pithyjs/shared": "0.1.0-beta.3",
|
|
28
28
|
"@pithyjs/signals": "0.1.0-beta.2",
|
|
29
|
-
"@pithyjs/compiler": "0.1.0-beta.
|
|
30
|
-
"@pithyjs/design-system": "0.1.0-beta.
|
|
29
|
+
"@pithyjs/compiler": "0.1.0-beta.5",
|
|
30
|
+
"@pithyjs/design-system": "0.1.0-beta.8"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"parse5": ">=7.0.0"
|