@alloy-js/core 0.23.0-dev.13 → 0.23.0-dev.15
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/api-extractor.json +1 -8
- package/api-extractor.testing.json +19 -0
- package/dist/dev/src/binder.js +108 -1
- package/dist/dev/src/binder.js.map +1 -1
- package/dist/dev/src/components/Block.js +17 -5
- package/dist/dev/src/components/Block.js.map +1 -1
- package/dist/dev/src/components/List.js +1 -1
- package/dist/dev/src/components/List.js.map +1 -1
- package/dist/dev/src/components/MemberDeclaration.js +6 -6
- package/dist/dev/src/components/MemberName.js +7 -0
- package/dist/dev/src/components/MemberName.js.map +1 -1
- package/dist/dev/src/components/MemberScope.js +7 -2
- package/dist/dev/src/components/MemberScope.js.map +1 -1
- package/dist/dev/src/components/Output.js +4 -4
- package/dist/dev/src/components/Output.js.map +1 -1
- package/dist/dev/src/components/Scope.js +7 -1
- package/dist/dev/src/components/Scope.js.map +1 -1
- package/dist/dev/src/components/SourceFile.js +3 -3
- package/dist/dev/src/components/SourceFile.js.map +1 -1
- package/dist/dev/src/context/binder.js +5 -0
- package/dist/dev/src/context/binder.js.map +1 -1
- package/dist/dev/src/context/format-options.js +14 -1
- package/dist/dev/src/context/format-options.js.map +1 -1
- package/dist/dev/src/context/scope.js +5 -0
- package/dist/dev/src/context/scope.js.map +1 -1
- package/dist/dev/src/context/source-directory.js +9 -0
- package/dist/dev/src/context/source-directory.js.map +1 -1
- package/dist/dev/src/library-symbol-reference.js +54 -0
- package/dist/dev/src/library-symbol-reference.js.map +1 -1
- package/dist/dev/src/name-policy.js +27 -0
- package/dist/dev/src/name-policy.js.map +1 -1
- package/dist/dev/src/reactivity.js +16 -0
- package/dist/dev/src/reactivity.js.map +1 -1
- package/dist/dev/src/render.js.map +1 -1
- package/dist/dev/src/symbols/output-scope.js +34 -1
- package/dist/dev/src/symbols/output-scope.js.map +1 -1
- package/dist/dev/src/symbols/output-space.js +15 -0
- package/dist/dev/src/symbols/output-space.js.map +1 -1
- package/dist/dev/src/symbols/output-symbol.js +81 -11
- package/dist/dev/src/symbols/output-symbol.js.map +1 -1
- package/dist/dev/src/symbols/symbol-slot.js +7 -0
- package/dist/dev/src/symbols/symbol-slot.js.map +1 -1
- package/dist/dev/src/symbols/symbol-slot.test.js +27 -2
- package/dist/dev/src/symbols/symbol-slot.test.js.map +1 -1
- package/dist/dev/testing/create-test-wrapper.js +59 -5
- package/dist/dev/testing/create-test-wrapper.js.map +1 -1
- package/dist/dev/testing/extend-expect.js +20 -0
- package/dist/dev/testing/extend-expect.js.map +1 -1
- package/dist/dev/testing/index.js +1 -1
- package/dist/dev/testing/index.js.map +1 -1
- package/dist/dev/testing/render.js +11 -0
- package/dist/dev/testing/render.js.map +1 -1
- package/dist/src/binder.d.ts +107 -3
- package/dist/src/binder.d.ts.map +1 -1
- package/dist/src/binder.js +108 -1
- package/dist/src/binder.js.map +1 -1
- package/dist/src/components/Block.d.ts +12 -0
- package/dist/src/components/Block.d.ts.map +1 -1
- package/dist/src/components/Block.js +12 -0
- package/dist/src/components/Block.js.map +1 -1
- package/dist/src/components/List.d.ts +11 -1
- package/dist/src/components/List.d.ts.map +1 -1
- package/dist/src/components/List.js.map +1 -1
- package/dist/src/components/MemberDeclaration.d.ts +6 -6
- package/dist/src/components/MemberDeclaration.js +6 -6
- package/dist/src/components/MemberName.d.ts +6 -0
- package/dist/src/components/MemberName.d.ts.map +1 -1
- package/dist/src/components/MemberName.js +7 -0
- package/dist/src/components/MemberName.js.map +1 -1
- package/dist/src/components/MemberScope.d.ts +5 -0
- package/dist/src/components/MemberScope.d.ts.map +1 -1
- package/dist/src/components/MemberScope.js +5 -0
- package/dist/src/components/MemberScope.js.map +1 -1
- package/dist/src/components/Output.d.ts +4 -2
- package/dist/src/components/Output.d.ts.map +1 -1
- package/dist/src/components/Output.js.map +1 -1
- package/dist/src/components/Scope.d.ts +6 -0
- package/dist/src/components/Scope.d.ts.map +1 -1
- package/dist/src/components/Scope.js +6 -0
- package/dist/src/components/Scope.js.map +1 -1
- package/dist/src/components/SourceFile.d.ts +22 -2
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/context/binder.d.ts +4 -0
- package/dist/src/context/binder.d.ts.map +1 -1
- package/dist/src/context/binder.js +5 -0
- package/dist/src/context/binder.js.map +1 -1
- package/dist/src/context/format-options.d.ts +14 -1
- package/dist/src/context/format-options.d.ts.map +1 -1
- package/dist/src/context/format-options.js +14 -1
- package/dist/src/context/format-options.js.map +1 -1
- package/dist/src/context/scope.d.ts +4 -0
- package/dist/src/context/scope.d.ts.map +1 -1
- package/dist/src/context/scope.js +5 -0
- package/dist/src/context/scope.js.map +1 -1
- package/dist/src/context/source-directory.d.ts +9 -0
- package/dist/src/context/source-directory.d.ts.map +1 -1
- package/dist/src/context/source-directory.js +9 -0
- package/dist/src/context/source-directory.js.map +1 -1
- package/dist/src/library-symbol-reference.d.ts +52 -0
- package/dist/src/library-symbol-reference.d.ts.map +1 -1
- package/dist/src/library-symbol-reference.js +54 -0
- package/dist/src/library-symbol-reference.js.map +1 -1
- package/dist/src/name-policy.d.ts +30 -3
- package/dist/src/name-policy.d.ts.map +1 -1
- package/dist/src/name-policy.js +27 -0
- package/dist/src/name-policy.js.map +1 -1
- package/dist/src/reactivity.d.ts +15 -0
- package/dist/src/reactivity.d.ts.map +1 -1
- package/dist/src/reactivity.js +16 -0
- package/dist/src/reactivity.js.map +1 -1
- package/dist/src/render.d.ts +2 -0
- package/dist/src/render.d.ts.map +1 -1
- package/dist/src/render.js.map +1 -1
- package/dist/src/symbols/output-scope.d.ts +33 -1
- package/dist/src/symbols/output-scope.d.ts.map +1 -1
- package/dist/src/symbols/output-scope.js +34 -1
- package/dist/src/symbols/output-scope.js.map +1 -1
- package/dist/src/symbols/output-space.d.ts +12 -0
- package/dist/src/symbols/output-space.d.ts.map +1 -1
- package/dist/src/symbols/output-space.js +15 -0
- package/dist/src/symbols/output-space.js.map +1 -1
- package/dist/src/symbols/output-symbol.d.ts +93 -12
- package/dist/src/symbols/output-symbol.d.ts.map +1 -1
- package/dist/src/symbols/output-symbol.js +81 -11
- package/dist/src/symbols/output-symbol.js.map +1 -1
- package/dist/src/symbols/symbol-slot.d.ts.map +1 -1
- package/dist/src/symbols/symbol-slot.js +7 -0
- package/dist/src/symbols/symbol-slot.js.map +1 -1
- package/dist/src/symbols/symbol-slot.test.js +18 -1
- package/dist/src/symbols/symbol-slot.test.js.map +1 -1
- package/dist/testing/create-test-wrapper.d.ts +75 -2
- package/dist/testing/create-test-wrapper.d.ts.map +1 -1
- package/dist/testing/create-test-wrapper.js +55 -1
- package/dist/testing/create-test-wrapper.js.map +1 -1
- package/dist/testing/extend-expect.d.ts +26 -0
- package/dist/testing/extend-expect.d.ts.map +1 -1
- package/dist/testing/extend-expect.js +20 -0
- package/dist/testing/extend-expect.js.map +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/render.d.ts +9 -0
- package/dist/testing/render.d.ts.map +1 -1
- package/dist/testing/render.js +11 -0
- package/dist/testing/render.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/AppendRegion.md +83 -0
- package/docs/api/components/Block.md +49 -0
- package/docs/api/components/CopyFile.md +26 -0
- package/docs/api/components/Declaration.md +85 -0
- package/docs/api/components/For.md +91 -0
- package/docs/api/components/Indent.md +40 -0
- package/docs/api/components/List.md +68 -0
- package/docs/api/components/MemberDeclaration.md +89 -0
- package/docs/api/components/MemberName.md +21 -0
- package/docs/api/components/MemberScope.md +81 -0
- package/docs/api/components/Name.md +19 -0
- package/docs/api/components/Output.md +62 -0
- package/docs/api/components/Prose.md +29 -0
- package/docs/api/components/ReferenceOrContent.md +28 -0
- package/docs/api/components/Scope.md +83 -0
- package/docs/api/components/Show.md +32 -0
- package/docs/api/components/SourceDirectory.md +28 -0
- package/docs/api/components/SourceFile.md +60 -0
- package/docs/api/components/StatementList.md +29 -0
- package/docs/api/components/Switch.md +42 -0
- package/docs/api/components/TemplateFile.md +71 -0
- package/docs/api/components/TemplateVariable.md +57 -0
- package/docs/api/components/UpdateFile.md +56 -0
- package/docs/api/components/Wrap.md +40 -0
- package/docs/api/components/createAccessExpression.md +55 -0
- package/docs/api/components/index.md +27 -0
- package/docs/api/contexts/Assignment-context.md +43 -0
- package/docs/api/contexts/Binder-context.md +22 -0
- package/docs/api/contexts/Declaration-context.md +15 -0
- package/docs/api/contexts/Member-context.md +17 -0
- package/docs/api/contexts/MemberDeclaration-context.md +24 -0
- package/docs/api/contexts/NamePolicy-context.md +18 -0
- package/docs/api/contexts/Scope-context.md +20 -0
- package/docs/api/contexts/SourceDirectory-context.md +26 -0
- package/docs/api/contexts/SourceFile-context.md +19 -0
- package/docs/api/contexts/index.md +11 -0
- package/docs/api/functions/attachDiagnosticsCollector.md +18 -0
- package/docs/api/functions/baseListPropsToMapJoinArgs.md +20 -0
- package/docs/api/functions/children.md +27 -0
- package/docs/api/functions/childrenArray.md +25 -0
- package/docs/api/functions/code.md +25 -0
- package/docs/api/functions/computed.md +18 -0
- package/docs/api/functions/createComponent.md +20 -0
- package/docs/api/functions/createContentSlot.md +33 -0
- package/docs/api/functions/createContext.md +19 -0
- package/docs/api/functions/createCustomContext.md +18 -0
- package/docs/api/functions/createDeclarationTap.md +20 -0
- package/docs/api/functions/createFileResource.md +35 -0
- package/docs/api/functions/createFormatOptionsContextFor.md +28 -0
- package/docs/api/functions/createIntrinsic.md +19 -0
- package/docs/api/functions/createMemberTap.md +20 -0
- package/docs/api/functions/createNamePolicy.md +37 -0
- package/docs/api/functions/createNamedContext.md +19 -0
- package/docs/api/functions/createOutputBinder.md +24 -0
- package/docs/api/functions/createRenderTreeHook.md +19 -0
- package/docs/api/functions/createResource.md +77 -0
- package/docs/api/functions/createScope.md +35 -0
- package/docs/api/functions/createScopeTap.md +20 -0
- package/docs/api/functions/createSourceFileTap.md +20 -0
- package/docs/api/functions/createSymbol.md +25 -0
- package/docs/api/functions/createSymbolSlot.md +19 -0
- package/docs/api/functions/createTap.md +55 -0
- package/docs/api/functions/decl.md +20 -0
- package/docs/api/functions/defaultProps.md +21 -0
- package/docs/api/functions/effect.md +26 -0
- package/docs/api/functions/emitDiagnostic.md +18 -0
- package/docs/api/functions/emitSymbol.md +18 -0
- package/docs/api/functions/ensureIsEmpty.md +20 -0
- package/docs/api/functions/findCurrentEffectId.md +19 -0
- package/docs/api/functions/findKeyedChild.md +19 -0
- package/docs/api/functions/findKeyedChildren.md +19 -0
- package/docs/api/functions/findUnkeyedChildren.md +18 -0
- package/docs/api/functions/formatReactivePropertyLabel.md +21 -0
- package/docs/api/functions/getAssignmentSymbol.md +19 -0
- package/docs/api/functions/getContext.md +17 -0
- package/docs/api/functions/getContextForRenderNode.md +18 -0
- package/docs/api/functions/getDiagnosticsForTree.md +18 -0
- package/docs/api/functions/getEffectDebugId.md +18 -0
- package/docs/api/functions/getElementCache.md +17 -0
- package/docs/api/functions/getReactiveCreationLocation.md +18 -0
- package/docs/api/functions/getSymbolCreator.md +18 -0
- package/docs/api/functions/getSymbolCreatorSymbol.md +17 -0
- package/docs/api/functions/index.md +105 -0
- package/docs/api/functions/inspectRefkey.md +18 -0
- package/docs/api/functions/instantiateTakenMembersTo.md +20 -0
- package/docs/api/functions/isComponentCreator.md +19 -0
- package/docs/api/functions/isCustomContext.md +18 -0
- package/docs/api/functions/isIntrinsicElement.md +18 -0
- package/docs/api/functions/isKeyedChild.md +18 -0
- package/docs/api/functions/isLibrarySymbolReference.md +18 -0
- package/docs/api/functions/isMemberRefkey.md +18 -0
- package/docs/api/functions/isNamekey.md +18 -0
- package/docs/api/functions/isPrintHook.md +18 -0
- package/docs/api/functions/isRefkey.md +18 -0
- package/docs/api/functions/isRefkeyable.md +18 -0
- package/docs/api/functions/isRenderableObject.md +20 -0
- package/docs/api/functions/isSymbolRefkey.md +18 -0
- package/docs/api/functions/join.md +33 -0
- package/docs/api/functions/mapJoin.md +106 -0
- package/docs/api/functions/memberRefkey.md +27 -0
- package/docs/api/functions/memo.md +29 -0
- package/docs/api/functions/mergeProps.md +64 -0
- package/docs/api/functions/moveTakenMembersTo.md +18 -0
- package/docs/api/functions/namekey.md +41 -0
- package/docs/api/functions/nextReactiveId.md +19 -0
- package/docs/api/functions/notifyContentState.md +17 -0
- package/docs/api/functions/onCleanup.md +26 -0
- package/docs/api/functions/printTree.md +31 -0
- package/docs/api/functions/reactivePropertyRefId.md +21 -0
- package/docs/api/functions/ref.md +21 -0
- package/docs/api/functions/refId.md +18 -0
- package/docs/api/functions/refkey.md +24 -0
- package/docs/api/functions/render.md +31 -0
- package/docs/api/functions/renderAsync.md +31 -0
- package/docs/api/functions/renderTree.md +18 -0
- package/docs/api/functions/reportDiagnostics.md +18 -0
- package/docs/api/functions/resetRefIdCounter.md +17 -0
- package/docs/api/functions/resolve.md +31 -0
- package/docs/api/functions/root.md +25 -0
- package/docs/api/functions/shallowReactive.md +18 -0
- package/docs/api/functions/shallowRef.md +21 -0
- package/docs/api/functions/sourceFilesForTree.md +31 -0
- package/docs/api/functions/splitProps.md +19 -0
- package/docs/api/functions/stc.md +18 -0
- package/docs/api/functions/sti.md +18 -0
- package/docs/api/functions/symbolForRefkey.md +24 -0
- package/docs/api/functions/taggedComponent.md +19 -0
- package/docs/api/functions/takeSymbols.md +18 -0
- package/docs/api/functions/text.md +19 -0
- package/docs/api/functions/toRef.md +20 -0
- package/docs/api/functions/toRefkey.md +18 -0
- package/docs/api/functions/toRefs.md +20 -0
- package/docs/api/functions/traverseOutput.md +21 -0
- package/docs/api/functions/unresolvedRefkey.md +18 -0
- package/docs/api/functions/untrack.md +18 -0
- package/docs/api/functions/useContext.md +18 -0
- package/docs/api/functions/useFormatOptions.md +18 -0
- package/docs/api/functions/useMemberContext.md +17 -0
- package/docs/api/functions/useMemberScope.md +17 -0
- package/docs/api/functions/writeOutput.md +21 -0
- package/docs/api/index.md +9 -0
- package/docs/api/testing/functions/createTestWrapper.md +70 -0
- package/docs/api/testing/functions/d.md +21 -0
- package/docs/api/testing/functions/dedent.md +18 -0
- package/docs/api/testing/functions/index.md +6 -0
- package/docs/api/testing/functions/renderToString.md +20 -0
- package/docs/api/testing/index.md +4 -0
- package/docs/api/testing/types/TestWrapper.md +10 -0
- package/docs/api/testing/types/ToRenderToOptions.md +24 -0
- package/docs/api/testing/types/index.md +4 -0
- package/docs/api/types/AlignIntrinsicElement.md +5 -0
- package/docs/api/types/AppendRegionProps.md +5 -0
- package/docs/api/types/BaseListProps.md +21 -0
- package/docs/api/types/BasePartProps.md +10 -0
- package/docs/api/types/BasicScope.md +15 -0
- package/docs/api/types/BasicSymbol.md +18 -0
- package/docs/api/types/Binder.md +18 -0
- package/docs/api/types/BinderOptions.md +7 -0
- package/docs/api/types/BrIntrinsicElement.md +5 -0
- package/docs/api/types/BreakParentIntrinsicElement.md +5 -0
- package/docs/api/types/Child.md +5 -0
- package/docs/api/types/Children.md +5 -0
- package/docs/api/types/ChildrenOptions.md +7 -0
- package/docs/api/types/CommonFormatOptions.md +8 -0
- package/docs/api/types/Component.md +8 -0
- package/docs/api/types/ComponentContext.md +11 -0
- package/docs/api/types/ComponentCreator.md +11 -0
- package/docs/api/types/ComponentDefinition.md +7 -0
- package/docs/api/types/ContentOutputFile.md +10 -0
- package/docs/api/types/ContentSlot.md +12 -0
- package/docs/api/types/Context.md +19 -0
- package/docs/api/types/ContextProviderProps.md +8 -0
- package/docs/api/types/CopyFileContext.md +8 -0
- package/docs/api/types/CopyOutputFile.md +9 -0
- package/docs/api/types/CustomContext.md +10 -0
- package/docs/api/types/CustomContextChildrenCallback.md +5 -0
- package/docs/api/types/DeclarationProps.md +5 -0
- package/docs/api/types/DedentIntrinsicElement.md +5 -0
- package/docs/api/types/DedentToRootIntrinsicElement.md +5 -0
- package/docs/api/types/Diagnostic.md +11 -0
- package/docs/api/types/DiagnosticHandle.md +7 -0
- package/docs/api/types/DiagnosticInput.md +10 -0
- package/docs/api/types/DiagnosticSeverity.md +5 -0
- package/docs/api/types/DiagnosticStackEntry.md +9 -0
- package/docs/api/types/DiagnosticsCollector.md +8 -0
- package/docs/api/types/Disposable_2.md +7 -0
- package/docs/api/types/EffectDebugOptions.md +8 -0
- package/docs/api/types/EffectOptions.md +7 -0
- package/docs/api/types/ElementCache.md +5 -0
- package/docs/api/types/ElementCacheKey.md +5 -0
- package/docs/api/types/FillIntrinsicElement.md +5 -0
- package/docs/api/types/ForCallbackArgs.md +5 -0
- package/docs/api/types/ForSupportedCollections.md +5 -0
- package/docs/api/types/GroupIntrinsicElement.md +5 -0
- package/docs/api/types/HardlineIntrinsicElement.md +5 -0
- package/docs/api/types/HbrIntrinsicElement.md +5 -0
- package/docs/api/types/IfBreakIntrinsicElement.md +5 -0
- package/docs/api/types/IndentIfBreakIntrinsicElement.md +5 -0
- package/docs/api/types/IndentIntrinsicElement.md +5 -0
- package/docs/api/types/IntrinsicElement.md +5 -0
- package/docs/api/types/IntrinsicElementBase.md +9 -0
- package/docs/api/types/IntrinsicElements.md +26 -0
- package/docs/api/types/JoinOptions.md +9 -0
- package/docs/api/types/LbrIntrinsicElement.md +5 -0
- package/docs/api/types/LibrarySymbolReference.md +13 -0
- package/docs/api/types/LineIntrinsicElement.md +5 -0
- package/docs/api/types/LineSuffixBoundaryIntrinsicElement.md +5 -0
- package/docs/api/types/LineSuffixIntrinsicElement.md +5 -0
- package/docs/api/types/LiterallineIntrinsicElement.md +5 -0
- package/docs/api/types/MakeChildrenOptional.md +7 -0
- package/docs/api/types/MarkAsRootIntrinsicElement.md +5 -0
- package/docs/api/types/MatchProps.md +9 -0
- package/docs/api/types/MemberDeclarationProps.md +5 -0
- package/docs/api/types/MemberDescriptor.md +10 -0
- package/docs/api/types/MemberRefkey.md +10 -0
- package/docs/api/types/MemberResolutionContext.md +10 -0
- package/docs/api/types/MemberResolver.md +32 -0
- package/docs/api/types/MemberScopeProps.md +5 -0
- package/docs/api/types/Metadata.md +5 -0
- package/docs/api/types/NameConflictResolver.md +27 -0
- package/docs/api/types/NamePolicy.md +8 -0
- package/docs/api/types/NamePolicyGetter.md +9 -0
- package/docs/api/types/Namekey.md +10 -0
- package/docs/api/types/NamekeyOptions.md +8 -0
- package/docs/api/types/OnReactiveSetAddCallback.md +5 -0
- package/docs/api/types/OnReactiveSetDeleteCallback.md +5 -0
- package/docs/api/types/OutputDeclarationSpace.md +13 -0
- package/docs/api/types/OutputDirectory.md +59 -0
- package/docs/api/types/OutputFile.md +5 -0
- package/docs/api/types/OutputFileBase.md +8 -0
- package/docs/api/types/OutputMemberSpace.md +13 -0
- package/docs/api/types/OutputScope.md +33 -0
- package/docs/api/types/OutputScopeOptions.md +9 -0
- package/docs/api/types/OutputSpace.md +7 -0
- package/docs/api/types/OutputSymbol.md +76 -0
- package/docs/api/types/OutputSymbolOptions.md +16 -0
- package/docs/api/types/OutputVisitor.md +10 -0
- package/docs/api/types/PrintHook.md +10 -0
- package/docs/api/types/PrintTreeOptions.md +11 -0
- package/docs/api/types/Props.md +5 -0
- package/docs/api/types/ReactiveUnionSet.md +20 -0
- package/docs/api/types/ReactiveUnionSetOptions.md +8 -0
- package/docs/api/types/Refkey.md +5 -0
- package/docs/api/types/Refkeyable.md +5 -0
- package/docs/api/types/RefkeyableObject.md +7 -0
- package/docs/api/types/RenderableObject.md +9 -0
- package/docs/api/types/RenderedTextTree.md +5 -0
- package/docs/api/types/ResolutionResult.md +39 -0
- package/docs/api/types/ResolveDeclarationByKeyOptions.md +7 -0
- package/docs/api/types/Resource.md +11 -0
- package/docs/api/types/RootOptions.md +7 -0
- package/docs/api/types/SbrIntrinsicElement.md +5 -0
- package/docs/api/types/ScopeProps.md +5 -0
- package/docs/api/types/SoftlineIntrinsicElement.md +5 -0
- package/docs/api/types/SourceLocation.md +9 -0
- package/docs/api/types/SplitProps.md +12 -0
- package/docs/api/types/StcComponentCreator.md +9 -0
- package/docs/api/types/StcSignature.md +5 -0
- package/docs/api/types/StiComponentCreator.md +9 -0
- package/docs/api/types/StiSignature.md +7 -0
- package/docs/api/types/SymbolCreator.md +15 -0
- package/docs/api/types/SymbolRefkey.md +9 -0
- package/docs/api/types/SymbolSlot.md +12 -0
- package/docs/api/types/SymbolTable.md +15 -0
- package/docs/api/types/TakeSymbolCallback.md +7 -0
- package/docs/api/types/TakeSymbolsCallback.md +7 -0
- package/docs/api/types/Tap.md +11 -0
- package/docs/api/types/TapHandler.md +9 -0
- package/docs/api/types/Tapper.md +9 -0
- package/docs/api/types/TemplateVariableProps.md +5 -0
- package/docs/api/types/index.md +122 -0
- package/docs/api/variables/FormatOptions.md +5 -0
- package/docs/api/variables/Match.md +7 -0
- package/docs/api/variables/REFKEYABLE.md +5 -0
- package/docs/api/variables/RENDERABLE.md +5 -0
- package/docs/api/variables/TO_SYMBOL.md +39 -0
- package/docs/api/variables/contextsByKey.md +5 -0
- package/docs/api/variables/index.md +11 -0
- package/docs/api/variables/intrinsicElementKey.md +5 -0
- package/docs/api/variables/matchTag.md +5 -0
- package/docs/api/variables/printHookTag.md +7 -0
- package/docs/components.md +97 -0
- package/docs/context.md +67 -0
- package/docs/control-flow.md +5 -0
- package/docs/debugging.md +105 -0
- package/docs/formatting.md +99 -0
- package/docs/guides/language-package-guide.md +593 -0
- package/docs/guides/references-and-refkeys.md +210 -0
- package/docs/guides/style-guide.md +244 -0
- package/docs/index.md +22 -0
- package/docs/reactivity.md +68 -0
- package/docs/rendering.md +41 -0
- package/docs/symbols-and-scopes.md +180 -0
- package/package.json +4 -4
- package/src/binder.ts +107 -3
- package/src/components/Block.tsx +12 -0
- package/src/components/List.tsx +11 -1
- package/src/components/MemberDeclaration.tsx +6 -6
- package/src/components/MemberName.tsx +6 -0
- package/src/components/MemberScope.tsx +5 -0
- package/src/components/Output.tsx +4 -1
- package/src/components/Scope.tsx +6 -0
- package/src/components/SourceFile.tsx +22 -2
- package/src/context/binder.ts +4 -0
- package/src/context/format-options.ts +14 -1
- package/src/context/scope.ts +4 -0
- package/src/context/source-directory.ts +9 -0
- package/src/library-symbol-reference.ts +52 -0
- package/src/name-policy.ts +30 -3
- package/src/reactivity.ts +15 -0
- package/src/render.ts +2 -0
- package/src/symbols/output-scope.ts +33 -1
- package/src/symbols/output-space.ts +13 -0
- package/src/symbols/output-symbol.ts +93 -12
- package/src/symbols/symbol-slot.test.tsx +28 -1
- package/src/symbols/symbol-slot.tsx +8 -0
- package/temp/api-testing.json +673 -0
- package/temp/api.json +48 -47
- package/testing/create-test-wrapper.tsx +81 -2
- package/testing/extend-expect.ts +22 -1
- package/testing/index.ts +1 -1
- package/testing/render.ts +9 -0
- package/testing/vitest.d.ts +3 -8
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# getDiagnosticsForTree
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { getDiagnosticsForTree } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function getDiagnosticsForTree(tree: RenderedTextTree): import("./diagnostics.js").Diagnostic[];
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | ---------------- | - |
|
|
14
|
+
| tree | RenderedTextTree | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
import(”./diagnostics.js”).[Diagnostic](../../types/diagnostic/)\[]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# getEffectDebugId
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { getEffectDebugId } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function getEffectDebugId(effect: object): number | undefined;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ------ | ------ | - |
|
|
14
|
+
| effect | object | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
number | undefined
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# getReactiveCreationLocation
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { getReactiveCreationLocation } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function getReactiveCreationLocation(target: object): import("./devtools-entry.browser.js").SourceLocation | undefined;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ------ | ------ | - |
|
|
14
|
+
| target | object | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
import(”./devtools-entry.browser.js”).SourceLocation | undefined
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# getSymbolCreator
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { getSymbolCreator } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function getSymbolCreator(creator: SymbolCreator): SymbolCreator[typeof createSymbolsSymbol];
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ------- | ------------- | - |
|
|
14
|
+
| creator | SymbolCreator | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
[SymbolCreator](../../types/symbolcreator/)\[typeof createSymbolsSymbol]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# getSymbolCreatorSymbol
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { getSymbolCreatorSymbol } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function getSymbolCreatorSymbol(): typeof createSymbolsSymbol;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| |
|
|
13
|
+
| - |
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
typeof createSymbolsSymbol
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# core — functions
|
|
2
|
+
|
|
3
|
+
- [attachDiagnosticsCollector](attachDiagnosticsCollector.md) — import { attachDiagnosticsCollector } from "@alloy-js/core";
|
|
4
|
+
- [baseListPropsToMapJoinArgs](baseListPropsToMapJoinArgs.md) — Convert a list of props to a joiner and ender for use in [mapJoin](../mapjoin/).
|
|
5
|
+
- [children](children.md) — Returns a memo which is a list of all the provided children.
|
|
6
|
+
- [childrenArray](childrenArray.md) — import { childrenArray } from "@alloy-js/core";
|
|
7
|
+
- [code](code.md) — Turn the provided string template into Children by replacing literal line breaks with hardlines and automatically indenting indented content.
|
|
8
|
+
- [computed](computed.md) — import { computed } from "@alloy-js/core";
|
|
9
|
+
- [createComponent](createComponent.md) — import { createComponent } from "@alloy-js/core";
|
|
10
|
+
- [createContentSlot](createContentSlot.md) — Create a component which tracks whether any content is placed inside of it.
|
|
11
|
+
- [createContext](createContext.md) — import { createContext } from "@alloy-js/core";
|
|
12
|
+
- [createCustomContext](createCustomContext.md) — import { createCustomContext } from "@alloy-js/core";
|
|
13
|
+
- [createDeclarationTap](createDeclarationTap.md) — Create a tap for [Declaration context](../../contexts/declaration-context/).
|
|
14
|
+
- [createFileResource](createFileResource.md) — Create a resource that reads a file from the file system.
|
|
15
|
+
- [createFormatOptionsContextFor](createFormatOptionsContextFor.md) — Create a format options context for a specific file type.
|
|
16
|
+
- [createIntrinsic](createIntrinsic.md) — import { createIntrinsic } from "@alloy-js/core";
|
|
17
|
+
- [createMemberTap](createMemberTap.md) — Create a tap for [MemberDeclaration context](../../contexts/memberdeclaration-context/).
|
|
18
|
+
- [createNamedContext](createNamedContext.md) — import { createNamedContext } from "@alloy-js/core";
|
|
19
|
+
- [createNamePolicy](createNamePolicy.md) — Creates a name policy that transforms symbol names based on element kind.
|
|
20
|
+
- [createOutputBinder](createOutputBinder.md) — import { createOutputBinder } from "@alloy-js/core";
|
|
21
|
+
- [createRenderTreeHook](createRenderTreeHook.md) — import { createRenderTreeHook } from "@alloy-js/core";
|
|
22
|
+
- [createResource](createResource.md) — Create a resource that fetches data asynchronously.
|
|
23
|
+
- [createScope](createScope.md) — Construct a scope instance and register it with devtools.
|
|
24
|
+
- [createScopeTap](createScopeTap.md) — Create a tap for [OutputScope](../../types/outputscope/).
|
|
25
|
+
- [createSourceFileTap](createSourceFileTap.md) — Create a tap for [SourceFile context interface](../../contexts/sourcefile-context/).
|
|
26
|
+
- [createSymbol](createSymbol.md) — Construct a symbol instance and register it with devtools.
|
|
27
|
+
- [createSymbolSlot](createSymbolSlot.md) — Create a component which accepts emitted symbols.
|
|
28
|
+
- [createTap](createTap.md) — Create a component that when rendered, initializes the tapped value with the provided callback.
|
|
29
|
+
- [decl](decl.md) — Create a declaration in the current scope with the given namekey.
|
|
30
|
+
- [defaultProps](defaultProps.md) — Applies default values to a props object.
|
|
31
|
+
- [effect](effect.md) — import { effect } from "@alloy-js/core";
|
|
32
|
+
- [emitDiagnostic](emitDiagnostic.md) — import { emitDiagnostic } from "@alloy-js/core";
|
|
33
|
+
- [emitSymbol](emitSymbol.md) — import { emitSymbol } from "@alloy-js/core";
|
|
34
|
+
- [ensureIsEmpty](ensureIsEmpty.md) — Ensure that a context has an isEmpty ref, creating one if needed.
|
|
35
|
+
- [findCurrentEffectId](findCurrentEffectId.md) — Walk up the context owner chain to find the nearest effect ID.
|
|
36
|
+
- [findKeyedChild](findKeyedChild.md) — import { findKeyedChild } from "@alloy-js/core";
|
|
37
|
+
- [findKeyedChildren](findKeyedChildren.md) — import { findKeyedChildren } from "@alloy-js/core";
|
|
38
|
+
- [findUnkeyedChildren](findUnkeyedChildren.md) — import { findUnkeyedChildren } from "@alloy-js/core";
|
|
39
|
+
- [formatReactivePropertyLabel](formatReactivePropertyLabel.md) — Build a human-readable label for a reactive property like `symbolName.prop`.
|
|
40
|
+
- [getAssignmentSymbol](getAssignmentSymbol.md) — Get the symbol being defined.
|
|
41
|
+
- [getContext](getContext.md) — import { getContext } from "@alloy-js/core";
|
|
42
|
+
- [getContextForRenderNode](getContextForRenderNode.md) — import { getContextForRenderNode } from "@alloy-js/core";
|
|
43
|
+
- [getDiagnosticsForTree](getDiagnosticsForTree.md) — import { getDiagnosticsForTree } from "@alloy-js/core";
|
|
44
|
+
- [getEffectDebugId](getEffectDebugId.md) — import { getEffectDebugId } from "@alloy-js/core";
|
|
45
|
+
- [getElementCache](getElementCache.md) — import { getElementCache } from "@alloy-js/core";
|
|
46
|
+
- [getReactiveCreationLocation](getReactiveCreationLocation.md) — import { getReactiveCreationLocation } from "@alloy-js/core";
|
|
47
|
+
- [getSymbolCreator](getSymbolCreator.md) — import { getSymbolCreator } from "@alloy-js/core";
|
|
48
|
+
- [getSymbolCreatorSymbol](getSymbolCreatorSymbol.md) — import { getSymbolCreatorSymbol } from "@alloy-js/core";
|
|
49
|
+
- [inspectRefkey](inspectRefkey.md) — import { inspectRefkey } from "@alloy-js/core";
|
|
50
|
+
- [instantiateTakenMembersTo](instantiateTakenMembersTo.md) — import { instantiateTakenMembersTo } from "@alloy-js/core";
|
|
51
|
+
- [isComponentCreator](isComponentCreator.md) — import { isComponentCreator } from "@alloy-js/core";
|
|
52
|
+
- [isCustomContext](isCustomContext.md) — import { isCustomContext } from "@alloy-js/core";
|
|
53
|
+
- [isIntrinsicElement](isIntrinsicElement.md) — import { isIntrinsicElement } from "@alloy-js/core";
|
|
54
|
+
- [isKeyedChild](isKeyedChild.md) — import { isKeyedChild } from "@alloy-js/core";
|
|
55
|
+
- [isLibrarySymbolReference](isLibrarySymbolReference.md) — import { isLibrarySymbolReference } from "@alloy-js/core";
|
|
56
|
+
- [isMemberRefkey](isMemberRefkey.md) — import { isMemberRefkey } from "@alloy-js/core";
|
|
57
|
+
- [isNamekey](isNamekey.md) — import { isNamekey } from "@alloy-js/core";
|
|
58
|
+
- [isPrintHook](isPrintHook.md) — import { isPrintHook } from "@alloy-js/core";
|
|
59
|
+
- [isRefkey](isRefkey.md) — import { isRefkey } from "@alloy-js/core";
|
|
60
|
+
- [isRefkeyable](isRefkeyable.md) — import { isRefkeyable } from "@alloy-js/core";
|
|
61
|
+
- [isRenderableObject](isRenderableObject.md) — Returns true if the item is a renderable object, meaning it has an `[ay.RENDERABLE]` method.
|
|
62
|
+
- [isSymbolRefkey](isSymbolRefkey.md) — import { isSymbolRefkey } from "@alloy-js/core";
|
|
63
|
+
- [join](join.md) — Place a joiner between each element of an array or iterator.
|
|
64
|
+
- [mapJoin](mapJoin.md) — Map a Map to an array using a mapper and place a joiner between each element.
|
|
65
|
+
- [memberRefkey](memberRefkey.md) — Create a refkey for an instantiation of a symbol.
|
|
66
|
+
- [memo](memo.md) — Returns a getter caching the result of `fn`.
|
|
67
|
+
- [mergeProps](mergeProps.md) — import { mergeProps } from "@alloy-js/core";
|
|
68
|
+
- [moveTakenMembersTo](moveTakenMembersTo.md) — import { moveTakenMembersTo } from "@alloy-js/core";
|
|
69
|
+
- [namekey](namekey.md) — Create a namekey with the given name.
|
|
70
|
+
- [nextReactiveId](nextReactiveId.md) — Allocate a unique reactive target ID from the same counter space as ref IDs.
|
|
71
|
+
- [notifyContentState](notifyContentState.md) — import { notifyContentState } from "@alloy-js/core";
|
|
72
|
+
- [onCleanup](onCleanup.md) — Register a cleanup function which is called when the current reactive scope is recalculated or disposed.
|
|
73
|
+
- [printTree](printTree.md) — Convert a rendered text tree to a string.
|
|
74
|
+
- [reactivePropertyRefId](reactivePropertyRefId.md) — Get a stable ref ID for a property of a reactive object.
|
|
75
|
+
- [ref](ref.md) — import { ref } from "@alloy-js/core";
|
|
76
|
+
- [refId](refId.md) — import { refId } from "@alloy-js/core";
|
|
77
|
+
- [refkey](refkey.md) — Create a refkey for the provided arguments.
|
|
78
|
+
- [render](render.md) — Render a component tree to source directories and files.
|
|
79
|
+
- [renderAsync](renderAsync.md) — Render a component tree to source directories and files.
|
|
80
|
+
- [renderTree](renderTree.md) — import { renderTree } from "@alloy-js/core";
|
|
81
|
+
- [reportDiagnostics](reportDiagnostics.md) — import { reportDiagnostics } from "@alloy-js/core";
|
|
82
|
+
- [resetRefIdCounter](resetRefIdCounter.md) — import { resetRefIdCounter } from "@alloy-js/core";
|
|
83
|
+
- [resolve](resolve.md) — Resolve a refkey in the current scope.
|
|
84
|
+
- [root](root.md) — import { root } from "@alloy-js/core";
|
|
85
|
+
- [shallowReactive](shallowReactive.md) — import { shallowReactive } from "@alloy-js/core";
|
|
86
|
+
- [shallowRef](shallowRef.md) — import { shallowRef } from "@alloy-js/core";
|
|
87
|
+
- [sourceFilesForTree](sourceFilesForTree.md) — Convert a rendered text tree to source directories and files.
|
|
88
|
+
- [splitProps](splitProps.md) — import { splitProps } from "@alloy-js/core";
|
|
89
|
+
- [stc](stc.md) — import { stc } from "@alloy-js/core";
|
|
90
|
+
- [sti](sti.md) — import { sti } from "@alloy-js/core";
|
|
91
|
+
- [symbolForRefkey](symbolForRefkey.md) — Get a ref to the symbol for the given refkey using the current binder.
|
|
92
|
+
- [taggedComponent](taggedComponent.md) — import { taggedComponent } from "@alloy-js/core";
|
|
93
|
+
- [takeSymbols](takeSymbols.md) — import { takeSymbols } from "@alloy-js/core";
|
|
94
|
+
- [text](text.md) — import { text } from "@alloy-js/core";
|
|
95
|
+
- [toRef](toRef.md) — import { toRef } from "@alloy-js/core";
|
|
96
|
+
- [toRefkey](toRefkey.md) — import { toRefkey } from "@alloy-js/core";
|
|
97
|
+
- [toRefs](toRefs.md) — import { toRefs } from "@alloy-js/core";
|
|
98
|
+
- [traverseOutput](traverseOutput.md) — Traverse the output from [render](../render/) and call the visitor for each file and directory within it.
|
|
99
|
+
- [unresolvedRefkey](unresolvedRefkey.md) — import { unresolvedRefkey } from "@alloy-js/core";
|
|
100
|
+
- [untrack](untrack.md) — import { untrack } from "@alloy-js/core";
|
|
101
|
+
- [useContext](useContext.md) — import { useContext } from "@alloy-js/core";
|
|
102
|
+
- [useFormatOptions](useFormatOptions.md) — import { useFormatOptions } from "@alloy-js/core";
|
|
103
|
+
- [useMemberContext](useMemberContext.md) — import { useMemberContext } from "@alloy-js/core";
|
|
104
|
+
- [useMemberScope](useMemberScope.md) — import { useMemberScope } from "@alloy-js/core";
|
|
105
|
+
- [writeOutput](writeOutput.md) — Write the output from [render](../render/) to the file system.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# inspectRefkey
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { inspectRefkey } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function inspectRefkey(refkey: Refkey): string;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ------ | ------ | - |
|
|
14
|
+
| refkey | Refkey | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
string
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# instantiateTakenMembersTo
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { instantiateTakenMembersTo } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function instantiateTakenMembersTo(baseSymbol: OutputSymbol, toSpaceKey: string, fromSpaceKey: string): void;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ------------ | ------------ | - |
|
|
14
|
+
| baseSymbol | OutputSymbol | |
|
|
15
|
+
| toSpaceKey | string | |
|
|
16
|
+
| fromSpaceKey | string | |
|
|
17
|
+
|
|
18
|
+
## Returns
|
|
19
|
+
|
|
20
|
+
void
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# isComponentCreator
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isComponentCreator } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isComponentCreator<TProps = any>(item: unknown, component?: Component<TProps>): item is ComponentCreator<TProps>;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| --------- | --------------------------- | - |
|
|
14
|
+
| item | unknown | |
|
|
15
|
+
| component | optional Component\<TProps> | |
|
|
16
|
+
|
|
17
|
+
## Returns
|
|
18
|
+
|
|
19
|
+
item is [ComponentCreator](../../types/componentcreator/)\<TProps>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isCustomContext
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isCustomContext } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isCustomContext(child: Children): child is CustomContext;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | -------- | - |
|
|
14
|
+
| child | Children | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
child is [CustomContext](../../types/customcontext/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isIntrinsicElement
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isIntrinsicElement } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isIntrinsicElement(type: unknown): type is IntrinsicElement;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | ------- | - |
|
|
14
|
+
| type | unknown | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
type is [IntrinsicElement](../../types/intrinsicelement/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isKeyedChild
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isKeyedChild } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isKeyedChild(child: Children): child is ComponentCreator;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | -------- | - |
|
|
14
|
+
| child | Children | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
child is [ComponentCreator](../../types/componentcreator/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isLibrarySymbolReference
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isLibrarySymbolReference } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isLibrarySymbolReference(value: unknown): value is LibrarySymbolReference;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | ------- | - |
|
|
14
|
+
| value | unknown | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
value is [LibrarySymbolReference](../../types/librarysymbolreference/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isMemberRefkey
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isMemberRefkey } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isMemberRefkey(value: unknown): value is MemberRefkey;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | ------- | - |
|
|
14
|
+
| value | unknown | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
value is [MemberRefkey](../../types/memberrefkey/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isNamekey
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isNamekey } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isNamekey(value: unknown): value is Namekey;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | ------- | - |
|
|
14
|
+
| value | unknown | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
value is [Namekey](../../types/namekey/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isPrintHook
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isPrintHook } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isPrintHook(type: unknown): type is PrintHook;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ---- | ------- | - |
|
|
14
|
+
| type | unknown | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
type is [PrintHook](../../types/printhook/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isRefkey
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isRefkey } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isRefkey(value: unknown): value is Refkey;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | ------- | - |
|
|
14
|
+
| value | unknown | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
value is [Refkey](../../types/refkey/)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isRefkeyable
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isRefkeyable } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isRefkeyable(value: unknown): value is RefkeyableObject;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | ------- | - |
|
|
14
|
+
| value | unknown | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
value is [RefkeyableObject](../../types/refkeyableobject/)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# isRenderableObject
|
|
2
|
+
|
|
3
|
+
Returns true if the item is a renderable object, meaning it has an `[ay.RENDERABLE]` method.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { isRenderableObject } from "@alloy-js/core";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
function isRenderableObject(item: unknown): item is RenderableObject;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| | | |
|
|
15
|
+
| ---- | ------- | - |
|
|
16
|
+
| item | unknown | |
|
|
17
|
+
|
|
18
|
+
## Returns
|
|
19
|
+
|
|
20
|
+
item is [RenderableObject](../../types/renderableobject/) True if the item is a renderable object.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# isSymbolRefkey
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import { isSymbolRefkey } from "@alloy-js/core";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
function isSymbolRefkey(value: unknown): value is SymbolRefkey;
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Parameters
|
|
11
|
+
|
|
12
|
+
| | | |
|
|
13
|
+
| ----- | ------- | - |
|
|
14
|
+
| value | unknown | |
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
value is [SymbolRefkey](../../types/symbolrefkey/)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# join
|
|
2
|
+
|
|
3
|
+
Place a joiner between each element of an array or iterator. Defaults to joining with a newline.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { join } from "@alloy-js/core";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
function join<T extends Children>(src: T[] | Iterator<T>, options?: JoinOptions): Children;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Parameters
|
|
13
|
+
|
|
14
|
+
| | | |
|
|
15
|
+
| ------- | -------------------- | - |
|
|
16
|
+
| src | T\[] \| Iterator\<T> | |
|
|
17
|
+
| options | optional JoinOptions | |
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
| | | |
|
|
22
|
+
| --------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| ender | optional [Children](../../types/children/) | When true, the joiner is placed at the end of the array. When a string, that string is placed at the end of the array. The ender is only emitted when the array has at least one element. |
|
|
24
|
+
| joiner | optional [Children](../../types/children/) | The string to place between each element. |
|
|
25
|
+
| skipFalsy | optional boolean | When true, falsy values with the exception of 0 are skipped. |
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
[Children](../../types/children/) The joined array
|
|
30
|
+
|
|
31
|
+
## See also
|
|
32
|
+
|
|
33
|
+
* mapJoin for mapping before joining.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# mapJoin
|
|
2
|
+
|
|
3
|
+
## Overload 1
|
|
4
|
+
|
|
5
|
+
Map a Map to an array using a mapper and place a joiner between each element. Defaults to joining with a newline.
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { mapJoin } from "@alloy-js/core";
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
function mapJoin<T, U, V>(src: () => Map<T, U>, cb: (key: T, value: U, index: number) => V, options?: JoinOptions): () => (V | string | undefined | CustomContext)[];
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Parameters
|
|
15
|
+
|
|
16
|
+
| | | |
|
|
17
|
+
| ------- | -------------------------------------- | - |
|
|
18
|
+
| src | () => Map\<T, U> | |
|
|
19
|
+
| cb | (key: T, value: U, index: number) => V | |
|
|
20
|
+
| options | optional JoinOptions | |
|
|
21
|
+
|
|
22
|
+
### Options
|
|
23
|
+
|
|
24
|
+
| | | |
|
|
25
|
+
| --------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
26
|
+
| ender | optional [Children](../../types/children/) | When true, the joiner is placed at the end of the array. When a string, that string is placed at the end of the array. The ender is only emitted when the array has at least one element. |
|
|
27
|
+
| joiner | optional [Children](../../types/children/) | The string to place between each element. |
|
|
28
|
+
| skipFalsy | optional boolean | When true, falsy values with the exception of 0 are skipped. |
|
|
29
|
+
|
|
30
|
+
### Returns
|
|
31
|
+
|
|
32
|
+
() => (V | string | undefined | [CustomContext](../../types/customcontext/))\[] The mapped and joined array.
|
|
33
|
+
|
|
34
|
+
### See also
|
|
35
|
+
|
|
36
|
+
* [join](../join/) for joining without mapping.
|
|
37
|
+
|
|
38
|
+
## Overload 2
|
|
39
|
+
|
|
40
|
+
Map a Map to an array using a mapper and place a joiner between each element. Defaults to joining with a newline.
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import { mapJoin } from "@alloy-js/core";
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
function mapJoin<U, V>(src: () => Set<U>, cb: (value: U, index: number) => V, options?: JoinOptions): () => (V | string | undefined | CustomContext)[];
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
| | | |
|
|
52
|
+
| ------- | ------------------------------ | - |
|
|
53
|
+
| src | () => Set\<U> | |
|
|
54
|
+
| cb | (value: U, index: number) => V | |
|
|
55
|
+
| options | optional JoinOptions | |
|
|
56
|
+
|
|
57
|
+
### Options
|
|
58
|
+
|
|
59
|
+
| | | |
|
|
60
|
+
| --------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
61
|
+
| ender | optional [Children](../../types/children/) | When true, the joiner is placed at the end of the array. When a string, that string is placed at the end of the array. The ender is only emitted when the array has at least one element. |
|
|
62
|
+
| joiner | optional [Children](../../types/children/) | The string to place between each element. |
|
|
63
|
+
| skipFalsy | optional boolean | When true, falsy values with the exception of 0 are skipped. |
|
|
64
|
+
|
|
65
|
+
### Returns
|
|
66
|
+
|
|
67
|
+
() => (V | string | undefined | [CustomContext](../../types/customcontext/))\[] The mapped and joined array.
|
|
68
|
+
|
|
69
|
+
### See also
|
|
70
|
+
|
|
71
|
+
* [join](../join/) for joining without mapping.
|
|
72
|
+
|
|
73
|
+
## Overload 3
|
|
74
|
+
|
|
75
|
+
Map a array or iterator to another array using a mapper and place a joiner between each element. Defaults to joining with a newline.
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
import { mapJoin } from "@alloy-js/core";
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
function mapJoin<T, V>(src: () => T[] | IterableIterator<T>, cb: (value: T, index: number) => V, options?: JoinOptions): () => (V | string | undefined | CustomContext)[];
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Parameters
|
|
85
|
+
|
|
86
|
+
| | | |
|
|
87
|
+
| ------- | ---------------------------------- | - |
|
|
88
|
+
| src | () => T\[] \| IterableIterator\<T> | |
|
|
89
|
+
| cb | (value: T, index: number) => V | |
|
|
90
|
+
| options | optional JoinOptions | |
|
|
91
|
+
|
|
92
|
+
### Options
|
|
93
|
+
|
|
94
|
+
| | | |
|
|
95
|
+
| --------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| ender | optional [Children](../../types/children/) | When true, the joiner is placed at the end of the array. When a string, that string is placed at the end of the array. The ender is only emitted when the array has at least one element. |
|
|
97
|
+
| joiner | optional [Children](../../types/children/) | The string to place between each element. |
|
|
98
|
+
| skipFalsy | optional boolean | When true, falsy values with the exception of 0 are skipped. |
|
|
99
|
+
|
|
100
|
+
### Returns
|
|
101
|
+
|
|
102
|
+
() => (V | string | undefined | [CustomContext](../../types/customcontext/))\[] The mapped and joined array.
|
|
103
|
+
|
|
104
|
+
### See also
|
|
105
|
+
|
|
106
|
+
* [join](../join/) for joining without mapping.
|