@tinacms/mdx 1.1.1 → 1.3.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/LICENSE +8 -0
- package/dist/extensions/tina-shortcodes/extension.d.ts +3 -0
- package/dist/extensions/tina-shortcodes/factory-attributes.d.ts +2 -0
- package/dist/extensions/tina-shortcodes/factory-name.d.ts +2 -0
- package/dist/extensions/tina-shortcodes/from-markdown.d.ts +2 -0
- package/dist/extensions/tina-shortcodes/shortcode-container.d.ts +3 -0
- package/dist/extensions/tina-shortcodes/shortcode-leaf.d.ts +5 -0
- package/dist/extensions/tina-shortcodes/to-markdown.d.ts +3 -0
- package/dist/index.d.ts +0 -12
- package/dist/index.es.js +2262 -0
- package/dist/index.js +10948 -6057
- package/dist/parse/acorn.d.ts +0 -12
- package/dist/parse/index.d.ts +2 -14
- package/dist/parse/mdx.d.ts +3 -12
- package/dist/parse/parseShortcode.d.ts +0 -12
- package/dist/parse/plate.d.ts +0 -12
- package/dist/parse/remarkToPlate.d.ts +2 -13
- package/dist/stringify/acorn.d.ts +4 -0
- package/dist/stringify/index.d.ts +8 -12
- package/dist/stringify/marks.d.ts +0 -12
- package/dist/stringify/stringifyShortcode.d.ts +0 -12
- package/dist/tests/autotest/_config.d.ts +0 -12
- package/dist/tests/setup.d.ts +0 -12
- package/dist/tests/{autotest → temp}/shortcodes.test.d.ts +0 -0
- package/package.json +48 -3
- package/dist/tests/autotest/invalid mdx with a closing tag.test.d.ts +0 -1
- package/dist/tests/autotest/invalid mdx with a const expression.test.d.ts +0 -1
- package/dist/tests/autotest/invalid mdx with an expression {{}}.test.d.ts +0 -1
- package/dist/tests/autotest/invalid mdx with an expression.test.d.ts +0 -1
- package/dist/tests/autotest/invalid mdx with an import statement.test.d.ts +0 -1
package/LICENSE
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
Copyright (c) 2023-present Forestry.io Holdings Inc.
|
|
2
|
+
|
|
3
|
+
Portions of the TinaCMS software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
* All software that resides under the "packages/@tinacms/datalayer/" and the "packages/@tinacms/graphql/" directories (the "Tina Data Layer"), is licensed under the license defined in "packages/@tinacms/datalayer/LICENSE".
|
|
6
|
+
|
|
7
|
+
* All software outside of the above-mentioned directories is available under the "Apache 2.0" license as set forth below.
|
|
8
|
+
|
|
1
9
|
Apache License
|
|
2
10
|
Version 2.0, January 2004
|
|
3
11
|
http://www.apache.org/licenses/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { Effects, State } from 'micromark-util-types';
|
|
2
|
+
export declare function factoryAttributes(effects: Effects, ok: State, nnok: State, attributesType: string, attributesMarkerType: string, attributeType: string, attributeIdType: string, attributeClassType: string, attributeNameType: string, attributeInitializerType: string, attributeValueLiteralType: string, attributeValueType: string, attributeValueMarker: string, attributeValueData: string, disallowEol?: boolean): State;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Pattern } from '../../stringify';
|
|
2
|
+
import type { Construct } from 'micromark-util-types';
|
|
3
|
+
export declare const findCode: (string: string | undefined | null) => number | null;
|
|
4
|
+
export declare const printCode: (num: number) => void;
|
|
5
|
+
export declare const directiveLeaf: (pattern: Pattern) => Construct;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
|
|
3
|
-
Copyright 2021 Forestry.io Holdings, Inc.
|
|
4
3
|
|
|
5
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
you may not use this file except in compliance with the License.
|
|
7
|
-
You may obtain a copy of the License at
|
|
8
|
-
|
|
9
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
|
|
11
|
-
Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
See the License for the specific language governing permissions and
|
|
15
|
-
limitations under the License.
|
|
16
4
|
|
|
17
5
|
*/
|
|
18
6
|
import { parseMDX } from './parse';
|