houdini-svelte 1.0.0-next.0 → 1.0.0-next.2
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 -0
- package/build/plugin/codegen/components/index.d.ts +2 -2
- package/build/plugin/codegen/fragmentTypedefs/index.d.ts +1 -1
- package/build/plugin/codegen/index.d.ts +1 -1
- package/build/plugin/codegen/routes/index.d.ts +2 -2
- package/build/plugin/codegen/stores/custom.d.ts +1 -1
- package/build/plugin/codegen/stores/fragment.d.ts +1 -1
- package/build/plugin/codegen/stores/index.d.ts +1 -1
- package/build/plugin/codegen/stores/mutation.d.ts +1 -1
- package/build/plugin/codegen/stores/query.d.ts +1 -1
- package/build/plugin/codegen/stores/subscription.d.ts +1 -1
- package/build/plugin/extract.d.ts +2 -1
- package/build/plugin/extractLoadFunction.d.ts +2 -2
- package/build/plugin/fsPatch.d.ts +1 -1
- package/build/plugin/index.d.ts +2 -7
- package/build/plugin/kit.d.ts +4 -4
- package/build/plugin/transforms/componentQuery.d.ts +5 -5
- package/build/plugin/transforms/index.d.ts +2 -2
- package/build/plugin/transforms/kit/index.d.ts +2 -2
- package/build/plugin/transforms/kit/init.d.ts +1 -1
- package/build/plugin/transforms/kit/load.d.ts +1 -1
- package/build/plugin/transforms/kit/session.d.ts +1 -1
- package/build/plugin/transforms/reactive.d.ts +2 -2
- package/build/plugin/transforms/tags.d.ts +2 -2
- package/build/plugin/transforms/types.d.ts +3 -3
- package/build/plugin/validate.d.ts +1 -1
- package/build/plugin-cjs/index.js +417 -3826
- package/build/plugin-esm/index.js +417 -3826
- package/build/preprocess/index.d.ts +1 -1
- package/build/preprocess-cjs/index.js +386 -3786
- package/build/preprocess-esm/index.js +386 -3786
- package/build/runtime/client.d.ts +1 -0
- package/build/runtime/fragments.d.ts +3 -3
- package/build/runtime/imports/client.d.ts +3 -0
- package/build/runtime/session.d.ts +2 -2
- package/build/runtime/stores/fragment.d.ts +4 -5
- package/build/runtime/stores/mutation.d.ts +4 -16
- package/build/runtime/stores/pagination/cursor.d.ts +10 -12
- package/build/runtime/stores/pagination/fetch.d.ts +2 -2
- package/build/runtime/stores/pagination/fragment.d.ts +29 -83
- package/build/runtime/stores/pagination/offset.d.ts +7 -9
- package/build/runtime/stores/pagination/pageInfo.d.ts +1 -1
- package/build/runtime/stores/pagination/query.d.ts +11 -13
- package/build/runtime/stores/query.d.ts +15 -19
- package/build/runtime/stores/subscription.d.ts +6 -9
- package/build/runtime/types.d.ts +1 -1
- package/build/runtime-cjs/client.d.ts +1 -0
- package/build/runtime-cjs/{network.js → client.js} +8 -7
- package/build/runtime-cjs/fragments.d.ts +3 -3
- package/build/runtime-cjs/fragments.js +0 -21
- package/build/runtime-cjs/imports/client.d.ts +3 -0
- package/build/runtime-cjs/{stores/store.js → imports/client.js} +7 -16
- package/build/runtime-cjs/session.d.ts +2 -2
- package/build/runtime-cjs/stores/fragment.d.ts +4 -5
- package/build/runtime-cjs/stores/fragment.js +1 -3
- package/build/runtime-cjs/stores/mutation.d.ts +4 -16
- package/build/runtime-cjs/stores/mutation.js +11 -98
- package/build/runtime-cjs/stores/pagination/cursor.d.ts +10 -12
- package/build/runtime-cjs/stores/pagination/cursor.js +28 -55
- package/build/runtime-cjs/stores/pagination/fetch.d.ts +2 -2
- package/build/runtime-cjs/stores/pagination/fragment.d.ts +29 -83
- package/build/runtime-cjs/stores/pagination/fragment.js +73 -41
- package/build/runtime-cjs/stores/pagination/offset.d.ts +7 -9
- package/build/runtime-cjs/stores/pagination/offset.js +17 -46
- package/build/runtime-cjs/stores/pagination/pageInfo.d.ts +1 -1
- package/build/runtime-cjs/stores/pagination/query.d.ts +11 -13
- package/build/runtime-cjs/stores/pagination/query.js +33 -10
- package/build/runtime-cjs/stores/query.d.ts +15 -19
- package/build/runtime-cjs/stores/query.js +39 -192
- package/build/runtime-cjs/stores/subscription.d.ts +6 -9
- package/build/runtime-cjs/stores/subscription.js +4 -66
- package/build/runtime-cjs/types.d.ts +1 -1
- package/build/runtime-esm/client.d.ts +1 -0
- package/build/runtime-esm/client.js +7 -0
- package/build/runtime-esm/fragments.d.ts +3 -3
- package/build/runtime-esm/fragments.js +0 -15
- package/build/runtime-esm/imports/client.d.ts +3 -0
- package/build/runtime-esm/imports/client.js +5 -0
- package/build/runtime-esm/session.d.ts +2 -2
- package/build/runtime-esm/stores/fragment.d.ts +4 -5
- package/build/runtime-esm/stores/fragment.js +2 -6
- package/build/runtime-esm/stores/mutation.d.ts +4 -16
- package/build/runtime-esm/stores/mutation.js +11 -98
- package/build/runtime-esm/stores/pagination/cursor.d.ts +10 -12
- package/build/runtime-esm/stores/pagination/cursor.js +27 -54
- package/build/runtime-esm/stores/pagination/fetch.d.ts +2 -2
- package/build/runtime-esm/stores/pagination/fragment.d.ts +29 -83
- package/build/runtime-esm/stores/pagination/fragment.js +76 -46
- package/build/runtime-esm/stores/pagination/offset.d.ts +7 -9
- package/build/runtime-esm/stores/pagination/offset.js +15 -44
- package/build/runtime-esm/stores/pagination/pageInfo.d.ts +1 -1
- package/build/runtime-esm/stores/pagination/query.d.ts +11 -13
- package/build/runtime-esm/stores/pagination/query.js +35 -14
- package/build/runtime-esm/stores/query.d.ts +15 -19
- package/build/runtime-esm/stores/query.js +42 -199
- package/build/runtime-esm/stores/subscription.d.ts +6 -9
- package/build/runtime-esm/stores/subscription.js +4 -66
- package/build/runtime-esm/types.d.ts +1 -1
- package/build/test/index.d.ts +2 -2
- package/build/test-cjs/index.js +875 -7606
- package/build/test-esm/index.js +875 -7606
- package/package.json +2 -2
- package/build/runtime/network.d.ts +0 -2
- package/build/runtime/stores/store.d.ts +0 -4
- package/build/runtime-cjs/network.d.ts +0 -2
- package/build/runtime-cjs/stores/store.d.ts +0 -4
- package/build/runtime-esm/network.d.ts +0 -2
- package/build/runtime-esm/network.js +0 -6
- package/build/runtime-esm/stores/store.d.ts +0 -4
- package/build/runtime-esm/stores/store.js +0 -12
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GenerateHookInput } from 'houdini';
|
|
2
|
-
import { Framework } from '../../kit';
|
|
1
|
+
import type { GenerateHookInput } from 'houdini';
|
|
2
|
+
import type { Framework } from '../../kit';
|
|
3
3
|
export default function componentTypesGenerator(framework: Framework, { config, documents }: GenerateHookInput): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PluginGenerateInput } from '..';
|
|
1
|
+
import type { PluginGenerateInput } from '..';
|
|
2
2
|
export default function fragmentTypedefs(input: PluginGenerateInput): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenerateHookInput, Config } from 'houdini';
|
|
1
|
+
import type { GenerateHookInput, Config } from 'houdini';
|
|
2
2
|
export default function (input: PluginGenerateInput): Promise<void>;
|
|
3
3
|
export type PluginGenerateInput = Omit<GenerateHookInput, 'config'> & {
|
|
4
4
|
config: Config;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GenerateHookInput } from 'houdini';
|
|
2
|
-
import { Framework } from '../../kit';
|
|
1
|
+
import type { GenerateHookInput } from 'houdini';
|
|
2
|
+
import type { Framework } from '../../kit';
|
|
3
3
|
export default function svelteKitGenerator(framework: Framework, { config }: GenerateHookInput): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CollectedGraphQLDocument, GenerateHookInput } from 'houdini';
|
|
1
|
+
import type { CollectedGraphQLDocument, GenerateHookInput } from 'houdini';
|
|
2
2
|
export declare function fragmentStore({ config, plugin_root }: GenerateHookInput, doc: CollectedGraphQLDocument): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GenerateHookInput } from 'houdini';
|
|
1
|
+
import type { GenerateHookInput } from 'houdini';
|
|
2
2
|
export default function storesGenerator(input: GenerateHookInput): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CollectedGraphQLDocument, GenerateHookInput } from 'houdini';
|
|
1
|
+
import type { CollectedGraphQLDocument, GenerateHookInput } from 'houdini';
|
|
2
2
|
export declare function mutationStore({ config, plugin_root }: GenerateHookInput, doc: CollectedGraphQLDocument): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CollectedGraphQLDocument, GenerateHookInput } from 'houdini';
|
|
1
|
+
import type { CollectedGraphQLDocument, GenerateHookInput } from 'houdini';
|
|
2
2
|
export declare function queryStore({ config, plugin_root }: GenerateHookInput, doc: CollectedGraphQLDocument): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CollectedGraphQLDocument, GenerateHookInput } from 'houdini';
|
|
1
|
+
import type { CollectedGraphQLDocument, GenerateHookInput } from 'houdini';
|
|
2
2
|
export declare function subscriptionStore({ config, plugin_root }: GenerateHookInput, doc: CollectedGraphQLDocument): Promise<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Config } from 'houdini';
|
|
2
|
+
import { type Maybe, type Script } from 'houdini';
|
|
2
3
|
export default function (config: Config, filepath: string, contents: string): Promise<string[]>;
|
|
3
4
|
export declare function parseSvelte(str: string): Promise<ParsedFile>;
|
|
4
5
|
export type ParsedFile = Maybe<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from 'houdini';
|
|
2
|
-
import { HoudiniRouteScript } from './kit';
|
|
1
|
+
import type { Config } from 'houdini';
|
|
2
|
+
import type { HoudiniRouteScript } from './kit';
|
|
3
3
|
export declare function extract_load_function(config: Config, filepath: string, mockArtifacts?: Record<string, {
|
|
4
4
|
raw: string;
|
|
5
5
|
}>): Promise<HoudiniRouteScript>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Framework } from './kit';
|
|
1
|
+
import type { Framework } from './kit';
|
|
2
2
|
declare const _default: (getFramwork: () => Framework) => {
|
|
3
3
|
resolveId?: import("rollup").ObjectHook<(this: import("rollup").PluginContext, source: string, importer: string | undefined, options: {
|
|
4
4
|
config: import("houdini").Config;
|
package/build/plugin/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PluginFactory
|
|
1
|
+
import type { PluginFactory } from 'houdini';
|
|
2
|
+
import { type Config } from 'houdini';
|
|
2
3
|
export declare let _config: Config;
|
|
3
4
|
declare const HoudiniSveltePlugin: PluginFactory;
|
|
4
5
|
export default HoudiniSveltePlugin;
|
|
@@ -23,12 +24,6 @@ export type HoudiniSvelteConfig = {
|
|
|
23
24
|
* @default +layout.gql
|
|
24
25
|
*/
|
|
25
26
|
layoutQueryFilename?: string;
|
|
26
|
-
/**
|
|
27
|
-
* With this enabled, errors in your query will not be thrown as exceptions. You will have to handle
|
|
28
|
-
* error state in your route components or by hand in your load (or the onError hook)
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
quietQueryErrors?: boolean;
|
|
32
27
|
/**
|
|
33
28
|
* A flag to treat every component as a non-route. This is useful for projects built with the static-adapter
|
|
34
29
|
* @default false
|
package/build/plugin/kit.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as graphql from 'graphql';
|
|
2
|
-
import { Config } from 'houdini';
|
|
3
|
-
import recast from 'recast';
|
|
4
|
-
import { HoudiniSvelteConfig } from '.';
|
|
5
|
-
import { SvelteTransformPage } from './transforms/types';
|
|
2
|
+
import type { Config } from 'houdini';
|
|
3
|
+
import type recast from 'recast';
|
|
4
|
+
import type { HoudiniSvelteConfig } from '.';
|
|
5
|
+
import type { SvelteTransformPage } from './transforms/types';
|
|
6
6
|
type Identifier = recast.types.namedTypes.Identifier;
|
|
7
7
|
export declare function is_route(config: Config, framework: Framework, filepath: string): boolean;
|
|
8
8
|
export declare function route_data_path(config: Config, filename: string): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ExpressionKind } from 'ast-types/lib/gen/kinds';
|
|
2
|
-
import * as graphql from 'graphql';
|
|
3
|
-
import { Config, Script } from 'houdini';
|
|
4
|
-
import { TransformPage } from 'houdini/vite';
|
|
5
|
-
import { SvelteTransformPage } from './types';
|
|
1
|
+
import type { ExpressionKind } from 'ast-types/lib/gen/kinds';
|
|
2
|
+
import type * as graphql from 'graphql';
|
|
3
|
+
import type { Config, Script } from 'houdini';
|
|
4
|
+
import type { TransformPage } from 'houdini/vite';
|
|
5
|
+
import type { SvelteTransformPage } from './types';
|
|
6
6
|
export default function QueryProcessor(config: Config, page: SvelteTransformPage): Promise<void>;
|
|
7
7
|
export declare function find_inline_queries(page: TransformPage, parsed: Script | null, store_id: (name: string) => ExpressionKind): Promise<LoadTarget[]>;
|
|
8
8
|
export type LoadTarget = graphql.OperationDefinitionNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TransformPage } from 'houdini/vite';
|
|
2
|
-
import { Framework } from '../kit';
|
|
1
|
+
import type { TransformPage } from 'houdini/vite';
|
|
2
|
+
import type { Framework } from '../kit';
|
|
3
3
|
export default function apply_transforms(framework: Framework, page: TransformPage): Promise<{
|
|
4
4
|
code: string;
|
|
5
5
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Config } from 'houdini';
|
|
2
|
-
import { SvelteTransformPage } from '../types';
|
|
1
|
+
import type { Config } from 'houdini';
|
|
2
|
+
import type { SvelteTransformPage } from '../types';
|
|
3
3
|
export default function SvelteKitProcessor(config: Config, page: SvelteTransformPage): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SvelteTransformPage } from '../types';
|
|
1
|
+
import type { SvelteTransformPage } from '../types';
|
|
2
2
|
export default function kit_init(page: SvelteTransformPage): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SvelteTransformPage } from '../types';
|
|
1
|
+
import type { SvelteTransformPage } from '../types';
|
|
2
2
|
export default function kit_load_generator(page: SvelteTransformPage): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SvelteTransformPage } from '../types';
|
|
1
|
+
import type { SvelteTransformPage } from '../types';
|
|
2
2
|
export default function (page: SvelteTransformPage): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Config } from 'houdini';
|
|
2
|
-
import { SvelteTransformPage } from './types';
|
|
1
|
+
import type { Config } from 'houdini';
|
|
2
|
+
import type { SvelteTransformPage } from './types';
|
|
3
3
|
export default function ReactiveProcessor(config: Config, page: SvelteTransformPage): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Config } from 'houdini';
|
|
2
|
-
import { SvelteTransformPage } from './types';
|
|
1
|
+
import type { Config } from 'houdini';
|
|
2
|
+
import type { SvelteTransformPage } from './types';
|
|
3
3
|
export default function GraphQLTagProcessor(config: Config, page: SvelteTransformPage): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Script } from 'houdini';
|
|
2
|
-
import { TransformPage } from 'houdini/vite';
|
|
3
|
-
import { Framework } from '../kit';
|
|
1
|
+
import type { Script } from 'houdini';
|
|
2
|
+
import type { TransformPage } from 'houdini/vite';
|
|
3
|
+
import type { Framework } from '../kit';
|
|
4
4
|
export type SvelteTransformPage = TransformPage & {
|
|
5
5
|
framework: Framework;
|
|
6
6
|
script: Script;
|