@webchat-forge/micromark-extension-copilot 0.0.1-main.202512240346.ab873bb
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/LICENSE +21 -0
- package/README.md +20 -0
- package/dist/micromark-extension-copilot.d.mts +7 -0
- package/dist/micromark-extension-copilot.d.ts +7 -0
- package/dist/micromark-extension-copilot.js +42 -0
- package/dist/micromark-extension-copilot.js.map +1 -0
- package/dist/micromark-extension-copilot.mjs +14 -0
- package/dist/micromark-extension-copilot.mjs.map +1 -0
- package/jest.config.js +59 -0
- package/package.json +109 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Eugene Olonov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# `micromark-extension-copilot`
|
|
2
|
+
|
|
3
|
+
In preparation.
|
|
4
|
+
|
|
5
|
+
## Background
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## How to use
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Behaviors
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Contributions
|
|
15
|
+
|
|
16
|
+
Like us? [Star](https://github.com/@webchat-forge/micromark-extension-copilot-studio/stargazers) us.
|
|
17
|
+
|
|
18
|
+
Want to make it better? [File](https://github.com/@webchat-forge/micromark-extension-copilot-studio/issues) us an issue.
|
|
19
|
+
|
|
20
|
+
Don't like something you see? [Submit](https://github.com/@webchat-forge/micromark-extension-copilot-studio/pulls) a pull request.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
copilot: () => copilot,
|
|
24
|
+
copilotHtml: () => copilotHtml
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(src_exports);
|
|
27
|
+
|
|
28
|
+
// src/copilot.ts
|
|
29
|
+
function copilot() {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// src/copilotHtml.ts
|
|
34
|
+
function copilotHtml() {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
copilot,
|
|
40
|
+
copilotHtml
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=micromark-extension-copilot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/copilot.ts","../src/copilotHtml.ts"],"sourcesContent":["import copilot from './copilot.ts';\nimport copilotHtml from './copilotHtml.ts';\n\nexport { copilot, copilotHtml };\n","import { type Extension } from 'micromark-util-types';\n\nexport default function copilot(): Extension {\n return {};\n}\n","import { type HtmlExtension } from 'micromark-util-types';\n\nexport default function copilotHtml(): HtmlExtension {\n return {};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEe,SAAR,UAAsC;AAC3C,SAAO,CAAC;AACV;;;ACFe,SAAR,cAA8C;AACnD,SAAO,CAAC;AACV;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/copilot.ts","../src/copilotHtml.ts"],"sourcesContent":["import { type Extension } from 'micromark-util-types';\n\nexport default function copilot(): Extension {\n return {};\n}\n","import { type HtmlExtension } from 'micromark-util-types';\n\nexport default function copilotHtml(): HtmlExtension {\n return {};\n}\n"],"mappings":";AAEe,SAAR,UAAsC;AAC3C,SAAO,CAAC;AACV;;;ACFe,SAAR,cAA8C;AACnD,SAAO,CAAC;AACV;","names":[]}
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const { default: escapeStringRegexp } = require('escape-string-regexp');
|
|
2
|
+
|
|
3
|
+
const transformingModules = [
|
|
4
|
+
'character-entities',
|
|
5
|
+
'decode-named-character-reference',
|
|
6
|
+
'micromark-core-commonmark',
|
|
7
|
+
'micromark-factory-destination',
|
|
8
|
+
'micromark-factory-label',
|
|
9
|
+
'micromark-factory-space',
|
|
10
|
+
'micromark-factory-title',
|
|
11
|
+
'micromark-factory-whitespace',
|
|
12
|
+
'micromark-util-character',
|
|
13
|
+
'micromark-util-chunked',
|
|
14
|
+
'micromark-util-classify-character',
|
|
15
|
+
'micromark-util-combine-extensions',
|
|
16
|
+
'micromark-util-decode-numeric-character-reference',
|
|
17
|
+
'micromark-util-encode',
|
|
18
|
+
'micromark-util-html-tag-name',
|
|
19
|
+
'micromark-util-normalize-identifier',
|
|
20
|
+
'micromark-util-resolve-all',
|
|
21
|
+
'micromark-util-sanitize-uri',
|
|
22
|
+
'micromark-util-subtokenize',
|
|
23
|
+
'micromark'
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
module.exports = {
|
|
27
|
+
testPathIgnorePatterns: ['/__setup__/', '/lib/', '/node_modules/', '/__types__/', '\\.pnp\\.[^\\/]+$'],
|
|
28
|
+
transform: {
|
|
29
|
+
'/__tests__/types/': ['<rootDir>/__tests__/__setup__/typingTestTransformer.js'],
|
|
30
|
+
'\\.[jt]sx?$': [
|
|
31
|
+
'babel-jest',
|
|
32
|
+
{
|
|
33
|
+
presets: [
|
|
34
|
+
[
|
|
35
|
+
'@babel/preset-typescript',
|
|
36
|
+
{
|
|
37
|
+
allowDeclareFields: true
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
'@babel/preset-env',
|
|
42
|
+
{
|
|
43
|
+
modules: 'commonjs',
|
|
44
|
+
targets: {
|
|
45
|
+
node: '20'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
],
|
|
50
|
+
sourceMaps: true
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
transformIgnorePatterns: [
|
|
55
|
+
`/node_modules/(?!(${transformingModules.map(escapeStringRegexp).join('|')})/)`,
|
|
56
|
+
'\\.pnp\\.[^\\\/]+$'
|
|
57
|
+
],
|
|
58
|
+
watchPathIgnorePatterns: ['\\.tmp\\.']
|
|
59
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webchat-forge/micromark-extension-copilot",
|
|
3
|
+
"version": "0.0.1-main.202512240346.ab873bb",
|
|
4
|
+
"description": "Micromark extension for Microsoft Copilot",
|
|
5
|
+
"files": [
|
|
6
|
+
"./*.js",
|
|
7
|
+
"./dist/"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/micromark-extension-copilot.d.mts",
|
|
13
|
+
"default": "./dist/micromark-extension-copilot.mjs"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/micromark-extension-copilot.d.ts",
|
|
17
|
+
"default": "./dist/micromark-extension-copilot.js"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"main": "./dist/micromark-extension-copilot.js",
|
|
22
|
+
"typings": "./dist/micromark-extension-copilot.d.ts",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup",
|
|
25
|
+
"bump": "npm run bump:prod && npm run bump:dev",
|
|
26
|
+
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
|
|
27
|
+
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
|
|
28
|
+
"precommit": "npm run precommit:eslint && npm run precommit:publint && npm run precommit:typescript:production && npm run precommit:typescript:test",
|
|
29
|
+
"precommit:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint ./src/",
|
|
30
|
+
"precommit:publint": "publint",
|
|
31
|
+
"precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json",
|
|
32
|
+
"precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json",
|
|
33
|
+
"prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .",
|
|
34
|
+
"start": "npm run build -- --onSuccess \"touch ../pages/package.json\" --watch",
|
|
35
|
+
"switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" + $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies += ($TEMPLATE.devDependencies // {}) | .dependencies += ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json",
|
|
36
|
+
"test": "node --import ./happy-dom-env.ts --test ${CI:---watch} **/*.{spec,test}.{[jt]s,[jt]sx,c[jt]s,m[jt]s}"
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/webchat-forge/micromark-extension-copilot.git"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"copilot",
|
|
44
|
+
"katex",
|
|
45
|
+
"latex",
|
|
46
|
+
"mathml",
|
|
47
|
+
"micromark",
|
|
48
|
+
"shiki"
|
|
49
|
+
],
|
|
50
|
+
"author": "Eugene Olonov (https://github.com/oevgeny)",
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/webchat-forge/micromark-extension-copilot/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/webchat-forge/micromark-extension-copilot#readme",
|
|
56
|
+
"switch:micromark-3": {
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"micromark": "3.0.0"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"switch:micromark-4": {
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"micromark": "4.0.0"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"pinDependencies": {
|
|
67
|
+
"@types/react": [
|
|
68
|
+
"18"
|
|
69
|
+
],
|
|
70
|
+
"@types/react-dom": [
|
|
71
|
+
"18"
|
|
72
|
+
],
|
|
73
|
+
"react": [
|
|
74
|
+
"18"
|
|
75
|
+
],
|
|
76
|
+
"react-dom": [
|
|
77
|
+
"18"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"micromark": ">=3.0.0"
|
|
82
|
+
},
|
|
83
|
+
"devDependencies": {
|
|
84
|
+
"@babel/core": "^7.26.0",
|
|
85
|
+
"@babel/preset-env": "^7.26.0",
|
|
86
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
87
|
+
"@happy-dom/global-registrator": "^20.0.11",
|
|
88
|
+
"@sinonjs/fake-timers": "^14.0.0",
|
|
89
|
+
"@testing-library/react": "^16.0.1",
|
|
90
|
+
"@tsconfig/recommended": "^1.0.7",
|
|
91
|
+
"@tsconfig/strictest": "^2.0.5",
|
|
92
|
+
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
93
|
+
"babel-jest": "^29.7.0",
|
|
94
|
+
"esbuild": "^0.24.0",
|
|
95
|
+
"escape-string-regexp": "^5.0.0",
|
|
96
|
+
"expect": "^30.2.0",
|
|
97
|
+
"jest": "^29.7.0",
|
|
98
|
+
"micromark": "^4.0.1",
|
|
99
|
+
"micromark-util-types": "^2.0.1",
|
|
100
|
+
"nodemon": "^3.1.7",
|
|
101
|
+
"prettier": "^3.3.3",
|
|
102
|
+
"publint": "^0.2.11",
|
|
103
|
+
"tsup": "^8.3.0",
|
|
104
|
+
"typescript": "^5.6.3"
|
|
105
|
+
},
|
|
106
|
+
"dependencies": {
|
|
107
|
+
"@webchat-forge/micromark-extension-copilot": "^0.0.1-main.202512240346.ab873bb"
|
|
108
|
+
}
|
|
109
|
+
}
|