@edx/frontend-app-subscription-manage 1.6.0 → 1.7.0
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.
- package/dist/slots.js +1 -5
- package/dist/slots.js.map +1 -1
- package/package.json +1 -1
- package/dist/widgets/ExampleHeader/app.d.ts +0 -3
- package/dist/widgets/ExampleHeader/app.js +0 -19
- package/dist/widgets/ExampleHeader/app.js.map +0 -1
- package/dist/widgets/ExampleHeader/index.d.ts +0 -1
- package/dist/widgets/ExampleHeader/index.js +0 -2
- package/dist/widgets/ExampleHeader/index.js.map +0 -1
package/dist/slots.js
CHANGED
package/dist/slots.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../src/slots.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../src/slots.tsx"],"names":[],"mappings":"AAEA,MAAM,KAAK,GAAoB,EAAE,CAAC;AAElC,eAAe,KAAK,CAAC","sourcesContent":["import { SlotOperation } from '@openedx/frontend-base';\n\nconst slots: SlotOperation[] = [];\n\nexport default slots;\n"]}
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LinkMenuItem, WidgetOperationTypes } from '@openedx/frontend-base';
|
|
3
|
-
import { subscriptionManageRole } from '../../constants';
|
|
4
|
-
const app = {
|
|
5
|
-
appId: 'org.openedx.frontend.app.template.exampleHeader',
|
|
6
|
-
slots: [
|
|
7
|
-
{
|
|
8
|
-
slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',
|
|
9
|
-
id: 'org.openedx.frontend.widget.template.exampleHeaderLink.v1',
|
|
10
|
-
op: WidgetOperationTypes.APPEND,
|
|
11
|
-
element: (_jsx(LinkMenuItem, { label: "Example Menu", role: subscriptionManageRole, variant: "navLink" })),
|
|
12
|
-
condition: {
|
|
13
|
-
active: [subscriptionManageRole],
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
};
|
|
18
|
-
export default app;
|
|
19
|
-
//# sourceMappingURL=app.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/widgets/ExampleHeader/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAO,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,GAAG,GAAQ;IACf,KAAK,EAAE,iDAAiD;IACxD,KAAK,EAAE;QACL;YACE,MAAM,EAAE,kDAAkD;YAC1D,EAAE,EAAE,2DAA2D;YAC/D,EAAE,EAAE,oBAAoB,CAAC,MAAM;YAC/B,OAAO,EAAE,CACP,KAAC,YAAY,IACX,KAAK,EAAC,cAAc,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,EAAC,SAAS,GACjB,CACH;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,CAAC,sBAAsB,CAAC;aACjC;SACF;KACF;CACF,CAAC;AAEF,eAAe,GAAG,CAAC","sourcesContent":["import { App, LinkMenuItem, WidgetOperationTypes } from '@openedx/frontend-base';\n\nimport { subscriptionManageRole } from '../../constants';\n\nconst app: App = {\n appId: 'org.openedx.frontend.app.template.exampleHeader',\n slots: [\n {\n slotId: 'org.openedx.frontend.slot.header.primaryLinks.v1',\n id: 'org.openedx.frontend.widget.template.exampleHeaderLink.v1',\n op: WidgetOperationTypes.APPEND,\n element: (\n <LinkMenuItem\n label=\"Example Menu\"\n role={subscriptionManageRole}\n variant=\"navLink\"\n />\n ),\n condition: {\n active: [subscriptionManageRole],\n },\n },\n ],\n};\n\nexport default app;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as exampleHeaderApp } from './app';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/widgets/ExampleHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,OAAO,CAAC","sourcesContent":["export { default as exampleHeaderApp } from './app';\n"]}
|