Socket
Socket
Sign inDemoInstall

@homeflow/next

Package Overview
Dependencies
Maintainers
0
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@homeflow/next - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

1

dist/api/models/article.types.d.ts

@@ -16,2 +16,3 @@ export type DbapiArticleElement = {

stored_to_s3_at: string;
md5: string | null;
version: number;

@@ -18,0 +19,0 @@ image_updated_at: string | null;

9

dist/api/models/image.js

@@ -95,8 +95,9 @@ "use strict";

get url() {
var _a, _b, _c, _d;
var _e;
return ((_a = (_e = this.memo).url) !== null && _a !== void 0 ? _a : (_e.url = (_d = (0, images_1.cmsImage)((_b = this.dbapiData) === null || _b === void 0 ? void 0 : _b.image, {
var _a, _b, _c, _d, _e;
var _f;
return ((_a = (_f = this.memo).url) !== null && _a !== void 0 ? _a : (_f.url = (_e = (0, images_1.cmsImage)((_b = this.dbapiData) === null || _b === void 0 ? void 0 : _b.image, {
imageId: (_c = this.dbapiData) === null || _c === void 0 ? void 0 : _c.id,
isDbapiImage: true,
})) !== null && _d !== void 0 ? _d : null));
md5: (_d = this.dbapiData) === null || _d === void 0 ? void 0 : _d.md5,
})) !== null && _e !== void 0 ? _e : null));
}

@@ -103,0 +104,0 @@ get alt() {

@@ -16,2 +16,3 @@ export type DBAPIMedia = {

stored_to_s3_at: string;
md5: string | null;
version: number;

@@ -18,0 +19,0 @@ image_updated_at: string | null;

@@ -1,3 +0,2 @@

/// <reference types="react/experimental" />
import React from 'react';
import { PropsWithChildren } from 'react';
/**

@@ -8,4 +7,3 @@ * This wrapper provides a fix to hydration errors caused by client components

export default function ClientSideOnly({ children, fallback, }: {
children: React.ReactNode | JSX.Element;
fallback?: React.ReactNode | JSX.Element;
}): string | number | boolean | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | JSX.Element | null | undefined;
fallback?: JSX.Element;
} & PropsWithChildren): JSX.Element | null;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = require("react");
const react_1 = __importStar(require("react"));
/**

@@ -16,5 +39,8 @@ * This wrapper provides a fix to hydration errors caused by client components

}
return children;
// We have to wrap children in a fragment here to return a JSX Element as TS won't let us return
// a ReactNode on its own. But ESLint doesn't like 'useless' fragments so we have to disable.
// eslint-disable-next-line react/jsx-no-useless-fragment
return react_1.default.createElement(react_1.default.Fragment, null, children);
}
exports.default = ClientSideOnly;
//# sourceMappingURL=client-side-only.component.js.map

@@ -21,4 +21,4 @@ import { ObjectId } from 'mongodb';

} & {
agencyId?: number | null | undefined;
id?: string | null | undefined;
agencyId?: number | null | undefined;
name?: string | null | undefined;

@@ -32,4 +32,4 @@ component?: string | null | undefined;

} & {
agencyId?: number | null | undefined;
id?: string | null | undefined;
agencyId?: number | null | undefined;
name?: string | null | undefined;

@@ -43,4 +43,4 @@ component?: string | null | undefined;

} & {
agencyId?: number | null | undefined;
id?: string | null | undefined;
agencyId?: number | null | undefined;
name?: string | null | undefined;

@@ -47,0 +47,0 @@ component?: string | null | undefined;

export type PriceOption = {
value: string | number;
value: number;
label: string;

@@ -8,3 +8,3 @@ };

export type BedroomOption = {
value: number | string;
value: number;
label: number | string;

@@ -11,0 +11,0 @@ };

@@ -182,3 +182,3 @@ "use strict";

return priceOptionsByChannel;
return priceOptionsByChannel.filter(({ value: optionValue }) => optionValue === '' || optionValue < search.maxPrice);
return priceOptionsByChannel.filter(({ value: optionValue }) => optionValue < search.maxPrice);
}, [search.maxPrice, search.channel]);

@@ -188,3 +188,3 @@ const maxPriceOptions = (0, react_1.useMemo)(() => {

return priceOptionsByChannel;
return priceOptionsByChannel.filter(({ value: optionValue }) => optionValue === '' || optionValue > search.minPrice);
return priceOptionsByChannel.filter(({ value: optionValue }) => optionValue > search.minPrice);
}, [search.minPrice, search.channel]);

@@ -194,3 +194,3 @@ const minBedroomOptions = (0, react_1.useMemo)(() => {

return constants_1.defaultBedroomOptions;
return constants_1.defaultBedroomOptions.filter(({ value: optionValue }) => optionValue === '' || optionValue < search.maxBedrooms);
return constants_1.defaultBedroomOptions.filter(({ value: optionValue }) => optionValue < search.maxBedrooms);
}, [search.maxBedrooms]);

@@ -200,3 +200,3 @@ const maxBedroomOptions = (0, react_1.useMemo)(() => {

return constants_1.defaultBedroomOptions;
return constants_1.defaultBedroomOptions.filter(({ value: optionValue }) => optionValue === '' || optionValue > search.minBedrooms);
return constants_1.defaultBedroomOptions.filter(({ value: optionValue }) => optionValue > search.minBedrooms);
}, [search.minBedrooms]);

@@ -240,3 +240,3 @@ function setChannel(channel) {

// remove any property type tags from search.tags
let newTags = search.tags.filter((tag) => !propertyTypeOptions.map((t) => t.value).includes(tag));
const newTags = search.tags.filter((tag) => !propertyTypeOptions.map((t) => t.value).includes(tag));
// add the selected type to tags

@@ -243,0 +243,0 @@ newTags.push(propertyType);

@@ -13,2 +13,3 @@ /**

isDbapiImage?: boolean;
md5?: string | null;
}): string;

@@ -54,2 +54,5 @@ "use strict";

}
if (options === null || options === void 0 ? void 0 : options.md5) {
return `files/site_asset/image/${imageId.substring(0, imageId.length - 4)}/${imageId.substring(imageId.length - 4)}/${options.md5}/`;
}
return `files/site_asset/image/${imageId.substring(0, imageId.length - 4)}/${imageId.substring(imageId.length - 4)}/`;

@@ -56,0 +59,0 @@ }

@@ -1,2 +0,2 @@

import { FunctionComponent } from 'react';
/// <reference types="react" />
import { StaticImageData } from 'next/image';

@@ -24,5 +24,5 @@ import { MixedSection, Section, SectionElement } from '../state';

};
export type ISectionElementWrapper = FunctionComponent<SectionElementProps & {
export type ISectionElementWrapper = (props: SectionElementProps & {
children: React.ReactNode;
}>;
}) => JSX.Element;
export declare enum ConfigSettingType {

@@ -82,3 +82,3 @@ Boolean = "boolean",

}
export type SectionSchema<T = MixedSection, C = FunctionComponent<SectionWrapperProps<T>>> = {
export type SectionSchema<T = MixedSection, C = (props: SectionWrapperProps<T>) => JSX.Element> = {
icon: () => React.ReactNode;

@@ -85,0 +85,0 @@ clientComponent: C;

@@ -0,1 +1,2 @@

/// <reference types="react" />
import { ConfigState } from './config.types';

@@ -127,6 +128,6 @@ import { MixedSection, PageConfig, Section } from './page-config.types';

config: ConfigState;
}) => import("./config.types").SelectedItem | import("./global-config.types").FooterItem | null;
}) => import("./global-config.types").FooterItem | import("./config.types").SelectedItem | null;
export declare const selectSelectedSectionElement: (state: {
config: ConfigState;
}) => import("./config.types").SelectedElement | import("./global-config.types").FooterElement | null;
}) => import("./global-config.types").FooterElement | import("./config.types").SelectedElement | null;
export declare const selectSectionConfigField: (areaName: string, sectionId: string, field: string) => (state: {

@@ -153,3 +154,3 @@ config: ConfigState;

}) => {
[key: string]: import("../../sections").SectionSchema<MixedSection, import("react").FunctionComponent<import("../../sections").SectionWrapperProps<MixedSection>>>;
[key: string]: import("../../sections").SectionSchema<MixedSection, (props: import("../../sections").SectionWrapperProps<MixedSection>) => JSX.Element>;
};

@@ -156,0 +157,0 @@ export declare const selectFooterSections: (state: {

{
"name": "@homeflow/next",
"version": "1.0.14",
"version": "1.0.15",
"main": "./dist/main.js",

@@ -98,3 +98,3 @@ "types": "./dist/index.d.ts",

"typedoc": "^0.24.7",
"typescript": "^4.9.5"
"typescript": "5.5.4"
},

@@ -101,0 +101,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc