Skip to content

Commit

Permalink
release getcanary/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Oct 11, 2024
1 parent 603511c commit 5175c31
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 18 deletions.
7 changes: 0 additions & 7 deletions core/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,8 @@ import "@getcanary/web/components/canary-content.js";
import "@getcanary/web/components/canary-input.js";
import "@getcanary/web/components/canary-search.js";
import "@getcanary/web/components/canary-search-results.js";
import "@getcanary/web/components/canary-mode-breadcrumb.js";
import "@getcanary/web/components/canary-search-suggestions.js";
import "@getcanary/web/components/canary-search-match-github-issue.js";
import "@getcanary/web/components/canary-search-match-github-discussion.js";
import "@getcanary/web/components/canary-ask.js";
import "@getcanary/web/components/canary-ask-results.js";
import "@getcanary/web/components/canary-search-empty.js";
import "@getcanary/web/components/canary-ask.js";
import "@getcanary/web/components/canary-ask-results.js";

let csrfToken = document
.querySelector("meta[name='csrf-token']")
Expand Down
8 changes: 4 additions & 4 deletions core/assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"typescript": "^5.4.5"
},
"dependencies": {
"@getcanary/web": "^1.0.6",
"@getcanary/web": "^1.0.7",
"@openreplay/tracker": "^14.0.9",
"@sentry/browser": "^8.33.1",
"best-effort-json-parser": "^1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion js/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"vue": "^3.4.35"
},
"dependencies": {
"@getcanary/web": "^1.0.6",
"@getcanary/web": "^1.0.7",
"@mux/blurup": "^0.2.3",
"@mux/mux-player": "^3.0.0",
"@unocss/reset": "^0.63.3",
Expand Down
4 changes: 2 additions & 2 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions js/packages/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @getcanary/web

## 1.0.7

### Patch Changes

- Add optional picomatch's options field in TabDefinition.

## 1.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion js/packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getcanary/web",
"version": "1.0.6",
"version": "1.0.7",
"license": "MIT",
"type": "module",
"main": "dist/components/canary-root.js",
Expand Down
6 changes: 4 additions & 2 deletions js/packages/web/src/components/canary-filter-tabs-glob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ export class CanaryFilterTabsGlob extends LitElement {
filter: {
args: { tab: this._selected },
fn: (matches, { tab }: { tab: string }) => {
const { pattern } = this.tabs.find(({ name }) => name === tab)!;
const matcher = pm(pattern);
const { pattern, options } = this.tabs.find(
({ name }) => name === tab,
)!;
const matcher = pm(pattern, options);

return matches.filter((m) => {
let target = "";
Expand Down
6 changes: 6 additions & 0 deletions js/packages/web/src/types/schema/generated/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@
export type TabDefinitions = {
name: string;
pattern: string;
/**
* https://github.com/micromatch/picomatch?tab=readme-ov-file#options
*/
options?: {
[k: string]: unknown;
};
}[];
4 changes: 4 additions & 0 deletions js/packages/web/src/types/schema/tabs.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
},
"pattern": {
"type": "string"
},
"options": {
"type": "object",
"description": "https://github.com/micromatch/picomatch?tab=readme-ov-file#options"
}
},
"required": ["name", "pattern"],
Expand Down

0 comments on commit 5175c31

Please sign in to comment.