solid-refresh 0.7.5 → 0.7.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.
Files changed (88) hide show
  1. package/dist/babel.cjs +36 -26
  2. package/dist/babel.cjs.map +1 -1
  3. package/dist/babel.mjs +36 -26
  4. package/dist/babel.mjs.map +1 -1
  5. package/dist/solid-refresh.cjs.map +1 -1
  6. package/dist/solid-refresh.mjs.map +1 -1
  7. package/dist/src/babel/core/checks.d.ts.map +1 -1
  8. package/dist/src/babel/core/constants.d.ts.map +1 -1
  9. package/dist/src/babel/core/create-registry.d.ts.map +1 -1
  10. package/dist/src/babel/core/generate-unique-name.d.ts.map +1 -1
  11. package/dist/src/babel/core/generator.d.ts.map +1 -1
  12. package/dist/src/babel/core/get-descriptive-name.d.ts.map +1 -1
  13. package/dist/src/babel/core/get-foreign-bindings.d.ts.map +1 -1
  14. package/dist/src/babel/core/get-hmr-decline-call.d.ts.map +1 -1
  15. package/dist/src/babel/core/get-hot-identifier.d.ts +1 -1
  16. package/dist/src/babel/core/get-hot-identifier.d.ts.map +1 -1
  17. package/dist/src/babel/core/get-import-identifier.d.ts.map +1 -1
  18. package/dist/src/babel/core/get-root-statement-path.d.ts.map +1 -1
  19. package/dist/src/babel/core/get-statement-path.d.ts.map +1 -1
  20. package/dist/src/babel/core/is-statement-top-level.d.ts.map +1 -1
  21. package/dist/src/babel/core/is-valid-callee.d.ts +1 -1
  22. package/dist/src/babel/core/is-valid-callee.d.ts.map +1 -1
  23. package/dist/src/babel/core/register-import-specifiers.d.ts.map +1 -1
  24. package/dist/src/babel/core/transform-jsx.d.ts.map +1 -1
  25. package/dist/src/babel/core/types.d.ts.map +1 -1
  26. package/dist/src/babel/core/unwrap.d.ts.map +1 -1
  27. package/dist/src/babel/core/xxhash32.d.ts.map +1 -1
  28. package/dist/src/babel/index.d.ts.map +1 -1
  29. package/dist/src/runtime/create-proxy.d.ts.map +1 -1
  30. package/dist/src/runtime/index.d.ts.map +1 -1
  31. package/dist/src/runtime/is-list-updated.d.ts.map +1 -1
  32. package/dist/src/shared/types.d.ts.map +1 -1
  33. package/package.json +14 -14
  34. package/dist/solid-refresh.js +0 -152
  35. package/dist/src/babel/core/get-vite-hmr-requirement.d.ts +0 -4
  36. package/dist/src/babel/core/get-vite-hmr-requirement.d.ts.map +0 -1
  37. package/dist/src/babel/utils.d.ts +0 -2
  38. package/dist/src/babel/xxhash32.d.ts +0 -6
  39. package/dist/types/src/babel/core/checks.d.ts +0 -4
  40. package/dist/types/src/babel/core/checks.d.ts.map +0 -1
  41. package/dist/types/src/babel/core/constants.d.ts +0 -8
  42. package/dist/types/src/babel/core/constants.d.ts.map +0 -1
  43. package/dist/types/src/babel/core/create-registry.d.ts +0 -5
  44. package/dist/types/src/babel/core/create-registry.d.ts.map +0 -1
  45. package/dist/types/src/babel/core/generate-unique-name.d.ts +0 -4
  46. package/dist/types/src/babel/core/generate-unique-name.d.ts.map +0 -1
  47. package/dist/types/src/babel/core/generator.d.ts +0 -3
  48. package/dist/types/src/babel/core/generator.d.ts.map +0 -1
  49. package/dist/types/src/babel/core/get-descriptive-name.d.ts +0 -3
  50. package/dist/types/src/babel/core/get-descriptive-name.d.ts.map +0 -1
  51. package/dist/types/src/babel/core/get-foreign-bindings.d.ts +0 -4
  52. package/dist/types/src/babel/core/get-foreign-bindings.d.ts.map +0 -1
  53. package/dist/types/src/babel/core/get-hmr-decline-call.d.ts +0 -4
  54. package/dist/types/src/babel/core/get-hmr-decline-call.d.ts.map +0 -1
  55. package/dist/types/src/babel/core/get-hot-identifier.d.ts +0 -4
  56. package/dist/types/src/babel/core/get-hot-identifier.d.ts.map +0 -1
  57. package/dist/types/src/babel/core/get-import-identifier.d.ts +0 -5
  58. package/dist/types/src/babel/core/get-import-identifier.d.ts.map +0 -1
  59. package/dist/types/src/babel/core/get-root-statement-path.d.ts +0 -3
  60. package/dist/types/src/babel/core/get-root-statement-path.d.ts.map +0 -1
  61. package/dist/types/src/babel/core/get-statement-path.d.ts +0 -3
  62. package/dist/types/src/babel/core/get-statement-path.d.ts.map +0 -1
  63. package/dist/types/src/babel/core/get-vite-hmr-requirement.d.ts +0 -4
  64. package/dist/types/src/babel/core/get-vite-hmr-requirement.d.ts.map +0 -1
  65. package/dist/types/src/babel/core/is-valid-callee.d.ts +0 -5
  66. package/dist/types/src/babel/core/is-valid-callee.d.ts.map +0 -1
  67. package/dist/types/src/babel/core/register-import-specifiers.d.ts +0 -5
  68. package/dist/types/src/babel/core/register-import-specifiers.d.ts.map +0 -1
  69. package/dist/types/src/babel/core/transform-jsx.d.ts +0 -4
  70. package/dist/types/src/babel/core/transform-jsx.d.ts.map +0 -1
  71. package/dist/types/src/babel/core/types.d.ts +0 -40
  72. package/dist/types/src/babel/core/types.d.ts.map +0 -1
  73. package/dist/types/src/babel/core/unwrap.d.ts +0 -11
  74. package/dist/types/src/babel/core/unwrap.d.ts.map +0 -1
  75. package/dist/types/src/babel/core/xxhash32.d.ts +0 -7
  76. package/dist/types/src/babel/core/xxhash32.d.ts.map +0 -1
  77. package/dist/types/src/babel/index.d.ts +0 -8
  78. package/dist/types/src/babel/index.d.ts.map +0 -1
  79. package/dist/types/src/babel/xxhash32.d.ts +0 -7
  80. package/dist/types/src/babel/xxhash32.d.ts.map +0 -1
  81. package/dist/types/src/runtime/create-proxy.d.ts +0 -6
  82. package/dist/types/src/runtime/create-proxy.d.ts.map +0 -1
  83. package/dist/types/src/runtime/index.d.ts +0 -60
  84. package/dist/types/src/runtime/index.d.ts.map +0 -1
  85. package/dist/types/src/runtime/is-list-updated.d.ts +0 -2
  86. package/dist/types/src/runtime/is-list-updated.d.ts.map +0 -1
  87. package/dist/types/src/shared/types.d.ts +0 -4
  88. package/dist/types/src/shared/types.d.ts.map +0 -1
@@ -1,5 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- import type * as t from '@babel/types';
3
- import type { ImportDefinition, StateContext } from './types';
4
- export declare function getImportIdentifier(state: StateContext, path: babel.NodePath, registration: ImportDefinition): t.Identifier;
5
- //# sourceMappingURL=get-import-identifier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-import-identifier.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-import-identifier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE9D,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,YAAY,EAAE,gBAAgB,GAC7B,CAAC,CAAC,UAAU,CAad"}
@@ -1,3 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- export declare function getRootStatementPath(path: babel.NodePath): babel.NodePath;
3
- //# sourceMappingURL=get-root-statement-path.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-root-statement-path.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-root-statement-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAG1C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAUzE"}
@@ -1,3 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- export declare function getStatementPath(path: babel.NodePath): babel.NodePath | null;
3
- //# sourceMappingURL=get-statement-path.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-statement-path.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-statement-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAG1C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,GAAG,IAAI,CAQ5E"}
@@ -1,4 +0,0 @@
1
- import type { StateContext } from './types';
2
- import * as t from '@babel/types';
3
- export declare function generateViteHMRRequirement(state: StateContext, statements: t.Statement[], pathToHot: t.Expression): void;
4
- //# sourceMappingURL=get-vite-hmr-requirement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-vite-hmr-requirement.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-vite-hmr-requirement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,CAAC,CAAC,SAAS,EAAE,EACzB,SAAS,EAAE,CAAC,CAAC,UAAU,QAaxB"}
@@ -1,5 +0,0 @@
1
- import type { ImportIdentifierType, StateContext } from './types';
2
- import type * as babel from '@babel/core';
3
- import * as t from '@babel/types';
4
- export declare function isValidCallee(state: StateContext, path: babel.NodePath, { callee }: t.CallExpression, target: ImportIdentifierType): boolean;
5
- //# sourceMappingURL=is-valid-callee.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-valid-callee.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/is-valid-callee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AA8DlC,wBAAgB,aAAa,CAC3B,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,cAAc,EAC5B,MAAM,EAAE,oBAAoB,WAe7B"}
@@ -1,5 +0,0 @@
1
- import type { ImportIdentifierSpecifier, StateContext } from './types';
2
- import * as t from '@babel/types';
3
- import type * as babel from '@babel/core';
4
- export declare function registerImportSpecifiers(state: StateContext, path: babel.NodePath<t.ImportDeclaration>, definitions: ImportIdentifierSpecifier[]): void;
5
- //# sourceMappingURL=register-import-specifiers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register-import-specifiers.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/register-import-specifiers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAmC1C,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,EACzC,WAAW,EAAE,yBAAyB,EAAE,QAUzC"}
@@ -1,4 +0,0 @@
1
- import * as t from '@babel/types';
2
- import type * as babel from '@babel/core';
3
- export declare function transformJSX(path: babel.NodePath<t.JSXElement | t.JSXFragment>): void;
4
- //# sourceMappingURL=transform-jsx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform-jsx.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/transform-jsx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAyP1C,wBAAgB,YAAY,CAC1B,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,GACjD,IAAI,CA0DN"}
@@ -1,40 +0,0 @@
1
- import type * as t from '@babel/types';
2
- import type { RuntimeType } from '../../shared/types';
3
- export interface NamedImportDefinition {
4
- kind: 'named';
5
- name: string;
6
- source: string;
7
- }
8
- export interface DefaultImportDefinition {
9
- kind: 'default';
10
- source: string;
11
- }
12
- export type ImportDefinition = DefaultImportDefinition | NamedImportDefinition;
13
- export interface Options {
14
- granular?: boolean;
15
- bundler?: RuntimeType;
16
- fixRender?: boolean;
17
- imports?: {
18
- createContext: ImportDefinition[];
19
- render: ImportDefinition[];
20
- };
21
- }
22
- export type ImportIdentifierType = 'render' | 'createContext';
23
- export interface ImportIdentifierSpecifier {
24
- type: ImportIdentifierType;
25
- definition: ImportDefinition;
26
- }
27
- export interface StateContext {
28
- granular: boolean;
29
- opts: Options;
30
- specifiers: ImportIdentifierSpecifier[];
31
- imports: Map<string, t.Identifier>;
32
- registrations: {
33
- identifiers: Map<t.Identifier, ImportIdentifierSpecifier>;
34
- namespaces: Map<t.Identifier, ImportIdentifierSpecifier[]>;
35
- };
36
- filename: string | undefined;
37
- bundler: RuntimeType;
38
- fixRender: boolean;
39
- }
40
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,gBAAgB,GAAG,uBAAuB,GAAG,qBAAqB,CAAC;AAE/E,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,aAAa,EAAE,gBAAgB,EAAE,CAAC;QAClC,MAAM,EAAE,gBAAgB,EAAE,CAAC;KAC5B,CAAC;CACH;AAED,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,eAAe,CAAC;AAE9D,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,yBAAyB,EAAE,CAAC;IACxC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,yBAAyB,CAAC,CAAC;QAC1D,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,yBAAyB,EAAE,CAAC,CAAC;KAC5D,CAAC;IACF,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB"}
@@ -1,11 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- import type * as t from '@babel/types';
3
- type TypeFilter<V extends t.Node> = (node: t.Node) => node is V;
4
- export declare function isPathValid<V extends t.Node>(path: unknown, key: TypeFilter<V>): path is babel.NodePath<V>;
5
- export type NestedExpression = t.ParenthesizedExpression | t.TypeCastExpression | t.TSAsExpression | t.TSSatisfiesExpression | t.TSNonNullExpression | t.TSInstantiationExpression | t.TSTypeAssertion;
6
- export declare function isNestedExpression(node: t.Node): node is NestedExpression;
7
- type TypeCheck<K> = K extends TypeFilter<infer U> ? U : never;
8
- export declare function unwrapNode<K extends (value: t.Node) => boolean>(node: t.Node, key: K): TypeCheck<K> | undefined;
9
- export declare function unwrapPath<V extends t.Node>(path: unknown, key: TypeFilter<V>): babel.NodePath<V> | undefined;
10
- export {};
11
- //# sourceMappingURL=unwrap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unwrap.d.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AAC,CAAC,GAAG,SAAS,CAQ/B"}
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param buffer - byte array or string
4
- * @param seed - optional seed (32-bit unsigned);
5
- */
6
- export declare function xxHash32(buffer: Uint8Array | string, seed?: number): number;
7
- //# sourceMappingURL=xxhash32.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxhash32.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/xxhash32.ts"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAqKtE"}
@@ -1,8 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- import type { Options } from './core/types';
3
- interface State extends babel.PluginPass {
4
- opts: Options;
5
- }
6
- export type { Options };
7
- export default function solidRefreshPlugin(): babel.PluginObj<State>;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/babel/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAI1C,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,cAAc,CAAC;AAqU1D,UAAU,KAAM,SAAQ,KAAK,CAAC,UAAU;IACtC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAgDnE"}
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param buffer - byte array or string
4
- * @param seed - optional seed (32-bit unsigned);
5
- */
6
- export declare function xxHash32(buffer: Uint8Array | string, seed?: number): number;
7
- //# sourceMappingURL=xxhash32.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxhash32.d.ts","sourceRoot":"","sources":["../../../src/babel/xxhash32.ts"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAqKtE"}
@@ -1,6 +0,0 @@
1
- import type { JSX, Accessor } from 'solid-js';
2
- export interface BaseComponent<P> {
3
- (props: P): JSX.Element;
4
- }
5
- export default function createProxy<C extends BaseComponent<P>, P>(source: Accessor<C>, name: string, location?: string): (props: P) => JSX.Element;
6
- //# sourceMappingURL=create-proxy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-proxy.d.ts","sourceRoot":"","sources":["../../../src/runtime/create-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAG9C,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,CAAC,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;CACzB;AAuBD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EACnB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,CAAC,OAAO,CAuC3B"}
@@ -1,60 +0,0 @@
1
- import type { Context, JSX } from 'solid-js';
2
- import type { ESMRuntimeType, StandardRuntimeType } from '../shared/types';
3
- interface ComponentOptions {
4
- location?: string;
5
- signature?: string;
6
- dependencies?: () => Record<string, any>;
7
- }
8
- export interface ComponentRegistrationData<P> extends ComponentOptions {
9
- id: string;
10
- component: (props: P) => JSX.Element;
11
- proxy: (props: P) => JSX.Element;
12
- update: (action: () => (props: P) => JSX.Element) => void;
13
- }
14
- export interface ContextRegistrationData<T> {
15
- id: string;
16
- context: Context<T>;
17
- }
18
- export interface Registry {
19
- components: Map<string, ComponentRegistrationData<any>>;
20
- contexts: Map<string, ContextRegistrationData<any>>;
21
- }
22
- export declare function $$registry(): Registry;
23
- export declare function $$component<P>(registry: Registry, id: string, component: (props: P) => JSX.Element, options?: ComponentOptions): (props: P) => JSX.Element;
24
- export declare function $$context<T>(registry: Registry, id: string, context: Context<T>): Context<T>;
25
- declare const SOLID_REFRESH = "solid-refresh";
26
- declare const SOLID_REFRESH_PREV = "solid-refresh-prev";
27
- type HotData = {
28
- [key in typeof SOLID_REFRESH | typeof SOLID_REFRESH_PREV]: Registry;
29
- };
30
- interface ESMHot {
31
- data: HotData;
32
- accept: (cb: (module?: unknown) => void) => void;
33
- invalidate: () => void;
34
- decline: () => void;
35
- }
36
- interface StandardHot {
37
- data: HotData;
38
- accept: (cb?: () => void) => void;
39
- dispose: (cb: (data: HotData) => void) => void;
40
- invalidate?: () => void;
41
- decline?: () => void;
42
- }
43
- type ESMDecline = [type: ESMRuntimeType, hot: ESMHot, inline?: boolean];
44
- type StandardDecline = [
45
- type: StandardRuntimeType,
46
- hot: StandardHot,
47
- inline?: boolean
48
- ];
49
- type Decline = ESMDecline | StandardDecline;
50
- export declare function $$decline(...[type, hot, inline]: Decline): void;
51
- type ESMRefresh = [type: ESMRuntimeType, hot: ESMHot, registry: Registry];
52
- type StandardRefresh = [
53
- type: StandardRuntimeType,
54
- hot: StandardHot,
55
- registry: Registry
56
- ];
57
- type Refresh = ESMRefresh | StandardRefresh;
58
- export declare function $$refresh(...[type, hot, registry]: Refresh): void;
59
- export {};
60
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAI3E,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,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mB;IACzB,GAAG,EAAE,WAAW;IAChB,QAAQ,EAAE,QAAQ;CACnB,CAAC;AAEF,KAAK,OAAO,GAAG,UAAU,GAAG,eAAe,CAAC;AAE5C,wBAAgB,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,OAAO,QAc1D"}
@@ -1,2 +0,0 @@
1
- export default function isListUpdated(a: Record<string, any> | undefined, b: Record<string, any> | undefined): boolean;
2
- //# sourceMappingURL=is-list-updated.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-list-updated.d.ts","sourceRoot":"","sources":["../../../src/runtime/is-list-updated.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,EAClC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GACjC,OAAO,CAWT"}
@@ -1,4 +0,0 @@
1
- export type ESMRuntimeType = 'esm' | 'vite';
2
- export type StandardRuntimeType = 'standard' | 'webpack5' | 'rspack-esm';
3
- export type RuntimeType = ESMRuntimeType | StandardRuntimeType;
4
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAG5C,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;AAEzE,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,mBAAmB,CAAC"}