Skip to content

Commit

Permalink
feat(): support block pages by license blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Jan 9, 2025
1 parent 8e258c1 commit b48d71a
Show file tree
Hide file tree
Showing 18 changed files with 712 additions and 56 deletions.
10 changes: 5 additions & 5 deletions bricks/e2e/src/list-by-use-brick/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react";
import { createDecorators } from "@next-core/element";
import { ReactNextElement } from "@next-core/react-element";
import { ReactUseBrick } from "@next-core/react-runtime";
import { UseSingleBrickConf } from "@next-core/types";
import { ReactUseMultipleBricks } from "@next-core/react-runtime";
import { UseBrickConf } from "@next-core/types";

const { defineElement, property } = createDecorators();

Expand All @@ -13,7 +13,7 @@ export
})
class ListByUseBrick extends ReactNextElement {
@property({ attribute: false })
accessor useBrick: UseSingleBrickConf;
accessor useBrick: UseBrickConf;

@property({ attribute: false })
accessor data: unknown;
Expand All @@ -29,7 +29,7 @@ export function ListByUseBrickComponent({
useBrick,
data,
}: {
useBrick: UseSingleBrickConf;
useBrick: UseBrickConf;
data: unknown;
}) {
if (!useBrick || !Array.isArray(data)) {
Expand All @@ -38,7 +38,7 @@ export function ListByUseBrickComponent({
return (
<>
{data.map((datum, index) => (
<ReactUseBrick useBrick={useBrick} data={datum} key={index} />
<ReactUseMultipleBricks useBrick={useBrick} data={datum} key={index} />
))}
</>
);
Expand Down
5 changes: 3 additions & 2 deletions etc/runtime.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export interface PageViewInfo {
// (undocumented)
path?: string;
// (undocumented)
status: "ok" | "failed" | "redirected" | "not-found";
status: "ok" | "failed" | "redirected" | "not-found" | "blocked";
}

// @public (undocumented)
Expand Down Expand Up @@ -441,6 +441,7 @@ export interface RuntimeHooks {
isLoggedIn(): boolean;
authenticate?(...args: unknown[]): unknown;
logout?(...args: unknown[]): unknown;
isBlockedPath?(pathname: string): boolean;
};
// (undocumented)
checkInstalledApps?: {
Expand Down Expand Up @@ -586,7 +587,7 @@ function updateTemplatePreviewSettings(appId: string, templateId: string, settin
// dist/types/Dialog.d.ts:10:5 - (ae-forgotten-export) The symbol "show_2" needs to be exported by the entry point index.d.ts
// dist/types/Notification.d.ts:8:5 - (ae-forgotten-export) The symbol "show" needs to be exported by the entry point index.d.ts
// dist/types/StoryboardFunctionRegistry.d.ts:48:5 - (ae-forgotten-export) The symbol "FunctionCoverageSettings" needs to be exported by the entry point index.d.ts
// dist/types/internal/Runtime.d.ts:34:9 - (ae-forgotten-export) The symbol "AppForCheck" needs to be exported by the entry point index.d.ts
// dist/types/internal/Runtime.d.ts:35:9 - (ae-forgotten-export) The symbol "AppForCheck" needs to be exported by the entry point index.d.ts

// (No @packageDocumentation comment for this package)

Expand Down
Loading

0 comments on commit b48d71a

Please sign in to comment.