@haklex/rich-editor 0.4.0 → 0.5.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/README.md +9 -9
- package/dist/{AlertQuoteEditNode-C55sxsR3.js → AlertQuoteEditNode-DjObnJI6.js} +3 -3
- package/dist/{KaTeXRenderer-CQQT3BMw.js → KaTeXRenderer-CqnhvDmj.js} +37 -3
- package/dist/{MermaidPlugin-BrOr-wQi.js → MermaidPlugin-_gPgU34D.js} +2 -2
- package/dist/{extractPolls-DO31LNrp.js → PresentDialogContext-DKNicgia.js} +1 -43
- package/dist/{SubmitShortcutPlugin-u9xqY3GU.js → SubmitShortcutPlugin-CHn_HBJM.js} +6 -6
- package/dist/commands-entry.mjs +2 -2
- package/dist/components/RendererWrapper.d.ts +14 -4
- package/dist/components/RendererWrapper.d.ts.map +1 -1
- package/dist/components/decorators/AlertEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/BannerEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/CodeBlockEditDecorator.d.ts.map +1 -1
- package/dist/components/renderers/AlertStaticDecorator.d.ts.map +1 -1
- package/dist/components/renderers/BannerStaticDecorator.d.ts.map +1 -1
- package/dist/{config-B5BuLljq.js → config-EJe68p4h.js} +10 -397
- package/dist/config-edit.d.ts.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/{node-registry-DsyIROEM.js → node-registry-D9t5vPfY.js} +9 -318
- package/dist/nodes/CodeBlockNode.d.ts.map +1 -1
- package/dist/nodes/FootnoteNode.d.ts.map +1 -1
- package/dist/nodes/FootnoteSectionNode.d.ts.map +1 -1
- package/dist/nodes/ImageNode.d.ts.map +1 -1
- package/dist/nodes/KaTeXBlockNode.d.ts.map +1 -1
- package/dist/nodes/KaTeXInlineNode.d.ts.map +1 -1
- package/dist/nodes/LinkCardNode.d.ts.map +1 -1
- package/dist/nodes/MentionNode.d.ts.map +1 -1
- package/dist/nodes/MermaidNode.d.ts.map +1 -1
- package/dist/nodes/VideoNode.d.ts.map +1 -1
- package/dist/nodes-entry.d.ts +0 -3
- package/dist/nodes-entry.d.ts.map +1 -1
- package/dist/nodes-entry.mjs +5 -5
- package/dist/plugins-entry.mjs +2 -2
- package/dist/renderers-entry.d.ts +1 -2
- package/dist/renderers-entry.d.ts.map +1 -1
- package/dist/renderers-entry.mjs +2 -2
- package/dist/rich-editor.css +1 -1
- package/dist/static-entry.d.ts +1 -5
- package/dist/static-entry.d.ts.map +1 -1
- package/dist/static-entry.mjs +5 -5
- package/dist/styles/index.d.ts +0 -2
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/{theme-B5B2EOWM.js → theme-DG7I1YM5.js} +15 -15
- package/dist/types/renderer-config.d.ts +28 -33
- package/dist/types/renderer-config.d.ts.map +1 -1
- package/dist/types/renderer-keys.d.ts +26 -0
- package/dist/types/renderer-keys.d.ts.map +1 -0
- package/dist/utils/text-selection.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/components/decorators/PollEditDecorator.d.ts +0 -13
- package/dist/components/decorators/PollEditDecorator.d.ts.map +0 -1
- package/dist/components/renderers/ChatRendererProps.d.ts +0 -19
- package/dist/components/renderers/ChatRendererProps.d.ts.map +0 -1
- package/dist/components/renderers/PollRenderer.d.ts +0 -3
- package/dist/components/renderers/PollRenderer.d.ts.map +0 -1
- package/dist/context/PollDataContext.d.ts +0 -11
- package/dist/context/PollDataContext.d.ts.map +0 -1
- package/dist/nodes/PollEditNode.d.ts +0 -14
- package/dist/nodes/PollEditNode.d.ts.map +0 -1
- package/dist/nodes/PollNode.d.ts +0 -52
- package/dist/nodes/PollNode.d.ts.map +0 -1
- package/dist/styles/poll-edit.css.d.ts +0 -43
- package/dist/styles/poll-edit.css.d.ts.map +0 -1
- package/dist/styles/poll.css.d.ts +0 -43
- package/dist/styles/poll.css.d.ts.map +0 -1
- package/dist/types/poll.d.ts +0 -36
- package/dist/types/poll.d.ts.map +0 -1
- package/dist/utils/extractPolls.d.ts +0 -4
- package/dist/utils/extractPolls.d.ts.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type ChatVariant = 'user-agent' | 'user-user';
|
|
2
|
-
export type ChatParticipantKind = 'user' | 'agent';
|
|
3
|
-
export interface ChatParticipant {
|
|
4
|
-
avatar?: string;
|
|
5
|
-
id: string;
|
|
6
|
-
kind: ChatParticipantKind;
|
|
7
|
-
name?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChatMessage {
|
|
10
|
-
content: string;
|
|
11
|
-
id: string;
|
|
12
|
-
participantId: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ChatRendererProps {
|
|
15
|
-
messages: ChatMessage[];
|
|
16
|
-
participants: ChatParticipant[];
|
|
17
|
-
variant: ChatVariant;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=ChatRendererProps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatRendererProps.d.ts","sourceRoot":"","sources":["../../../src/components/renderers/ChatRendererProps.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,WAAW,CAAC;AACrD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,mBAAmB,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,OAAO,EAAE,WAAW,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PollRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/renderers/PollRenderer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,iBAAiB,EAGlB,MAAM,kBAAkB,CAAC;AAgP1B,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAIpD"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { PollDataAdapter, PollState } from '../types/poll';
|
|
3
|
-
export interface PollDataProviderProps {
|
|
4
|
-
adapter: PollDataAdapter;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
initialStates?: Record<string, PollState>;
|
|
7
|
-
}
|
|
8
|
-
export declare function PollDataProvider({ adapter, initialStates, children }: PollDataProviderProps): import("react").JSX.Element;
|
|
9
|
-
export declare function usePollDataAdapter(): PollDataAdapter | null;
|
|
10
|
-
export declare function useInitialPollState(pollId: string): PollState | undefined;
|
|
11
|
-
//# sourceMappingURL=PollDataContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PollDataContext.d.ts","sourceRoot":"","sources":["../../src/context/PollDataContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAYhE,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CAC3C;AAED,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,qBAAqB,+BAM3F;AAED,wBAAgB,kBAAkB,IAAI,eAAe,GAAG,IAAI,CAE3D;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAEzE"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EditorConfig, LexicalEditor, NodeKey } from 'lexical';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
import { CommandItemConfig } from '../types/slash-menu';
|
|
4
|
-
import { PollNode, PollNodePayload, SerializedPollNode } from './PollNode';
|
|
5
|
-
export declare class PollEditNode extends PollNode {
|
|
6
|
-
static commandItems: CommandItemConfig[];
|
|
7
|
-
static getType(): string;
|
|
8
|
-
static clone(node: PollEditNode): PollEditNode;
|
|
9
|
-
constructor(payload?: PollNodePayload, key?: NodeKey);
|
|
10
|
-
static importJSON(serializedNode: SerializedPollNode): PollEditNode;
|
|
11
|
-
decorate(_editor: LexicalEditor, _config: EditorConfig): ReactElement;
|
|
12
|
-
}
|
|
13
|
-
export declare function $createPollEditNode(payload?: PollNodePayload): PollEditNode;
|
|
14
|
-
//# sourceMappingURL=PollEditNode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PollEditNode.d.ts","sourceRoot":"","sources":["../../src/nodes/PollEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErF,qBAAa,YAAa,SAAQ,QAAQ;IACxC,MAAM,CAAC,YAAY,EAAE,iBAAiB,EAAE,CAetC;IAEF,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY;gBAclC,OAAO,CAAC,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,OAAO;IAIpD,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,kBAAkB,GAAG,YAAY;IAWnE,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAWtE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,YAAY,CAE3E"}
|
package/dist/nodes/PollNode.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedLexicalNode, Spread, DecoratorNode } from 'lexical';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
import { PollMode, PollOption, PollShowResults } from '../types/poll';
|
|
4
|
-
export declare function createPollId(): string;
|
|
5
|
-
export declare function createOptionId(): string;
|
|
6
|
-
export interface PollNodePayload {
|
|
7
|
-
closeAt?: string;
|
|
8
|
-
mode?: PollMode;
|
|
9
|
-
options?: PollOption[];
|
|
10
|
-
pollId?: string;
|
|
11
|
-
question?: string;
|
|
12
|
-
showResults?: PollShowResults;
|
|
13
|
-
}
|
|
14
|
-
export type SerializedPollNode = Spread<{
|
|
15
|
-
pollId: string;
|
|
16
|
-
question: string;
|
|
17
|
-
options: PollOption[];
|
|
18
|
-
mode: PollMode;
|
|
19
|
-
closeAt?: string;
|
|
20
|
-
showResults?: PollShowResults;
|
|
21
|
-
}, SerializedLexicalNode>;
|
|
22
|
-
export declare class PollNode extends DecoratorNode<ReactElement> {
|
|
23
|
-
__pollId: string;
|
|
24
|
-
__question: string;
|
|
25
|
-
__options: PollOption[];
|
|
26
|
-
__mode: PollMode;
|
|
27
|
-
__closeAt?: string;
|
|
28
|
-
__showResults?: PollShowResults;
|
|
29
|
-
static getType(): string;
|
|
30
|
-
static clone(node: PollNode): PollNode;
|
|
31
|
-
constructor(payload?: PollNodePayload, key?: NodeKey);
|
|
32
|
-
createDOM(_config: EditorConfig): HTMLElement;
|
|
33
|
-
updateDOM(): boolean;
|
|
34
|
-
isInline(): boolean;
|
|
35
|
-
getPollId(): string;
|
|
36
|
-
getQuestion(): string;
|
|
37
|
-
setQuestion(question: string): void;
|
|
38
|
-
getOptions(): PollOption[];
|
|
39
|
-
setOptions(options: PollOption[]): void;
|
|
40
|
-
getMode(): PollMode;
|
|
41
|
-
setMode(mode: PollMode): void;
|
|
42
|
-
getCloseAt(): string | undefined;
|
|
43
|
-
setCloseAt(closeAt: string | undefined): void;
|
|
44
|
-
getShowResults(): PollShowResults | undefined;
|
|
45
|
-
setShowResults(showResults: PollShowResults | undefined): void;
|
|
46
|
-
static importJSON(serializedNode: SerializedPollNode): PollNode;
|
|
47
|
-
exportJSON(): SerializedPollNode;
|
|
48
|
-
decorate(_editor: LexicalEditor, _config: EditorConfig): ReactElement;
|
|
49
|
-
}
|
|
50
|
-
export declare function $createPollNode(payload?: PollNodePayload): PollNode;
|
|
51
|
-
export declare function $isPollNode(node: LexicalNode | null | undefined): node is PollNode;
|
|
52
|
-
//# sourceMappingURL=PollNode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PollNode.d.ts","sourceRoot":"","sources":["../../src/nodes/PollNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAM3E,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CA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7B,UAAU,IAAI,MAAM,GAAG,SAAS;IAIhC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAK7C,cAAc,IAAI,eAAe,GAAG,SAAS;IAI7C,cAAc,CAAC,WAAW,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI;IAK9D,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,kBAAkB,GAAG,QAAQ;IAW/D,UAAU,IAAI,kBAAkB;IAchC,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAUtE;AAED,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,QAAQ,CAEnE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,QAAQ,CAElF"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export declare const editContainer: string;
|
|
2
|
-
export declare const editMeta: string;
|
|
3
|
-
export declare const editQuestion: string;
|
|
4
|
-
export declare const editOptionList: string;
|
|
5
|
-
export declare const editOptionRow: string;
|
|
6
|
-
export declare const editReorderColumn: string;
|
|
7
|
-
export declare const editReorderButton: string;
|
|
8
|
-
export declare const editOptionInput: string;
|
|
9
|
-
export declare const editRemoveButton: string;
|
|
10
|
-
export declare const editAddOption: string;
|
|
11
|
-
export declare const editAdvancedSummary: string;
|
|
12
|
-
export declare const editAdvancedGrid: string;
|
|
13
|
-
export declare const editAdvancedLabel: string;
|
|
14
|
-
export declare const editDateTimeField: string;
|
|
15
|
-
export declare const editDateTimeIcon: string;
|
|
16
|
-
export declare const editDateTimeInput: string;
|
|
17
|
-
export declare const editSelectTrigger: string;
|
|
18
|
-
export declare const editSelectContent: string;
|
|
19
|
-
export declare const editModeRow: string;
|
|
20
|
-
export declare const editModeControl: string;
|
|
21
|
-
export declare const pollEditClasses: {
|
|
22
|
-
readonly container: string;
|
|
23
|
-
readonly meta: string;
|
|
24
|
-
readonly question: string;
|
|
25
|
-
readonly optionList: string;
|
|
26
|
-
readonly optionRow: string;
|
|
27
|
-
readonly reorderColumn: string;
|
|
28
|
-
readonly reorderButton: string;
|
|
29
|
-
readonly optionInput: string;
|
|
30
|
-
readonly removeButton: string;
|
|
31
|
-
readonly addOption: string;
|
|
32
|
-
readonly advancedSummary: string;
|
|
33
|
-
readonly advancedGrid: string;
|
|
34
|
-
readonly advancedLabel: string;
|
|
35
|
-
readonly dateTimeField: string;
|
|
36
|
-
readonly dateTimeIcon: string;
|
|
37
|
-
readonly dateTimeInput: string;
|
|
38
|
-
readonly selectTrigger: string;
|
|
39
|
-
readonly selectContent: string;
|
|
40
|
-
readonly modeRow: string;
|
|
41
|
-
readonly modeControl: string;
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=poll-edit.css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"poll-edit.css.d.ts","sourceRoot":"","sources":["../../src/styles/poll-edit.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,QAKxB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAMnB,CAAC;AAEH,eAAO,MAAM,YAAY,QAiBvB,CAAC;AAEH,eAAO,MAAM,cAAc,QAIzB,CAAC;AAEH,eAAO,MAAM,aAAa,QAKxB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAK5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAwB5B,CAAC;AAEH,eAAO,MAAM,eAAe,QAkB1B,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAgB3B,CAAC;AAEH,eAAO,MAAM,aAAa,QAoBxB,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAW9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAQ3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAE5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAmB5B,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAI3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAuB5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAc5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAE5B,CAAC;AAEH,eAAO,MAAM,WAAW,QAOtB,CAAC;AAEH,eAAO,MAAM,eAAe,QAI1B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAqBlB,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export declare const pollContainer: string;
|
|
2
|
-
export declare const pollMeta: string;
|
|
3
|
-
export declare const pollQuestion: string;
|
|
4
|
-
export declare const pollOptionList: string;
|
|
5
|
-
export declare const pollOption: string;
|
|
6
|
-
export declare const pollOptionInteractive: string;
|
|
7
|
-
export declare const pollOptionSelected: string;
|
|
8
|
-
export declare const pollOptionDisabled: string;
|
|
9
|
-
export declare const pollTint: string;
|
|
10
|
-
export declare const pollTintActive: string;
|
|
11
|
-
export declare const pollOptionRow: string;
|
|
12
|
-
export declare const pollOptionLabel: string;
|
|
13
|
-
export declare const pollOptionPct: string;
|
|
14
|
-
export declare const pollOptionPctActive: string;
|
|
15
|
-
export declare const pollHint: string;
|
|
16
|
-
export declare const pollSubmit: string;
|
|
17
|
-
export declare const pollSubmitActive: string;
|
|
18
|
-
export declare const pollFooter: string;
|
|
19
|
-
export declare const pollErrorMessage: string;
|
|
20
|
-
export declare const pollSkeleton: string;
|
|
21
|
-
export declare const pollClasses: {
|
|
22
|
-
readonly container: string;
|
|
23
|
-
readonly meta: string;
|
|
24
|
-
readonly question: string;
|
|
25
|
-
readonly optionList: string;
|
|
26
|
-
readonly option: string;
|
|
27
|
-
readonly optionInteractive: string;
|
|
28
|
-
readonly optionSelected: string;
|
|
29
|
-
readonly optionDisabled: string;
|
|
30
|
-
readonly tint: string;
|
|
31
|
-
readonly tintActive: string;
|
|
32
|
-
readonly optionRow: string;
|
|
33
|
-
readonly optionLabel: string;
|
|
34
|
-
readonly optionPct: string;
|
|
35
|
-
readonly optionPctActive: string;
|
|
36
|
-
readonly hint: string;
|
|
37
|
-
readonly submit: string;
|
|
38
|
-
readonly submitActive: string;
|
|
39
|
-
readonly footer: string;
|
|
40
|
-
readonly errorMessage: string;
|
|
41
|
-
readonly skeleton: string;
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=poll.css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"poll.css.d.ts","sourceRoot":"","sources":["../../src/styles/poll.css.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,QAMxB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAMnB,CAAC;AAEH,eAAO,MAAM,YAAY,QAMvB,CAAC;AAEH,eAAO,MAAM,cAAc,QAIzB,CAAC;AAEH,eAAO,MAAM,UAAU,QAOrB,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAQhC,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAG7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAE7B,CAAC;AAEH,eAAO,MAAM,QAAQ,QAQnB,CAAC;AAEH,eAAO,MAAM,cAAc,QAEzB,CAAC;AAEH,eAAO,MAAM,aAAa,QAMxB,CAAC;AAEH,eAAO,MAAM,eAAe,QAG1B,CAAC;AAEH,eAAO,MAAM,aAAa,QAKxB,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAE9B,CAAC;AAEH,eAAO,MAAM,QAAQ,QAMnB,CAAC;AAMH,eAAO,MAAM,UAAU,QAWrB,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAI3B,CAAC;AAEH,eAAO,MAAM,UAAU,QAQrB,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAI3B,CAAC;AAEH,eAAO,MAAM,YAAY,QAKvB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAqBd,CAAC"}
|
package/dist/types/poll.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type PollMode = 'single' | 'multiple';
|
|
2
|
-
export type PollShowResults = 'always' | 'after-vote' | 'after-close';
|
|
3
|
-
export interface PollOption {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
}
|
|
7
|
-
export interface PollState {
|
|
8
|
-
canVote: boolean;
|
|
9
|
-
closed: boolean;
|
|
10
|
-
errorMessage?: string;
|
|
11
|
-
status: 'loading' | 'ready' | 'error';
|
|
12
|
-
tallies: Record<string, number>;
|
|
13
|
-
totalVotes: number;
|
|
14
|
-
userVote?: string[];
|
|
15
|
-
}
|
|
16
|
-
export interface PollDataAdapter {
|
|
17
|
-
usePollState: (pollId: string) => PollState;
|
|
18
|
-
useSubmit: (pollId: string) => (optionIds: string[]) => Promise<void>;
|
|
19
|
-
}
|
|
20
|
-
export interface PollMetadata {
|
|
21
|
-
closeAt?: string;
|
|
22
|
-
mode: PollMode;
|
|
23
|
-
options: PollOption[];
|
|
24
|
-
pollId: string;
|
|
25
|
-
question: string;
|
|
26
|
-
showResults?: PollShowResults;
|
|
27
|
-
}
|
|
28
|
-
export interface PollRendererProps {
|
|
29
|
-
closeAt?: string;
|
|
30
|
-
mode: PollMode;
|
|
31
|
-
options: PollOption[];
|
|
32
|
-
pollId: string;
|
|
33
|
-
question: string;
|
|
34
|
-
showResults?: PollShowResults;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=poll.d.ts.map
|
package/dist/types/poll.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/types/poll.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;AAEtE,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,E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