@blockslides/ai-context 0.3.1 → 0.3.3
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/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -87
- package/dist/index.d.ts +86 -87
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/templates/v1/presetTemplateBuilder.ts +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Transform } from 'prosemirror-transform';
|
|
1
|
+
import { Transaction, EditorState, Plugin, PluginKey } from 'prosemirror-state';
|
|
2
|
+
import { Slice, Node as Node$1, Mark as Mark$1, Schema, NodeType as NodeType$1, NodeSpec, DOMOutputSpec, MarkType as MarkType$1, MarkSpec, ParseOptions, ResolvedPos, Fragment } from 'prosemirror-model';
|
|
4
3
|
import { NodeViewConstructor, NodeView, MarkViewConstructor, MarkView, EditorProps, EditorView } from 'prosemirror-view';
|
|
4
|
+
import { Transform } from 'prosemirror-transform';
|
|
5
5
|
|
|
6
6
|
declare const core: string;
|
|
7
7
|
|
|
@@ -1448,7 +1448,7 @@ interface MarkConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
|
|
|
1448
1448
|
storage: Storage;
|
|
1449
1449
|
parent: ParentConfig<MarkConfig<Options, Storage>>["addAttributes"];
|
|
1450
1450
|
editor?: SlideEditor;
|
|
1451
|
-
}) => Attributes | {};
|
|
1451
|
+
}) => Attributes$1 | {};
|
|
1452
1452
|
}
|
|
1453
1453
|
declare class Mark<Options = any, Storage = any> extends Extendable<Options, Storage, MarkConfig<Options, Storage>> {
|
|
1454
1454
|
type: string;
|
|
@@ -1741,7 +1741,7 @@ interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
|
|
|
1741
1741
|
storage: Storage;
|
|
1742
1742
|
parent: ParentConfig<NodeConfig<Options, Storage>>["addAttributes"];
|
|
1743
1743
|
editor?: SlideEditor;
|
|
1744
|
-
}) => Attributes | {};
|
|
1744
|
+
}) => Attributes$1 | {};
|
|
1745
1745
|
}
|
|
1746
1746
|
declare class Node<Options = any, Storage = any> extends Extendable<Options, Storage, NodeConfig<Options, Storage>> {
|
|
1747
1747
|
type: string;
|
|
@@ -2031,7 +2031,6 @@ declare class Extendable<Options = any, Storage = any, Config = ExtensionConfig<
|
|
|
2031
2031
|
configure(options?: Partial<Options>): Extendable<Options, Storage, ExtensionConfig<Options, Storage> | NodeConfig<Options, Storage> | MarkConfig<Options, Storage>>;
|
|
2032
2032
|
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = ExtensionConfig<ExtendedOptions, ExtendedStorage> | NodeConfig<ExtendedOptions, ExtendedStorage> | MarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: Partial<ExtendedConfig>): Extendable<ExtendedOptions, ExtendedStorage>;
|
|
2033
2033
|
}
|
|
2034
|
-
|
|
2035
2034
|
type AnyExtension = Extendable;
|
|
2036
2035
|
type Extensions = AnyExtension[];
|
|
2037
2036
|
type ParentConfig<T> = Partial<{
|
|
@@ -2508,7 +2507,7 @@ type Attribute = {
|
|
|
2508
2507
|
keepOnSplit?: boolean;
|
|
2509
2508
|
isRequired?: boolean;
|
|
2510
2509
|
};
|
|
2511
|
-
type Attributes = {
|
|
2510
|
+
type Attributes$1 = {
|
|
2512
2511
|
[key: string]: Attribute;
|
|
2513
2512
|
};
|
|
2514
2513
|
type ExtensionAttribute = {
|
|
@@ -2659,6 +2658,7 @@ type MarkdownParseHelpers = {
|
|
|
2659
2658
|
attrs?: any;
|
|
2660
2659
|
};
|
|
2661
2660
|
};
|
|
2661
|
+
|
|
2662
2662
|
/**
|
|
2663
2663
|
* Return shape for parser-level `parse` handlers.
|
|
2664
2664
|
* - a single JSON-like node
|
|
@@ -2838,6 +2838,85 @@ declare class NodePos {
|
|
|
2838
2838
|
}): void;
|
|
2839
2839
|
}
|
|
2840
2840
|
|
|
2841
|
+
declare module "@blockslides/core" {
|
|
2842
|
+
interface Commands<ReturnType> {
|
|
2843
|
+
focus: {
|
|
2844
|
+
/**
|
|
2845
|
+
* Focus the editor at the given position.
|
|
2846
|
+
* @param position The position to focus at.
|
|
2847
|
+
* @param options.scrollIntoView Scroll the focused position into view after focusing
|
|
2848
|
+
* @example editor.commands.focus()
|
|
2849
|
+
* @example editor.commands.focus(32, { scrollIntoView: false })
|
|
2850
|
+
*/
|
|
2851
|
+
focus: (
|
|
2852
|
+
/**
|
|
2853
|
+
* The position to focus at.
|
|
2854
|
+
*/
|
|
2855
|
+
position?: FocusPosition,
|
|
2856
|
+
/**
|
|
2857
|
+
* Optional options
|
|
2858
|
+
* @default { scrollIntoView: true }
|
|
2859
|
+
*/
|
|
2860
|
+
options?: {
|
|
2861
|
+
scrollIntoView?: boolean;
|
|
2862
|
+
}) => ReturnType;
|
|
2863
|
+
};
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
interface InsertContentOptions {
|
|
2868
|
+
/**
|
|
2869
|
+
* Options for parsing the content.
|
|
2870
|
+
*/
|
|
2871
|
+
parseOptions?: ParseOptions;
|
|
2872
|
+
/**
|
|
2873
|
+
* Whether to update the selection after inserting the content.
|
|
2874
|
+
*/
|
|
2875
|
+
updateSelection?: boolean;
|
|
2876
|
+
applyInputRules?: boolean;
|
|
2877
|
+
applyPasteRules?: boolean;
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
interface InsertContentAtOptions {
|
|
2881
|
+
/**
|
|
2882
|
+
* Options for parsing the content.
|
|
2883
|
+
*/
|
|
2884
|
+
parseOptions?: ParseOptions;
|
|
2885
|
+
/**
|
|
2886
|
+
* Whether to update the selection after inserting the content.
|
|
2887
|
+
*/
|
|
2888
|
+
updateSelection?: boolean;
|
|
2889
|
+
/**
|
|
2890
|
+
* Whether to apply input rules after inserting the content.
|
|
2891
|
+
*/
|
|
2892
|
+
applyInputRules?: boolean;
|
|
2893
|
+
/**
|
|
2894
|
+
* Whether to apply paste rules after inserting the content.
|
|
2895
|
+
*/
|
|
2896
|
+
applyPasteRules?: boolean;
|
|
2897
|
+
/**
|
|
2898
|
+
* Whether to throw an error if the content is invalid.
|
|
2899
|
+
*/
|
|
2900
|
+
errorOnInvalidContent?: boolean;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
interface SetContentOptions {
|
|
2904
|
+
/**
|
|
2905
|
+
* Options for parsing the content.
|
|
2906
|
+
* @default {}
|
|
2907
|
+
*/
|
|
2908
|
+
parseOptions?: ParseOptions;
|
|
2909
|
+
/**
|
|
2910
|
+
* Whether to throw an error if the content is invalid.
|
|
2911
|
+
*/
|
|
2912
|
+
errorOnInvalidContent?: boolean;
|
|
2913
|
+
/**
|
|
2914
|
+
* Whether to emit an update event.
|
|
2915
|
+
* @default true
|
|
2916
|
+
*/
|
|
2917
|
+
emitUpdate?: boolean;
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2841
2920
|
declare module '@blockslides/core' {
|
|
2842
2921
|
interface Commands<ReturnType> {
|
|
2843
2922
|
blur: {
|
|
@@ -3037,32 +3116,6 @@ declare module '@blockslides/core' {
|
|
|
3037
3116
|
}
|
|
3038
3117
|
}
|
|
3039
3118
|
|
|
3040
|
-
declare module "@blockslides/core" {
|
|
3041
|
-
interface Commands<ReturnType> {
|
|
3042
|
-
focus: {
|
|
3043
|
-
/**
|
|
3044
|
-
* Focus the editor at the given position.
|
|
3045
|
-
* @param position The position to focus at.
|
|
3046
|
-
* @param options.scrollIntoView Scroll the focused position into view after focusing
|
|
3047
|
-
* @example editor.commands.focus()
|
|
3048
|
-
* @example editor.commands.focus(32, { scrollIntoView: false })
|
|
3049
|
-
*/
|
|
3050
|
-
focus: (
|
|
3051
|
-
/**
|
|
3052
|
-
* The position to focus at.
|
|
3053
|
-
*/
|
|
3054
|
-
position?: FocusPosition,
|
|
3055
|
-
/**
|
|
3056
|
-
* Optional options
|
|
3057
|
-
* @default { scrollIntoView: true }
|
|
3058
|
-
*/
|
|
3059
|
-
options?: {
|
|
3060
|
-
scrollIntoView?: boolean;
|
|
3061
|
-
}) => ReturnType;
|
|
3062
|
-
};
|
|
3063
|
-
}
|
|
3064
|
-
}
|
|
3065
|
-
|
|
3066
3119
|
declare module '@blockslides/core' {
|
|
3067
3120
|
interface Commands<ReturnType> {
|
|
3068
3121
|
forEach: {
|
|
@@ -3075,19 +3128,6 @@ declare module '@blockslides/core' {
|
|
|
3075
3128
|
};
|
|
3076
3129
|
}
|
|
3077
3130
|
}
|
|
3078
|
-
|
|
3079
|
-
interface InsertContentOptions {
|
|
3080
|
-
/**
|
|
3081
|
-
* Options for parsing the content.
|
|
3082
|
-
*/
|
|
3083
|
-
parseOptions?: ParseOptions;
|
|
3084
|
-
/**
|
|
3085
|
-
* Whether to update the selection after inserting the content.
|
|
3086
|
-
*/
|
|
3087
|
-
updateSelection?: boolean;
|
|
3088
|
-
applyInputRules?: boolean;
|
|
3089
|
-
applyPasteRules?: boolean;
|
|
3090
|
-
}
|
|
3091
3131
|
declare module '@blockslides/core' {
|
|
3092
3132
|
interface Commands<ReturnType> {
|
|
3093
3133
|
insertContent: {
|
|
@@ -3108,29 +3148,6 @@ declare module '@blockslides/core' {
|
|
|
3108
3148
|
};
|
|
3109
3149
|
}
|
|
3110
3150
|
}
|
|
3111
|
-
|
|
3112
|
-
interface InsertContentAtOptions {
|
|
3113
|
-
/**
|
|
3114
|
-
* Options for parsing the content.
|
|
3115
|
-
*/
|
|
3116
|
-
parseOptions?: ParseOptions;
|
|
3117
|
-
/**
|
|
3118
|
-
* Whether to update the selection after inserting the content.
|
|
3119
|
-
*/
|
|
3120
|
-
updateSelection?: boolean;
|
|
3121
|
-
/**
|
|
3122
|
-
* Whether to apply input rules after inserting the content.
|
|
3123
|
-
*/
|
|
3124
|
-
applyInputRules?: boolean;
|
|
3125
|
-
/**
|
|
3126
|
-
* Whether to apply paste rules after inserting the content.
|
|
3127
|
-
*/
|
|
3128
|
-
applyPasteRules?: boolean;
|
|
3129
|
-
/**
|
|
3130
|
-
* Whether to throw an error if the content is invalid.
|
|
3131
|
-
*/
|
|
3132
|
-
errorOnInvalidContent?: boolean;
|
|
3133
|
-
}
|
|
3134
3151
|
declare module '@blockslides/core' {
|
|
3135
3152
|
interface Commands<ReturnType> {
|
|
3136
3153
|
insertContentAt: {
|
|
@@ -3400,23 +3417,6 @@ declare module '@blockslides/core' {
|
|
|
3400
3417
|
};
|
|
3401
3418
|
}
|
|
3402
3419
|
}
|
|
3403
|
-
|
|
3404
|
-
interface SetContentOptions {
|
|
3405
|
-
/**
|
|
3406
|
-
* Options for parsing the content.
|
|
3407
|
-
* @default {}
|
|
3408
|
-
*/
|
|
3409
|
-
parseOptions?: ParseOptions;
|
|
3410
|
-
/**
|
|
3411
|
-
* Whether to throw an error if the content is invalid.
|
|
3412
|
-
*/
|
|
3413
|
-
errorOnInvalidContent?: boolean;
|
|
3414
|
-
/**
|
|
3415
|
-
* Whether to emit an update event.
|
|
3416
|
-
* @default true
|
|
3417
|
-
*/
|
|
3418
|
-
emitUpdate?: boolean;
|
|
3419
|
-
}
|
|
3420
3420
|
declare module '@blockslides/core' {
|
|
3421
3421
|
interface Commands<ReturnType> {
|
|
3422
3422
|
setContent: {
|
|
@@ -3719,7 +3719,6 @@ declare module '@blockslides/core' {
|
|
|
3719
3719
|
};
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
3722
|
-
|
|
3723
3722
|
declare class SlideEditor extends EventEmitter<EditorEvents> {
|
|
3724
3723
|
private commandManager;
|
|
3725
3724
|
extensionManager: ExtensionManager;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Transform } from 'prosemirror-transform';
|
|
1
|
+
import { Transaction, EditorState, Plugin, PluginKey } from 'prosemirror-state';
|
|
2
|
+
import { Slice, Node as Node$1, Mark as Mark$1, Schema, NodeType as NodeType$1, NodeSpec, DOMOutputSpec, MarkType as MarkType$1, MarkSpec, ParseOptions, ResolvedPos, Fragment } from 'prosemirror-model';
|
|
4
3
|
import { NodeViewConstructor, NodeView, MarkViewConstructor, MarkView, EditorProps, EditorView } from 'prosemirror-view';
|
|
4
|
+
import { Transform } from 'prosemirror-transform';
|
|
5
5
|
|
|
6
6
|
declare const core: string;
|
|
7
7
|
|
|
@@ -1448,7 +1448,7 @@ interface MarkConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
|
|
|
1448
1448
|
storage: Storage;
|
|
1449
1449
|
parent: ParentConfig<MarkConfig<Options, Storage>>["addAttributes"];
|
|
1450
1450
|
editor?: SlideEditor;
|
|
1451
|
-
}) => Attributes | {};
|
|
1451
|
+
}) => Attributes$1 | {};
|
|
1452
1452
|
}
|
|
1453
1453
|
declare class Mark<Options = any, Storage = any> extends Extendable<Options, Storage, MarkConfig<Options, Storage>> {
|
|
1454
1454
|
type: string;
|
|
@@ -1741,7 +1741,7 @@ interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
|
|
|
1741
1741
|
storage: Storage;
|
|
1742
1742
|
parent: ParentConfig<NodeConfig<Options, Storage>>["addAttributes"];
|
|
1743
1743
|
editor?: SlideEditor;
|
|
1744
|
-
}) => Attributes | {};
|
|
1744
|
+
}) => Attributes$1 | {};
|
|
1745
1745
|
}
|
|
1746
1746
|
declare class Node<Options = any, Storage = any> extends Extendable<Options, Storage, NodeConfig<Options, Storage>> {
|
|
1747
1747
|
type: string;
|
|
@@ -2031,7 +2031,6 @@ declare class Extendable<Options = any, Storage = any, Config = ExtensionConfig<
|
|
|
2031
2031
|
configure(options?: Partial<Options>): Extendable<Options, Storage, ExtensionConfig<Options, Storage> | NodeConfig<Options, Storage> | MarkConfig<Options, Storage>>;
|
|
2032
2032
|
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig = ExtensionConfig<ExtendedOptions, ExtendedStorage> | NodeConfig<ExtendedOptions, ExtendedStorage> | MarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: Partial<ExtendedConfig>): Extendable<ExtendedOptions, ExtendedStorage>;
|
|
2033
2033
|
}
|
|
2034
|
-
|
|
2035
2034
|
type AnyExtension = Extendable;
|
|
2036
2035
|
type Extensions = AnyExtension[];
|
|
2037
2036
|
type ParentConfig<T> = Partial<{
|
|
@@ -2508,7 +2507,7 @@ type Attribute = {
|
|
|
2508
2507
|
keepOnSplit?: boolean;
|
|
2509
2508
|
isRequired?: boolean;
|
|
2510
2509
|
};
|
|
2511
|
-
type Attributes = {
|
|
2510
|
+
type Attributes$1 = {
|
|
2512
2511
|
[key: string]: Attribute;
|
|
2513
2512
|
};
|
|
2514
2513
|
type ExtensionAttribute = {
|
|
@@ -2659,6 +2658,7 @@ type MarkdownParseHelpers = {
|
|
|
2659
2658
|
attrs?: any;
|
|
2660
2659
|
};
|
|
2661
2660
|
};
|
|
2661
|
+
|
|
2662
2662
|
/**
|
|
2663
2663
|
* Return shape for parser-level `parse` handlers.
|
|
2664
2664
|
* - a single JSON-like node
|
|
@@ -2838,6 +2838,85 @@ declare class NodePos {
|
|
|
2838
2838
|
}): void;
|
|
2839
2839
|
}
|
|
2840
2840
|
|
|
2841
|
+
declare module "@blockslides/core" {
|
|
2842
|
+
interface Commands<ReturnType> {
|
|
2843
|
+
focus: {
|
|
2844
|
+
/**
|
|
2845
|
+
* Focus the editor at the given position.
|
|
2846
|
+
* @param position The position to focus at.
|
|
2847
|
+
* @param options.scrollIntoView Scroll the focused position into view after focusing
|
|
2848
|
+
* @example editor.commands.focus()
|
|
2849
|
+
* @example editor.commands.focus(32, { scrollIntoView: false })
|
|
2850
|
+
*/
|
|
2851
|
+
focus: (
|
|
2852
|
+
/**
|
|
2853
|
+
* The position to focus at.
|
|
2854
|
+
*/
|
|
2855
|
+
position?: FocusPosition,
|
|
2856
|
+
/**
|
|
2857
|
+
* Optional options
|
|
2858
|
+
* @default { scrollIntoView: true }
|
|
2859
|
+
*/
|
|
2860
|
+
options?: {
|
|
2861
|
+
scrollIntoView?: boolean;
|
|
2862
|
+
}) => ReturnType;
|
|
2863
|
+
};
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
interface InsertContentOptions {
|
|
2868
|
+
/**
|
|
2869
|
+
* Options for parsing the content.
|
|
2870
|
+
*/
|
|
2871
|
+
parseOptions?: ParseOptions;
|
|
2872
|
+
/**
|
|
2873
|
+
* Whether to update the selection after inserting the content.
|
|
2874
|
+
*/
|
|
2875
|
+
updateSelection?: boolean;
|
|
2876
|
+
applyInputRules?: boolean;
|
|
2877
|
+
applyPasteRules?: boolean;
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
interface InsertContentAtOptions {
|
|
2881
|
+
/**
|
|
2882
|
+
* Options for parsing the content.
|
|
2883
|
+
*/
|
|
2884
|
+
parseOptions?: ParseOptions;
|
|
2885
|
+
/**
|
|
2886
|
+
* Whether to update the selection after inserting the content.
|
|
2887
|
+
*/
|
|
2888
|
+
updateSelection?: boolean;
|
|
2889
|
+
/**
|
|
2890
|
+
* Whether to apply input rules after inserting the content.
|
|
2891
|
+
*/
|
|
2892
|
+
applyInputRules?: boolean;
|
|
2893
|
+
/**
|
|
2894
|
+
* Whether to apply paste rules after inserting the content.
|
|
2895
|
+
*/
|
|
2896
|
+
applyPasteRules?: boolean;
|
|
2897
|
+
/**
|
|
2898
|
+
* Whether to throw an error if the content is invalid.
|
|
2899
|
+
*/
|
|
2900
|
+
errorOnInvalidContent?: boolean;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
interface SetContentOptions {
|
|
2904
|
+
/**
|
|
2905
|
+
* Options for parsing the content.
|
|
2906
|
+
* @default {}
|
|
2907
|
+
*/
|
|
2908
|
+
parseOptions?: ParseOptions;
|
|
2909
|
+
/**
|
|
2910
|
+
* Whether to throw an error if the content is invalid.
|
|
2911
|
+
*/
|
|
2912
|
+
errorOnInvalidContent?: boolean;
|
|
2913
|
+
/**
|
|
2914
|
+
* Whether to emit an update event.
|
|
2915
|
+
* @default true
|
|
2916
|
+
*/
|
|
2917
|
+
emitUpdate?: boolean;
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2841
2920
|
declare module '@blockslides/core' {
|
|
2842
2921
|
interface Commands<ReturnType> {
|
|
2843
2922
|
blur: {
|
|
@@ -3037,32 +3116,6 @@ declare module '@blockslides/core' {
|
|
|
3037
3116
|
}
|
|
3038
3117
|
}
|
|
3039
3118
|
|
|
3040
|
-
declare module "@blockslides/core" {
|
|
3041
|
-
interface Commands<ReturnType> {
|
|
3042
|
-
focus: {
|
|
3043
|
-
/**
|
|
3044
|
-
* Focus the editor at the given position.
|
|
3045
|
-
* @param position The position to focus at.
|
|
3046
|
-
* @param options.scrollIntoView Scroll the focused position into view after focusing
|
|
3047
|
-
* @example editor.commands.focus()
|
|
3048
|
-
* @example editor.commands.focus(32, { scrollIntoView: false })
|
|
3049
|
-
*/
|
|
3050
|
-
focus: (
|
|
3051
|
-
/**
|
|
3052
|
-
* The position to focus at.
|
|
3053
|
-
*/
|
|
3054
|
-
position?: FocusPosition,
|
|
3055
|
-
/**
|
|
3056
|
-
* Optional options
|
|
3057
|
-
* @default { scrollIntoView: true }
|
|
3058
|
-
*/
|
|
3059
|
-
options?: {
|
|
3060
|
-
scrollIntoView?: boolean;
|
|
3061
|
-
}) => ReturnType;
|
|
3062
|
-
};
|
|
3063
|
-
}
|
|
3064
|
-
}
|
|
3065
|
-
|
|
3066
3119
|
declare module '@blockslides/core' {
|
|
3067
3120
|
interface Commands<ReturnType> {
|
|
3068
3121
|
forEach: {
|
|
@@ -3075,19 +3128,6 @@ declare module '@blockslides/core' {
|
|
|
3075
3128
|
};
|
|
3076
3129
|
}
|
|
3077
3130
|
}
|
|
3078
|
-
|
|
3079
|
-
interface InsertContentOptions {
|
|
3080
|
-
/**
|
|
3081
|
-
* Options for parsing the content.
|
|
3082
|
-
*/
|
|
3083
|
-
parseOptions?: ParseOptions;
|
|
3084
|
-
/**
|
|
3085
|
-
* Whether to update the selection after inserting the content.
|
|
3086
|
-
*/
|
|
3087
|
-
updateSelection?: boolean;
|
|
3088
|
-
applyInputRules?: boolean;
|
|
3089
|
-
applyPasteRules?: boolean;
|
|
3090
|
-
}
|
|
3091
3131
|
declare module '@blockslides/core' {
|
|
3092
3132
|
interface Commands<ReturnType> {
|
|
3093
3133
|
insertContent: {
|
|
@@ -3108,29 +3148,6 @@ declare module '@blockslides/core' {
|
|
|
3108
3148
|
};
|
|
3109
3149
|
}
|
|
3110
3150
|
}
|
|
3111
|
-
|
|
3112
|
-
interface InsertContentAtOptions {
|
|
3113
|
-
/**
|
|
3114
|
-
* Options for parsing the content.
|
|
3115
|
-
*/
|
|
3116
|
-
parseOptions?: ParseOptions;
|
|
3117
|
-
/**
|
|
3118
|
-
* Whether to update the selection after inserting the content.
|
|
3119
|
-
*/
|
|
3120
|
-
updateSelection?: boolean;
|
|
3121
|
-
/**
|
|
3122
|
-
* Whether to apply input rules after inserting the content.
|
|
3123
|
-
*/
|
|
3124
|
-
applyInputRules?: boolean;
|
|
3125
|
-
/**
|
|
3126
|
-
* Whether to apply paste rules after inserting the content.
|
|
3127
|
-
*/
|
|
3128
|
-
applyPasteRules?: boolean;
|
|
3129
|
-
/**
|
|
3130
|
-
* Whether to throw an error if the content is invalid.
|
|
3131
|
-
*/
|
|
3132
|
-
errorOnInvalidContent?: boolean;
|
|
3133
|
-
}
|
|
3134
3151
|
declare module '@blockslides/core' {
|
|
3135
3152
|
interface Commands<ReturnType> {
|
|
3136
3153
|
insertContentAt: {
|
|
@@ -3400,23 +3417,6 @@ declare module '@blockslides/core' {
|
|
|
3400
3417
|
};
|
|
3401
3418
|
}
|
|
3402
3419
|
}
|
|
3403
|
-
|
|
3404
|
-
interface SetContentOptions {
|
|
3405
|
-
/**
|
|
3406
|
-
* Options for parsing the content.
|
|
3407
|
-
* @default {}
|
|
3408
|
-
*/
|
|
3409
|
-
parseOptions?: ParseOptions;
|
|
3410
|
-
/**
|
|
3411
|
-
* Whether to throw an error if the content is invalid.
|
|
3412
|
-
*/
|
|
3413
|
-
errorOnInvalidContent?: boolean;
|
|
3414
|
-
/**
|
|
3415
|
-
* Whether to emit an update event.
|
|
3416
|
-
* @default true
|
|
3417
|
-
*/
|
|
3418
|
-
emitUpdate?: boolean;
|
|
3419
|
-
}
|
|
3420
3420
|
declare module '@blockslides/core' {
|
|
3421
3421
|
interface Commands<ReturnType> {
|
|
3422
3422
|
setContent: {
|
|
@@ -3719,7 +3719,6 @@ declare module '@blockslides/core' {
|
|
|
3719
3719
|
};
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
3722
|
-
|
|
3723
3722
|
declare class SlideEditor extends EventEmitter<EditorEvents> {
|
|
3724
3723
|
private commandManager;
|
|
3725
3724
|
extensionManager: ExtensionManager;
|
package/dist/index.js
CHANGED
|
@@ -2039,6 +2039,11 @@ var twoImageColumns = {
|
|
|
2039
2039
|
};
|
|
2040
2040
|
var registry = {
|
|
2041
2041
|
"tpl.titleAndSubheader": titleAndSubheader,
|
|
2042
|
+
"tpl.accentLeft": accentLeft,
|
|
2043
|
+
"tpl.accentRight": accentRight,
|
|
2044
|
+
"tpl.accentTop": accentTop,
|
|
2045
|
+
"tpl.accentRightFit": accentRightFit,
|
|
2046
|
+
"tpl.accentLeftFit": accentLeftFit,
|
|
2042
2047
|
"tpl.imageAndText": imageAndText,
|
|
2043
2048
|
"tpl.textAndImage": textAndImage,
|
|
2044
2049
|
"tpl.twoColumns": twoColumns,
|
|
@@ -2050,11 +2055,6 @@ var registry = {
|
|
|
2050
2055
|
"tpl.titleWithBullets": titleWithBullets,
|
|
2051
2056
|
"tpl.titleBulletsAndImage": titleBulletsAndImage,
|
|
2052
2057
|
"tpl.fullImage": fullImage,
|
|
2053
|
-
"tpl.accentLeft": accentLeft,
|
|
2054
|
-
"tpl.accentRight": accentRight,
|
|
2055
|
-
"tpl.accentTop": accentTop,
|
|
2056
|
-
"tpl.accentRightFit": accentRightFit,
|
|
2057
|
-
"tpl.accentLeftFit": accentLeftFit,
|
|
2058
2058
|
"tpl.twoImageColumns": twoImageColumns
|
|
2059
2059
|
};
|
|
2060
2060
|
var listPresetTemplates = () => Object.values(registry);
|