@limetech/lime-elements 40.5.2 → 40.6.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/CHANGELOG.md +25 -0
- package/dist/cjs/{_baseEach-Bygi-un6.js → _baseForOwn-8jMPwf3X.js} +1 -43
- package/dist/cjs/{_baseIsEqual-CQZKiKbe.js → _baseIsEqual-zzV9DKMv.js} +0 -1
- package/dist/cjs/{_baseIteratee-DDklwtn9.js → _baseIteratee-BIMRm4nq.js} +1 -3
- package/dist/cjs/_baseSet-DykMx7uF.js +92 -0
- package/dist/cjs/_getPrototype-CCLHkBHj.js +8 -0
- package/dist/cjs/{cloneDeep-hE40Q8aw.js → cloneDeep-D2immmwT.js} +16 -160
- package/dist/cjs/{index-ETPz91V5.js → index-zZvs6xK-.js} +9382 -9504
- package/dist/cjs/{difference-B543MGsY.js → isArrayLikeObject-U2Ddbw4n.js} +5 -93
- package/dist/cjs/{isEqual-Cd9J8a5-.js → isEqual-D3eFkhqd.js} +1 -1
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
- package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +45 -6
- package/dist/cjs/limel-file-viewer.cjs.entry.js +511 -71
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +73 -11
- package/dist/cjs/limel-form.cjs.entry.js +1857 -1919
- package/dist/cjs/limel-markdown.cjs.entry.js +28 -4
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +328 -264
- package/dist/cjs/limel-tab-bar.cjs.entry.js +83 -4
- package/dist/cjs/limel-table.cjs.entry.js +598 -199
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/markdown-exporter-9p7d3Q76.js +6210 -0
- package/dist/cjs/{markdown-parser-YH5HSSgF.js → markdown-parser-Cgv5Y9Z4.js} +579 -848
- package/dist/collection/components/action-bar/action-bar-item/action-bar-item.css +1 -1
- package/dist/collection/components/form/fields/schema-field.js +8 -0
- package/dist/collection/components/form/form.js +1 -0
- package/dist/collection/components/form/form.test-schemas.js +47 -0
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +38 -11
- package/dist/collection/components/markdown/markdown-exporter.js +186 -0
- package/dist/collection/components/markdown/markdown-parser.js +2 -3
- package/dist/collection/components/markdown/markdown.js +54 -2
- package/dist/collection/components/table/table.css +1 -2
- package/dist/esm/{_baseEach-lvj-g1Zj.js → _baseForOwn-D5j7fHlv.js} +2 -42
- package/dist/esm/{_baseIsEqual-B6bIeexY.js → _baseIsEqual-CyF4P8uM.js} +2 -2
- package/dist/esm/{_baseIteratee-CEZRuq23.js → _baseIteratee-CpbczHY1.js} +3 -3
- package/dist/esm/_baseSet-Cw2IE6ZF.js +89 -0
- package/dist/esm/_getPrototype-B0kMNv1F.js +6 -0
- package/dist/esm/{_getTag-CMJL-6hk.js → _getTag-BiAaLWvH.js} +1 -1
- package/dist/esm/{cloneDeep-CL7UD3mR.js → cloneDeep-DAbOtbs8.js} +18 -154
- package/dist/esm/{index-CbciMfiU.js → index-BN64nlbO.js} +9369 -9505
- package/dist/esm/{difference-DND5tWiA.js → isArrayLikeObject-CJB8HbtH.js} +7 -91
- package/dist/esm/{isEmpty-DHgukT5k.js → isEmpty-BGVZ12Ea.js} +1 -1
- package/dist/esm/{isEqual-4tbMaaf_.js → isEqual-CE83yS8T.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-action-bar_3.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +3 -3
- package/dist/esm/limel-chip_2.entry.js +2 -2
- package/dist/esm/limel-dialog.entry.js +3 -3
- package/dist/esm/limel-file-dropzone_2.entry.js +45 -6
- package/dist/esm/limel-file-viewer.entry.js +511 -71
- package/dist/esm/limel-flatpickr-adapter.entry.js +69 -7
- package/dist/esm/limel-form.entry.js +1854 -1916
- package/dist/esm/limel-markdown.entry.js +28 -4
- package/dist/esm/limel-prosemirror-adapter.entry.js +329 -265
- package/dist/esm/limel-tab-bar.entry.js +83 -4
- package/dist/esm/limel-table.entry.js +595 -196
- package/dist/esm/loader.js +1 -1
- package/dist/esm/markdown-exporter--3_MaqwD.js +6208 -0
- package/dist/esm/{markdown-parser-DrxxGLF5.js → markdown-parser-DCf-3dKZ.js} +506 -791
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-0fba64eb.entry.js +16 -0
- package/dist/lime-elements/p-19344984.entry.js +13 -0
- package/dist/lime-elements/p-20658306.entry.js +1 -0
- package/dist/lime-elements/p-26c5c6b9.entry.js +1 -0
- package/dist/lime-elements/{p-11a96a8c.entry.js → p-36ce4fbc.entry.js} +1 -1
- package/dist/lime-elements/{p-955292eb.entry.js → p-4aae63bd.entry.js} +1 -1
- package/dist/lime-elements/{p-b8c76487.entry.js → p-5d974afa.entry.js} +1 -1
- package/dist/lime-elements/p-B6-3WXAv.js +1 -0
- package/dist/lime-elements/p-BPzhuHcl.js +1 -0
- package/dist/lime-elements/p-BQeIv4aA.js +1 -0
- package/dist/lime-elements/p-BY5NjPj8.js +1 -0
- package/dist/lime-elements/p-CC4Usa-Q.js +7 -0
- package/dist/lime-elements/p-COdirXg1.js +1 -0
- package/dist/lime-elements/p-CW2-jhzP.js +1 -0
- package/dist/lime-elements/p-D2VFSWDU.js +1 -0
- package/dist/lime-elements/{p-D4RdItCq.js → p-DK0pjX-Y.js} +1 -1
- package/dist/lime-elements/p-ORUNaKm-.js +1 -0
- package/dist/lime-elements/p-_UXAljNc.js +1 -0
- package/dist/lime-elements/{p-5b371d6b.entry.js → p-a71f6e87.entry.js} +4 -4
- package/dist/lime-elements/p-cef66e53.entry.js +1 -0
- package/dist/lime-elements/{p-02812dc8.entry.js → p-d3bd4b80.entry.js} +1 -1
- package/dist/lime-elements/p-dc9cd793.entry.js +1 -0
- package/dist/lime-elements/p-dd62042a.entry.js +1 -0
- package/dist/lime-elements/p-nVemxylR.js +1 -0
- package/dist/lime-elements/p-pk5KIdKH.js +1 -0
- package/dist/types/components/form/form.test-schemas.d.ts +3 -0
- package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +0 -1
- package/dist/types/components/markdown/markdown-exporter.d.ts +15 -0
- package/dist/types/components/markdown/markdown.d.ts +19 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/types/global/shared-types/custom-element.types.d.ts +25 -0
- package/package.json +17 -11
- package/dist/cjs/_getAllKeysIn-BJsgUTAt.js +0 -119
- package/dist/cjs/_isIterateeCall-BUGt9SrH.js +0 -73
- package/dist/cjs/pickBy-D-X6S5kg.js +0 -201
- package/dist/esm/_getAllKeysIn-kT3KizYN.js +0 -114
- package/dist/esm/_isIterateeCall-Bb4gUZLK.js +0 -70
- package/dist/esm/pickBy-C4C3CM4m.js +0 -195
- package/dist/lime-elements/p-1e085bbe.entry.js +0 -13
- package/dist/lime-elements/p-56bkn1D-.js +0 -1
- package/dist/lime-elements/p-67f02b69.entry.js +0 -1
- package/dist/lime-elements/p-6d5b23ad.entry.js +0 -1
- package/dist/lime-elements/p-867681aa.entry.js +0 -1
- package/dist/lime-elements/p-9d3437ac.entry.js +0 -16
- package/dist/lime-elements/p-B8yl2MCT.js +0 -1
- package/dist/lime-elements/p-BAR6am-7.js +0 -1
- package/dist/lime-elements/p-BE1Efiuj.js +0 -1
- package/dist/lime-elements/p-BsX7ma3n.js +0 -1
- package/dist/lime-elements/p-C9xHOCE_.js +0 -7
- package/dist/lime-elements/p-CR7u-m0b.js +0 -1
- package/dist/lime-elements/p-CVzgpz9P.js +0 -1
- package/dist/lime-elements/p-D8H5afYg.js +0 -1
- package/dist/lime-elements/p-DMNtoJ8I.js +0 -1
- package/dist/lime-elements/p-DtrvybFR.js +0 -1
- package/dist/lime-elements/p-f309ceb8.entry.js +0 -1
- package/dist/lime-elements/p-f3c108c9.entry.js +0 -1
- package/dist/lime-elements/p-mmkVLOjW.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./p-ByzvFNMm.js";import{c as t,a as o}from"./p-BY5NjPj8.js";import{i}from"./p-B--C3qwe.js";import{i as n}from"./p-BJQylLSL.js";function s(r){if("function"!=typeof r)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!r.call(this);case 1:return!r.call(this,t[0]);case 2:return!r.call(this,t[0],t[1]);case 3:return!r.call(this,t[0],t[1],t[2])}return!r.apply(this,t)}}function e(s,e,a){if(!n(s))return s;for(var u=-1,f=(e=t(e,s)).length,p=f-1,c=s;null!=c&&++u<f;){var m=o(e[u]),h=a;if("__proto__"===m||"constructor"===m||"prototype"===m)return s;if(u!=p){var v=c[m];void 0===(h=void 0)&&(h=n(v)?v:i(e[u+1])?[]:{})}r(c,m,h),c=c[m]}return s}export{e as b,s as n}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r}from"./p-CK4jS9_E.js";import{d as n}from"./p-9W8bTt2G.js";import{d as t}from"./p-B6-3WXAv.js";import{S as o}from"./p-BJQylLSL.js";import{i}from"./p-DK0pjX-Y.js";import{i as u}from"./p-B8VKuhvH.js";import{i as a}from"./p-BYfPV0O4.js";import{i as e}from"./p-oiMYqRQ0.js";var f,s,c,p=Date.now,m=n?function(r,t){return n(r,"toString",{configurable:!0,enumerable:!1,value:(o=t,function(){return o}),writable:!0});var o}:r,v=(f=m,s=0,c=0,function(){var r=p(),n=16-(r-c);if(c=r,n>0){if(++s>=800)return arguments[0]}else s=0;return f.apply(void 0,arguments)});function j(r){return r!=r}function l(r,n){return!(null==r||!r.length)&&function(r,n){return n==n?function(r,n){for(var t=-1,o=r.length;++t<o;)if(r[t]===n)return t;return-1}(r,n):function(r,n){for(var t=r.length,o=-1;++o<t;)if(n(r[o],o,r))return o;return-1}(r,j)}(r,n)>-1}var b=Math.max;function d(n,t){return v(function(r,n,t){return n=b(void 0===n?r.length-1:n,0),function(){for(var o=arguments,i=-1,u=b(o.length-n,0),a=Array(u);++i<u;)a[i]=o[n+i];i=-1;for(var e=Array(n+1);++i<n;)e[i]=o[i];return e[n]=t(a),function(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}(r,this,e)}}(n,t,r),n+"")}var h=o?o.isConcatSpreadable:void 0;function B(r){return u(r)||i(r)||!!(h&&r&&r[h])}function S(r,n,o,i,u){var a=-1,e=r.length;for(o||(o=B),u||(u=[]);++a<e;){var f=r[a];o(f)&&t(u,f)}return u}function y(r){return e(r)&&a(r)}export{l as a,d as b,S as c,y as i}
|
|
@@ -40,4 +40,7 @@ export declare const arrayItemWithDependenciesAndCustomConfigSchema: FormSchema;
|
|
|
40
40
|
export declare const nestedStringCustomComponentSchema: FormSchema;
|
|
41
41
|
export declare const nestedSchemaPathSchema: FormSchema;
|
|
42
42
|
export declare const nestedLayoutSchemaPathSchema: FormSchema;
|
|
43
|
+
export declare const getConditionalCustomComponentSchema: (value: Record<string, any>) => FormSchema;
|
|
44
|
+
export declare const arrayItemWithEnumAndDefaultSchema: FormSchema;
|
|
45
|
+
export declare const requiredCheckboxSchema: FormSchema;
|
|
43
46
|
//# sourceMappingURL=form.test-schemas.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CustomElementDefinition } from '../../global/shared-types/custom-element.types';
|
|
2
|
+
/**
|
|
3
|
+
* Convert rendered markdown content back to markdown, replacing each
|
|
4
|
+
* whitelisted custom element with the markdown it describes itself as.
|
|
5
|
+
*
|
|
6
|
+
* Elements that do not implement {@link MarkdownDescribable} are
|
|
7
|
+
* converted like any unknown element: their light DOM children are kept,
|
|
8
|
+
* and an element without children disappears.
|
|
9
|
+
*
|
|
10
|
+
* @param container - The element holding the rendered content.
|
|
11
|
+
* @param whitelist - The custom elements allowed in the content.
|
|
12
|
+
* @returns The content as GitHub Flavored Markdown.
|
|
13
|
+
*/
|
|
14
|
+
export declare function exportMarkdown(container: HTMLElement, whitelist: CustomElementDefinition[]): Promise<string>;
|
|
15
|
+
//# sourceMappingURL=markdown-exporter.d.ts.map
|
|
@@ -32,6 +32,7 @@ import { CustomElementDefinition } from '../../global/shared-types/custom-elemen
|
|
|
32
32
|
* @exampleComponent limel-example-markdown-custom-component-with-json-props
|
|
33
33
|
* @exampleComponent limel-example-markdown-remove-empty-paragraphs
|
|
34
34
|
* @exampleComponent limel-example-markdown-adapt-color-contrast
|
|
35
|
+
* @exampleComponent limel-example-markdown-to-markdown
|
|
35
36
|
* @exampleComponent limel-example-markdown-composite
|
|
36
37
|
*/
|
|
37
38
|
export declare class Markdown {
|
|
@@ -87,11 +88,29 @@ export declare class Markdown {
|
|
|
87
88
|
* drives the surrounding text color.
|
|
88
89
|
*/
|
|
89
90
|
adaptColorContrast: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Returns the content as markdown, with every whitelisted custom
|
|
93
|
+
* element replaced by the markdown it describes itself as.
|
|
94
|
+
*
|
|
95
|
+
* Use this to hand the content to a target that cannot render custom
|
|
96
|
+
* elements, such as the clipboard. An element describes itself by
|
|
97
|
+
* implementing `MarkdownDescribable`; elements that do not keep
|
|
98
|
+
* their child content, or are removed if they have none.
|
|
99
|
+
*
|
|
100
|
+
* The markdown is generated from the rendered content, so it may be
|
|
101
|
+
* formatted differently from `value`.
|
|
102
|
+
*
|
|
103
|
+
* @alpha
|
|
104
|
+
* @returns The content as markdown.
|
|
105
|
+
*/
|
|
106
|
+
toMarkdown(): Promise<string>;
|
|
90
107
|
textChanged(): Promise<void>;
|
|
108
|
+
private renderMarkdown;
|
|
91
109
|
handleWhitelistChange(): Promise<void>;
|
|
92
110
|
handleRemoveEmptyParagraphsChange(): Promise<void>;
|
|
93
111
|
handleAdaptColorContrastChange(): Promise<void>;
|
|
94
112
|
private rootElement;
|
|
113
|
+
private rendering?;
|
|
95
114
|
private imageIntersectionObserver;
|
|
96
115
|
private cachedConsumerWhitelist?;
|
|
97
116
|
private cachedCombinedWhitelist?;
|
|
@@ -2562,6 +2562,7 @@ export namespace Components {
|
|
|
2562
2562
|
* @exampleComponent limel-example-markdown-custom-component-with-json-props
|
|
2563
2563
|
* @exampleComponent limel-example-markdown-remove-empty-paragraphs
|
|
2564
2564
|
* @exampleComponent limel-example-markdown-adapt-color-contrast
|
|
2565
|
+
* @exampleComponent limel-example-markdown-to-markdown
|
|
2565
2566
|
* @exampleComponent limel-example-markdown-composite
|
|
2566
2567
|
*/
|
|
2567
2568
|
interface LimelMarkdown {
|
|
@@ -2580,6 +2581,12 @@ export namespace Components {
|
|
|
2580
2581
|
* @default true
|
|
2581
2582
|
*/
|
|
2582
2583
|
"removeEmptyParagraphs": boolean;
|
|
2584
|
+
/**
|
|
2585
|
+
* Returns the content as markdown, with every whitelisted custom element replaced by the markdown it describes itself as. Use this to hand the content to a target that cannot render custom elements, such as the clipboard. An element describes itself by implementing `MarkdownDescribable`; elements that do not keep their child content, or are removed if they have none. The markdown is generated from the rendered content, so it may be formatted differently from `value`.
|
|
2586
|
+
* @alpha
|
|
2587
|
+
* @returns The content as markdown.
|
|
2588
|
+
*/
|
|
2589
|
+
"toMarkdown": () => Promise<string>;
|
|
2583
2590
|
/**
|
|
2584
2591
|
* The input text. Treated as GitHub Flavored Markdown, with the addition that any included HTML will be parsed and rendered as HTML, rather than as text.
|
|
2585
2592
|
* @default ''
|
|
@@ -5802,6 +5809,7 @@ declare global {
|
|
|
5802
5809
|
* @exampleComponent limel-example-markdown-custom-component-with-json-props
|
|
5803
5810
|
* @exampleComponent limel-example-markdown-remove-empty-paragraphs
|
|
5804
5811
|
* @exampleComponent limel-example-markdown-adapt-color-contrast
|
|
5812
|
+
* @exampleComponent limel-example-markdown-to-markdown
|
|
5805
5813
|
* @exampleComponent limel-example-markdown-composite
|
|
5806
5814
|
*/
|
|
5807
5815
|
interface HTMLLimelMarkdownElement extends Components.LimelMarkdown, HTMLStencilElement {
|
|
@@ -9437,6 +9445,7 @@ declare namespace LocalJSX {
|
|
|
9437
9445
|
* @exampleComponent limel-example-markdown-custom-component-with-json-props
|
|
9438
9446
|
* @exampleComponent limel-example-markdown-remove-empty-paragraphs
|
|
9439
9447
|
* @exampleComponent limel-example-markdown-adapt-color-contrast
|
|
9448
|
+
* @exampleComponent limel-example-markdown-to-markdown
|
|
9440
9449
|
* @exampleComponent limel-example-markdown-composite
|
|
9441
9450
|
*/
|
|
9442
9451
|
interface LimelMarkdown {
|
|
@@ -12799,6 +12808,7 @@ declare module "@stencil/core" {
|
|
|
12799
12808
|
* @exampleComponent limel-example-markdown-custom-component-with-json-props
|
|
12800
12809
|
* @exampleComponent limel-example-markdown-remove-empty-paragraphs
|
|
12801
12810
|
* @exampleComponent limel-example-markdown-adapt-color-contrast
|
|
12811
|
+
* @exampleComponent limel-example-markdown-to-markdown
|
|
12802
12812
|
* @exampleComponent limel-example-markdown-composite
|
|
12803
12813
|
*/
|
|
12804
12814
|
"limel-markdown": LocalJSX.IntrinsicElements["limel-markdown"] & JSXBase.HTMLAttributes<HTMLLimelMarkdownElement>;
|
|
@@ -20,4 +20,29 @@ export type CustomElement = Omit<CustomElementDefinition, 'attributes'> & {
|
|
|
20
20
|
*/
|
|
21
21
|
attributes: Record<string, any>;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* A custom element that can describe itself as markdown.
|
|
25
|
+
*
|
|
26
|
+
* `limel-markdown` calls `toMarkdown` on every whitelisted element that
|
|
27
|
+
* implements it when its own `toMarkdown` is called, and puts the result
|
|
28
|
+
* in the element's place. Use it to give targets that cannot render the
|
|
29
|
+
* element, such as the clipboard, a markdown form of what it shows.
|
|
30
|
+
*
|
|
31
|
+
* The returned markdown takes the element's place as is, without
|
|
32
|
+
* escaping. An element that is rendered inline, such as a chip, should
|
|
33
|
+
* return inline markdown, such as a link.
|
|
34
|
+
*
|
|
35
|
+
* Implement `toMarkdown` as a method of the element's class, since
|
|
36
|
+
* `limel-markdown` looks for it on the class of each whitelisted tag.
|
|
37
|
+
*
|
|
38
|
+
* @alpha
|
|
39
|
+
*/
|
|
40
|
+
export interface MarkdownDescribable {
|
|
41
|
+
/**
|
|
42
|
+
* Describe the element as markdown.
|
|
43
|
+
*
|
|
44
|
+
* @returns The markdown that represents the element.
|
|
45
|
+
*/
|
|
46
|
+
toMarkdown(): Promise<string>;
|
|
47
|
+
}
|
|
23
48
|
//# sourceMappingURL=custom-element.types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.6.0",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@commitlint/config-conventional": "^21.2.3",
|
|
56
56
|
"@limetech/eslint-config": "^4.1.0",
|
|
57
|
-
"@microsoft/api-extractor": "^7.59.
|
|
57
|
+
"@microsoft/api-extractor": "^7.59.2",
|
|
58
58
|
"@playwright/test": "1.62.1",
|
|
59
59
|
"@popperjs/core": "^2.11.8",
|
|
60
|
-
"@rjsf/core": "6.
|
|
61
|
-
"@rjsf/utils": "^6.
|
|
62
|
-
"@rjsf/validator-ajv8": "^6.
|
|
60
|
+
"@rjsf/core": "^6.11.0",
|
|
61
|
+
"@rjsf/utils": "^6.11.0",
|
|
62
|
+
"@rjsf/validator-ajv8": "^6.11.0",
|
|
63
63
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
64
64
|
"@stencil/core": "^4.43.5",
|
|
65
65
|
"@stencil/sass": "^3.3.3",
|
|
66
|
-
"@stencil/vitest": "^1.
|
|
66
|
+
"@stencil/vitest": "^1.15.1",
|
|
67
67
|
"@types/codemirror": "^5.60.17",
|
|
68
68
|
"@types/html-escaper": "^3.0.4",
|
|
69
69
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -80,40 +80,46 @@
|
|
|
80
80
|
"flatpickr": "^4.6.13",
|
|
81
81
|
"glob": "^13.0.6",
|
|
82
82
|
"globals": "^17.12.0",
|
|
83
|
+
"hast-util-from-dom": "^5.0.1",
|
|
84
|
+
"hast-util-to-mdast": "^10.1.2",
|
|
83
85
|
"html-escaper": "^3.0.3",
|
|
84
86
|
"jsonlint-mod": "^1.7.6",
|
|
85
87
|
"jsx-dom": "^8.1.6",
|
|
86
88
|
"kompendium": "npm:@limetech/kompendium@^1.3.0",
|
|
87
89
|
"lodash-es": "^4.17.23",
|
|
88
90
|
"material-components-web": "^13.0.0",
|
|
91
|
+
"mdast-util-to-markdown": "^2.1.3",
|
|
89
92
|
"moment": "^2.30.1",
|
|
90
93
|
"morphdom": "^2.7.8",
|
|
91
94
|
"number-abbreviate": "^2.0.0",
|
|
92
95
|
"parse-css-color": "^0.2.1",
|
|
93
|
-
"postal-mime": "^3.0.
|
|
96
|
+
"postal-mime": "^3.0.1",
|
|
94
97
|
"prettier": "^3.8.3",
|
|
95
98
|
"prosemirror-example-setup": "^1.2.3",
|
|
96
|
-
"prosemirror-markdown": "^1.13.
|
|
97
|
-
"prosemirror-model": ">=1.25.
|
|
98
|
-
"prosemirror-schema-basic": "^1.2.
|
|
99
|
+
"prosemirror-markdown": "^1.13.8",
|
|
100
|
+
"prosemirror-model": ">=1.25.12",
|
|
101
|
+
"prosemirror-schema-basic": "^1.2.5",
|
|
99
102
|
"prosemirror-tables": "^1.8.5",
|
|
100
103
|
"prosemirror-test-builder": "^1.1.1",
|
|
101
104
|
"react": "^19.3.0",
|
|
102
105
|
"react-dom": "^19.3.0",
|
|
103
106
|
"rehype-parse": "^9.0.1",
|
|
104
107
|
"rehype-raw": "^7.0.0",
|
|
108
|
+
"rehype-remark": "^10.0.1",
|
|
105
109
|
"rehype-sanitize": "^6.0.0",
|
|
106
110
|
"rehype-stringify": "^10.0.1",
|
|
111
|
+
"remark-breaks": "^4.0.0",
|
|
107
112
|
"remark-gfm": "^4.0.1",
|
|
108
113
|
"remark-parse": "^11.0.0",
|
|
109
114
|
"remark-rehype": "^11.1.1",
|
|
115
|
+
"remark-stringify": "^11.0.0",
|
|
110
116
|
"replace-in-file": "^8.4.0",
|
|
111
117
|
"shelljs": "0.10.0",
|
|
112
118
|
"shx": "^0.4.0",
|
|
113
119
|
"sirv": "^3.0.2",
|
|
114
120
|
"sortablejs": "^1.15.7",
|
|
115
121
|
"style-to-object": "^2.0.2",
|
|
116
|
-
"tabulator-tables": "^6.5.
|
|
122
|
+
"tabulator-tables": "^6.5.3",
|
|
117
123
|
"typescript": "^4.9.5",
|
|
118
124
|
"unified": "^11.0.5",
|
|
119
125
|
"unist-util-visit": "^5.0.0",
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _baseIsEqual = require('./_baseIsEqual-CQZKiKbe.js');
|
|
4
|
-
var _getTag = require('./_getTag-BC28Za7d.js');
|
|
5
|
-
var isObject = require('./isObject-B6Osvvqp.js');
|
|
6
|
-
var isArrayLike = require('./isArrayLike-C2RwZMG4.js');
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* This function is like
|
|
10
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
11
|
-
* except that it includes inherited enumerable properties.
|
|
12
|
-
*
|
|
13
|
-
* @private
|
|
14
|
-
* @param {Object} object The object to query.
|
|
15
|
-
* @returns {Array} Returns the array of property names.
|
|
16
|
-
*/
|
|
17
|
-
function nativeKeysIn(object) {
|
|
18
|
-
var result = [];
|
|
19
|
-
if (object != null) {
|
|
20
|
-
for (var key in Object(object)) {
|
|
21
|
-
result.push(key);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** Used for built-in method references. */
|
|
28
|
-
var objectProto = Object.prototype;
|
|
29
|
-
|
|
30
|
-
/** Used to check objects for own properties. */
|
|
31
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
35
|
-
*
|
|
36
|
-
* @private
|
|
37
|
-
* @param {Object} object The object to query.
|
|
38
|
-
* @returns {Array} Returns the array of property names.
|
|
39
|
-
*/
|
|
40
|
-
function baseKeysIn(object) {
|
|
41
|
-
if (!isObject.isObject(object)) {
|
|
42
|
-
return nativeKeysIn(object);
|
|
43
|
-
}
|
|
44
|
-
var isProto = _getTag.isPrototype(object),
|
|
45
|
-
result = [];
|
|
46
|
-
|
|
47
|
-
for (var key in object) {
|
|
48
|
-
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
49
|
-
result.push(key);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
57
|
-
*
|
|
58
|
-
* **Note:** Non-object values are coerced to objects.
|
|
59
|
-
*
|
|
60
|
-
* @static
|
|
61
|
-
* @memberOf _
|
|
62
|
-
* @since 3.0.0
|
|
63
|
-
* @category Object
|
|
64
|
-
* @param {Object} object The object to query.
|
|
65
|
-
* @returns {Array} Returns the array of property names.
|
|
66
|
-
* @example
|
|
67
|
-
*
|
|
68
|
-
* function Foo() {
|
|
69
|
-
* this.a = 1;
|
|
70
|
-
* this.b = 2;
|
|
71
|
-
* }
|
|
72
|
-
*
|
|
73
|
-
* Foo.prototype.c = 3;
|
|
74
|
-
*
|
|
75
|
-
* _.keysIn(new Foo);
|
|
76
|
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
77
|
-
*/
|
|
78
|
-
function keysIn(object) {
|
|
79
|
-
return isArrayLike.isArrayLike(object) ? _baseIsEqual.arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** Built-in value references. */
|
|
83
|
-
var getPrototype = _getTag.overArg(Object.getPrototypeOf, Object);
|
|
84
|
-
|
|
85
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
86
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
90
|
-
*
|
|
91
|
-
* @private
|
|
92
|
-
* @param {Object} object The object to query.
|
|
93
|
-
* @returns {Array} Returns the array of symbols.
|
|
94
|
-
*/
|
|
95
|
-
var getSymbolsIn = !nativeGetSymbols ? _baseIsEqual.stubArray : function(object) {
|
|
96
|
-
var result = [];
|
|
97
|
-
while (object) {
|
|
98
|
-
_baseIsEqual.arrayPush(result, _baseIsEqual.getSymbols(object));
|
|
99
|
-
object = getPrototype(object);
|
|
100
|
-
}
|
|
101
|
-
return result;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Creates an array of own and inherited enumerable property names and
|
|
106
|
-
* symbols of `object`.
|
|
107
|
-
*
|
|
108
|
-
* @private
|
|
109
|
-
* @param {Object} object The object to query.
|
|
110
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
111
|
-
*/
|
|
112
|
-
function getAllKeysIn(object) {
|
|
113
|
-
return _baseIsEqual.baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
exports.getAllKeysIn = getAllKeysIn;
|
|
117
|
-
exports.getPrototype = getPrototype;
|
|
118
|
-
exports.getSymbolsIn = getSymbolsIn;
|
|
119
|
-
exports.keysIn = keysIn;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var toNumber = require('./toNumber-v-1DEwWD.js');
|
|
4
|
-
var eq = require('./eq-DFcUoVzv.js');
|
|
5
|
-
var isArrayLike = require('./isArrayLike-C2RwZMG4.js');
|
|
6
|
-
var _isIndex = require('./_isIndex-Bu45fvR7.js');
|
|
7
|
-
var isObject = require('./isObject-B6Osvvqp.js');
|
|
8
|
-
|
|
9
|
-
/** Used as references for various `Number` constants. */
|
|
10
|
-
var INFINITY = 1 / 0,
|
|
11
|
-
MAX_INTEGER = 1.7976931348623157e+308;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Converts `value` to a finite number.
|
|
15
|
-
*
|
|
16
|
-
* @static
|
|
17
|
-
* @memberOf _
|
|
18
|
-
* @since 4.12.0
|
|
19
|
-
* @category Lang
|
|
20
|
-
* @param {*} value The value to convert.
|
|
21
|
-
* @returns {number} Returns the converted number.
|
|
22
|
-
* @example
|
|
23
|
-
*
|
|
24
|
-
* _.toFinite(3.2);
|
|
25
|
-
* // => 3.2
|
|
26
|
-
*
|
|
27
|
-
* _.toFinite(Number.MIN_VALUE);
|
|
28
|
-
* // => 5e-324
|
|
29
|
-
*
|
|
30
|
-
* _.toFinite(Infinity);
|
|
31
|
-
* // => 1.7976931348623157e+308
|
|
32
|
-
*
|
|
33
|
-
* _.toFinite('3.2');
|
|
34
|
-
* // => 3.2
|
|
35
|
-
*/
|
|
36
|
-
function toFinite(value) {
|
|
37
|
-
if (!value) {
|
|
38
|
-
return value === 0 ? value : 0;
|
|
39
|
-
}
|
|
40
|
-
value = toNumber.toNumber(value);
|
|
41
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
42
|
-
var sign = (value < 0 ? -1 : 1);
|
|
43
|
-
return sign * MAX_INTEGER;
|
|
44
|
-
}
|
|
45
|
-
return value === value ? value : 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Checks if the given arguments are from an iteratee call.
|
|
50
|
-
*
|
|
51
|
-
* @private
|
|
52
|
-
* @param {*} value The potential iteratee value argument.
|
|
53
|
-
* @param {*} index The potential iteratee index or key argument.
|
|
54
|
-
* @param {*} object The potential iteratee object argument.
|
|
55
|
-
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
56
|
-
* else `false`.
|
|
57
|
-
*/
|
|
58
|
-
function isIterateeCall(value, index, object) {
|
|
59
|
-
if (!isObject.isObject(object)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
var type = typeof index;
|
|
63
|
-
if (type == 'number'
|
|
64
|
-
? (isArrayLike.isArrayLike(object) && _isIndex.isIndex(index, object.length))
|
|
65
|
-
: (type == 'string' && index in object)
|
|
66
|
-
) {
|
|
67
|
-
return eq.eq(object[index], value);
|
|
68
|
-
}
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
exports.isIterateeCall = isIterateeCall;
|
|
73
|
-
exports.toFinite = toFinite;
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _baseIteratee = require('./_baseIteratee-DDklwtn9.js');
|
|
4
|
-
var _assignValue = require('./_assignValue-DQh76m39.js');
|
|
5
|
-
var _isIndex = require('./_isIndex-Bu45fvR7.js');
|
|
6
|
-
var isObject = require('./isObject-B6Osvvqp.js');
|
|
7
|
-
var _getAllKeysIn = require('./_getAllKeysIn-BJsgUTAt.js');
|
|
8
|
-
|
|
9
|
-
/** Used for built-in method references. */
|
|
10
|
-
var objectProto = Object.prototype;
|
|
11
|
-
|
|
12
|
-
/** Used to check objects for own properties. */
|
|
13
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The base implementation of `_.has` without support for deep paths.
|
|
17
|
-
*
|
|
18
|
-
* @private
|
|
19
|
-
* @param {Object} [object] The object to query.
|
|
20
|
-
* @param {Array|string} key The key to check.
|
|
21
|
-
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
22
|
-
*/
|
|
23
|
-
function baseHas(object, key) {
|
|
24
|
-
return object != null && hasOwnProperty.call(object, key);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Checks if `path` is a direct property of `object`.
|
|
29
|
-
*
|
|
30
|
-
* @static
|
|
31
|
-
* @since 0.1.0
|
|
32
|
-
* @memberOf _
|
|
33
|
-
* @category Object
|
|
34
|
-
* @param {Object} object The object to query.
|
|
35
|
-
* @param {Array|string} path The path to check.
|
|
36
|
-
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
37
|
-
* @example
|
|
38
|
-
*
|
|
39
|
-
* var object = { 'a': { 'b': 2 } };
|
|
40
|
-
* var other = _.create({ 'a': _.create({ 'b': 2 }) });
|
|
41
|
-
*
|
|
42
|
-
* _.has(object, 'a');
|
|
43
|
-
* // => true
|
|
44
|
-
*
|
|
45
|
-
* _.has(object, 'a.b');
|
|
46
|
-
* // => true
|
|
47
|
-
*
|
|
48
|
-
* _.has(object, ['a', 'b']);
|
|
49
|
-
* // => true
|
|
50
|
-
*
|
|
51
|
-
* _.has(other, 'a');
|
|
52
|
-
* // => false
|
|
53
|
-
*/
|
|
54
|
-
function has(object, path) {
|
|
55
|
-
return object != null && _baseIteratee.hasPath(object, path, baseHas);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/** Error message constants. */
|
|
59
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Creates a function that negates the result of the predicate `func`. The
|
|
63
|
-
* `func` predicate is invoked with the `this` binding and arguments of the
|
|
64
|
-
* created function.
|
|
65
|
-
*
|
|
66
|
-
* @static
|
|
67
|
-
* @memberOf _
|
|
68
|
-
* @since 3.0.0
|
|
69
|
-
* @category Function
|
|
70
|
-
* @param {Function} predicate The predicate to negate.
|
|
71
|
-
* @returns {Function} Returns the new negated function.
|
|
72
|
-
* @example
|
|
73
|
-
*
|
|
74
|
-
* function isEven(n) {
|
|
75
|
-
* return n % 2 == 0;
|
|
76
|
-
* }
|
|
77
|
-
*
|
|
78
|
-
* _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
|
|
79
|
-
* // => [1, 3, 5]
|
|
80
|
-
*/
|
|
81
|
-
function negate(predicate) {
|
|
82
|
-
if (typeof predicate != 'function') {
|
|
83
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
84
|
-
}
|
|
85
|
-
return function() {
|
|
86
|
-
var args = arguments;
|
|
87
|
-
switch (args.length) {
|
|
88
|
-
case 0: return !predicate.call(this);
|
|
89
|
-
case 1: return !predicate.call(this, args[0]);
|
|
90
|
-
case 2: return !predicate.call(this, args[0], args[1]);
|
|
91
|
-
case 3: return !predicate.call(this, args[0], args[1], args[2]);
|
|
92
|
-
}
|
|
93
|
-
return !predicate.apply(this, args);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The base implementation of `_.set`.
|
|
99
|
-
*
|
|
100
|
-
* @private
|
|
101
|
-
* @param {Object} object The object to modify.
|
|
102
|
-
* @param {Array|string} path The path of the property to set.
|
|
103
|
-
* @param {*} value The value to set.
|
|
104
|
-
* @param {Function} [customizer] The function to customize path creation.
|
|
105
|
-
* @returns {Object} Returns `object`.
|
|
106
|
-
*/
|
|
107
|
-
function baseSet(object, path, value, customizer) {
|
|
108
|
-
if (!isObject.isObject(object)) {
|
|
109
|
-
return object;
|
|
110
|
-
}
|
|
111
|
-
path = _baseIteratee.castPath(path, object);
|
|
112
|
-
|
|
113
|
-
var index = -1,
|
|
114
|
-
length = path.length,
|
|
115
|
-
lastIndex = length - 1,
|
|
116
|
-
nested = object;
|
|
117
|
-
|
|
118
|
-
while (nested != null && ++index < length) {
|
|
119
|
-
var key = _baseIteratee.toKey(path[index]),
|
|
120
|
-
newValue = value;
|
|
121
|
-
|
|
122
|
-
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
123
|
-
return object;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (index != lastIndex) {
|
|
127
|
-
var objValue = nested[key];
|
|
128
|
-
newValue = customizer ? customizer(objValue, key, nested) : undefined;
|
|
129
|
-
if (newValue === undefined) {
|
|
130
|
-
newValue = isObject.isObject(objValue)
|
|
131
|
-
? objValue
|
|
132
|
-
: (_isIndex.isIndex(path[index + 1]) ? [] : {});
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
_assignValue.assignValue(nested, key, newValue);
|
|
136
|
-
nested = nested[key];
|
|
137
|
-
}
|
|
138
|
-
return object;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
|
143
|
-
*
|
|
144
|
-
* @private
|
|
145
|
-
* @param {Object} object The source object.
|
|
146
|
-
* @param {string[]} paths The property paths to pick.
|
|
147
|
-
* @param {Function} predicate The function invoked per property.
|
|
148
|
-
* @returns {Object} Returns the new object.
|
|
149
|
-
*/
|
|
150
|
-
function basePickBy(object, paths, predicate) {
|
|
151
|
-
var index = -1,
|
|
152
|
-
length = paths.length,
|
|
153
|
-
result = {};
|
|
154
|
-
|
|
155
|
-
while (++index < length) {
|
|
156
|
-
var path = paths[index],
|
|
157
|
-
value = _baseIteratee.baseGet(object, path);
|
|
158
|
-
|
|
159
|
-
if (predicate(value, path)) {
|
|
160
|
-
baseSet(result, _baseIteratee.castPath(path, object), value);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return result;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Creates an object composed of the `object` properties `predicate` returns
|
|
168
|
-
* truthy for. The predicate is invoked with two arguments: (value, key).
|
|
169
|
-
*
|
|
170
|
-
* @static
|
|
171
|
-
* @memberOf _
|
|
172
|
-
* @since 4.0.0
|
|
173
|
-
* @category Object
|
|
174
|
-
* @param {Object} object The source object.
|
|
175
|
-
* @param {Function} [predicate=_.identity] The function invoked per property.
|
|
176
|
-
* @returns {Object} Returns the new object.
|
|
177
|
-
* @example
|
|
178
|
-
*
|
|
179
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
180
|
-
*
|
|
181
|
-
* _.pickBy(object, _.isNumber);
|
|
182
|
-
* // => { 'a': 1, 'c': 3 }
|
|
183
|
-
*/
|
|
184
|
-
function pickBy(object, predicate) {
|
|
185
|
-
if (object == null) {
|
|
186
|
-
return {};
|
|
187
|
-
}
|
|
188
|
-
var props = _baseIteratee.arrayMap(_getAllKeysIn.getAllKeysIn(object), function(prop) {
|
|
189
|
-
return [prop];
|
|
190
|
-
});
|
|
191
|
-
predicate = _baseIteratee.baseIteratee(predicate);
|
|
192
|
-
return basePickBy(object, props, function(value, path) {
|
|
193
|
-
return predicate(value, path[0]);
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
exports.basePickBy = basePickBy;
|
|
198
|
-
exports.baseSet = baseSet;
|
|
199
|
-
exports.has = has;
|
|
200
|
-
exports.negate = negate;
|
|
201
|
-
exports.pickBy = pickBy;
|