@01.software/sdk 0.1.0-dev.260210.4ecca43 → 0.1.1
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/README.md +151 -74
- package/dist/auth-BipHkgbu.d.cts +267 -0
- package/dist/auth-Brdn6voY.d.ts +267 -0
- package/dist/auth.cjs +129 -0
- package/dist/auth.cjs.map +1 -0
- package/dist/auth.d.cts +3 -0
- package/dist/auth.d.ts +3 -0
- package/dist/auth.js +107 -0
- package/dist/auth.js.map +1 -0
- package/dist/components.cjs +76 -0
- package/dist/components.cjs.map +1 -0
- package/dist/components.d.cts +28 -0
- package/dist/components.d.ts +28 -0
- package/dist/components.js +50 -0
- package/dist/components.js.map +1 -0
- package/dist/index.cjs +204 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -2838
- package/dist/index.d.ts +71 -2838
- package/dist/index.js +203 -86
- package/dist/index.js.map +1 -1
- package/dist/payload-types-BE-5_Y2d.d.cts +2675 -0
- package/dist/payload-types-BE-5_Y2d.d.ts +2675 -0
- package/dist/webhook-D13_sbzU.d.ts +40 -0
- package/dist/webhook-Dg4AkcDQ.d.cts +40 -0
- package/dist/webhook.cjs +116 -0
- package/dist/webhook.cjs.map +1 -0
- package/dist/webhook.d.cts +2 -0
- package/dist/webhook.d.ts +2 -0
- package/dist/webhook.js +94 -0
- package/dist/webhook.js.map +1 -0
- package/package.json +35 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SerializedLinkNode, SerializedBlockNode } from '@payloadcms/richtext-lexical';
|
|
3
|
+
import { SerializedEditorState, SerializedLexicalNode } from '@payloadcms/richtext-lexical/lexical';
|
|
4
|
+
import { JSXConverter } from '@payloadcms/richtext-lexical/react';
|
|
5
|
+
|
|
6
|
+
type RichTextData = SerializedEditorState<SerializedLexicalNode>;
|
|
7
|
+
interface RichTextContentProps {
|
|
8
|
+
data: RichTextData;
|
|
9
|
+
className?: string;
|
|
10
|
+
internalDocToHref?: (args: {
|
|
11
|
+
linkNode: SerializedLinkNode;
|
|
12
|
+
}) => string;
|
|
13
|
+
blocks?: {
|
|
14
|
+
Iframe?: JSXConverter<SerializedBlockNode<{
|
|
15
|
+
blockName?: string | null;
|
|
16
|
+
blockType: string;
|
|
17
|
+
url: string;
|
|
18
|
+
}>>;
|
|
19
|
+
Player?: JSXConverter<SerializedBlockNode<{
|
|
20
|
+
blockName?: string | null;
|
|
21
|
+
blockType: string;
|
|
22
|
+
url: string;
|
|
23
|
+
}>>;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
declare function RichTextContent({ data, className, internalDocToHref, blocks, }: RichTextContentProps): React.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { RichTextContent, type RichTextContentProps, type RichTextData };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SerializedLinkNode, SerializedBlockNode } from '@payloadcms/richtext-lexical';
|
|
3
|
+
import { SerializedEditorState, SerializedLexicalNode } from '@payloadcms/richtext-lexical/lexical';
|
|
4
|
+
import { JSXConverter } from '@payloadcms/richtext-lexical/react';
|
|
5
|
+
|
|
6
|
+
type RichTextData = SerializedEditorState<SerializedLexicalNode>;
|
|
7
|
+
interface RichTextContentProps {
|
|
8
|
+
data: RichTextData;
|
|
9
|
+
className?: string;
|
|
10
|
+
internalDocToHref?: (args: {
|
|
11
|
+
linkNode: SerializedLinkNode;
|
|
12
|
+
}) => string;
|
|
13
|
+
blocks?: {
|
|
14
|
+
Iframe?: JSXConverter<SerializedBlockNode<{
|
|
15
|
+
blockName?: string | null;
|
|
16
|
+
blockType: string;
|
|
17
|
+
url: string;
|
|
18
|
+
}>>;
|
|
19
|
+
Player?: JSXConverter<SerializedBlockNode<{
|
|
20
|
+
blockName?: string | null;
|
|
21
|
+
blockType: string;
|
|
22
|
+
url: string;
|
|
23
|
+
}>>;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
declare function RichTextContent({ data, className, internalDocToHref, blocks, }: RichTextContentProps): React.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { RichTextContent, type RichTextContentProps, type RichTextData };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
|
|
21
|
+
// src/components/RichTextContent/index.tsx
|
|
22
|
+
import React from "react";
|
|
23
|
+
import {
|
|
24
|
+
defaultJSXConverters,
|
|
25
|
+
LinkJSXConverter,
|
|
26
|
+
RichText
|
|
27
|
+
} from "@payloadcms/richtext-lexical/react";
|
|
28
|
+
function RichTextContent({
|
|
29
|
+
data,
|
|
30
|
+
className,
|
|
31
|
+
internalDocToHref,
|
|
32
|
+
blocks
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ React.createElement(
|
|
35
|
+
RichText,
|
|
36
|
+
{
|
|
37
|
+
data,
|
|
38
|
+
className,
|
|
39
|
+
converters: __spreadProps(__spreadValues(__spreadValues({}, defaultJSXConverters), LinkJSXConverter({
|
|
40
|
+
internalDocToHref
|
|
41
|
+
})), {
|
|
42
|
+
blocks: blocks ? blocks : void 0
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
RichTextContent
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/RichTextContent/index.tsx"],"sourcesContent":["'use client'\n\nimport React from 'react'\nimport {\n SerializedBlockNode,\n SerializedLinkNode,\n} from '@payloadcms/richtext-lexical'\nimport {\n SerializedEditorState,\n SerializedLexicalNode,\n} from '@payloadcms/richtext-lexical/lexical'\nimport {\n defaultJSXConverters,\n JSXConverter,\n LinkJSXConverter,\n RichText,\n} from '@payloadcms/richtext-lexical/react'\n\nexport type RichTextData = SerializedEditorState<SerializedLexicalNode>\n\nexport interface RichTextContentProps {\n data: RichTextData\n className?: string\n internalDocToHref?: (args: { linkNode: SerializedLinkNode }) => string\n blocks?: {\n Iframe?: JSXConverter<\n SerializedBlockNode<{\n blockName?: string | null\n blockType: string\n url: string\n }>\n >\n Player?: JSXConverter<\n SerializedBlockNode<{\n blockName?: string | null\n blockType: string\n url: string\n }>\n >\n }\n}\n\nexport function RichTextContent({\n data,\n className,\n internalDocToHref,\n blocks,\n}: RichTextContentProps) {\n return (\n <RichText\n data={data}\n className={className}\n converters={{\n ...defaultJSXConverters,\n ...LinkJSXConverter({\n internalDocToHref,\n }),\n blocks: blocks\n ? (blocks as Record<\n string,\n JSXConverter<\n SerializedBlockNode<{\n blockName?: string | null\n blockType: string\n }>\n >\n >)\n : undefined,\n }}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,WAAW;AASlB;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,OACK;AA0BA,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAyB;AACvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,YAAY,gDACP,uBACA,iBAAiB;AAAA,QAClB;AAAA,MACF,CAAC,IAJS;AAAA,QAKV,QAAQ,SACH,SASD;AAAA,MACN;AAAA;AAAA,EACF;AAEJ;","names":[]}
|