houdini-svelte 1.0.0-next.4 → 1.0.0-next.6
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/build/plugin/artifactData.d.ts +5 -2
- package/build/plugin/codegen/stores/fragment.d.ts +2 -2
- package/build/plugin/codegen/stores/mutation.d.ts +2 -2
- package/build/plugin/codegen/stores/query.d.ts +2 -2
- package/build/plugin/codegen/stores/subscription.d.ts +2 -2
- package/build/plugin/extract.d.ts +4 -1
- package/build/plugin/index.d.ts +4 -3
- package/build/plugin/kit.d.ts +1 -1
- package/build/plugin/naming.d.ts +1 -1
- package/build/plugin/validate.d.ts +2 -2
- package/build/plugin-cjs/index.js +2147 -1917
- package/build/plugin-esm/index.js +2145 -1916
- package/build/preprocess-cjs/index.js +2339 -2064
- package/build/preprocess-esm/index.js +2337 -2062
- package/build/runtime/stores/query.d.ts +1 -1
- package/build/runtime-cjs/stores/query.d.ts +1 -1
- package/build/runtime-cjs/stores/query.js +1 -1
- package/build/runtime-esm/stores/query.d.ts +1 -1
- package/build/runtime-esm/stores/query.js +1 -1
- package/build/test/index.d.ts +3 -3
- package/build/test-cjs/index.js +3728 -3252
- package/build/test-esm/index.js +3728 -3252
- package/package.json +3 -3
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Document, Config } from 'houdini';
|
|
2
2
|
export type PluginArtifactData = {
|
|
3
3
|
isManualLoad?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare function artifactData(config
|
|
5
|
+
export declare function artifactData({ config, document, }: {
|
|
6
|
+
config: Config;
|
|
7
|
+
document: Document;
|
|
8
|
+
}): PluginArtifactData;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function fragmentStore({ config,
|
|
1
|
+
import type { Document, GenerateHookInput } from 'houdini';
|
|
2
|
+
export declare function fragmentStore({ config, pluginRoot }: GenerateHookInput, doc: Document): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function mutationStore({ config,
|
|
1
|
+
import type { Document, GenerateHookInput } from 'houdini';
|
|
2
|
+
export declare function mutationStore({ config, pluginRoot }: GenerateHookInput, doc: Document): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function queryStore({ config,
|
|
1
|
+
import type { Document, GenerateHookInput } from 'houdini';
|
|
2
|
+
export declare function queryStore({ config, pluginRoot }: GenerateHookInput, doc: Document): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function subscriptionStore({ config,
|
|
1
|
+
import type { Document, GenerateHookInput } from 'houdini';
|
|
2
|
+
export declare function subscriptionStore({ config, pluginRoot }: GenerateHookInput, doc: Document): Promise<string>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { Config } from 'houdini';
|
|
2
2
|
import { type Maybe, type Script } from 'houdini';
|
|
3
|
-
export default function (config
|
|
3
|
+
export default function ({ config, content, }: {
|
|
4
|
+
config: Config;
|
|
5
|
+
content: string;
|
|
6
|
+
}): Promise<string[]>;
|
|
4
7
|
export declare function parseSvelte(str: string): Promise<ParsedFile>;
|
|
5
8
|
export type ParsedFile = Maybe<{
|
|
6
9
|
script: Script;
|
package/build/plugin/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PluginHooks } from 'houdini';
|
|
2
2
|
import { type Config } from 'houdini';
|
|
3
3
|
export declare let _config: Config;
|
|
4
|
-
declare const
|
|
5
|
-
|
|
4
|
+
export declare const pluginHooks: () => Promise<PluginHooks>;
|
|
5
|
+
declare const _default: import("houdini").PluginInit;
|
|
6
|
+
export default _default;
|
|
6
7
|
declare module 'houdini' {
|
|
7
8
|
interface HoudiniPluginConfig {
|
|
8
9
|
'houdini-svelte': HoudiniSvelteConfig;
|
package/build/plugin/kit.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export type HoudiniRouteScript = {
|
|
|
45
45
|
};
|
|
46
46
|
export declare function route_page_path(config: Config, filename: string): string;
|
|
47
47
|
export declare function stores_directory_name(): string;
|
|
48
|
-
export declare function stores_directory(
|
|
48
|
+
export declare function stores_directory(pluginRoot: string): string;
|
|
49
49
|
export declare function type_route_dir(config: Config): string;
|
|
50
50
|
export declare function store_import_path({ config, name }: {
|
|
51
51
|
config: Config;
|
package/build/plugin/naming.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const query_variable_fn: (name: string) => string;
|
|
2
2
|
export declare const houdini_load_fn = "_houdini_load";
|
|
3
3
|
export declare const houdini_before_load_fn = "_houdini_beforeLoad";
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const houdini_afterLoad_fn = "_houdini_afterLoad";
|
|
5
5
|
export declare const houdini_on_error_fn = "_houdini_onError";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Config,
|
|
1
|
+
import type { Config, Document } from 'houdini';
|
|
2
2
|
export default function validateDocuments({ config, documents, }: {
|
|
3
3
|
config: Config;
|
|
4
|
-
documents:
|
|
4
|
+
documents: Document[];
|
|
5
5
|
}): Promise<void>;
|