@kekkle/shared 2.0.0-next.1 → 2.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.
@@ -1,3 +1,3 @@
1
1
  import { CharacterState } from "../types/fields/wordle-game-state/wordle-game-state.js";
2
- export declare function createCharacterState(character: string, isCorrect: boolean, isLocked?: boolean): CharacterState;
2
+ export declare function createCharacterState(character: string, isCorrect: boolean, isLocked?: boolean, isPresent?: boolean): CharacterState;
3
3
  //# sourceMappingURL=character-state.fixtures.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"character-state.fixtures.d.ts","sourceRoot":"","sources":["../../../src/fixtures/character-state.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAEvF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,EAClB,QAAQ,GAAE,OAAe,GACxB,cAAc,CAEhB"}
1
+ {"version":3,"file":"character-state.fixtures.d.ts","sourceRoot":"","sources":["../../../src/fixtures/character-state.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAEvF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,EAClB,QAAQ,GAAE,OAAe,EACzB,SAAS,GAAE,OAAe,GACzB,cAAc,CAEhB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createCharacterState = createCharacterState;
4
- function createCharacterState(character, isCorrect, isLocked = false) {
5
- return { character, isCorrect, isLocked };
4
+ function createCharacterState(character, isCorrect, isLocked = false, isPresent = false) {
5
+ return { character, isCorrect, isLocked, isPresent };
6
6
  }
@@ -2,6 +2,7 @@ export type CharacterState = {
2
2
  character: string;
3
3
  isCorrect: boolean;
4
4
  isLocked: boolean;
5
+ isPresent?: boolean;
5
6
  };
6
7
  export type WordleRow = CharacterState[];
7
8
  export type WordleGameState = WordleRow[];
@@ -1 +1 @@
1
- {"version":3,"file":"wordle-game-state.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/wordle-game-state/wordle-game-state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,cAAc,EAAE,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,SAAS,EAAE,CAAC;AAE1C,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"wordle-game-state.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/wordle-game-state/wordle-game-state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,cAAc,EAAE,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,SAAS,EAAE,CAAC;AAE1C,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { CharacterState } from "../types/fields/wordle-game-state/wordle-game-state.js";
2
- export declare function createCharacterState(character: string, isCorrect: boolean, isLocked?: boolean): CharacterState;
2
+ export declare function createCharacterState(character: string, isCorrect: boolean, isLocked?: boolean, isPresent?: boolean): CharacterState;
3
3
  //# sourceMappingURL=character-state.fixtures.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"character-state.fixtures.d.ts","sourceRoot":"","sources":["../../../src/fixtures/character-state.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAEvF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,EAClB,QAAQ,GAAE,OAAe,GACxB,cAAc,CAEhB"}
1
+ {"version":3,"file":"character-state.fixtures.d.ts","sourceRoot":"","sources":["../../../src/fixtures/character-state.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAEvF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,EAClB,QAAQ,GAAE,OAAe,EACzB,SAAS,GAAE,OAAe,GACzB,cAAc,CAEhB"}
@@ -1,3 +1,3 @@
1
- export function createCharacterState(character, isCorrect, isLocked = false) {
2
- return { character, isCorrect, isLocked };
1
+ export function createCharacterState(character, isCorrect, isLocked = false, isPresent = false) {
2
+ return { character, isCorrect, isLocked, isPresent };
3
3
  }
@@ -2,6 +2,7 @@ export type CharacterState = {
2
2
  character: string;
3
3
  isCorrect: boolean;
4
4
  isLocked: boolean;
5
+ isPresent?: boolean;
5
6
  };
6
7
  export type WordleRow = CharacterState[];
7
8
  export type WordleGameState = WordleRow[];
@@ -1 +1 @@
1
- {"version":3,"file":"wordle-game-state.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/wordle-game-state/wordle-game-state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,cAAc,EAAE,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,SAAS,EAAE,CAAC;AAE1C,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"wordle-game-state.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/wordle-game-state/wordle-game-state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,cAAc,EAAE,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,SAAS,EAAE,CAAC;AAE1C,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { CharacterState } from "../types/fields/wordle-game-state/wordle-game-state.js";
2
- export declare function createCharacterState(character: string, isCorrect: boolean, isLocked?: boolean): CharacterState;
2
+ export declare function createCharacterState(character: string, isCorrect: boolean, isLocked?: boolean, isPresent?: boolean): CharacterState;
3
3
  //# sourceMappingURL=character-state.fixtures.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"character-state.fixtures.d.ts","sourceRoot":"","sources":["../../../src/fixtures/character-state.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAEvF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,EAClB,QAAQ,GAAE,OAAe,GACxB,cAAc,CAEhB"}
1
+ {"version":3,"file":"character-state.fixtures.d.ts","sourceRoot":"","sources":["../../../src/fixtures/character-state.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAEvF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,OAAO,EAClB,QAAQ,GAAE,OAAe,EACzB,SAAS,GAAE,OAAe,GACzB,cAAc,CAEhB"}
@@ -1,3 +1,3 @@
1
- export function createCharacterState(character, isCorrect, isLocked = false) {
2
- return { character, isCorrect, isLocked };
1
+ export function createCharacterState(character, isCorrect, isLocked = false, isPresent = false) {
2
+ return { character, isCorrect, isLocked, isPresent };
3
3
  }
@@ -2,6 +2,7 @@ export type CharacterState = {
2
2
  character: string;
3
3
  isCorrect: boolean;
4
4
  isLocked: boolean;
5
+ isPresent?: boolean;
5
6
  };
6
7
  export type WordleRow = CharacterState[];
7
8
  export type WordleGameState = WordleRow[];
@@ -1 +1 @@
1
- {"version":3,"file":"wordle-game-state.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/wordle-game-state/wordle-game-state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,cAAc,EAAE,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,SAAS,EAAE,CAAC;AAE1C,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"wordle-game-state.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/wordle-game-state/wordle-game-state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,cAAc,EAAE,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,SAAS,EAAE,CAAC;AAE1C,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC"}