Initial version

This commit is contained in:
Benji Grant 2024-07-19 12:41:29 +10:00
parent fc86dcaebf
commit 82fa82043b
No known key found for this signature in database
GPG key ID: D41929A51D291D4D
19 changed files with 784 additions and 364 deletions

View file

@ -1,10 +0,0 @@
# top-most EditorConfig file
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 4
tab_width = 4

View file

@ -1,3 +0,0 @@
node_modules/
main.js

View file

@ -1,23 +0,0 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": { "node": true },
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-function": "off"
}
}

15
.gitignore vendored
View file

@ -1,15 +1,7 @@
# vscode
.vscode
# Intellij
*.iml
.idea
# npm
node_modules
.yarn
.DS_Store
# Don't include the compiled main.js file in the repo.
# They should be uploaded to GitHub releases instead.
main.js
# Exclude sourcemaps
@ -17,6 +9,3 @@ main.js
# obsidian
data.json
# Exclude macOS Finder (System Explorer) View States
.DS_Store

3
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}

9
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,9 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "explicit",
"source.fixAll.biome": "explicit"
}
}

2
.yarnrc.yml Normal file
View file

@ -0,0 +1,2 @@
nodeLinker: node-modules
compressionLevel: mixed

View file

@ -1,96 +1,19 @@
# Obsidian Sample Plugin
# Obsidian CSS Colors
This is a sample plugin for Obsidian (https://obsidian.md).
Show inline color hints for CSS colors in Obsidian.
This project uses Typescript to provide type checking and documentation.
The repo depends on the latest plugin API (obsidian.d.ts) in Typescript Definition format, which contains TSDoc comments describing what it does.
To use, just put any valid CSS color syntax in a code block like so: \`#8A5CF5\`.
**Note:** The Obsidian API is still in early alpha and is subject to change at any time!
<img src="example.jpg" alt="Example of the extension running for all CSS color formats" width="200">
This sample plugin demonstrates some of the basic functionality the plugin API can do.
- Adds a ribbon icon, which shows a Notice when clicked.
- Adds a command "Open Sample Modal" which opens a Modal.
- Adds a plugin setting tab to the settings page.
- Registers a global click event and output 'click' to the console.
- Registers a global interval which logs 'setInterval' to the console.
## Todo
## First time developing plugins?
This plugin is still in alpha. Before v1.0.0 is released I want to finish the following features:
Quick starting guide for new plugin devs:
- [x] Show colors in reading mode
- [ ] Show colors in live preview mode
- [ ] Edit colors with a color picker in live preview mode
- Check if [someone already developed a plugin for what you want](https://obsidian.md/plugins)! There might be an existing plugin similar enough that you can partner up with.
- Make a copy of this repo as a template with the "Use this template" button (login to GitHub if you don't see it).
- Clone your repo to a local development folder. For convenience, you can place this folder in your `.obsidian/plugins/your-plugin-name` folder.
- Install NodeJS, then run `npm i` in the command line under your repo folder.
- Run `npm run dev` to compile your plugin from `main.ts` to `main.js`.
- Make changes to `main.ts` (or create new `.ts` files). Those changes should be automatically compiled into `main.js`.
- Reload Obsidian to load the new version of your plugin.
- Enable plugin in settings window.
- For updates to the Obsidian API run `npm update` in the command line under your repo folder.
## Development
## Releasing new releases
- Update your `manifest.json` with your new version number, such as `1.0.1`, and the minimum Obsidian version required for your latest release.
- Update your `versions.json` file with `"new-plugin-version": "minimum-obsidian-version"` so older versions of Obsidian can download an older version of your plugin that's compatible.
- Create new GitHub release using your new version number as the "Tag version". Use the exact version number, don't include a prefix `v`. See here for an example: https://github.com/obsidianmd/obsidian-sample-plugin/releases
- Upload the files `manifest.json`, `main.js`, `styles.css` as binary attachments. Note: The manifest.json file must be in two places, first the root path of your repository and also in the release.
- Publish the release.
> You can simplify the version bump process by running `npm version patch`, `npm version minor` or `npm version major` after updating `minAppVersion` manually in `manifest.json`.
> The command will bump version in `manifest.json` and `package.json`, and add the entry for the new version to `versions.json`
## Adding your plugin to the community plugin list
- Check https://github.com/obsidianmd/obsidian-releases/blob/master/plugin-review.md
- Publish an initial version.
- Make sure you have a `README.md` file in the root of your repo.
- Make a pull request at https://github.com/obsidianmd/obsidian-releases to add your plugin.
## How to use
- Clone this repo.
- Make sure your NodeJS is at least v16 (`node --version`).
- `npm i` or `yarn` to install dependencies.
- `npm run dev` to start compilation in watch mode.
## Manually installing the plugin
- Copy over `main.js`, `styles.css`, `manifest.json` to your vault `VaultFolder/.obsidian/plugins/your-plugin-id/`.
## Improve code quality with eslint (optional)
- [ESLint](https://eslint.org/) is a tool that analyzes your code to quickly find problems. You can run ESLint against your plugin to find common bugs and ways to improve your code.
- To use eslint with this project, make sure to install eslint from terminal:
- `npm install -g eslint`
- To use eslint to analyze this project use this command:
- `eslint main.ts`
- eslint will then create a report with suggestions for code improvement by file and line number.
- If your source code is in a folder, such as `src`, you can use eslint with this command to analyze all files in that folder:
- `eslint .\src\`
## Funding URL
You can include funding URLs where people who use your plugin can financially support it.
The simple way is to set the `fundingUrl` field to your link in your `manifest.json` file:
```json
{
"fundingUrl": "https://buymeacoffee.com"
}
```
If you have multiple URLs, you can also do:
```json
{
"fundingUrl": {
"Buy Me a Coffee": "https://buymeacoffee.com",
"GitHub Sponsor": "https://github.com/sponsors",
"Patreon": "https://www.patreon.com/"
}
}
```
## API Documentation
See https://github.com/obsidianmd/obsidian-api
This project uses Biome and Yarn for linting/formatting and package management. Run `yarn dev` to build on changes.

31
biome.json Normal file
View file

@ -0,0 +1,31 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": "warn",
"noUnusedVariables": "warn"
}
}
},
"formatter": {
"indentStyle": "space"
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded"
}
}
}

View file

@ -1,48 +1,40 @@
import esbuild from "esbuild";
import process from "process";
import builtins from "builtin-modules";
import process from 'node:process'
import builtins from 'builtin-modules'
import esbuild from 'esbuild'
const banner =
`/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
`;
const prod = (process.argv[2] === "production");
const prod = process.argv[2] === 'production'
const context = await esbuild.context({
banner: {
js: banner,
},
entryPoints: ["main.ts"],
bundle: true,
external: [
"obsidian",
"electron",
"@codemirror/autocomplete",
"@codemirror/collab",
"@codemirror/commands",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/search",
"@codemirror/state",
"@codemirror/view",
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins],
format: "cjs",
target: "es2018",
logLevel: "info",
sourcemap: prod ? false : "inline",
treeShaking: true,
outfile: "main.js",
});
entryPoints: ['main.ts'],
bundle: true,
external: [
'obsidian',
'electron',
'@codemirror/autocomplete',
'@codemirror/collab',
'@codemirror/commands',
'@codemirror/language',
'@codemirror/lint',
'@codemirror/search',
'@codemirror/state',
'@codemirror/view',
'@lezer/common',
'@lezer/highlight',
'@lezer/lr',
...builtins,
],
format: 'cjs',
target: 'es2018',
logLevel: 'info',
sourcemap: prod ? false : 'inline',
treeShaking: true,
minify: true,
outfile: 'main.js',
})
if (prod) {
await context.rebuild();
process.exit(0);
await context.rebuild()
process.exit(0)
} else {
await context.watch();
}
await context.watch()
}

BIN
example.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

189
main.ts
View file

@ -1,134 +1,71 @@
import { App, Editor, MarkdownView, Modal, Notice, Plugin, PluginSettingTab, Setting } from 'obsidian';
import { parse } from 'culori'
import { Plugin } from 'obsidian'
// Remember to rename these classes and interfaces!
// interface CssColorsPluginSettings {
// showInLiveEditor: boolean
// }
interface MyPluginSettings {
mySetting: string;
// const DEFAULT_SETTINGS: CssColorsPluginSettings = {
// showInLiveEditor: true,
// }
export default class CssColorsPlugin extends Plugin {
// settings: CssColorsPluginSettings = DEFAULT_SETTINGS
async onload() {
// await this.loadSettings()
this.registerMarkdownPostProcessor((el) => {
for (const code of el.findAll('code')) {
const text = code.innerText.trim()
const color = parse(text)
if (color !== undefined) {
code.createSpan({
prepend: true,
cls: 'css-color-inlay',
attr: { style: `background: ${text};` },
})
}
}
})
// this.addSettingTab(new SampleSettingTab(this.app, this))
}
onunload() {}
// async loadSettings() {
// this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData())
// }
// async saveSettings() {
// await this.saveData(this.settings)
// }
}
const DEFAULT_SETTINGS: MyPluginSettings = {
mySetting: 'default'
}
// class SampleSettingTab extends PluginSettingTab {
// plugin: CssColorsPlugin
export default class MyPlugin extends Plugin {
settings: MyPluginSettings;
// constructor(app: App, plugin: CssColorsPlugin) {
// super(app, plugin)
// this.plugin = plugin
// }
async onload() {
await this.loadSettings();
// display(): void {
// const { containerEl } = this
// This creates an icon in the left ribbon.
const ribbonIconEl = this.addRibbonIcon('dice', 'Sample Plugin', (evt: MouseEvent) => {
// Called when the user clicks the icon.
new Notice('This is a notice!');
});
// Perform additional things with the ribbon
ribbonIconEl.addClass('my-plugin-ribbon-class');
// containerEl.empty()
// This adds a status bar item to the bottom of the app. Does not work on mobile apps.
const statusBarItemEl = this.addStatusBarItem();
statusBarItemEl.setText('Status Bar Text');
// This adds a simple command that can be triggered anywhere
this.addCommand({
id: 'open-sample-modal-simple',
name: 'Open sample modal (simple)',
callback: () => {
new SampleModal(this.app).open();
}
});
// This adds an editor command that can perform some operation on the current editor instance
this.addCommand({
id: 'sample-editor-command',
name: 'Sample editor command',
editorCallback: (editor: Editor, view: MarkdownView) => {
console.log(editor.getSelection());
editor.replaceSelection('Sample Editor Command');
}
});
// This adds a complex command that can check whether the current state of the app allows execution of the command
this.addCommand({
id: 'open-sample-modal-complex',
name: 'Open sample modal (complex)',
checkCallback: (checking: boolean) => {
// Conditions to check
const markdownView = this.app.workspace.getActiveViewOfType(MarkdownView);
if (markdownView) {
// If checking is true, we're simply "checking" if the command can be run.
// If checking is false, then we want to actually perform the operation.
if (!checking) {
new SampleModal(this.app).open();
}
// This command will only show up in Command Palette when the check function returns true
return true;
}
}
});
// This adds a settings tab so the user can configure various aspects of the plugin
this.addSettingTab(new SampleSettingTab(this.app, this));
// If the plugin hooks up any global DOM events (on parts of the app that doesn't belong to this plugin)
// Using this function will automatically remove the event listener when this plugin is disabled.
this.registerDomEvent(document, 'click', (evt: MouseEvent) => {
console.log('click', evt);
});
// When registering intervals, this function will automatically clear the interval when the plugin is disabled.
this.registerInterval(window.setInterval(() => console.log('setInterval'), 5 * 60 * 1000));
}
onunload() {
}
async loadSettings() {
this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
}
async saveSettings() {
await this.saveData(this.settings);
}
}
class SampleModal extends Modal {
constructor(app: App) {
super(app);
}
onOpen() {
const {contentEl} = this;
contentEl.setText('Woah!');
}
onClose() {
const {contentEl} = this;
contentEl.empty();
}
}
class SampleSettingTab extends PluginSettingTab {
plugin: MyPlugin;
constructor(app: App, plugin: MyPlugin) {
super(app, plugin);
this.plugin = plugin;
}
display(): void {
const {containerEl} = this;
containerEl.empty();
new Setting(containerEl)
.setName('Setting #1')
.setDesc('It\'s a secret')
.addText(text => text
.setPlaceholder('Enter your secret')
.setValue(this.plugin.settings.mySetting)
.onChange(async (value) => {
this.plugin.settings.mySetting = value;
await this.plugin.saveSettings();
}));
}
}
// new Setting(containerEl)
// .setName('Show in live editor')
// .setDesc('Enable colors in the live editor')
// .addToggle((toggle) =>
// toggle
// .setValue(this.plugin.settings.showInLiveEditor)
// .onChange(async (value) => {
// this.plugin.settings.showInLiveEditor = value
// await this.plugin.saveSettings()
// }),
// )
// }
// }

View file

@ -1,11 +1,14 @@
{
"id": "sample-plugin",
"name": "Sample Plugin",
"version": "1.0.0",
"minAppVersion": "0.15.0",
"description": "Demonstrates some of the capabilities of the Obsidian API.",
"author": "Obsidian",
"authorUrl": "https://obsidian.md",
"fundingUrl": "https://obsidian.md/pricing",
"isDesktopOnly": false
"id": "css-colors",
"name": "CSS Inlay Colors",
"version": "0.0.1",
"minAppVersion": "0.15.0",
"description": "Show inline color hints for CSS colors in Obsidian",
"author": "Benji Grant",
"authorUrl": "https://bengrant.dev",
"fundingUrl": {
"Ko-fi": "https://ko-fi.com/benpai",
"GitHub Sponsor": "https://github.com/sponsors/GRA0007"
},
"isDesktopOnly": false
}

View file

@ -1,24 +1,47 @@
{
"name": "obsidian-sample-plugin",
"version": "1.0.0",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"builtin-modules": "3.3.0",
"esbuild": "0.17.3",
"obsidian": "latest",
"tslib": "2.4.0",
"typescript": "4.7.4"
}
"name": "obsidian-css-colors",
"version": "0.0.1",
"packageManager": "yarn@4.3.1",
"description": "Show inline color hints for CSS colors in Obsidian",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc && node esbuild.config.mjs production",
"version": "node version-bump.mjs",
"lint": "biome check",
"format": "biome check --fix"
},
"keywords": [
"obsidian",
"css",
"inline",
"color",
"colour",
"inlay",
"picker",
"hex",
"rgb"
],
"author": "Benji Grant",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/GRA0007/obsidian-css-colors.git"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@types/culori": "^2.1.1",
"@types/node": "^20.14.11",
"builtin-modules": "3.3.0",
"esbuild": "0.23.0",
"obsidian": "latest",
"tslib": "2.6.3",
"typescript": "5.5.3"
},
"dependencies": {
"@codemirror/language": "^6.10.2",
"@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.28.5",
"culori": "^4.0.1"
}
}

View file

@ -1,8 +1,10 @@
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.css-color-inlay {
height: 1em;
width: 1em;
border: 1px solid currentColor;
display: inline-block;
border-radius: .2em;
vertical-align: middle;
margin-right: .3em;
margin-top: -.1em;
}

View file

@ -10,15 +10,10 @@
"moduleResolution": "node",
"importHelpers": true,
"isolatedModules": true,
"strictNullChecks": true,
"lib": [
"DOM",
"ES5",
"ES6",
"ES7"
]
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"lib": ["DOM", "ES5", "ES6", "ES7"]
},
"include": [
"**/*.ts"
]
"include": ["**/*.ts"]
}

View file

@ -1,14 +1,14 @@
import { readFileSync, writeFileSync } from "fs";
import { readFileSync, writeFileSync } from 'node:fs'
const targetVersion = process.env.npm_package_version;
const targetVersion = process.env.npm_package_version
// read minAppVersion from manifest.json and bump version to target version
let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
const { minAppVersion } = manifest;
manifest.version = targetVersion;
writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
const manifest = JSON.parse(readFileSync('manifest.json', 'utf8'))
const { minAppVersion } = manifest
manifest.version = targetVersion
writeFileSync('manifest.json', JSON.stringify(manifest, null, 2))
// update versions.json with target version and minAppVersion from manifest.json
let versions = JSON.parse(readFileSync("versions.json", "utf8"));
versions[targetVersion] = minAppVersion;
writeFileSync("versions.json", JSON.stringify(versions, null, "\t"));
const versions = JSON.parse(readFileSync('versions.json', 'utf8'))
versions[targetVersion] = minAppVersion
writeFileSync('versions.json', JSON.stringify(versions, null, 2))

View file

@ -1,3 +1,3 @@
{
"1.0.0": "0.15.0"
"0.0.1": "0.15.0"
}

547
yarn.lock Normal file
View file

@ -0,0 +1,547 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!
__metadata:
version: 8
cacheKey: 10
"@biomejs/biome@npm:^1.8.3":
version: 1.8.3
resolution: "@biomejs/biome@npm:1.8.3"
dependencies:
"@biomejs/cli-darwin-arm64": "npm:1.8.3"
"@biomejs/cli-darwin-x64": "npm:1.8.3"
"@biomejs/cli-linux-arm64": "npm:1.8.3"
"@biomejs/cli-linux-arm64-musl": "npm:1.8.3"
"@biomejs/cli-linux-x64": "npm:1.8.3"
"@biomejs/cli-linux-x64-musl": "npm:1.8.3"
"@biomejs/cli-win32-arm64": "npm:1.8.3"
"@biomejs/cli-win32-x64": "npm:1.8.3"
dependenciesMeta:
"@biomejs/cli-darwin-arm64":
optional: true
"@biomejs/cli-darwin-x64":
optional: true
"@biomejs/cli-linux-arm64":
optional: true
"@biomejs/cli-linux-arm64-musl":
optional: true
"@biomejs/cli-linux-x64":
optional: true
"@biomejs/cli-linux-x64-musl":
optional: true
"@biomejs/cli-win32-arm64":
optional: true
"@biomejs/cli-win32-x64":
optional: true
bin:
biome: bin/biome
checksum: 10/62dfa5147712ef21c384ea7b3c93c0ccac58291a85f2bbd2dee22c8381da5e347cd07bdb7bfcafcecb07fc112349e9d101e697774155553bde987fd47f9b12a1
languageName: node
linkType: hard
"@biomejs/cli-darwin-arm64@npm:1.8.3":
version: 1.8.3
resolution: "@biomejs/cli-darwin-arm64@npm:1.8.3"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@biomejs/cli-darwin-x64@npm:1.8.3":
version: 1.8.3
resolution: "@biomejs/cli-darwin-x64@npm:1.8.3"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@biomejs/cli-linux-arm64-musl@npm:1.8.3":
version: 1.8.3
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.8.3"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@biomejs/cli-linux-arm64@npm:1.8.3":
version: 1.8.3
resolution: "@biomejs/cli-linux-arm64@npm:1.8.3"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@biomejs/cli-linux-x64-musl@npm:1.8.3":
version: 1.8.3
resolution: "@biomejs/cli-linux-x64-musl@npm:1.8.3"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@biomejs/cli-linux-x64@npm:1.8.3":
version: 1.8.3
resolution: "@biomejs/cli-linux-x64@npm:1.8.3"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@biomejs/cli-win32-arm64@npm:1.8.3":
version: 1.8.3
resolution: "@biomejs/cli-win32-arm64@npm:1.8.3"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@biomejs/cli-win32-x64@npm:1.8.3":
version: 1.8.3
resolution: "@biomejs/cli-win32-x64@npm:1.8.3"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@codemirror/language@npm:^6.10.2":
version: 6.10.2
resolution: "@codemirror/language@npm:6.10.2"
dependencies:
"@codemirror/state": "npm:^6.0.0"
"@codemirror/view": "npm:^6.23.0"
"@lezer/common": "npm:^1.1.0"
"@lezer/highlight": "npm:^1.0.0"
"@lezer/lr": "npm:^1.0.0"
style-mod: "npm:^4.0.0"
checksum: 10/ac78c639d2696a2d1f29b934c623fa599f5e32a64affb0a35526822dcbec22adb80fe4891d9c90e5a2cb5d56ed1578e97860050561d3aee6ee029f8af3c7f925
languageName: node
linkType: hard
"@codemirror/state@npm:^6.0.0, @codemirror/state@npm:^6.4.0, @codemirror/state@npm:^6.4.1":
version: 6.4.1
resolution: "@codemirror/state@npm:6.4.1"
checksum: 10/a9ec56c7d7d52034ce8ebea3a9a4d216b9e972d701b32b5000e56c97790d0d46af129aeba0b80bed36648b4024b3ba3e4910cf5bfed11de4a9e89252e0707a70
languageName: node
linkType: hard
"@codemirror/view@npm:^6.23.0, @codemirror/view@npm:^6.28.5":
version: 6.28.5
resolution: "@codemirror/view@npm:6.28.5"
dependencies:
"@codemirror/state": "npm:^6.4.0"
style-mod: "npm:^4.1.0"
w3c-keyname: "npm:^2.2.4"
checksum: 10/89f5d789176f87fa652dd761c98bc40bf7dee92d4d8a0fa3914a558bd590d9774df6d97a7c78874355871088651b34d2f78e4868e1e8f285a28891104de1564c
languageName: node
linkType: hard
"@esbuild/aix-ppc64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/aix-ppc64@npm:0.23.0"
conditions: os=aix & cpu=ppc64
languageName: node
linkType: hard
"@esbuild/android-arm64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/android-arm64@npm:0.23.0"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
"@esbuild/android-arm@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/android-arm@npm:0.23.0"
conditions: os=android & cpu=arm
languageName: node
linkType: hard
"@esbuild/android-x64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/android-x64@npm:0.23.0"
conditions: os=android & cpu=x64
languageName: node
linkType: hard
"@esbuild/darwin-arm64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/darwin-arm64@npm:0.23.0"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@esbuild/darwin-x64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/darwin-x64@npm:0.23.0"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@esbuild/freebsd-arm64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/freebsd-arm64@npm:0.23.0"
conditions: os=freebsd & cpu=arm64
languageName: node
linkType: hard
"@esbuild/freebsd-x64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/freebsd-x64@npm:0.23.0"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/linux-arm64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-arm64@npm:0.23.0"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
"@esbuild/linux-arm@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-arm@npm:0.23.0"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@esbuild/linux-ia32@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-ia32@npm:0.23.0"
conditions: os=linux & cpu=ia32
languageName: node
linkType: hard
"@esbuild/linux-loong64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-loong64@npm:0.23.0"
conditions: os=linux & cpu=loong64
languageName: node
linkType: hard
"@esbuild/linux-mips64el@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-mips64el@npm:0.23.0"
conditions: os=linux & cpu=mips64el
languageName: node
linkType: hard
"@esbuild/linux-ppc64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-ppc64@npm:0.23.0"
conditions: os=linux & cpu=ppc64
languageName: node
linkType: hard
"@esbuild/linux-riscv64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-riscv64@npm:0.23.0"
conditions: os=linux & cpu=riscv64
languageName: node
linkType: hard
"@esbuild/linux-s390x@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-s390x@npm:0.23.0"
conditions: os=linux & cpu=s390x
languageName: node
linkType: hard
"@esbuild/linux-x64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/linux-x64@npm:0.23.0"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
"@esbuild/netbsd-x64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/netbsd-x64@npm:0.23.0"
conditions: os=netbsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/openbsd-arm64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/openbsd-arm64@npm:0.23.0"
conditions: os=openbsd & cpu=arm64
languageName: node
linkType: hard
"@esbuild/openbsd-x64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/openbsd-x64@npm:0.23.0"
conditions: os=openbsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/sunos-x64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/sunos-x64@npm:0.23.0"
conditions: os=sunos & cpu=x64
languageName: node
linkType: hard
"@esbuild/win32-arm64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/win32-arm64@npm:0.23.0"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@esbuild/win32-ia32@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/win32-ia32@npm:0.23.0"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
"@esbuild/win32-x64@npm:0.23.0":
version: 0.23.0
resolution: "@esbuild/win32-x64@npm:0.23.0"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@lezer/common@npm:^1.0.0, @lezer/common@npm:^1.1.0":
version: 1.2.1
resolution: "@lezer/common@npm:1.2.1"
checksum: 10/b362ed2e97664e4b36b3dbff49b52d1bfc5accc0152b577fefd46e585d012ff685d1fd336d75d80066e01c0505b1135d4cf69be5e330b5bfec2e2650c437bcae
languageName: node
linkType: hard
"@lezer/highlight@npm:^1.0.0":
version: 1.2.0
resolution: "@lezer/highlight@npm:1.2.0"
dependencies:
"@lezer/common": "npm:^1.0.0"
checksum: 10/14a80cbfb0cd1ce716decb4f3a045d42e7146f539cfd483b62ce46c4586a26d2f4fbdc35ace1cad81645304be4d30eafb95a2b057c34dfd471d56c7fbd82df3a
languageName: node
linkType: hard
"@lezer/lr@npm:^1.0.0":
version: 1.4.1
resolution: "@lezer/lr@npm:1.4.1"
dependencies:
"@lezer/common": "npm:^1.0.0"
checksum: 10/6b5e155188f868cf3a86e051453ca5e3d98c6bddcd06601b51d7313bba33385ee128e79ccf841c1d72f3e887cddcd31648524400e7a9da33f92647ac5052c5ed
languageName: node
linkType: hard
"@types/codemirror@npm:5.60.8":
version: 5.60.8
resolution: "@types/codemirror@npm:5.60.8"
dependencies:
"@types/tern": "npm:*"
checksum: 10/1c5431cacc97a4c4a4b12a484b6d3bf32f745ffa444095087437204395e239b26b44903706ab29ff413759ea17e3be9a12caf399db09e34a359b2e4f99fce785
languageName: node
linkType: hard
"@types/culori@npm:^2.1.1":
version: 2.1.1
resolution: "@types/culori@npm:2.1.1"
checksum: 10/b8b8066bd6996fc4c323f0bad3bb923a6082b17f26aade28c309dcfd98f65ef1800fcf7c2f532b8a670f126b8f70cba68f5c2915a96730e80ff5f967de8492f2
languageName: node
linkType: hard
"@types/estree@npm:*":
version: 1.0.5
resolution: "@types/estree@npm:1.0.5"
checksum: 10/7de6d928dd4010b0e20c6919e1a6c27b61f8d4567befa89252055fad503d587ecb9a1e3eab1b1901f923964d7019796db810b7fd6430acb26c32866d126fd408
languageName: node
linkType: hard
"@types/node@npm:^20.14.11":
version: 20.14.11
resolution: "@types/node@npm:20.14.11"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10/344e1ce1ed16c86ed1c4209ab4d1de67db83dd6b694a6fabe295c47144dde2c58dabddae9f39a0a2bdd246e95f8d141ccfe848e464884b48b8918df4f7788025
languageName: node
linkType: hard
"@types/tern@npm:*":
version: 0.23.9
resolution: "@types/tern@npm:0.23.9"
dependencies:
"@types/estree": "npm:*"
checksum: 10/72d26a1abc2b13aa7ee6a34abc0558bfbff1f977beb1c9f2554c4193c6cfc7e1677e4f84663d3f971135b436c5b847f170c74c3b1d6c320e08a1aba7e83cc3c2
languageName: node
linkType: hard
"builtin-modules@npm:3.3.0":
version: 3.3.0
resolution: "builtin-modules@npm:3.3.0"
checksum: 10/62e063ab40c0c1efccbfa9ffa31873e4f9d57408cb396a2649981a0ecbce56aabc93c28feaccbc5658c95aab2703ad1d11980e62ec2e5e72637404e1eb60f39e
languageName: node
linkType: hard
"culori@npm:^4.0.1":
version: 4.0.1
resolution: "culori@npm:4.0.1"
checksum: 10/8751ea969bfa7d89fdd7dbc67d6bb37a10c459416574b26853b099f7a0c068d0d29942b3c034f60092f4593faa4e7008e0aca743a418f815fac19939332c4bea
languageName: node
linkType: hard
"esbuild@npm:0.23.0":
version: 0.23.0
resolution: "esbuild@npm:0.23.0"
dependencies:
"@esbuild/aix-ppc64": "npm:0.23.0"
"@esbuild/android-arm": "npm:0.23.0"
"@esbuild/android-arm64": "npm:0.23.0"
"@esbuild/android-x64": "npm:0.23.0"
"@esbuild/darwin-arm64": "npm:0.23.0"
"@esbuild/darwin-x64": "npm:0.23.0"
"@esbuild/freebsd-arm64": "npm:0.23.0"
"@esbuild/freebsd-x64": "npm:0.23.0"
"@esbuild/linux-arm": "npm:0.23.0"
"@esbuild/linux-arm64": "npm:0.23.0"
"@esbuild/linux-ia32": "npm:0.23.0"
"@esbuild/linux-loong64": "npm:0.23.0"
"@esbuild/linux-mips64el": "npm:0.23.0"
"@esbuild/linux-ppc64": "npm:0.23.0"
"@esbuild/linux-riscv64": "npm:0.23.0"
"@esbuild/linux-s390x": "npm:0.23.0"
"@esbuild/linux-x64": "npm:0.23.0"
"@esbuild/netbsd-x64": "npm:0.23.0"
"@esbuild/openbsd-arm64": "npm:0.23.0"
"@esbuild/openbsd-x64": "npm:0.23.0"
"@esbuild/sunos-x64": "npm:0.23.0"
"@esbuild/win32-arm64": "npm:0.23.0"
"@esbuild/win32-ia32": "npm:0.23.0"
"@esbuild/win32-x64": "npm:0.23.0"
dependenciesMeta:
"@esbuild/aix-ppc64":
optional: true
"@esbuild/android-arm":
optional: true
"@esbuild/android-arm64":
optional: true
"@esbuild/android-x64":
optional: true
"@esbuild/darwin-arm64":
optional: true
"@esbuild/darwin-x64":
optional: true
"@esbuild/freebsd-arm64":
optional: true
"@esbuild/freebsd-x64":
optional: true
"@esbuild/linux-arm":
optional: true
"@esbuild/linux-arm64":
optional: true
"@esbuild/linux-ia32":
optional: true
"@esbuild/linux-loong64":
optional: true
"@esbuild/linux-mips64el":
optional: true
"@esbuild/linux-ppc64":
optional: true
"@esbuild/linux-riscv64":
optional: true
"@esbuild/linux-s390x":
optional: true
"@esbuild/linux-x64":
optional: true
"@esbuild/netbsd-x64":
optional: true
"@esbuild/openbsd-arm64":
optional: true
"@esbuild/openbsd-x64":
optional: true
"@esbuild/sunos-x64":
optional: true
"@esbuild/win32-arm64":
optional: true
"@esbuild/win32-ia32":
optional: true
"@esbuild/win32-x64":
optional: true
bin:
esbuild: bin/esbuild
checksum: 10/d3d91bf9ca73ba33966fc54cabb321eca770a5e2ff5b34d67e4235c94560cfd881803e39fcaa31d842579d10600da5201c5f597f8438679f6db856f75ded7124
languageName: node
linkType: hard
"moment@npm:2.29.4":
version: 2.29.4
resolution: "moment@npm:2.29.4"
checksum: 10/157c5af5a0ba8196e577bc67feb583303191d21ba1f7f2af30b3b40d4c63a64d505ba402be2a1454832082fac6be69db1e0d186c3279dae191e6634b0c33705c
languageName: node
linkType: hard
"obsidian-css-colors@workspace:.":
version: 0.0.0-use.local
resolution: "obsidian-css-colors@workspace:."
dependencies:
"@biomejs/biome": "npm:^1.8.3"
"@codemirror/language": "npm:^6.10.2"
"@codemirror/state": "npm:^6.4.1"
"@codemirror/view": "npm:^6.28.5"
"@types/culori": "npm:^2.1.1"
"@types/node": "npm:^20.14.11"
builtin-modules: "npm:3.3.0"
culori: "npm:^4.0.1"
esbuild: "npm:0.23.0"
obsidian: "npm:latest"
tslib: "npm:2.6.3"
typescript: "npm:5.5.3"
languageName: unknown
linkType: soft
"obsidian@npm:latest":
version: 1.6.6
resolution: "obsidian@npm:1.6.6"
dependencies:
"@types/codemirror": "npm:5.60.8"
moment: "npm:2.29.4"
peerDependencies:
"@codemirror/state": ^6.0.0
"@codemirror/view": ^6.0.0
checksum: 10/47f2aa76a0c0ba5c2e71e0dde717985f699d44dfdaccddfca8852d4bd2992468efdc57a679b3f0caf656cef7a8620281826967824a6fe632a1266f644ebf8b53
languageName: node
linkType: hard
"style-mod@npm:^4.0.0, style-mod@npm:^4.1.0":
version: 4.1.2
resolution: "style-mod@npm:4.1.2"
checksum: 10/9da37909d6dbc3c043ab6d18da5d997073a4698c91e86058293252493eb18aca4e44e3fb18f32fcee26dcee8785f393c6c95f3c96cc722a0dd6b8de622b5b293
languageName: node
linkType: hard
"tslib@npm:2.6.3":
version: 2.6.3
resolution: "tslib@npm:2.6.3"
checksum: 10/52109bb681f8133a2e58142f11a50e05476de4f075ca906d13b596ae5f7f12d30c482feb0bff167ae01cfc84c5803e575a307d47938999246f5a49d174fc558c
languageName: node
linkType: hard
"typescript@npm:5.5.3":
version: 5.5.3
resolution: "typescript@npm:5.5.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/11a867312419ed497929aafd2f1d28b2cd41810a5eb6c6e9e169559112e9ea073d681c121a29102e67cd4478d0a4ae37a306a5800f3717f59c4337e6a9bd5e8d
languageName: node
linkType: hard
"typescript@patch:typescript@npm%3A5.5.3#optional!builtin<compat/typescript>":
version: 5.5.3
resolution: "typescript@patch:typescript@npm%3A5.5.3#optional!builtin<compat/typescript>::version=5.5.3&hash=379a07"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/7cf7acb78a80f749b82842f2ffe01e90e7b3e709a6f4268588e0b7599c41dca1059be217f47778fe1a380bfaf60933021ef20d002c426d4d7745e1b36c11467b
languageName: node
linkType: hard
"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
checksum: 10/0097779d94bc0fd26f0418b3a05472410408877279141ded2bd449167be1aed7ea5b76f756562cb3586a07f251b90799bab22d9019ceba49c037c76445f7cddd
languageName: node
linkType: hard
"w3c-keyname@npm:^2.2.4":
version: 2.2.8
resolution: "w3c-keyname@npm:2.2.8"
checksum: 10/95bafa4c04fa2f685a86ca1000069c1ec43ace1f8776c10f226a73296caeddd83f893db885c2c220ebeb6c52d424e3b54d7c0c1e963bbf204038ff1a944fbb07
languageName: node
linkType: hard