@creopse/react 0.0.26 → 0.0.27
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.
|
@@ -8020,7 +8020,7 @@ const useContent = () => {
|
|
|
8020
8020
|
if (!permalink) {
|
|
8021
8021
|
return "";
|
|
8022
8022
|
}
|
|
8023
|
-
return `${permalink.pathPrefix}/${permalink.contentParam ? item?.data[permalink.contentParam] : item.id}`;
|
|
8023
|
+
return `${permalink.pathPrefix}/${permalink.contentParam ? permalink.contentParam == "id" ? item.id : item?.data[permalink.contentParam] : item.id}`;
|
|
8024
8024
|
}
|
|
8025
8025
|
}
|
|
8026
8026
|
},
|
|
@@ -8021,7 +8021,7 @@ const useContent = () => {
|
|
|
8021
8021
|
if (!permalink) {
|
|
8022
8022
|
return "";
|
|
8023
8023
|
}
|
|
8024
|
-
return `${permalink.pathPrefix}/${permalink.contentParam ? item?.data[permalink.contentParam] : item.id}`;
|
|
8024
|
+
return `${permalink.pathPrefix}/${permalink.contentParam ? permalink.contentParam == "id" ? item.id : item?.data[permalink.contentParam] : item.id}`;
|
|
8025
8025
|
}
|
|
8026
8026
|
}
|
|
8027
8027
|
},
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const content = require("../content-
|
|
3
|
+
const content = require("../content-DYL5rH5_.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const articlesUrlBuilder = (p) => {
|
|
6
6
|
const searchParams = new URLSearchParams();
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as useApi } from "../content-
|
|
2
|
-
import { f, a, u, b } from "../content-
|
|
1
|
+
import { e as useApi } from "../content-CwSDJcNb.js";
|
|
2
|
+
import { f, a, u, b } from "../content-CwSDJcNb.js";
|
|
3
3
|
import { useState, useCallback } from "react";
|
|
4
4
|
const articlesUrlBuilder = (p) => {
|
|
5
5
|
const searchParams = new URLSearchParams();
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const content = require("./content-
|
|
4
|
+
const content = require("./content-DYL5rH5_.cjs");
|
|
5
5
|
const react = require("@inertiajs/react");
|
|
6
6
|
const reactDom = require("react-dom");
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default, { useState, useEffect, createContext, useRef, useLayoutEffect, useId, useContext, useInsertionEffect, useMemo, useCallback, Children, isValidElement, Fragment, createElement, forwardRef, Component } from "react";
|
|
3
|
-
import { u as useHelper, a as useContent, b as useProps, P as PropsContext, R as ResolveSectionsContext, c as cloneDeep, s as slideToId, E as EditorMessageType, d as RouterContext, C as ConfigContext } from "./content-
|
|
3
|
+
import { u as useHelper, a as useContent, b as useProps, P as PropsContext, R as ResolveSectionsContext, c as cloneDeep, s as slideToId, E as EditorMessageType, d as RouterContext, C as ConfigContext } from "./content-CwSDJcNb.js";
|
|
4
4
|
import { router } from "@inertiajs/react";
|
|
5
5
|
import { createPortal } from "react-dom";
|
|
6
6
|
var jsxRuntime = { exports: {} };
|