@ctx-core/window 14.0.28 → 14.0.31

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @ctx-core/window
2
2
 
3
+ ## 14.0.31
4
+
5
+ ### Patch Changes
6
+
7
+ - @ctx-core/nanostores: 1.4.0
8
+
9
+ ## 14.0.30
10
+
11
+ ### Patch Changes
12
+
13
+ - @ctx-core/nanostores: 1.3.0
14
+
15
+ ## 14.0.29
16
+
17
+ ### Patch Changes
18
+
19
+ - @ctx-core/nanostores: 1.2.0
20
+
3
21
  ## 14.0.28
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/window",
3
- "version": "14.0.28",
3
+ "version": "14.0.31",
4
4
  "description": "ctx-core window",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@ctx-core/dom": "^11.1.21",
28
28
  "@ctx-core/function": "^20.8.0",
29
- "@ctx-core/nanostores": "^1.1.1",
29
+ "@ctx-core/nanostores": "^1.4.0",
30
30
  "@ctx-core/object": "^22.2.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import { WritableAtom$ } from '@ctx-core/nanostores'
1
+ import { WritableAtom_ } from '@ctx-core/nanostores'
2
2
  import { B } from '@ctx-core/object'
3
3
  export declare const hostname$_:B<hostname$_T>
4
- export declare type hostname$_T = WritableAtom$<string|undefined>;
4
+ export declare type hostname$_T = WritableAtom_<string|undefined>;
package/src/hostname$_.js CHANGED
@@ -1,4 +1,4 @@
1
- import { atom$ } from '@ctx-core/nanostores'
1
+ import { atom_ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
3
  export const hostname$_ = be_('hostname$', ()=>
4
- atom$(undefined))
4
+ atom_(undefined))
@@ -1,5 +1,5 @@
1
- import { WritableAtom$ } from '@ctx-core/nanostores'
1
+ import { WritableAtom_ } from '@ctx-core/nanostores'
2
2
  import { B } from '@ctx-core/object'
3
3
  export declare const pathname$_:B<pathname$_T>
4
- export declare type pathname$_T = WritableAtom$<string|undefined>;
4
+ export declare type pathname$_T = WritableAtom_<string|undefined>;
5
5
  export { pathname$_ as b__pathname }
package/src/pathname$_.js CHANGED
@@ -1,5 +1,5 @@
1
- import { atom$ } from '@ctx-core/nanostores'
1
+ import { atom_ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
3
  export const pathname$_ = be_('pathname$',
4
- ()=>atom$(undefined))
4
+ ()=>atom_(undefined))
5
5
  export { pathname$_ as b__pathname }
@@ -1,6 +1,6 @@
1
- import { WritableAtom$ } from '@ctx-core/nanostores'
1
+ import { WritableAtom_ } from '@ctx-core/nanostores'
2
2
  import { B } from '@ctx-core/object'
3
3
  export declare const window_location$_:B<window_location$_T>
4
- export interface window_location$_T extends WritableAtom$<Location|undefined> {
4
+ export interface window_location$_T extends WritableAtom_<Location|undefined> {
5
5
  reset_window_location:()=>void;
6
6
  }
@@ -1,9 +1,9 @@
1
1
  import { has_dom } from '@ctx-core/dom'
2
- import { atom$ } from '@ctx-core/nanostores'
2
+ import { atom_ } from '@ctx-core/nanostores'
3
3
  import { assign, be_ } from '@ctx-core/object'
4
4
  export const window_location$_ = be_('window_location$', ()=>{
5
- const window_location$ = atom$(undefined)
6
- const window_location_reload_popstate_bound$ = atom$(undefined)
5
+ const window_location$ = atom_(undefined)
6
+ const window_location_reload_popstate_bound$ = atom_(undefined)
7
7
  if (has_dom) {
8
8
  reset_window_location()
9
9
  }
@@ -1,4 +1,4 @@
1
- import { ReadableAtom$ } from '@ctx-core/nanostores'
1
+ import { ReadableAtom_ } from '@ctx-core/nanostores'
2
2
  import { B } from '@ctx-core/object'
3
3
  export declare const window_location_hostname$_:B<window_location_hostname$_T>
4
- export declare type window_location_hostname$_T = ReadableAtom$<string|undefined>;
4
+ export declare type window_location_hostname$_T = ReadableAtom_<string|undefined>;
@@ -1,8 +1,8 @@
1
- import { computed$ } from '@ctx-core/nanostores'
1
+ import { computed_ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
3
  import { hostname$_ } from './hostname$_.js'
4
4
  import { window_location$_ } from './window_location$_.js'
5
- export const window_location_hostname$_ = be_('window_location_hostname$', (ctx)=>computed$([
5
+ export const window_location_hostname$_ = be_('window_location_hostname$', (ctx)=>computed_([
6
6
  hostname$_(ctx),
7
7
  window_location$_(ctx),
8
8
  ], (hostname, window_location)=>
@@ -1,5 +1,5 @@
1
- import { ReadableAtom$ } from '@ctx-core/nanostores'
1
+ import { ReadableAtom_ } from '@ctx-core/nanostores'
2
2
  import { B } from '@ctx-core/object'
3
3
  export declare const window_location_pathname$_:B<window_location_pathname$_T>
4
4
  export declare type window_location_pathname_T = string|undefined;
5
- export declare type window_location_pathname$_T = ReadableAtom$<window_location_pathname_T>;
5
+ export declare type window_location_pathname$_T = ReadableAtom_<window_location_pathname_T>;
@@ -1,8 +1,8 @@
1
- import { computed$ } from '@ctx-core/nanostores'
1
+ import { computed_ } from '@ctx-core/nanostores'
2
2
  import { be_ } from '@ctx-core/object'
3
3
  import { pathname$_ } from './pathname$_.js'
4
4
  import { window_location$_ } from './window_location$_.js'
5
- export const window_location_pathname$_ = be_('window_location_pathname$', (ctx)=>computed$([
5
+ export const window_location_pathname$_ = be_('window_location_pathname$', (ctx)=>computed_([
6
6
  pathname$_(ctx),
7
7
  window_location$_(ctx),
8
8
  ], (pathname, location__window)=>