Unify Derivation and Prism 9/n

This commit is contained in:
Aria Minaei 2022-12-01 14:47:20 +01:00
parent 27b9c96afd
commit 3552f50613
12 changed files with 12 additions and 12 deletions

View file

@ -1,15 +1,15 @@
import get from 'lodash-es/get' import get from 'lodash-es/get'
import isPlainObject from 'lodash-es/isPlainObject' import isPlainObject from 'lodash-es/isPlainObject'
import last from 'lodash-es/last' import last from 'lodash-es/last'
import type {Prism} from './derivations/Interface' import type {Prism} from './prisms/Interface'
import {isPrism} from './derivations/Interface' import {isPrism} from './prisms/Interface'
import type {Pointer, PointerType} from './pointer' import type {Pointer, PointerType} from './pointer'
import {isPointer} from './pointer' import {isPointer} from './pointer'
import pointer, {getPointerMeta} from './pointer' import pointer, {getPointerMeta} from './pointer'
import type {$FixMe, $IntentionalAny} from './types' import type {$FixMe, $IntentionalAny} from './types'
import type {PathBasedReducer} from './utils/PathBasedReducer' import type {PathBasedReducer} from './utils/PathBasedReducer'
import updateDeep from './utils/updateDeep' import updateDeep from './utils/updateDeep'
import prism from './derivations/prism/prism' import prism from './prisms/prism/prism'
type Listener = (newVal: unknown) => void type Listener = (newVal: unknown) => void

View file

@ -1,5 +1,5 @@
import type {Prism} from './derivations/Interface' import type {Prism} from './prisms/Interface'
import prism from './derivations/prism/prism' import prism from './prisms/prism/prism'
import Emitter from './utils/Emitter' import Emitter from './utils/Emitter'
/** /**

View file

@ -5,7 +5,7 @@ import pointer from './pointer'
import type {IBox} from './Box' import type {IBox} from './Box'
import Box from './Box' import Box from './Box'
import type {$FixMe, $IntentionalAny} from './types' import type {$FixMe, $IntentionalAny} from './types'
import prism from './derivations/prism/prism' import prism from './prisms/prism/prism'
/** /**
* Allows creating pointer-derivations where the pointer can be switched out. * Allows creating pointer-derivations where the pointer can be switched out.

View file

@ -8,11 +8,11 @@ export type {IdentityPrismProvider} from './Atom'
export {default as Atom, val, pointerToPrism} from './Atom' export {default as Atom, val, pointerToPrism} from './Atom'
export {default as Box} from './Box' export {default as Box} from './Box'
export type {IBox} from './Box' export type {IBox} from './Box'
export {isPrism} from './derivations/Interface' export {isPrism} from './prisms/Interface'
export type {Prism} from './derivations/Interface' export type {Prism} from './prisms/Interface'
export {default as iterateAndCountTicks} from './derivations/iterateAndCountTicks' export {default as iterateAndCountTicks} from './prisms/iterateAndCountTicks'
export {default as iterateOver} from './derivations/iterateOver' export {default as iterateOver} from './prisms/iterateOver'
export {default as prism} from './derivations/prism/prism' export {default as prism} from './prisms/prism/prism'
export {default as pointer, getPointerParts, isPointer} from './pointer' export {default as pointer, getPointerParts, isPointer} from './pointer'
export type {Pointer, PointerType} from './pointer' export type {Pointer, PointerType} from './pointer'
export {default as Ticker} from './Ticker' export {default as Ticker} from './Ticker'

View file

@ -2,7 +2,7 @@
* @jest-environment jsdom * @jest-environment jsdom
*/ */
import Atom, {val} from './Atom' import Atom, {val} from './Atom'
import prism from './derivations/prism/prism' import prism from './prisms/prism/prism'
import Ticker from './Ticker' import Ticker from './Ticker'
describe(`v2 atom`, () => { describe(`v2 atom`, () => {