@latticexyz/store 3.0.0-main-61895408d → 3.0.0-main-3440a86b5

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.
@@ -0,0 +1,2 @@
1
+ import{H as h,I as y,J as b,a as s,c as r,d as n,l as a,q as p,s as S}from"./chunk-ACZGBP2R.js";import{isFixedArrayAbiType as T,isStaticAbiType as f}from"@latticexyz/schema-type/internal";var j="Invalid schema. Expected an `id` field with a static ABI type or an explicit `key` option.";function d(e){return typeof e=="string"||n(e)&&Object.values(e).every(t=>typeof t=="string")}function u(e,t=a){if(typeof e=="string"){if(T(e)||r(t.types,e))return;throw new Error(`Invalid ABI type. \`${e}\` not found in scope.`)}if(typeof e=="object"&&e!==null){if(p(e,t)){if(r(e,"id")&&f(t.types[e.id]))return;throw new Error("Invalid schema. Expected an `id` field with a static ABI type or an explicit `key` option.")}throw new Error("Invalid schema. Are you using invalid types or missing types in your scope?")}throw new Error("Invalid table shorthand.")}function l(e,t=a){return p(e,t)?{schema:e,key:["id"]}:{schema:{id:"bytes32",value:e},key:["id"]}}function N(e,t=a){return u(e,t),l(e,t)}function x(e,t){if(n(e))for(let o of Object.keys(e))d(s(e,o))?u(s(e,o),t):S(s(e,o),t)}import{mapObject as v}from"@latticexyz/common/utils";function m(e){let t=h(e);r(e,"tables")&&n(e.tables)&&x(e.tables,t)}function k(e){let t=h(e),o=e.tables?v(e.tables,i=>d(i)?l(i,t):i):null,c={...e,...o?{tables:o}:null};return y(c),b(c)}function z(e){return m(e),k(e)}export{j as a,d as b,u as c,l as d,N as e,x as f,m as g,k as h,z as i};
2
+ //# sourceMappingURL=chunk-AHN74BAP.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../ts/config/v2/tableShorthand.ts","../ts/config/v2/storeWithShorthands.ts"],"sourcesContent":["import { ErrorMessage, conform } from \"@arktype/util\";\nimport { FixedArrayAbiType, isFixedArrayAbiType, isStaticAbiType } from \"@latticexyz/schema-type/internal\";\nimport { get, hasOwnKey, isObject } from \"./generics\";\nimport { isSchemaInput } from \"./schema\";\nimport { AbiTypeScope, Scope, getStaticAbiTypeKeys } from \"./scope\";\nimport { SchemaInput, ScopedSchemaInput, TablesWithShorthandsInput } from \"./input\";\nimport { TableShorthandInput } from \"./input\";\nimport { ValidateTableOptions, validateTable } from \"./table\";\n\nexport const NoStaticKeyFieldError =\n \"Invalid schema. Expected an `id` field with a static ABI type or an explicit `key` option.\";\n\nexport type NoStaticKeyFieldError = ErrorMessage<typeof NoStaticKeyFieldError>;\n\nexport function isTableShorthandInput(shorthand: unknown): shorthand is TableShorthandInput {\n return (\n typeof shorthand === \"string\" ||\n (isObject(shorthand) && Object.values(shorthand).every((value) => typeof value === \"string\"))\n );\n}\n\nexport type validateTableWithShorthand<\n table,\n scope extends Scope = AbiTypeScope,\n options extends ValidateTableOptions = { inStoreContext: boolean },\n> = table extends TableShorthandInput ? validateTableShorthand<table, scope> : validateTable<table, scope, options>;\n\n// We don't use `conform` here because the restrictions we're imposing here are not native to typescript\nexport type validateTableShorthand<input, scope extends Scope = AbiTypeScope> = input extends SchemaInput\n ? // If a shorthand schema is provided, require it to have a static `id` field\n \"id\" extends getStaticAbiTypeKeys<input, scope>\n ? // Require all values to be valid types in this scope\n conform<input, ScopedSchemaInput<scope>>\n : NoStaticKeyFieldError\n : // If a fixed array type is provided, accept it\n input extends FixedArrayAbiType\n ? input\n : // If a valid type from the scope is provided, accept it\n input extends keyof scope[\"types\"]\n ? input\n : // If the input is not a valid shorthand, return the expected type\n input extends string\n ? keyof scope[\"types\"]\n : ScopedSchemaInput<scope>;\n\nexport function validateTableShorthand<scope extends Scope = AbiTypeScope>(\n shorthand: unknown,\n scope: scope = AbiTypeScope as never,\n): asserts shorthand is TableShorthandInput {\n if (typeof shorthand === \"string\") {\n if (isFixedArrayAbiType(shorthand) || hasOwnKey(scope.types, shorthand)) {\n return;\n }\n throw new Error(`Invalid ABI type. \\`${shorthand}\\` not found in scope.`);\n }\n if (typeof shorthand === \"object\" && shorthand !== null) {\n if (isSchemaInput(shorthand, scope)) {\n if (hasOwnKey(shorthand, \"id\") && isStaticAbiType(scope.types[shorthand.id as keyof typeof scope.types])) {\n return;\n }\n throw new Error(`Invalid schema. Expected an \\`id\\` field with a static ABI type or an explicit \\`key\\` option.`);\n }\n throw new Error(`Invalid schema. Are you using invalid types or missing types in your scope?`);\n }\n throw new Error(`Invalid table shorthand.`);\n}\n\nexport type resolveTableShorthand<shorthand, scope extends Scope = AbiTypeScope> = shorthand extends FixedArrayAbiType\n ? { schema: { id: \"bytes32\"; value: shorthand }; key: [\"id\"] }\n : shorthand extends keyof scope[\"types\"]\n ? { schema: { id: \"bytes32\"; value: shorthand }; key: [\"id\"] }\n : shorthand extends SchemaInput\n ? \"id\" extends getStaticAbiTypeKeys<shorthand, scope>\n ? // If the shorthand includes a static field called `id`, use it as `key`\n { schema: shorthand; key: [\"id\"] }\n : never\n : never;\n\nexport function resolveTableShorthand<shorthand extends TableShorthandInput, scope extends Scope = AbiTypeScope>(\n shorthand: shorthand,\n scope: scope = AbiTypeScope as never,\n): resolveTableShorthand<shorthand, scope> {\n if (isSchemaInput(shorthand, scope)) {\n return {\n schema: shorthand,\n key: [\"id\"],\n } as never;\n }\n\n return {\n schema: {\n id: \"bytes32\",\n value: shorthand,\n },\n key: [\"id\"],\n } as never;\n}\n\nexport function defineTableShorthand<shorthand, scope extends Scope = AbiTypeScope>(\n shorthand: validateTableShorthand<shorthand, scope>,\n scope: scope = AbiTypeScope as never,\n): resolveTableShorthand<shorthand, scope> {\n validateTableShorthand(shorthand, scope);\n return resolveTableShorthand(shorthand, scope) as never;\n}\n\n/**\n * If a shorthand is provided, it is resolved to a full config.\n * If a full config is provided, it is passed through.\n */\nexport type resolveTableWithShorthand<table, scope extends Scope = AbiTypeScope> = table extends TableShorthandInput\n ? resolveTableShorthand<table, scope>\n : table;\n\nexport type resolveTablesWithShorthands<input, scope extends AbiTypeScope = AbiTypeScope> = {\n [label in keyof input]: resolveTableWithShorthand<input[label], scope>;\n};\n\nexport type validateTablesWithShorthands<tables, scope extends Scope = AbiTypeScope> = {\n [label in keyof tables]: validateTableWithShorthand<tables[label], scope, { inStoreContext: true }>;\n};\n\nexport function validateTablesWithShorthands<scope extends Scope = AbiTypeScope>(\n tables: unknown,\n scope: scope,\n): asserts tables is TablesWithShorthandsInput {\n if (isObject(tables)) {\n for (const label of Object.keys(tables)) {\n if (isTableShorthandInput(get(tables, label))) {\n validateTableShorthand(get(tables, label), scope);\n } else {\n validateTable(get(tables, label), scope);\n }\n }\n }\n}\n","import { mapObject } from \"@latticexyz/common/utils\";\nimport { resolveStore, validateStore, extendedScope } from \"./store\";\nimport {\n isTableShorthandInput,\n resolveTableShorthand,\n resolveTablesWithShorthands,\n validateTablesWithShorthands,\n} from \"./tableShorthand\";\nimport { hasOwnKey, isObject } from \"./generics\";\nimport { StoreWithShorthandsInput } from \"./input\";\n\nexport type validateStoreWithShorthands<store> = {\n [key in keyof store]: key extends \"tables\"\n ? validateTablesWithShorthands<store[key], extendedScope<store>>\n : validateStore<store>[key];\n};\n\nexport function validateStoreWithShorthands(store: unknown): asserts store is StoreWithShorthandsInput {\n const scope = extendedScope(store);\n if (hasOwnKey(store, \"tables\") && isObject(store.tables)) {\n validateTablesWithShorthands(store.tables, scope);\n }\n}\n\nexport type resolveStoreWithShorthands<store> = resolveStore<{\n [key in keyof store]: key extends \"tables\"\n ? resolveTablesWithShorthands<store[key], extendedScope<store>>\n : store[key];\n}>;\n\nexport function resolveStoreWithShorthands<const store extends StoreWithShorthandsInput>(\n store: store,\n): resolveStoreWithShorthands<store> {\n const scope = extendedScope(store);\n const fullConfig = {\n ...store,\n tables: mapObject(store.tables, (table) => {\n return isTableShorthandInput(table) ? resolveTableShorthand(table, scope) : table;\n }),\n };\n\n validateStore(fullConfig);\n return resolveStore(fullConfig) as never;\n}\n\nexport function defineStoreWithShorthands<const store>(\n store: validateStoreWithShorthands<store>,\n): resolveStoreWithShorthands<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V,CAAK,EAEhDY,EAAcD,EAAIF,EAAQC,CAAK,EAAGV,CAAK,CAI/C,CCvIA,OAAS,aAAAa,MAAiB,2BAiBnB,SAASC,EAA4BC,EAA2D,CACrG,IAAMC,EAAQC,EAAcF,CAAK,EAC7BG,EAAUH,EAAO,QAAQ,GAAKI,EAASJ,EAAM,MAAM,GACrDK,EAA6BL,EAAM,OAAQC,CAAK,CAEpD,CAQO,SAASK,EACdN,EACmC,CACnC,IAAMC,EAAQC,EAAcF,CAAK,EAC3BO,EAAa,CACjB,GAAGP,EACH,OAAQQ,EAAUR,EAAM,OAASS,GACxBC,EAAsBD,CAAK,EAAIE,EAAsBF,EAAOR,CAAK,EAAIQ,CAC7E,CACH,EAEA,OAAAG,EAAcL,CAAU,EACjBM,EAAaN,CAAU,CAChC,CAEO,SAASO,EACdd,EACmC,CACnC,OAAAD,EAA4BC,CAAK,EAC1BM,EAA2BN,CAAK,CACzC","names":["isFixedArrayAbiType","isStaticAbiType","NoStaticKeyFieldError","isTableShorthandInput","shorthand","isObject","value","validateTableShorthand","scope","AbiTypeScope","isFixedArrayAbiType","hasOwnKey","isSchemaInput","isStaticAbiType","resolveTableShorthand","defineTableShorthand","validateTablesWithShorthands","tables","label","get","validateTable","mapObject","validateStoreWithShorthands","store","scope","extendedScope","hasOwnKey","isObject","validateTablesWithShorthands","resolveStoreWithShorthands","fullConfig","mapObject","table","isTableShorthandInput","resolveTableShorthand","validateStore","resolveStore","defineStoreWithShorthands"]}
1
+ {"version":3,"sources":["../ts/config/v2/tableShorthand.ts","../ts/config/v2/storeWithShorthands.ts"],"sourcesContent":["import { ErrorMessage, conform } from \"@arktype/util\";\nimport { FixedArrayAbiType, isFixedArrayAbiType, isStaticAbiType } from \"@latticexyz/schema-type/internal\";\nimport { get, hasOwnKey, isObject } from \"./generics\";\nimport { isSchemaInput } from \"./schema\";\nimport { AbiTypeScope, Scope, getStaticAbiTypeKeys } from \"./scope\";\nimport { SchemaInput, ScopedSchemaInput, TablesWithShorthandsInput } from \"./input\";\nimport { TableShorthandInput } from \"./input\";\nimport { ValidateTableOptions, validateTable } from \"./table\";\n\nexport const NoStaticKeyFieldError =\n \"Invalid schema. Expected an `id` field with a static ABI type or an explicit `key` option.\";\n\nexport type NoStaticKeyFieldError = ErrorMessage<typeof NoStaticKeyFieldError>;\n\nexport function isTableShorthandInput(shorthand: unknown): shorthand is TableShorthandInput {\n return (\n typeof shorthand === \"string\" ||\n (isObject(shorthand) && Object.values(shorthand).every((value) => typeof value === \"string\"))\n );\n}\n\nexport type validateTableWithShorthand<\n table,\n scope extends Scope = AbiTypeScope,\n options extends ValidateTableOptions = { inStoreContext: boolean },\n> = table extends TableShorthandInput ? validateTableShorthand<table, scope> : validateTable<table, scope, options>;\n\n// We don't use `conform` here because the restrictions we're imposing here are not native to typescript\nexport type validateTableShorthand<input, scope extends Scope = AbiTypeScope> = input extends SchemaInput\n ? // If a shorthand schema is provided, require it to have a static `id` field\n \"id\" extends getStaticAbiTypeKeys<input, scope>\n ? // Require all values to be valid types in this scope\n conform<input, ScopedSchemaInput<scope>>\n : NoStaticKeyFieldError\n : // If a fixed array type is provided, accept it\n input extends FixedArrayAbiType\n ? input\n : // If a valid type from the scope is provided, accept it\n input extends keyof scope[\"types\"]\n ? input\n : // If the input is not a valid shorthand, return the expected type\n input extends string\n ? keyof scope[\"types\"]\n : ScopedSchemaInput<scope>;\n\nexport function validateTableShorthand<scope extends Scope = AbiTypeScope>(\n shorthand: unknown,\n scope: scope = AbiTypeScope as never,\n): asserts shorthand is TableShorthandInput {\n if (typeof shorthand === \"string\") {\n if (isFixedArrayAbiType(shorthand) || hasOwnKey(scope.types, shorthand)) {\n return;\n }\n throw new Error(`Invalid ABI type. \\`${shorthand}\\` not found in scope.`);\n }\n if (typeof shorthand === \"object\" && shorthand !== null) {\n if (isSchemaInput(shorthand, scope)) {\n if (hasOwnKey(shorthand, \"id\") && isStaticAbiType(scope.types[shorthand.id as keyof typeof scope.types])) {\n return;\n }\n throw new Error(`Invalid schema. Expected an \\`id\\` field with a static ABI type or an explicit \\`key\\` option.`);\n }\n throw new Error(`Invalid schema. Are you using invalid types or missing types in your scope?`);\n }\n throw new Error(`Invalid table shorthand.`);\n}\n\nexport type resolveTableShorthand<shorthand, scope extends Scope = AbiTypeScope> = shorthand extends FixedArrayAbiType\n ? { schema: { id: \"bytes32\"; value: shorthand }; key: [\"id\"] }\n : shorthand extends keyof scope[\"types\"]\n ? { schema: { id: \"bytes32\"; value: shorthand }; key: [\"id\"] }\n : shorthand extends SchemaInput\n ? \"id\" extends getStaticAbiTypeKeys<shorthand, scope>\n ? // If the shorthand includes a static field called `id`, use it as `key`\n { schema: shorthand; key: [\"id\"] }\n : never\n : never;\n\nexport function resolveTableShorthand<shorthand extends TableShorthandInput, scope extends Scope = AbiTypeScope>(\n shorthand: shorthand,\n scope: scope = AbiTypeScope as never,\n): resolveTableShorthand<shorthand, scope> {\n if (isSchemaInput(shorthand, scope)) {\n return {\n schema: shorthand,\n key: [\"id\"],\n } as never;\n }\n\n return {\n schema: {\n id: \"bytes32\",\n value: shorthand,\n },\n key: [\"id\"],\n } as never;\n}\n\nexport function defineTableShorthand<shorthand, scope extends Scope = AbiTypeScope>(\n shorthand: validateTableShorthand<shorthand, scope>,\n scope: scope = AbiTypeScope as never,\n): resolveTableShorthand<shorthand, scope> {\n validateTableShorthand(shorthand, scope);\n return resolveTableShorthand(shorthand, scope) as never;\n}\n\n/**\n * If a shorthand is provided, it is resolved to a full config.\n * If a full config is provided, it is passed through.\n */\nexport type resolveTableWithShorthand<table, scope extends Scope = AbiTypeScope> = table extends TableShorthandInput\n ? resolveTableShorthand<table, scope>\n : table;\n\nexport type resolveTablesWithShorthands<input, scope extends AbiTypeScope = AbiTypeScope> = {\n [label in keyof input]: resolveTableWithShorthand<input[label], scope>;\n};\n\nexport type validateTablesWithShorthands<tables, scope extends Scope = AbiTypeScope> = {\n [label in keyof tables]: validateTableWithShorthand<tables[label], scope, { inStoreContext: true }>;\n};\n\nexport function validateTablesWithShorthands<scope extends Scope = AbiTypeScope>(\n tables: unknown,\n scope: scope,\n): asserts tables is TablesWithShorthandsInput {\n if (isObject(tables)) {\n for (const label of Object.keys(tables)) {\n if (isTableShorthandInput(get(tables, label))) {\n validateTableShorthand(get(tables, label), scope);\n } else {\n validateTable(get(tables, label), scope);\n }\n }\n }\n}\n","import { mapObject } from \"@latticexyz/common/utils\";\nimport { resolveStore, validateStore, extendedScope } from \"./store\";\nimport {\n isTableShorthandInput,\n resolveTableShorthand,\n resolveTablesWithShorthands,\n validateTablesWithShorthands,\n} from \"./tableShorthand\";\nimport { hasOwnKey, isObject } from \"./generics\";\nimport { StoreWithShorthandsInput } from \"./input\";\n\nexport type validateStoreWithShorthands<store> = {\n [key in keyof store]: key extends \"tables\"\n ? validateTablesWithShorthands<store[key], extendedScope<store>>\n : validateStore<store>[key];\n};\n\nexport function validateStoreWithShorthands(store: unknown): asserts store is StoreWithShorthandsInput {\n const scope = extendedScope(store);\n if (hasOwnKey(store, \"tables\") && isObject(store.tables)) {\n validateTablesWithShorthands(store.tables, scope);\n }\n}\n\nexport type resolveStoreWithShorthands<store> = resolveStore<{\n [key in keyof store]: key extends \"tables\"\n ? resolveTablesWithShorthands<store[key], extendedScope<store>>\n : store[key];\n}>;\n\nexport function resolveStoreWithShorthands<const store extends StoreWithShorthandsInput>(\n store: store,\n): resolveStoreWithShorthands<store> {\n const scope = extendedScope(store);\n const tables = store.tables\n ? mapObject(store.tables, (table) => {\n return isTableShorthandInput(table) ? resolveTableShorthand(table, scope) : table;\n })\n : null;\n\n const fullConfig = {\n ...store,\n ...(tables ? { tables } : null),\n };\n\n validateStore(fullConfig);\n return resolveStore(fullConfig) as never;\n}\n\nexport function defineStoreWithShorthands<const store>(\n store: validateStoreWithShorthands<store>,\n): resolveStoreWithShorthands<store> {\n validateStoreWithShorthands(store);\n return resolveStoreWithShorthands(store) as never;\n}\n"],"mappings":"gGACA,OAA4B,uBAAAA,EAAqB,mBAAAC,MA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AASC,EAA4BC,EAA2D,CACrG,IAAMC,EAAQC,EAAcF,CAAK,EAC7BG,EAAUH,EAAO,QAAQ,GAAKI,EAASJ,EAAM,MAAM,GACrDK,EAA6BL,EAAM,OAAQC,CAAK,CAEpD,CAQO,SAASK,EACdN,EACmC,CACnC,IAAMC,EAAQC,EAAcF,CAAK,EAC3BO,EAASP,EAAM,OACjBQ,EAAUR,EAAM,OAASS,GAChBC,EAAsBD,CAAK,EAAIE,EAAsBF,EAAOR,CAAK,EAAIQ,CAC7E,EACD,KAEEG,EAAa,CACjB,GAAGZ,EACH,GAAIO,EAAS,CAAE,OAAAA,CAAO,EAAI,IAC5B,EAEA,OAAAM,EAAcD,CAAU,EACjBE,EAAaF,CAAU,CAChC,CAEO,SAASG,EACdf,EACmC,CACnC,OAAAD,EAA4BC,CAAK,EAC1BM,EAA2BN,CAAK,CACzC","names":["isFixedArrayAbiType","isStaticAbiType","NoStaticKeyFieldError","isTableShorthandInput","shorthand","isObject","value","validateTableShorthand","scope","AbiTypeScope","isFixedArrayAbiType","hasOwnKey","isSchemaInput","isStaticAbiType","resolveTableShorthand","defineTableShorthand","validateTablesWithShorthands","tables","label","get","validateTable","mapObject","validateStoreWithShorthands","store","scope","extendedScope","hasOwnKey","isObject","validateTablesWithShorthands","resolveStoreWithShorthands","tables","mapObject","table","isTableShorthandInput","resolveTableShorthand","fullConfig","validateStore","resolveStore","defineStoreWithShorthands"]}
package/dist/codegen.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ImportDatum, StaticResourceData, RenderKeyTuple, RenderField, RenderStaticField, RenderDynamicField, RenderType, SolidityUserDefinedType } from '@latticexyz/common/codegen';
2
- import { S as Store } from './output-5b3b98d5.js';
2
+ import { S as Store } from './output-12804d29.js';
3
3
  import { SchemaType } from '@latticexyz/schema-type/deprecated';
4
4
  import '@arktype/util';
5
5
  import '@latticexyz/config';