inkblot 0.2.5 → 0.2.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81135a6272804abdb0476aa607bd9c514f80c255d8073a1e5816f524b329c1bb
4
- data.tar.gz: cf3ce4cf788b02430557d88d837c73f8559ad7a0d31d732c7782aee92c01894c
3
+ metadata.gz: d39d95efd90e3c943bde377aecd787a7f0666195f6e28bc947a63181a8853e00
4
+ data.tar.gz: 253a8896a58ac9c47a874de3d6155f9b0b2b53c8daef44b2680556c4e59cd550
5
5
  SHA512:
6
- metadata.gz: 3fd062e31c3f8381beeb0c41c261e59ce273ad794c35f531858e6e835038ca9c671c95399f03cd3f7e72e8f459ddcf6089ec86d625482bd912c2a65f4006b6bc
7
- data.tar.gz: dc1da9e310e07d4b180fe719b408ebfe71cf0a8f67566ebd787b5b97915597e6cf0c54df20bb6c11b1f16e4b5b59d7c85ea42ad1e7a726b2f38e8b7d981854b8
6
+ metadata.gz: 94e56617989f92e4b9129e9bba4415eb78e6ae361b4c4736f4f22877e108db7414af6de371714a8d5a9e485ce351aa51a731cd55af72cea761ec35f3c0e0c727
7
+ data.tar.gz: 22076dda039db00f8cb5774dc4c88d2a57d0a9ab2920df599ad6264180a304253ed9b1ea42671b1f5e8e6b4d7a70b28d0e489351ebc988c85a5d537593b23459
data/js-src/search.js CHANGED
@@ -9,11 +9,12 @@ fetch(import.meta.resolve("./search.index.json")).then(async (resp) => {
9
9
  const meta = index.pages[page];
10
10
  return {
11
11
  id: page,
12
- title: "title" in meta.fm ? meta.fm.title : page,
12
+ title: meta.fm.title ?? page,
13
13
  handler: () => {
14
14
  location.assign(meta.out);
15
15
  },
16
16
  section: section,
17
+ keywords: meta.fm.keywords,
17
18
  };
18
19
  }),
19
20
  );
data/lib/assets/main.js CHANGED
@@ -425,7 +425,7 @@ var ae=window,le=ae.ShadowRoot&&(ae.ShadyCSS===void 0||ae.ShadyCSS.nativeShadow)
425
425
  <slot name="footer"> ${Dt} </slot>
426
426
  </div>
427
427
  </div>
428
- `}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){let r=e.handler(e);r?.keepOpen||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;!((t=e.target)===null||t===void 0)&&t.classList.contains("modal")&&this.close()}};_.styles=[Ut];b([m({type:String})],_.prototype,"placeholder",void 0);b([m({type:Boolean})],_.prototype,"disableHotkeys",void 0);b([m({type:Boolean})],_.prototype,"hideBreadcrumbs",void 0);b([m()],_.prototype,"openHotkey",void 0);b([m()],_.prototype,"navigationUpHotkey",void 0);b([m()],_.prototype,"navigationDownHotkey",void 0);b([m()],_.prototype,"closeHotkey",void 0);b([m()],_.prototype,"goBackHotkey",void 0);b([m()],_.prototype,"selectHotkey",void 0);b([m({type:Boolean})],_.prototype,"hotKeysJoinedView",void 0);b([m({type:Boolean})],_.prototype,"noAutoLoadMdIcons",void 0);b([m({type:Array,hasChanged(){return!0}})],_.prototype,"data",void 0);b([R()],_.prototype,"visible",void 0);b([R()],_.prototype,"_bump",void 0);b([R()],_.prototype,"_actionMatches",void 0);b([R()],_.prototype,"_search",void 0);b([R()],_.prototype,"_currentRoot",void 0);b([R()],_.prototype,"_flatData",void 0);b([R()],_.prototype,"breadcrumbs",null);b([R()],_.prototype,"_selected",void 0);_=b([D("ninja-keys")],_);fetch(import.meta.resolve("./search.index.json")).then(async i=>{let e=await i.json();document.querySelector("ninja-keys").data=e.sections.flatMap(Object.entries).flatMap(([t,r])=>r.map(n=>{let o=e.pages[n];return{id:n,title:"title"in o.fm?o.fm.title:n,handler:()=>{location.assign(o.out)},section:t}}))});
428
+ `}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){let r=e.handler(e);r?.keepOpen||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;!((t=e.target)===null||t===void 0)&&t.classList.contains("modal")&&this.close()}};_.styles=[Ut];b([m({type:String})],_.prototype,"placeholder",void 0);b([m({type:Boolean})],_.prototype,"disableHotkeys",void 0);b([m({type:Boolean})],_.prototype,"hideBreadcrumbs",void 0);b([m()],_.prototype,"openHotkey",void 0);b([m()],_.prototype,"navigationUpHotkey",void 0);b([m()],_.prototype,"navigationDownHotkey",void 0);b([m()],_.prototype,"closeHotkey",void 0);b([m()],_.prototype,"goBackHotkey",void 0);b([m()],_.prototype,"selectHotkey",void 0);b([m({type:Boolean})],_.prototype,"hotKeysJoinedView",void 0);b([m({type:Boolean})],_.prototype,"noAutoLoadMdIcons",void 0);b([m({type:Array,hasChanged(){return!0}})],_.prototype,"data",void 0);b([R()],_.prototype,"visible",void 0);b([R()],_.prototype,"_bump",void 0);b([R()],_.prototype,"_actionMatches",void 0);b([R()],_.prototype,"_search",void 0);b([R()],_.prototype,"_currentRoot",void 0);b([R()],_.prototype,"_flatData",void 0);b([R()],_.prototype,"breadcrumbs",null);b([R()],_.prototype,"_selected",void 0);_=b([D("ninja-keys")],_);fetch(import.meta.resolve("./search.index.json")).then(async i=>{let e=await i.json();document.querySelector("ninja-keys").data=e.sections.flatMap(Object.entries).flatMap(([t,r])=>r.map(n=>{let o=e.pages[n];return{id:n,title:o.fm.title??n,handler:()=>{location.assign(o.out)},section:t,keywords:o.fm.keywords}}))});
429
429
  /*! Bundled license information:
430
430
 
431
431
  @lit/reactive-element/css-tag.js:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Inkblot
4
- VERSION = "0.2.5"
4
+ VERSION = "0.2.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inkblot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleks Rutins