Initial commit: notification-elements-demo app

Interactive Angular 19 demo for @sda/notification-elements-ui with
6 sections: Bell & Feed, Notification Center, Inbox, Comments &
Threads, Mention Input, and Full-Featured layout. Includes mock
data, dark mode toggle, and real-time event log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Giuliano Silvestro
2026-02-13 21:49:19 +10:00
commit 5d0c9ec7eb
36473 changed files with 3778146 additions and 0 deletions

21
node_modules/@listr2/prompt-adapter-inquirer/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Cenk Kilic <cenk@kilic.dev> (https://srcs.kilic.dev)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

15
node_modules/@listr2/prompt-adapter-inquirer/README.md generated vendored Normal file
View File

@@ -0,0 +1,15 @@
# @listr2/prompt-adapter-inquirer
[![Pipeline](https://gitlab.kilic.dev/libraries/listr2/badges/master/pipeline.svg?style=flat-square&ignore_skipped=true)](https://gitlab.kilic.dev/libraries/listr2/-/commits/master) [![Version](https://img.shields.io/npm/v/%40listr2/prompt-adapter-inquirer.svg?style=flat-square&logo=npm)](https://www.npmjs.com/package/%40listr2/prompt-adapter-inquirer?activeTab=versions) [![Downloads](https://img.shields.io/npm/dm/%40listr2/prompt-adapter-inquirer.svg?style=flat-square&logo=npm)](https://www.npmjs.com/package/%40listr2/prompt-adapter-inquirer) [![Size](https://img.shields.io/bundlephobia/min/%40listr2/prompt-adapter-inquirer?style=flat-square&logo=npm)](https://www.npmjs.com/package/%40listr2/prompt-adapter-inquirer) [![Dependencies](https://img.shields.io/librariesio/release/npm/%40listr2/prompt-adapter-inquirer?style=flat-square&logo=npm)](https://www.npmjs.com/package/%40listr2/prompt-adapter-inquirer?activeTab=dependencies)
[![github sponsors](https://img.shields.io/github/sponsors/cenk1cenk2?style=flat-square&logo=github)](https://github.com/sponsors/cenk1cenk2) [![opencollective](https://img.shields.io/opencollective/sponsors/listr2?label=open%20collective&logo=opencollective)](https://opencollective.com/listr2)
**Create beautiful CLI interfaces via easy and logical to-implement task lists that feel alive and interactive.**
---
## Documentation
This is an extension to [`listr2`](https://listr2.kilic.dev/) to create prompts with [`@inquirer/prompts`](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/prompts/README.md).
**[Read the documentation...](https://listr2.kilic.dev/task/prompts.html#inquirer)**

View File

@@ -0,0 +1,78 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
ListrInquirerPromptAdapter: () => ListrInquirerPromptAdapter
});
module.exports = __toCommonJS(src_exports);
// src/prompt.ts
var import_listr2 = require("listr2");
var ListrInquirerPromptAdapter = class extends import_listr2.ListrPromptAdapter {
static {
__name(this, "ListrInquirerPromptAdapter");
}
prompt;
/**
* Get the current running instance of `inquirer`.
*/
get instance() {
return this.prompt;
}
/**
* Create a new prompt with `inquirer`.
*/
async run(prompt, ...[config, context]) {
context ??= {};
context.output ??= this.wrapper.stdout(import_listr2.ListrTaskEventType.PROMPT);
this.reportStarted();
this.task.on(import_listr2.ListrTaskEventType.STATE, (event) => {
if (event === import_listr2.ListrTaskState.SKIPPED && this.prompt) {
this.cancel();
}
});
this.prompt = prompt(config, context);
let result;
try {
result = await this.prompt;
this.reportCompleted();
} catch (e) {
this.reportFailed();
throw e;
}
return result;
}
/**
* Cancel the ongoing prompt.
*/
cancel() {
if (!this.prompt) {
return;
}
this.reportFailed();
this.prompt.cancel();
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ListrInquirerPromptAdapter
});

View File

@@ -0,0 +1,20 @@
import { CancelablePromise, Prompt } from '@inquirer/type';
import { ListrPromptAdapter } from 'listr2';
declare class ListrInquirerPromptAdapter extends ListrPromptAdapter {
private prompt;
/**
* Get the current running instance of `inquirer`.
*/
get instance(): CancelablePromise<any>;
/**
* Create a new prompt with `inquirer`.
*/
run<T extends Prompt<any, any> = Prompt<any, any>>(prompt: T, ...[config, context]: Parameters<T>): Promise<ReturnType<T>>;
/**
* Cancel the ongoing prompt.
*/
cancel(): void;
}
export { ListrInquirerPromptAdapter };

View File

@@ -0,0 +1,20 @@
import { CancelablePromise, Prompt } from '@inquirer/type';
import { ListrPromptAdapter } from 'listr2';
declare class ListrInquirerPromptAdapter extends ListrPromptAdapter {
private prompt;
/**
* Get the current running instance of `inquirer`.
*/
get instance(): CancelablePromise<any>;
/**
* Create a new prompt with `inquirer`.
*/
run<T extends Prompt<any, any> = Prompt<any, any>>(prompt: T, ...[config, context]: Parameters<T>): Promise<ReturnType<T>>;
/**
* Cancel the ongoing prompt.
*/
cancel(): void;
}
export { ListrInquirerPromptAdapter };

View File

@@ -0,0 +1,53 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// src/prompt.ts
import { ListrPromptAdapter, ListrTaskEventType, ListrTaskState } from "listr2";
var ListrInquirerPromptAdapter = class extends ListrPromptAdapter {
static {
__name(this, "ListrInquirerPromptAdapter");
}
prompt;
/**
* Get the current running instance of `inquirer`.
*/
get instance() {
return this.prompt;
}
/**
* Create a new prompt with `inquirer`.
*/
async run(prompt, ...[config, context]) {
context ??= {};
context.output ??= this.wrapper.stdout(ListrTaskEventType.PROMPT);
this.reportStarted();
this.task.on(ListrTaskEventType.STATE, (event) => {
if (event === ListrTaskState.SKIPPED && this.prompt) {
this.cancel();
}
});
this.prompt = prompt(config, context);
let result;
try {
result = await this.prompt;
this.reportCompleted();
} catch (e) {
this.reportFailed();
throw e;
}
return result;
}
/**
* Cancel the ongoing prompt.
*/
cancel() {
if (!this.prompt) {
return;
}
this.reportFailed();
this.prompt.cancel();
}
};
export {
ListrInquirerPromptAdapter
};

View File

@@ -0,0 +1,18 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require('./inquirer.js'), exports);
__exportStar(require('./utils.js'), exports);

View File

@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CancelablePromise = void 0;
class CancelablePromise extends Promise {
constructor() {
super(...arguments);
Object.defineProperty(this, "cancel", {
enumerable: true,
configurable: true,
writable: true,
value: () => { }
});
}
static withResolver() {
let resolve;
let reject;
const promise = new CancelablePromise((res, rej) => {
resolve = res;
reject = rej;
});
return { promise, resolve: resolve, reject: reject };
}
}
exports.CancelablePromise = CancelablePromise;

View File

@@ -0,0 +1,2 @@
export * from './inquirer.js';
export * from './utils.js';

View File

@@ -0,0 +1,22 @@
import * as readline from 'node:readline';
import MuteStream from 'mute-stream';
export declare class CancelablePromise<T> extends Promise<T> {
cancel: () => void;
static withResolver<T>(): {
promise: CancelablePromise<T>;
resolve: (value: T) => void;
reject: (error: unknown) => void;
};
}
export type InquirerReadline = readline.ReadLine & {
output: MuteStream;
input: NodeJS.ReadableStream;
clearLine: (dir: 0 | 1 | -1) => void;
};
export type Context = {
input?: NodeJS.ReadableStream;
output?: NodeJS.WritableStream;
clearPromptOnDone?: boolean;
signal?: AbortSignal;
};
export type Prompt<Value, Config> = (config: Config, context?: Context) => CancelablePromise<Value>;

View File

@@ -0,0 +1,29 @@
type Key = string | number | symbol;
export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export type PartialDeep<T> = T extends object ? {
[P in keyof T]?: PartialDeep<T[P]>;
} : T;
export type LiteralUnion<T extends F, F = string> = T | (F & {});
export type KeyUnion<T> = LiteralUnion<Extract<keyof T, string>>;
export type DistributiveMerge<A, B> = A extends any ? Prettify<Omit<A, keyof B> & B> : never;
export type UnionToIntersection<T> = (T extends any ? (input: T) => void : never) extends (input: infer Intersection) => void ? Intersection : never;
/**
* @hidden
*/
type __Pick<O extends object, K extends keyof O> = {
[P in K]: O[P];
} & {};
/**
* @hidden
*/
export type _Pick<O extends object, K extends Key> = __Pick<O, keyof O & K>;
/**
* Extract out of `O` the fields of key `K`
* @param O to extract from
* @param K to chose fields
* @returns [[Object]]
*/
export type Pick<O extends object, K extends Key> = O extends unknown ? _Pick<O, K> : never;
export {};

View File

@@ -0,0 +1,3 @@
"use strict";
/* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -0,0 +1,2 @@
export * from './inquirer.mjs';
export * from './utils.mjs';

View File

@@ -0,0 +1,12 @@
export class CancelablePromise extends Promise {
cancel = () => { };
static withResolver() {
let resolve;
let reject;
const promise = new CancelablePromise((res, rej) => {
resolve = res;
reject = rej;
});
return { promise, resolve: resolve, reject: reject };
}
}

View File

@@ -0,0 +1,2 @@
export * from './inquirer.mjs';
export * from './utils.mjs';

View File

@@ -0,0 +1,22 @@
import * as readline from 'node:readline';
import MuteStream from 'mute-stream';
export declare class CancelablePromise<T> extends Promise<T> {
cancel: () => void;
static withResolver<T>(): {
promise: CancelablePromise<T>;
resolve: (value: T) => void;
reject: (error: unknown) => void;
};
}
export type InquirerReadline = readline.ReadLine & {
output: MuteStream;
input: NodeJS.ReadableStream;
clearLine: (dir: 0 | 1 | -1) => void;
};
export type Context = {
input?: NodeJS.ReadableStream;
output?: NodeJS.WritableStream;
clearPromptOnDone?: boolean;
signal?: AbortSignal;
};
export type Prompt<Value, Config> = (config: Config, context?: Context) => CancelablePromise<Value>;

View File

@@ -0,0 +1,29 @@
type Key = string | number | symbol;
export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export type PartialDeep<T> = T extends object ? {
[P in keyof T]?: PartialDeep<T[P]>;
} : T;
export type LiteralUnion<T extends F, F = string> = T | (F & {});
export type KeyUnion<T> = LiteralUnion<Extract<keyof T, string>>;
export type DistributiveMerge<A, B> = A extends any ? Prettify<Omit<A, keyof B> & B> : never;
export type UnionToIntersection<T> = (T extends any ? (input: T) => void : never) extends (input: infer Intersection) => void ? Intersection : never;
/**
* @hidden
*/
type __Pick<O extends object, K extends keyof O> = {
[P in K]: O[P];
} & {};
/**
* @hidden
*/
export type _Pick<O extends object, K extends Key> = __Pick<O, keyof O & K>;
/**
* Extract out of `O` the fields of key `K`
* @param O to extract from
* @param K to chose fields
* @returns [[Object]]
*/
export type Pick<O extends object, K extends Key> = O extends unknown ? _Pick<O, K> : never;
export {};

View File

@@ -0,0 +1,2 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
export {};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,40 @@
import * as readline from 'node:readline';
import MuteStream from 'mute-stream';
export type InquirerReadline = readline.ReadLine & {
output: MuteStream;
input: NodeJS.ReadableStream;
clearLine: (dir: 0 | 1 | -1) => void;
};
export declare class CancelablePromise<T> extends Promise<T> {
cancel: () => void;
}
export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export type PartialDeep<T> = T extends object ? {
[P in keyof T]?: PartialDeep<T[P]>;
} : T;
export type Context = {
input?: NodeJS.ReadableStream;
output?: NodeJS.WritableStream;
clearPromptOnDone?: boolean;
};
export type Prompt<Value, Config> = (config: Config, context?: Context) => CancelablePromise<Value>;
/**
* Utility types used for writing tests
*
* Equal<A, B> checks that A and B are the same type, and returns
* either `true` or `false`.
*
* You can use it in combination with `Expect` to write type
* inference unit tests:
*
* ```ts
* type t = Expect<
* Equal<Partial<{ a: string }>, { a?: string }>
* >
* ```
*/
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
export type Expect<T extends true> = T;
export type Not<T extends boolean> = T extends true ? false : true;

View File

@@ -0,0 +1,82 @@
{
"name": "@inquirer/type",
"version": "1.5.5",
"description": "Inquirer core TS types",
"main": "./dist/cjs/index.js",
"typings": "./dist/cjs/types/index.d.ts",
"files": [
"dist/**/*"
],
"repository": {
"type": "git",
"url": "https://github.com/SBoudrias/Inquirer.js.git"
},
"keywords": [
"answer",
"answers",
"ask",
"base",
"cli",
"command",
"command-line",
"confirm",
"enquirer",
"generate",
"generator",
"hyper",
"input",
"inquire",
"inquirer",
"interface",
"iterm",
"javascript",
"menu",
"node",
"nodejs",
"prompt",
"promptly",
"prompts",
"question",
"readline",
"scaffold",
"scaffolder",
"scaffolding",
"stdin",
"stdout",
"terminal",
"tty",
"ui",
"yeoman",
"yo",
"zsh",
"types",
"typescript"
],
"author": "Simon Boudrias <admin@simonboudrias.com>",
"license": "MIT",
"dependencies": {
"mute-stream": "^1.0.0"
},
"scripts": {
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"attw": "attw --pack"
},
"engines": {
"node": ">=18"
},
"exports": {
".": {
"import": {
"types": "./dist/esm/types/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/types/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"sideEffects": false
}

View File

@@ -0,0 +1,15 @@
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

View File

@@ -0,0 +1,68 @@
# mute-stream
Bytes go in, but they don't come out (when muted).
This is a basic pass-through stream, but when muted, the bytes are
silently dropped, rather than being passed through.
## Usage
```javascript
const MuteStream = require('mute-stream')
const ms = new MuteStream(options)
ms.pipe(process.stdout)
ms.write('foo') // writes 'foo' to stdout
ms.mute()
ms.write('bar') // does not write 'bar'
ms.unmute()
ms.write('baz') // writes 'baz' to stdout
// can also be used to mute incoming data
const ms = new MuteStream
input.pipe(ms)
ms.on('data', function (c) {
console.log('data: ' + c)
})
input.emit('data', 'foo') // logs 'foo'
ms.mute()
input.emit('data', 'bar') // does not log 'bar'
ms.unmute()
input.emit('data', 'baz') // logs 'baz'
```
## Options
All options are optional.
* `replace` Set to a string to replace each character with the
specified string when muted. (So you can show `****` instead of the
password, for example.)
* `prompt` If you are using a replacement char, and also using a
prompt with a readline stream (as for a `Password: *****` input),
then specify what the prompt is so that backspace will work
properly. Otherwise, pressing backspace will overwrite the prompt
with the replacement character, which is weird.
## ms.mute()
Set `muted` to `true`. Turns `.write()` into a no-op.
## ms.unmute()
Set `muted` to `false`
## ms.isTTY
True if the pipe destination is a TTY, or if the incoming pipe source is
a TTY.
## Other stream methods...
The other standard readable and writable stream methods are all
available. The MuteStream object acts as a facade to its pipe source
and destination.

View File

@@ -0,0 +1,142 @@
const Stream = require('stream')
class MuteStream extends Stream {
#isTTY = null
constructor (opts = {}) {
super(opts)
this.writable = this.readable = true
this.muted = false
this.on('pipe', this._onpipe)
this.replace = opts.replace
// For readline-type situations
// This much at the start of a line being redrawn after a ctrl char
// is seen (such as backspace) won't be redrawn as the replacement
this._prompt = opts.prompt || null
this._hadControl = false
}
#destSrc (key, def) {
if (this._dest) {
return this._dest[key]
}
if (this._src) {
return this._src[key]
}
return def
}
#proxy (method, ...args) {
if (typeof this._dest?.[method] === 'function') {
this._dest[method](...args)
}
if (typeof this._src?.[method] === 'function') {
this._src[method](...args)
}
}
get isTTY () {
if (this.#isTTY !== null) {
return this.#isTTY
}
return this.#destSrc('isTTY', false)
}
// basically just get replace the getter/setter with a regular value
set isTTY (val) {
this.#isTTY = val
}
get rows () {
return this.#destSrc('rows')
}
get columns () {
return this.#destSrc('columns')
}
mute () {
this.muted = true
}
unmute () {
this.muted = false
}
_onpipe (src) {
this._src = src
}
pipe (dest, options) {
this._dest = dest
return super.pipe(dest, options)
}
pause () {
if (this._src) {
return this._src.pause()
}
}
resume () {
if (this._src) {
return this._src.resume()
}
}
write (c) {
if (this.muted) {
if (!this.replace) {
return true
}
// eslint-disable-next-line no-control-regex
if (c.match(/^\u001b/)) {
if (c.indexOf(this._prompt) === 0) {
c = c.slice(this._prompt.length)
c = c.replace(/./g, this.replace)
c = this._prompt + c
}
this._hadControl = true
return this.emit('data', c)
} else {
if (this._prompt && this._hadControl &&
c.indexOf(this._prompt) === 0) {
this._hadControl = false
this.emit('data', this._prompt)
c = c.slice(this._prompt.length)
}
c = c.toString().replace(/./g, this.replace)
}
}
this.emit('data', c)
}
end (c) {
if (this.muted) {
if (c && this.replace) {
c = c.toString().replace(/./g, this.replace)
} else {
c = null
}
}
if (c) {
this.emit('data', c)
}
this.emit('end')
}
destroy (...args) {
return this.#proxy('destroy', ...args)
}
destroySoon (...args) {
return this.#proxy('destroySoon', ...args)
}
close (...args) {
return this.#proxy('close', ...args)
}
}
module.exports = MuteStream

View File

@@ -0,0 +1,52 @@
{
"name": "mute-stream",
"version": "1.0.0",
"main": "lib/index.js",
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.11.0",
"tap": "^16.3.0"
},
"scripts": {
"test": "tap",
"lint": "eslint \"**/*.js\"",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"snap": "tap",
"posttest": "npm run lint"
},
"repository": {
"type": "git",
"url": "https://github.com/npm/mute-stream.git"
},
"keywords": [
"mute",
"stream",
"pipe"
],
"author": "GitHub Inc.",
"license": "ISC",
"description": "Bytes go in, but they don't come out (when muted).",
"files": [
"bin/",
"lib/"
],
"tap": {
"statements": 70,
"branches": 60,
"functions": 81,
"lines": 70,
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.11.0"
}
}

View File

@@ -0,0 +1,83 @@
{
"name": "@listr2/prompt-adapter-inquirer",
"version": "2.0.18",
"description": "Listr2 prompt adapter for inquirer.",
"license": "MIT",
"repository": "https://github.com/listr2/listr2",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./package.json": "./package.json"
},
"author": {
"name": "Cenk Kilic",
"email": "cenk@kilic.dev",
"url": "https://cenk.kilic.dev"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"build": "tsup-node",
"dev:start": "tsup-node --watch",
"format": "prettier --log-level warn --write src/ tests/ && pnpm run lint --fix",
"lint": "eslint --ext .ts,.js,.tsx,.jsx src/ tests/",
"test": "NO_COLOR=1 TS_NODE_PROJECT=tests/tsconfig.json NODE_OPTIONS='--no-warnings --experimental-specifier-resolution=node --experimental-vm-modules' jest --config tests/jest.config.ts",
"test:cov": "pnpm run test --coverage",
"test:dev": "NODE_OPTIONS='--no-warnings --experimental-specifier-resolution=node --experimental-vm-modules --inspect=0.0.0.0:9229' pnpm run test --verbose --watchAll"
},
"lint-staged": {
"{src,tests}/**/*.{ts,js,tsx,jsx,spec.ts}": [
"prettier --log-level warn --write",
"eslint --fix"
],
"*.{json,md}": [
"prettier --log-level warn --write"
]
},
"keywords": [
"listr",
"listr2",
"cli",
"task",
"list",
"tasklist",
"terminal",
"term",
"console",
"ascii",
"unicode",
"loading",
"indicator",
"progress",
"busy",
"wait",
"idle"
],
"dependencies": {
"@inquirer/type": "^1.5.5"
},
"devDependencies": {
"@inquirer/input": "^3.0.1",
"@inquirer/prompts": "^6.0.1",
"listr2": "8.2.5"
},
"peerDependencies": {
"@inquirer/prompts": ">= 3 < 8"
}
}