@-0/browser
Advanced tools
Comparing version 0.3.65 to 0.3.66
import { ICommand } from "@-0/keys"; | ||
export declare const cmd_flip_first: ICommand; | ||
export declare const cmd_flip_last_inverse_play: ICommand; |
@@ -0,0 +0,0 @@ import { Atom } from "@thi.ng/atom"; |
import { ICommand } from "@-0/keys"; | ||
export declare const cmd_inject_head: ICommand; |
@@ -0,0 +0,0 @@ import { URL_DATA, CMD_SUB$, CMD_ARGS, CMD_WORK, DOM_HEAD, HD_TITL, HD_ICON, HD_TYPE, HD_DESC, HD_IMGU, HD_IMGW, HD_IMGH, } from "@-0/keys"; |
@@ -0,0 +0,0 @@ export * from "./FLIP"; |
@@ -0,0 +0,0 @@ export * from "./FLIP"; |
@@ -0,0 +0,0 @@ import * as API from "@-0/keys"; |
@@ -0,0 +0,0 @@ import * as API from "@-0/keys"; |
@@ -0,0 +0,0 @@ import { ICommand, Command } from "@-0/keys"; |
@@ -0,0 +0,0 @@ import { URL2obj, Err_missing_props } from "@-0/utils"; |
@@ -0,0 +0,0 @@ import { Command, ICommandObject } from "@-0/keys"; |
@@ -0,0 +0,0 @@ import { CMD_SUB$, CMD_ARGS, CMD_WORK, STATE_DATA, STATE_PATH } from "@-0/keys"; |
export * from "./stream$"; |
export * from "./stream$"; |
@@ -0,0 +0,0 @@ import { ISubscribable } from "@thi.ng/rstream"; |
@@ -0,0 +0,0 @@ import { fromDOMEvent, merge } from "@thi.ng/rstream"; |
@@ -0,0 +0,0 @@ export * as API from "@-0/keys"; |
@@ -0,0 +0,0 @@ import * as API_1 from "@-0/keys"; |
export * from "./routing"; |
export * from "./routing"; |
@@ -0,0 +0,0 @@ import { Command, Router, RouterCFG } from "@-0/keys"; |
@@ -0,0 +0,0 @@ import { DOM_NODE, URL_FULL, CMD_SUB$, CMD_ARGS, CMD_SRC$, CMD_WORK, POP_STATE, } from "@-0/keys"; |
export { $store$, set$$tate } from "./state"; |
export { $store$, set$$tate } from "./state"; |
@@ -0,0 +0,0 @@ import { Atom } from "@thi.ng/atom"; |
@@ -0,0 +0,0 @@ import { Atom } from "@thi.ng/atom"; |
export * from "./routing"; |
export * from "./routing"; |
import { RouterCFG, Router, HOTask, Command } from "@-0/keys"; | ||
export declare const __URL__ROUTE: (CFG: Router | RouterCFG, SET_STATE: Command) => HOTask; | ||
export declare const __DOM_URL__ROUTE: (CFG: Router | RouterCFG, SET_STATE: Command) => HOTask; |
@@ -42,2 +42,9 @@ import { isPlainObject } from "@thi.ng/checks"; | ||
}; | ||
const conflict_warning = ` | ||
consider returning a \`${URL_DATA}\` property from your | ||
router to isolate the data needed for this route | ||
`; | ||
const no_data_warning = path => ` | ||
no data associated with \`${URL_PATH}\`: ${path} | ||
`; | ||
export const __DOM_URL__ROUTE = (CFG, SET_STATE) => { | ||
@@ -59,5 +66,4 @@ const { urlToPageState, POST, PREP } = router_opts(CFG); | ||
acc[URL_DATA] || | ||
(console.warn(`consider returning a \`${URL_DATA}\` property from your router to isolate the data needed for this route`), | ||
acc) || | ||
null, | ||
(acc && console.warn(conflict_warning), acc) || | ||
console.warn(no_data_warning(acc[URL_PATH]), null), | ||
}) }); | ||
@@ -64,0 +70,0 @@ const ROUTE_HOT = (args) => [ |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.3.65", | ||
"version": "0.3.66", | ||
"description": "Browser helpers for -0 state management, routing and the interaction between", | ||
@@ -35,25 +35,25 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@-0/keys": "^0.3.59", | ||
"@-0/utils": "^0.3.57", | ||
"@-0/spool": "^0.3.47", | ||
"@thi.ng/paths": "^5.0.4", | ||
"@thi.ng/rstream": "^7.0.4" | ||
"@-0/keys": "^0.3.60", | ||
"@-0/utils": "^0.3.58", | ||
"@-0/spool": "^0.3.48", | ||
"@thi.ng/paths": "^5.0.8", | ||
"@thi.ng/rstream": "^7.0.9" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-transform-modules-commonjs": "^7.15.4", | ||
"@thi.ng/arrays": "^2.0.4", | ||
"@thi.ng/associative": "6.0.4", | ||
"@thi.ng/atom": "^5.0.4", | ||
"@thi.ng/checks": "^3.0.4", | ||
"@thi.ng/paths": "^5.0.4", | ||
"@thi.ng/rstream": "^7.0.4", | ||
"@thi.ng/transducers": "^8.0.4", | ||
"@babel/plugin-transform-modules-commonjs": "^7.16.0", | ||
"@thi.ng/arrays": "^2.0.8", | ||
"@thi.ng/associative": "6.0.9", | ||
"@thi.ng/atom": "^5.0.8", | ||
"@thi.ng/checks": "^3.0.7", | ||
"@thi.ng/paths": "^5.0.8", | ||
"@thi.ng/rstream": "^7.0.9", | ||
"@thi.ng/transducers": "^8.0.8", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^16.11.5", | ||
"@typescript-eslint/eslint-plugin": "^5.2.0", | ||
"@typescript-eslint/parser": "^5.2.0", | ||
"@types/node": "^16.11.7", | ||
"@typescript-eslint/eslint-plugin": "^5.3.1", | ||
"@typescript-eslint/parser": "^5.3.1", | ||
"babel-jest": "^27.3.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.1.0", | ||
"eslint-plugin-jest": "^25.2.2", | ||
"eslint": "^8.2.0", | ||
"eslint-plugin-jest": "^25.2.4", | ||
"gh-pages": "^3.2.3", | ||
@@ -60,0 +60,0 @@ "jest": "^27.3.1", |
677
49387
Updated@-0/keys@^0.3.60
Updated@-0/spool@^0.3.48
Updated@-0/utils@^0.3.58
Updated@thi.ng/paths@^5.0.8
Updated@thi.ng/rstream@^7.0.9