New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-datocms

Package Overview
Dependencies
Maintainers
6
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-datocms - npm Package Compare versions

Comparing version 4.0.7 to 4.0.8

6

dist/cjs/Image/__tests__/index.test.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -15,3 +15,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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) {

@@ -18,0 +22,0 @@ if (k2 === undefined) k2 = k;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -15,3 +15,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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) {

@@ -18,0 +22,0 @@ if (k2 === undefined) k2 = k;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

2

dist/cjs/useQuerySubscription/index.js

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

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -31,0 +31,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

@@ -15,3 +15,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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) {

@@ -48,3 +52,3 @@ if (k2 === undefined) k2 = k;

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -51,0 +55,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

import React, { CSSProperties } from 'react';
declare type Maybe<T> = T | null;
export declare type ResponsiveImageType = {
type Maybe<T> = T | null;
export type ResponsiveImageType = {
/** A base64-encoded thumbnail to offer during image loading */

@@ -27,3 +27,3 @@ base64?: Maybe<string>;

};
export declare type ImagePropTypes = {
export type ImagePropTypes = {
/** The actual response you get from a DatoCMS `responsiveImage` GraphQL query */

@@ -30,0 +30,0 @@ data: ResponsiveImageType;

@@ -43,4 +43,4 @@ export interface TitleMetaLinkTag {

}
export declare type SeoTag = SeoTitleTag | SeoMetaTag;
export declare type FaviconTag = SeoMetaTag | SeoLinkTag;
export declare type SeoOrFaviconTag = SeoTag | FaviconTag;
export type SeoTag = SeoTitleTag | SeoMetaTag;
export type FaviconTag = SeoMetaTag | SeoLinkTag;
export type SeoOrFaviconTag = SeoTag | FaviconTag;

@@ -7,3 +7,3 @@ import { renderNodeRule, renderMarkRule, TransformedMeta, TransformMetaFn, RenderMarkRule } from 'datocms-structured-text-generic-html-renderer';

export type { StructuredTextGraphQlResponse, StructuredTextDocument, StructuredTextGraphQlResponseRecord, };
declare type AdapterReturn = ReactElement | string | null;
type AdapterReturn = ReactElement | string | null;
export declare const defaultAdapter: {

@@ -15,9 +15,9 @@ renderNode: (...args: any) => AdapterReturn;

export declare function appendKeyToValidElement(element: ReactElement | null, key: string): ReactElement | null;
declare type H = typeof defaultAdapter.renderNode;
declare type T = typeof defaultAdapter.renderText;
declare type F = typeof defaultAdapter.renderFragment;
export declare type RenderInlineRecordContext<R extends StructuredTextGraphQlResponseRecord> = {
type H = typeof defaultAdapter.renderNode;
type T = typeof defaultAdapter.renderText;
type F = typeof defaultAdapter.renderFragment;
export type RenderInlineRecordContext<R extends StructuredTextGraphQlResponseRecord> = {
record: R;
};
export declare type RenderRecordLinkContext<R extends StructuredTextGraphQlResponseRecord> = {
export type RenderRecordLinkContext<R extends StructuredTextGraphQlResponseRecord> = {
record: R;

@@ -27,6 +27,6 @@ children: RenderResult<H, T, F>;

};
export declare type RenderBlockContext<R extends StructuredTextGraphQlResponseRecord> = {
export type RenderBlockContext<R extends StructuredTextGraphQlResponseRecord> = {
record: R;
};
export declare type StructuredTextPropTypes<R1 extends StructuredTextGraphQlResponseRecord, R2 extends StructuredTextGraphQlResponseRecord = R1> = {
export type StructuredTextPropTypes<R1 extends StructuredTextGraphQlResponseRecord, R2 extends StructuredTextGraphQlResponseRecord = R1> = {
/** The actual field value you get from DatoCMS **/

@@ -33,0 +33,0 @@ data: StructuredTextGraphQlResponse<R1, R2> | StructuredTextDocument | Node | null | undefined;

import { ChannelErrorData, ConnectionStatus, Options } from 'datocms-listen';
export declare type SubscribeToQueryOptions<QueryResult, QueryVariables> = Omit<Options<QueryResult, QueryVariables>, 'onStatusChange' | 'onUpdate' | 'onChannelError'>;
export declare type EnabledQueryListenerOptions<QueryResult, QueryVariables> = {
export type SubscribeToQueryOptions<QueryResult, QueryVariables> = Omit<Options<QueryResult, QueryVariables>, 'onStatusChange' | 'onUpdate' | 'onChannelError'>;
export type EnabledQueryListenerOptions<QueryResult, QueryVariables> = {
/** Whether the subscription has to be performed or not */

@@ -9,3 +9,3 @@ enabled?: true;

} & SubscribeToQueryOptions<QueryResult, QueryVariables>;
export declare type DisabledQueryListenerOptions<QueryResult, QueryVariables> = {
export type DisabledQueryListenerOptions<QueryResult, QueryVariables> = {
/** Whether the subscription has to be performed or not */

@@ -16,3 +16,3 @@ enabled: false;

} & Partial<SubscribeToQueryOptions<QueryResult, QueryVariables>>;
export declare type QueryListenerOptions<QueryResult, QueryVariables> = EnabledQueryListenerOptions<QueryResult, QueryVariables> | DisabledQueryListenerOptions<QueryResult, QueryVariables>;
export type QueryListenerOptions<QueryResult, QueryVariables> = EnabledQueryListenerOptions<QueryResult, QueryVariables> | DisabledQueryListenerOptions<QueryResult, QueryVariables>;
export declare function useQuerySubscription<QueryResult = any, QueryVariables = Record<string, any>>(options: QueryListenerOptions<QueryResult, QueryVariables>): {

@@ -19,0 +19,0 @@ error: ChannelErrorData | null;

@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () {

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -30,0 +30,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

import React from 'react';
declare type SearchResultInstancesHrefSchema = {
type SearchResultInstancesHrefSchema = {
page?: {

@@ -17,3 +17,3 @@ offset?: number;

};
declare type SearchResultInstancesTargetSchema = {
type SearchResultInstancesTargetSchema = {
data: RawSearchResult[];

@@ -24,3 +24,3 @@ meta: {

};
export declare type RawSearchResult = {
export type RawSearchResult = {
type: 'search_result';

@@ -47,4 +47,4 @@ id: string;

}
declare type Highlighter = (match: string, key: string, context: 'title' | 'bodyExcerpt') => React.ReactNode;
export declare type UseSiteSearchConfig<Client extends GenericClient> = {
type Highlighter = (match: string, key: string, context: 'title' | 'bodyExcerpt') => React.ReactNode;
export type UseSiteSearchConfig<Client extends GenericClient> = {
client: Client;

@@ -61,3 +61,3 @@ buildTriggerId: string;

};
declare type SearchResult = {
type SearchResult = {
id: string;

@@ -69,3 +69,3 @@ title: React.ReactNode;

};
export declare type UseSiteSearchData = {
export type UseSiteSearchData = {
pageResults: SearchResult[];

@@ -75,3 +75,3 @@ totalResults: number;

};
export declare type UseSiteSearchResult = {
export type UseSiteSearchResult = {
state: {

@@ -78,0 +78,0 @@ query: string;

@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () {

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -30,0 +30,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

import React, { CSSProperties } from 'react';
declare type Maybe<T> = T | null;
export declare type ResponsiveImageType = {
type Maybe<T> = T | null;
export type ResponsiveImageType = {
/** A base64-encoded thumbnail to offer during image loading */

@@ -27,3 +27,3 @@ base64?: Maybe<string>;

};
export declare type ImagePropTypes = {
export type ImagePropTypes = {
/** The actual response you get from a DatoCMS `responsiveImage` GraphQL query */

@@ -30,0 +30,0 @@ data: ResponsiveImageType;

@@ -43,4 +43,4 @@ export interface TitleMetaLinkTag {

}
export declare type SeoTag = SeoTitleTag | SeoMetaTag;
export declare type FaviconTag = SeoMetaTag | SeoLinkTag;
export declare type SeoOrFaviconTag = SeoTag | FaviconTag;
export type SeoTag = SeoTitleTag | SeoMetaTag;
export type FaviconTag = SeoMetaTag | SeoLinkTag;
export type SeoOrFaviconTag = SeoTag | FaviconTag;

@@ -7,3 +7,3 @@ import { renderNodeRule, renderMarkRule, TransformedMeta, TransformMetaFn, RenderMarkRule } from 'datocms-structured-text-generic-html-renderer';

export type { StructuredTextGraphQlResponse, StructuredTextDocument, StructuredTextGraphQlResponseRecord, };
declare type AdapterReturn = ReactElement | string | null;
type AdapterReturn = ReactElement | string | null;
export declare const defaultAdapter: {

@@ -15,9 +15,9 @@ renderNode: (...args: any) => AdapterReturn;

export declare function appendKeyToValidElement(element: ReactElement | null, key: string): ReactElement | null;
declare type H = typeof defaultAdapter.renderNode;
declare type T = typeof defaultAdapter.renderText;
declare type F = typeof defaultAdapter.renderFragment;
export declare type RenderInlineRecordContext<R extends StructuredTextGraphQlResponseRecord> = {
type H = typeof defaultAdapter.renderNode;
type T = typeof defaultAdapter.renderText;
type F = typeof defaultAdapter.renderFragment;
export type RenderInlineRecordContext<R extends StructuredTextGraphQlResponseRecord> = {
record: R;
};
export declare type RenderRecordLinkContext<R extends StructuredTextGraphQlResponseRecord> = {
export type RenderRecordLinkContext<R extends StructuredTextGraphQlResponseRecord> = {
record: R;

@@ -27,6 +27,6 @@ children: RenderResult<H, T, F>;

};
export declare type RenderBlockContext<R extends StructuredTextGraphQlResponseRecord> = {
export type RenderBlockContext<R extends StructuredTextGraphQlResponseRecord> = {
record: R;
};
export declare type StructuredTextPropTypes<R1 extends StructuredTextGraphQlResponseRecord, R2 extends StructuredTextGraphQlResponseRecord = R1> = {
export type StructuredTextPropTypes<R1 extends StructuredTextGraphQlResponseRecord, R2 extends StructuredTextGraphQlResponseRecord = R1> = {
/** The actual field value you get from DatoCMS **/

@@ -33,0 +33,0 @@ data: StructuredTextGraphQlResponse<R1, R2> | StructuredTextDocument | Node | null | undefined;

import { ChannelErrorData, ConnectionStatus, Options } from 'datocms-listen';
export declare type SubscribeToQueryOptions<QueryResult, QueryVariables> = Omit<Options<QueryResult, QueryVariables>, 'onStatusChange' | 'onUpdate' | 'onChannelError'>;
export declare type EnabledQueryListenerOptions<QueryResult, QueryVariables> = {
export type SubscribeToQueryOptions<QueryResult, QueryVariables> = Omit<Options<QueryResult, QueryVariables>, 'onStatusChange' | 'onUpdate' | 'onChannelError'>;
export type EnabledQueryListenerOptions<QueryResult, QueryVariables> = {
/** Whether the subscription has to be performed or not */

@@ -9,3 +9,3 @@ enabled?: true;

} & SubscribeToQueryOptions<QueryResult, QueryVariables>;
export declare type DisabledQueryListenerOptions<QueryResult, QueryVariables> = {
export type DisabledQueryListenerOptions<QueryResult, QueryVariables> = {
/** Whether the subscription has to be performed or not */

@@ -16,3 +16,3 @@ enabled: false;

} & Partial<SubscribeToQueryOptions<QueryResult, QueryVariables>>;
export declare type QueryListenerOptions<QueryResult, QueryVariables> = EnabledQueryListenerOptions<QueryResult, QueryVariables> | DisabledQueryListenerOptions<QueryResult, QueryVariables>;
export type QueryListenerOptions<QueryResult, QueryVariables> = EnabledQueryListenerOptions<QueryResult, QueryVariables> | DisabledQueryListenerOptions<QueryResult, QueryVariables>;
export declare function useQuerySubscription<QueryResult = any, QueryVariables = Record<string, any>>(options: QueryListenerOptions<QueryResult, QueryVariables>): {

@@ -19,0 +19,0 @@ error: ChannelErrorData | null;

import React from 'react';
declare type SearchResultInstancesHrefSchema = {
type SearchResultInstancesHrefSchema = {
page?: {

@@ -17,3 +17,3 @@ offset?: number;

};
declare type SearchResultInstancesTargetSchema = {
type SearchResultInstancesTargetSchema = {
data: RawSearchResult[];

@@ -24,3 +24,3 @@ meta: {

};
export declare type RawSearchResult = {
export type RawSearchResult = {
type: 'search_result';

@@ -47,4 +47,4 @@ id: string;

}
declare type Highlighter = (match: string, key: string, context: 'title' | 'bodyExcerpt') => React.ReactNode;
export declare type UseSiteSearchConfig<Client extends GenericClient> = {
type Highlighter = (match: string, key: string, context: 'title' | 'bodyExcerpt') => React.ReactNode;
export type UseSiteSearchConfig<Client extends GenericClient> = {
client: Client;

@@ -61,3 +61,3 @@ buildTriggerId: string;

};
declare type SearchResult = {
type SearchResult = {
id: string;

@@ -69,3 +69,3 @@ title: React.ReactNode;

};
export declare type UseSiteSearchData = {
export type UseSiteSearchData = {
pageResults: SearchResult[];

@@ -75,3 +75,3 @@ totalResults: number;

};
export declare type UseSiteSearchResult = {
export type UseSiteSearchResult = {
state: {

@@ -78,0 +78,0 @@ query: string;

{
"name": "react-datocms",
"version": "4.0.7",
"version": "4.0.8",
"types": "dist/types/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
".": "./dist/cjs/index.js",
"./seo": "./dist/cjs/Seo/index.js",
"./image": "./dist/cjs/Image/index.js",
"./structured-text": "./dist/cjs/StructuredText/index.js",
"./use-query-subscription": "./dist/cjs/useQuerySubscription/index.js",
"./use-site-search": "./dist/cjs/useSiteSearch/index.js"
},
"typesVersions": {
"*": {
"*": [
"dist/types/index.d.ts"
],
"seo": [
"./dist/types/Seo/index.d.ts"
],
"image": [
"./dist/types/Image/index.d.ts"
],
"structured-text": [
"./dist/types/StructuredText/index.d.ts"
],
"use-query-subscription": [
"./dist/types/useQuerySubscription/index.d.ts"
],
"use-site-search": [
"./dist/types/useSiteSearch/index.d.ts"
]
}
},
"sideEffects": false,

@@ -8,0 +38,0 @@ "files": [

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

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