@redis-ui/components 51.27.0 → 51.29.0
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/dist/CodeBlock/CodeBlock.cjs +32 -15
- package/dist/CodeBlock/CodeBlock.js +32 -15
- package/dist/CodeBlock/CodeBlock.style.d.ts +4 -3
- package/dist/CodeBlock/CodeBlock.types.cjs +7 -0
- package/dist/CodeBlock/CodeBlock.types.d.ts +9 -1
- package/dist/CodeBlock/CodeBlock.types.js +7 -1
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.cjs +29 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.cjs +34 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.d.ts +25 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.js +32 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.d.ts +6 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.js +29 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.types.d.ts +10 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.types.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +2 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.cjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.cjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/character-entities-legacy/index.cjs +116 -0
- package/dist/node_modules/character-entities-legacy/index.js +116 -0
- package/dist/node_modules/character-reference-invalid/index.cjs +38 -0
- package/dist/node_modules/character-reference-invalid/index.js +38 -0
- package/dist/node_modules/comma-separated-tokens/index.cjs +43 -0
- package/dist/node_modules/comma-separated-tokens/index.js +43 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.cjs +15 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +15 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.cjs +76 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +76 -0
- package/dist/node_modules/hastscript/lib/create-h.cjs +262 -0
- package/dist/node_modules/hastscript/lib/create-h.js +262 -0
- package/dist/node_modules/hastscript/lib/index.cjs +21 -0
- package/dist/node_modules/hastscript/lib/index.js +21 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +49 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +49 -0
- package/dist/node_modules/is-alphabetical/index.cjs +14 -0
- package/dist/node_modules/is-alphabetical/index.js +14 -0
- package/dist/node_modules/is-alphanumerical/index.cjs +15 -0
- package/dist/node_modules/is-alphanumerical/index.js +15 -0
- package/dist/node_modules/is-decimal/index.cjs +14 -0
- package/dist/node_modules/is-decimal/index.js +14 -0
- package/dist/node_modules/is-hexadecimal/index.cjs +14 -0
- package/dist/node_modules/is-hexadecimal/index.js +14 -0
- package/dist/node_modules/parse-entities/lib/index.cjs +232 -0
- package/dist/node_modules/parse-entities/lib/index.js +232 -0
- package/dist/node_modules/property-information/index.cjs +27 -0
- package/dist/node_modules/property-information/index.js +26 -0
- package/dist/node_modules/property-information/lib/aria.cjs +60 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.cjs +81 -0
- package/dist/node_modules/property-information/lib/find.js +81 -0
- package/dist/node_modules/property-information/lib/html.cjs +326 -0
- package/dist/node_modules/property-information/lib/html.js +326 -0
- package/dist/node_modules/property-information/lib/normalize.cjs +15 -0
- package/dist/node_modules/property-information/lib/normalize.js +15 -0
- package/dist/node_modules/property-information/lib/svg.cjs +564 -0
- package/dist/node_modules/property-information/lib/svg.js +564 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.cjs +15 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +15 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.cjs +14 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +14 -0
- package/dist/node_modules/property-information/lib/util/create.cjs +53 -0
- package/dist/node_modules/property-information/lib/util/create.js +53 -0
- package/dist/node_modules/property-information/lib/util/defined-info.cjs +49 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +49 -0
- package/dist/node_modules/property-information/lib/util/info.cjs +33 -0
- package/dist/node_modules/property-information/lib/util/info.js +33 -0
- package/dist/node_modules/property-information/lib/util/merge.cjs +26 -0
- package/dist/node_modules/property-information/lib/util/merge.js +26 -0
- package/dist/node_modules/property-information/lib/util/schema.cjs +27 -0
- package/dist/node_modules/property-information/lib/util/schema.js +27 -0
- package/dist/node_modules/property-information/lib/util/types.cjs +35 -0
- package/dist/node_modules/property-information/lib/util/types.js +24 -0
- package/dist/node_modules/property-information/lib/xlink.cjs +18 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.cjs +14 -0
- package/dist/node_modules/property-information/lib/xml.js +15 -0
- package/dist/node_modules/property-information/lib/xmlns.cjs +14 -0
- package/dist/node_modules/property-information/lib/xmlns.js +14 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +6 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +6 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +183 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +181 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +308 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +306 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.cjs +12 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.js +12 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.cjs +121 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.js +121 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.cjs +147 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.js +147 -0
- package/dist/node_modules/refractor/lang/bash.cjs +190 -0
- package/dist/node_modules/refractor/lang/bash.js +190 -0
- package/dist/node_modules/refractor/lang/clike.cjs +37 -0
- package/dist/node_modules/refractor/lang/clike.js +37 -0
- package/dist/node_modules/refractor/lang/javascript.cjs +122 -0
- package/dist/node_modules/refractor/lang/javascript.js +122 -0
- package/dist/node_modules/refractor/lang/json.cjs +36 -0
- package/dist/node_modules/refractor/lang/json.js +36 -0
- package/dist/node_modules/refractor/lang/python.cjs +71 -0
- package/dist/node_modules/refractor/lang/python.js +71 -0
- package/dist/node_modules/refractor/lang/typescript.cjs +55 -0
- package/dist/node_modules/refractor/lang/typescript.js +55 -0
- package/dist/node_modules/refractor/lib/core.cjs +214 -0
- package/dist/node_modules/refractor/lib/core.js +214 -0
- package/dist/node_modules/refractor/lib/prism-core.cjs +595 -0
- package/dist/node_modules/refractor/lib/prism-core.js +595 -0
- package/dist/node_modules/space-separated-tokens/index.cjs +15 -0
- package/dist/node_modules/space-separated-tokens/index.js +15 -0
- package/package.json +3 -1
- package/skills/redis-ui-components/references/CodeBlock.md +27 -6
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Schema } from "./schema.js";
|
|
2
|
+
import { normalize } from "../normalize.js";
|
|
3
|
+
import { DefinedInfo } from "./defined-info.js";
|
|
4
|
+
//#region ../../node_modules/property-information/lib/util/create.js
|
|
5
|
+
/**
|
|
6
|
+
* @import {Info, Space} from 'property-information'
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @typedef Definition
|
|
10
|
+
* Definition of a schema.
|
|
11
|
+
* @property {Record<string, string> | undefined} [attributes]
|
|
12
|
+
* Normalzed names to special attribute case.
|
|
13
|
+
* @property {ReadonlyArray<string> | undefined} [mustUseProperty]
|
|
14
|
+
* Normalized names that must be set as properties.
|
|
15
|
+
* @property {Record<string, number | null>} properties
|
|
16
|
+
* Property names to their types.
|
|
17
|
+
* @property {Space | undefined} [space]
|
|
18
|
+
* Space.
|
|
19
|
+
* @property {Transform} transform
|
|
20
|
+
* Transform a property name.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* @callback Transform
|
|
24
|
+
* Transform.
|
|
25
|
+
* @param {Record<string, string>} attributes
|
|
26
|
+
* Attributes.
|
|
27
|
+
* @param {string} property
|
|
28
|
+
* Property.
|
|
29
|
+
* @returns {string}
|
|
30
|
+
* Attribute.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* @param {Definition} definition
|
|
34
|
+
* Definition.
|
|
35
|
+
* @returns {Schema}
|
|
36
|
+
* Schema.
|
|
37
|
+
*/
|
|
38
|
+
function create(definition) {
|
|
39
|
+
/** @type {Record<string, Info>} */
|
|
40
|
+
const properties = {};
|
|
41
|
+
/** @type {Record<string, string>} */
|
|
42
|
+
const normals = {};
|
|
43
|
+
for (const [property, value] of Object.entries(definition.properties)) {
|
|
44
|
+
const info = new DefinedInfo(property, definition.transform(definition.attributes || {}, property), value, definition.space);
|
|
45
|
+
if (definition.mustUseProperty && definition.mustUseProperty.includes(property)) info.mustUseProperty = true;
|
|
46
|
+
properties[property] = info;
|
|
47
|
+
normals[normalize(property)] = property;
|
|
48
|
+
normals[normalize(info.attribute)] = property;
|
|
49
|
+
}
|
|
50
|
+
return new Schema(properties, normals, definition.space);
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { create };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_info = require("./info.cjs");
|
|
2
|
+
const require_types = require("./types.cjs");
|
|
3
|
+
//#region ../../node_modules/property-information/lib/util/defined-info.js
|
|
4
|
+
/**
|
|
5
|
+
* @import {Space} from 'property-information'
|
|
6
|
+
*/
|
|
7
|
+
var checks = Object.keys(require_types.types_exports);
|
|
8
|
+
var DefinedInfo = class extends require_info.Info {
|
|
9
|
+
/**
|
|
10
|
+
* @constructor
|
|
11
|
+
* @param {string} property
|
|
12
|
+
* Property.
|
|
13
|
+
* @param {string} attribute
|
|
14
|
+
* Attribute.
|
|
15
|
+
* @param {number | null | undefined} [mask]
|
|
16
|
+
* Mask.
|
|
17
|
+
* @param {Space | undefined} [space]
|
|
18
|
+
* Space.
|
|
19
|
+
* @returns
|
|
20
|
+
* Info.
|
|
21
|
+
*/
|
|
22
|
+
constructor(property, attribute, mask, space) {
|
|
23
|
+
let index = -1;
|
|
24
|
+
super(property, attribute);
|
|
25
|
+
mark(this, "space", space);
|
|
26
|
+
if (typeof mask === "number") while (++index < checks.length) {
|
|
27
|
+
const check = checks[index];
|
|
28
|
+
mark(this, checks[index], (mask & require_types.types_exports[check]) === require_types.types_exports[check]);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
DefinedInfo.prototype.defined = true;
|
|
33
|
+
/**
|
|
34
|
+
* @template {keyof DefinedInfo} Key
|
|
35
|
+
* Key type.
|
|
36
|
+
* @param {DefinedInfo} values
|
|
37
|
+
* Info.
|
|
38
|
+
* @param {Key} key
|
|
39
|
+
* Key.
|
|
40
|
+
* @param {DefinedInfo[Key]} value
|
|
41
|
+
* Value.
|
|
42
|
+
* @returns {undefined}
|
|
43
|
+
* Nothing.
|
|
44
|
+
*/
|
|
45
|
+
function mark(values, key, value) {
|
|
46
|
+
if (value) values[key] = value;
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.DefinedInfo = DefinedInfo;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Info } from "./info.js";
|
|
2
|
+
import { types_exports } from "./types.js";
|
|
3
|
+
//#region ../../node_modules/property-information/lib/util/defined-info.js
|
|
4
|
+
/**
|
|
5
|
+
* @import {Space} from 'property-information'
|
|
6
|
+
*/
|
|
7
|
+
var checks = Object.keys(types_exports);
|
|
8
|
+
var DefinedInfo = class extends Info {
|
|
9
|
+
/**
|
|
10
|
+
* @constructor
|
|
11
|
+
* @param {string} property
|
|
12
|
+
* Property.
|
|
13
|
+
* @param {string} attribute
|
|
14
|
+
* Attribute.
|
|
15
|
+
* @param {number | null | undefined} [mask]
|
|
16
|
+
* Mask.
|
|
17
|
+
* @param {Space | undefined} [space]
|
|
18
|
+
* Space.
|
|
19
|
+
* @returns
|
|
20
|
+
* Info.
|
|
21
|
+
*/
|
|
22
|
+
constructor(property, attribute, mask, space) {
|
|
23
|
+
let index = -1;
|
|
24
|
+
super(property, attribute);
|
|
25
|
+
mark(this, "space", space);
|
|
26
|
+
if (typeof mask === "number") while (++index < checks.length) {
|
|
27
|
+
const check = checks[index];
|
|
28
|
+
mark(this, checks[index], (mask & types_exports[check]) === types_exports[check]);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
DefinedInfo.prototype.defined = true;
|
|
33
|
+
/**
|
|
34
|
+
* @template {keyof DefinedInfo} Key
|
|
35
|
+
* Key type.
|
|
36
|
+
* @param {DefinedInfo} values
|
|
37
|
+
* Info.
|
|
38
|
+
* @param {Key} key
|
|
39
|
+
* Key.
|
|
40
|
+
* @param {DefinedInfo[Key]} value
|
|
41
|
+
* Value.
|
|
42
|
+
* @returns {undefined}
|
|
43
|
+
* Nothing.
|
|
44
|
+
*/
|
|
45
|
+
function mark(values, key, value) {
|
|
46
|
+
if (value) values[key] = value;
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { DefinedInfo };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region ../../node_modules/property-information/lib/util/info.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Info as InfoType} from 'property-information'
|
|
4
|
+
*/
|
|
5
|
+
/** @type {InfoType} */
|
|
6
|
+
var Info = class {
|
|
7
|
+
/**
|
|
8
|
+
* @param {string} property
|
|
9
|
+
* Property.
|
|
10
|
+
* @param {string} attribute
|
|
11
|
+
* Attribute.
|
|
12
|
+
* @returns
|
|
13
|
+
* Info.
|
|
14
|
+
*/
|
|
15
|
+
constructor(property, attribute) {
|
|
16
|
+
this.attribute = attribute;
|
|
17
|
+
this.property = property;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
Info.prototype.attribute = "";
|
|
21
|
+
Info.prototype.booleanish = false;
|
|
22
|
+
Info.prototype.boolean = false;
|
|
23
|
+
Info.prototype.commaOrSpaceSeparated = false;
|
|
24
|
+
Info.prototype.commaSeparated = false;
|
|
25
|
+
Info.prototype.defined = false;
|
|
26
|
+
Info.prototype.mustUseProperty = false;
|
|
27
|
+
Info.prototype.number = false;
|
|
28
|
+
Info.prototype.overloadedBoolean = false;
|
|
29
|
+
Info.prototype.property = "";
|
|
30
|
+
Info.prototype.spaceSeparated = false;
|
|
31
|
+
Info.prototype.space = void 0;
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.Info = Info;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region ../../node_modules/property-information/lib/util/info.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Info as InfoType} from 'property-information'
|
|
4
|
+
*/
|
|
5
|
+
/** @type {InfoType} */
|
|
6
|
+
var Info = class {
|
|
7
|
+
/**
|
|
8
|
+
* @param {string} property
|
|
9
|
+
* Property.
|
|
10
|
+
* @param {string} attribute
|
|
11
|
+
* Attribute.
|
|
12
|
+
* @returns
|
|
13
|
+
* Info.
|
|
14
|
+
*/
|
|
15
|
+
constructor(property, attribute) {
|
|
16
|
+
this.attribute = attribute;
|
|
17
|
+
this.property = property;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
Info.prototype.attribute = "";
|
|
21
|
+
Info.prototype.booleanish = false;
|
|
22
|
+
Info.prototype.boolean = false;
|
|
23
|
+
Info.prototype.commaOrSpaceSeparated = false;
|
|
24
|
+
Info.prototype.commaSeparated = false;
|
|
25
|
+
Info.prototype.defined = false;
|
|
26
|
+
Info.prototype.mustUseProperty = false;
|
|
27
|
+
Info.prototype.number = false;
|
|
28
|
+
Info.prototype.overloadedBoolean = false;
|
|
29
|
+
Info.prototype.property = "";
|
|
30
|
+
Info.prototype.spaceSeparated = false;
|
|
31
|
+
Info.prototype.space = void 0;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Info };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_schema = require("./schema.cjs");
|
|
2
|
+
//#region ../../node_modules/property-information/lib/util/merge.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Info, Space} from 'property-information'
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @param {ReadonlyArray<Schema>} definitions
|
|
8
|
+
* Definitions.
|
|
9
|
+
* @param {Space | undefined} [space]
|
|
10
|
+
* Space.
|
|
11
|
+
* @returns {Schema}
|
|
12
|
+
* Schema.
|
|
13
|
+
*/
|
|
14
|
+
function merge(definitions, space) {
|
|
15
|
+
/** @type {Record<string, Info>} */
|
|
16
|
+
const property = {};
|
|
17
|
+
/** @type {Record<string, string>} */
|
|
18
|
+
const normal = {};
|
|
19
|
+
for (const definition of definitions) {
|
|
20
|
+
Object.assign(property, definition.property);
|
|
21
|
+
Object.assign(normal, definition.normal);
|
|
22
|
+
}
|
|
23
|
+
return new require_schema.Schema(property, normal, space);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.merge = merge;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Schema } from "./schema.js";
|
|
2
|
+
//#region ../../node_modules/property-information/lib/util/merge.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Info, Space} from 'property-information'
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @param {ReadonlyArray<Schema>} definitions
|
|
8
|
+
* Definitions.
|
|
9
|
+
* @param {Space | undefined} [space]
|
|
10
|
+
* Space.
|
|
11
|
+
* @returns {Schema}
|
|
12
|
+
* Schema.
|
|
13
|
+
*/
|
|
14
|
+
function merge(definitions, space) {
|
|
15
|
+
/** @type {Record<string, Info>} */
|
|
16
|
+
const property = {};
|
|
17
|
+
/** @type {Record<string, string>} */
|
|
18
|
+
const normal = {};
|
|
19
|
+
for (const definition of definitions) {
|
|
20
|
+
Object.assign(property, definition.property);
|
|
21
|
+
Object.assign(normal, definition.normal);
|
|
22
|
+
}
|
|
23
|
+
return new Schema(property, normal, space);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { merge };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region ../../node_modules/property-information/lib/util/schema.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Schema as SchemaType, Space} from 'property-information'
|
|
4
|
+
*/
|
|
5
|
+
/** @type {SchemaType} */
|
|
6
|
+
var Schema = class {
|
|
7
|
+
/**
|
|
8
|
+
* @param {SchemaType['property']} property
|
|
9
|
+
* Property.
|
|
10
|
+
* @param {SchemaType['normal']} normal
|
|
11
|
+
* Normal.
|
|
12
|
+
* @param {Space | undefined} [space]
|
|
13
|
+
* Space.
|
|
14
|
+
* @returns
|
|
15
|
+
* Schema.
|
|
16
|
+
*/
|
|
17
|
+
constructor(property, normal, space) {
|
|
18
|
+
this.normal = normal;
|
|
19
|
+
this.property = property;
|
|
20
|
+
if (space) this.space = space;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
Schema.prototype.normal = {};
|
|
24
|
+
Schema.prototype.property = {};
|
|
25
|
+
Schema.prototype.space = void 0;
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.Schema = Schema;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region ../../node_modules/property-information/lib/util/schema.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Schema as SchemaType, Space} from 'property-information'
|
|
4
|
+
*/
|
|
5
|
+
/** @type {SchemaType} */
|
|
6
|
+
var Schema = class {
|
|
7
|
+
/**
|
|
8
|
+
* @param {SchemaType['property']} property
|
|
9
|
+
* Property.
|
|
10
|
+
* @param {SchemaType['normal']} normal
|
|
11
|
+
* Normal.
|
|
12
|
+
* @param {Space | undefined} [space]
|
|
13
|
+
* Space.
|
|
14
|
+
* @returns
|
|
15
|
+
* Schema.
|
|
16
|
+
*/
|
|
17
|
+
constructor(property, normal, space) {
|
|
18
|
+
this.normal = normal;
|
|
19
|
+
this.property = property;
|
|
20
|
+
if (space) this.space = space;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
Schema.prototype.normal = {};
|
|
24
|
+
Schema.prototype.property = {};
|
|
25
|
+
Schema.prototype.space = void 0;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { Schema };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region ../../node_modules/property-information/lib/util/types.js
|
|
2
|
+
var types_exports = /* @__PURE__ */ require("../../../../_virtual/_rolldown/runtime.cjs").__exportAll({
|
|
3
|
+
boolean: () => boolean,
|
|
4
|
+
booleanish: () => booleanish,
|
|
5
|
+
commaOrSpaceSeparated: () => commaOrSpaceSeparated,
|
|
6
|
+
commaSeparated: () => commaSeparated,
|
|
7
|
+
number: () => number,
|
|
8
|
+
overloadedBoolean: () => overloadedBoolean,
|
|
9
|
+
spaceSeparated: () => spaceSeparated
|
|
10
|
+
});
|
|
11
|
+
var powers = 0;
|
|
12
|
+
var boolean = increment();
|
|
13
|
+
var booleanish = increment();
|
|
14
|
+
var overloadedBoolean = increment();
|
|
15
|
+
var number = increment();
|
|
16
|
+
var spaceSeparated = increment();
|
|
17
|
+
var commaSeparated = increment();
|
|
18
|
+
var commaOrSpaceSeparated = increment();
|
|
19
|
+
function increment() {
|
|
20
|
+
return 2 ** ++powers;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.boolean = boolean;
|
|
24
|
+
exports.booleanish = booleanish;
|
|
25
|
+
exports.commaOrSpaceSeparated = commaOrSpaceSeparated;
|
|
26
|
+
exports.commaSeparated = commaSeparated;
|
|
27
|
+
exports.number = number;
|
|
28
|
+
exports.overloadedBoolean = overloadedBoolean;
|
|
29
|
+
exports.spaceSeparated = spaceSeparated;
|
|
30
|
+
Object.defineProperty(exports, "types_exports", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function() {
|
|
33
|
+
return types_exports;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/property-information/lib/util/types.js
|
|
3
|
+
var types_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
boolean: () => boolean,
|
|
5
|
+
booleanish: () => booleanish,
|
|
6
|
+
commaOrSpaceSeparated: () => commaOrSpaceSeparated,
|
|
7
|
+
commaSeparated: () => commaSeparated,
|
|
8
|
+
number: () => number,
|
|
9
|
+
overloadedBoolean: () => overloadedBoolean,
|
|
10
|
+
spaceSeparated: () => spaceSeparated
|
|
11
|
+
});
|
|
12
|
+
var powers = 0;
|
|
13
|
+
var boolean = increment();
|
|
14
|
+
var booleanish = increment();
|
|
15
|
+
var overloadedBoolean = increment();
|
|
16
|
+
var number = increment();
|
|
17
|
+
var spaceSeparated = increment();
|
|
18
|
+
var commaSeparated = increment();
|
|
19
|
+
var commaOrSpaceSeparated = increment();
|
|
20
|
+
function increment() {
|
|
21
|
+
return 2 ** ++powers;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { boolean, booleanish, commaOrSpaceSeparated, commaSeparated, number, overloadedBoolean, spaceSeparated, types_exports };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../../node_modules/property-information/lib/xlink.js
|
|
2
|
+
var xlink = require("./util/create.cjs").create({
|
|
3
|
+
properties: {
|
|
4
|
+
xLinkActuate: null,
|
|
5
|
+
xLinkArcRole: null,
|
|
6
|
+
xLinkHref: null,
|
|
7
|
+
xLinkRole: null,
|
|
8
|
+
xLinkShow: null,
|
|
9
|
+
xLinkTitle: null,
|
|
10
|
+
xLinkType: null
|
|
11
|
+
},
|
|
12
|
+
space: "xlink",
|
|
13
|
+
transform(_, property) {
|
|
14
|
+
return "xlink:" + property.slice(5).toLowerCase();
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.xlink = xlink;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { create } from "./util/create.js";
|
|
2
|
+
//#region ../../node_modules/property-information/lib/xlink.js
|
|
3
|
+
var xlink = create({
|
|
4
|
+
properties: {
|
|
5
|
+
xLinkActuate: null,
|
|
6
|
+
xLinkArcRole: null,
|
|
7
|
+
xLinkHref: null,
|
|
8
|
+
xLinkRole: null,
|
|
9
|
+
xLinkShow: null,
|
|
10
|
+
xLinkTitle: null,
|
|
11
|
+
xLinkType: null
|
|
12
|
+
},
|
|
13
|
+
space: "xlink",
|
|
14
|
+
transform(_, property) {
|
|
15
|
+
return "xlink:" + property.slice(5).toLowerCase();
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { xlink };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region ../../node_modules/property-information/lib/xml.js
|
|
2
|
+
var xml = require("./util/create.cjs").create({
|
|
3
|
+
properties: {
|
|
4
|
+
xmlBase: null,
|
|
5
|
+
xmlLang: null,
|
|
6
|
+
xmlSpace: null
|
|
7
|
+
},
|
|
8
|
+
space: "xml",
|
|
9
|
+
transform(_, property) {
|
|
10
|
+
return "xml:" + property.slice(3).toLowerCase();
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.xml = xml;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { create } from "./util/create.js";
|
|
2
|
+
//#region ../../node_modules/property-information/lib/xml.js
|
|
3
|
+
var xml = create({
|
|
4
|
+
properties: {
|
|
5
|
+
xmlBase: null,
|
|
6
|
+
xmlLang: null,
|
|
7
|
+
xmlSpace: null
|
|
8
|
+
},
|
|
9
|
+
space: "xml",
|
|
10
|
+
transform(_, property) {
|
|
11
|
+
return "xml:" + property.slice(3).toLowerCase();
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { xml };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_create = require("./util/create.cjs");
|
|
2
|
+
const require_case_insensitive_transform = require("./util/case-insensitive-transform.cjs");
|
|
3
|
+
//#region ../../node_modules/property-information/lib/xmlns.js
|
|
4
|
+
var xmlns = require_create.create({
|
|
5
|
+
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
6
|
+
properties: {
|
|
7
|
+
xmlnsXLink: null,
|
|
8
|
+
xmlns: null
|
|
9
|
+
},
|
|
10
|
+
space: "xmlns",
|
|
11
|
+
transform: require_case_insensitive_transform.caseInsensitiveTransform
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.xmlns = xmlns;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { create } from "./util/create.js";
|
|
2
|
+
import { caseInsensitiveTransform } from "./util/case-insensitive-transform.js";
|
|
3
|
+
//#region ../../node_modules/property-information/lib/xmlns.js
|
|
4
|
+
var xmlns = create({
|
|
5
|
+
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
6
|
+
properties: {
|
|
7
|
+
xmlnsXLink: null,
|
|
8
|
+
xmlns: null
|
|
9
|
+
},
|
|
10
|
+
space: "xmlns",
|
|
11
|
+
transform: caseInsensitiveTransform
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { xmlns };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region ../../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js
|
|
2
|
+
var checkForListedLanguage_default = (function(astGenerator, language) {
|
|
3
|
+
return astGenerator.listLanguages().indexOf(language) !== -1;
|
|
4
|
+
});
|
|
5
|
+
//#endregion
|
|
6
|
+
exports.default = checkForListedLanguage_default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region ../../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js
|
|
2
|
+
var checkForListedLanguage_default = (function(astGenerator, language) {
|
|
3
|
+
return astGenerator.listLanguages().indexOf(language) !== -1;
|
|
4
|
+
});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { checkForListedLanguage_default as default };
|