@contember/react-multipass-rendering 2.1.0-beta.2 → 2.2.0-alpha.1
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/dist/development/src/ChildrenAnalyzer.cjs.map +1 -1
- package/dist/development/src/ChildrenAnalyzer.js.map +1 -1
- package/dist/development/src/helpers/getErrorMessage.cjs.map +1 -1
- package/dist/development/src/helpers/getErrorMessage.js.map +1 -1
- package/dist/development/src/helpers/wrapError.cjs.map +1 -1
- package/dist/development/src/helpers/wrapError.js.map +1 -1
- package/dist/development/src/nodeSpecs/BranchNode.cjs.map +1 -1
- package/dist/development/src/nodeSpecs/BranchNode.js.map +1 -1
- package/dist/development/src/nodeSpecs/Leaf.cjs.map +1 -1
- package/dist/development/src/nodeSpecs/Leaf.js.map +1 -1
- package/dist/production/src/ChildrenAnalyzer.cjs.map +1 -1
- package/dist/production/src/ChildrenAnalyzer.js.map +1 -1
- package/dist/production/src/helpers/getErrorMessage.cjs.map +1 -1
- package/dist/production/src/helpers/getErrorMessage.js.map +1 -1
- package/dist/production/src/helpers/wrapError.cjs.map +1 -1
- package/dist/production/src/helpers/wrapError.js.map +1 -1
- package/dist/production/src/nodeSpecs/BranchNode.cjs.map +1 -1
- package/dist/production/src/nodeSpecs/BranchNode.js.map +1 -1
- package/dist/production/src/nodeSpecs/Leaf.cjs.map +1 -1
- package/dist/production/src/nodeSpecs/Leaf.js.map +1 -1
- package/dist/types/BranchNodeList.d.ts +1 -1
- package/dist/types/BranchNodeList.d.ts.map +1 -1
- package/dist/types/ChildrenAnalyzer.d.ts +3 -3
- package/dist/types/ChildrenAnalyzer.d.ts.map +1 -1
- package/dist/types/ChildrenAnalyzerOptions.d.ts +1 -1
- package/dist/types/ChildrenAnalyzerOptions.d.ts.map +1 -1
- package/dist/types/LeafList.d.ts +1 -1
- package/dist/types/LeafList.d.ts.map +1 -1
- package/dist/types/helpers/getErrorMessage.d.ts +1 -1
- package/dist/types/helpers/getErrorMessage.d.ts.map +1 -1
- package/dist/types/helpers/index.d.ts +1 -1
- package/dist/types/helpers/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/nodeSpecs/BranchNode.d.ts +2 -2
- package/dist/types/nodeSpecs/BranchNode.d.ts.map +1 -1
- package/dist/types/nodeSpecs/Leaf.d.ts +1 -1
- package/dist/types/nodeSpecs/Leaf.d.ts.map +1 -1
- package/dist/types/nodeSpecs/index.d.ts +5 -5
- package/dist/types/nodeSpecs/index.d.ts.map +1 -1
- package/dist/types/nodeSpecs/types/index.d.ts +9 -9
- package/dist/types/nodeSpecs/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/BranchNodeList.ts +1 -1
- package/src/ChildrenAnalyzer.ts +7 -7
- package/src/ChildrenAnalyzerOptions.ts +1 -1
- package/src/LeafList.ts +1 -1
- package/src/helpers/getErrorMessage.ts +1 -1
- package/src/helpers/index.ts +1 -1
- package/src/helpers/wrapError.ts +1 -1
- package/src/index.ts +4 -4
- package/src/nodeSpecs/BranchNode.ts +3 -3
- package/src/nodeSpecs/Leaf.ts +1 -1
- package/src/nodeSpecs/index.ts +5 -5
- package/src/nodeSpecs/types/index.ts +9 -9
- package/tests/cases/unit/childrenAnalyzer.spec.tsx +1 -1
package/src/helpers/wrapError.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react'
|
|
2
|
-
import { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'
|
|
2
|
+
import { ChildrenAnalyzerError } from '../ChildrenAnalyzerError.js'
|
|
3
3
|
|
|
4
4
|
export const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {
|
|
5
5
|
if (!(e instanceof Error)) {
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './nodeSpecs'
|
|
1
|
+
export * from './nodeSpecs/index.js'
|
|
2
2
|
|
|
3
|
-
export * from './ChildrenAnalyzer'
|
|
4
|
-
export * from './ChildrenAnalyzerError'
|
|
5
|
-
export * from './ChildrenAnalyzerOptions'
|
|
3
|
+
export * from './ChildrenAnalyzer.js'
|
|
4
|
+
export * from './ChildrenAnalyzerError.js'
|
|
5
|
+
export * from './ChildrenAnalyzerOptions.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ElementType } from 'react'
|
|
2
|
-
import { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'
|
|
3
|
-
import type { BranchNodeOptions } from './BranchNodeOptions'
|
|
4
|
-
import type { ChildrenRepresentationReducer, UseSiteBranchNodeRepresentationFactory, ValidFactoryName } from './types'
|
|
2
|
+
import { ChildrenAnalyzerError } from '../ChildrenAnalyzerError.js'
|
|
3
|
+
import type { BranchNodeOptions } from './BranchNodeOptions.js'
|
|
4
|
+
import type { ChildrenRepresentationReducer, UseSiteBranchNodeRepresentationFactory, ValidFactoryName } from './types/index.js'
|
|
5
5
|
|
|
6
6
|
class BranchNode<
|
|
7
7
|
Props extends {} = {},
|
package/src/nodeSpecs/Leaf.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ElementType } from 'react'
|
|
2
|
-
import type { ConstrainedLeafRepresentationFactory, UnconstrainedLeafRepresentationFactory, ValidFactoryName } from './types'
|
|
2
|
+
import type { ConstrainedLeafRepresentationFactory, UnconstrainedLeafRepresentationFactory, ValidFactoryName } from './types/index.js'
|
|
3
3
|
|
|
4
4
|
class Leaf<
|
|
5
5
|
Props extends {} = {},
|
package/src/nodeSpecs/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './types'
|
|
1
|
+
export * from './types/index.js'
|
|
2
2
|
|
|
3
|
-
export * from './BranchNode'
|
|
4
|
-
export * from './BranchNodeOptions'
|
|
5
|
-
export * from './Leaf'
|
|
6
|
-
export * from './RawNodeRepresentation'
|
|
3
|
+
export * from './BranchNode.js'
|
|
4
|
+
export * from './BranchNodeOptions.js'
|
|
5
|
+
export * from './Leaf.js'
|
|
6
|
+
export * from './RawNodeRepresentation.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './ChildrenRepresentationReducer'
|
|
2
|
-
export * from './ConstrainedLeafRepresentationFactory'
|
|
3
|
-
export * from './DeclarationSiteNodeRepresentationFactory'
|
|
4
|
-
export * from './RepresentationFactorySite'
|
|
5
|
-
export * from './StaticContextFactory'
|
|
6
|
-
export * from './SyntheticChildrenFactory'
|
|
7
|
-
export * from './UnconstrainedLeafRepresentationFactory'
|
|
8
|
-
export * from './UseSiteBranchNodeRepresentationFactory'
|
|
9
|
-
export * from './ValidFactoryName'
|
|
1
|
+
export * from './ChildrenRepresentationReducer.js'
|
|
2
|
+
export * from './ConstrainedLeafRepresentationFactory.js'
|
|
3
|
+
export * from './DeclarationSiteNodeRepresentationFactory.js'
|
|
4
|
+
export * from './RepresentationFactorySite.js'
|
|
5
|
+
export * from './StaticContextFactory.js'
|
|
6
|
+
export * from './SyntheticChildrenFactory.js'
|
|
7
|
+
export * from './UnconstrainedLeafRepresentationFactory.js'
|
|
8
|
+
export * from './UseSiteBranchNodeRepresentationFactory.js'
|
|
9
|
+
export * from './ValidFactoryName.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, it } from 'bun:test'
|
|
2
2
|
import type { FunctionComponent, ReactElement, ReactNode } from 'react'
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import { BranchNode, ChildrenAnalyzer, Leaf, RawNodeRepresentation } from '../../../src'
|
|
4
|
+
import { BranchNode, ChildrenAnalyzer, Leaf, RawNodeRepresentation } from '../../../src/index.js'
|
|
5
5
|
|
|
6
6
|
interface FooComponentProps {
|
|
7
7
|
foo: string
|