react-justified-layout-ts 1.1.7 → 1.1.8

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.
@@ -8,3 +8,4 @@ export default meta;
8
8
  type Story = StoryObj<typeof meta>;
9
9
  export declare const Primary: Story;
10
10
  export declare const Secondary: Story;
11
+ export declare const Single: Story;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Secondary = exports.Primary = void 0;
6
+ exports.Single = exports.Secondary = exports.Primary = void 0;
7
7
  const ConfiguredJustifiedLayout_1 = require("./ConfiguredJustifiedLayout");
8
8
  const react_1 = __importDefault(require("react"));
9
9
  const meta = {
@@ -195,3 +195,15 @@ exports.Secondary = {
195
195
  children: displayedImages.slice(1, 5).map(value => react_1.default.createElement("img", { src: value.webp }))
196
196
  },
197
197
  };
198
+ exports.Single = {
199
+ args: {
200
+ children: [react_1.default.createElement("img", { src: 'https://alcorsiteartbucket.s3.amazonaws.com/webp/alcor_wow.webp' })],
201
+ width: 847,
202
+ showWidows: true,
203
+ targetRowHeight: undefined,
204
+ rowSpacing: undefined,
205
+ itemSpacing: undefined,
206
+ targetRowHeightTolerance: undefined,
207
+ layoutItems: [1],
208
+ }
209
+ };
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "react-justified-layout-ts",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "A component based off Flickr's justified layout that is compatible with Typescript",
5
5
  "main": "./dist/TSJustifiedLayout.js",
6
6
  "types": "./dist/TSJustifiedLayout.d.ts",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
+ "exports": {
11
+ ".": "./dist/index.js"
12
+ },
10
13
  "scripts": {
11
14
  "test": "echo \"Error: no test specified\" && exit 1",
12
15
  "typescript": "tsc",